box-ui-elements 15.1.0-beta.10 → 15.1.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEVELOPING.md +1 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +13 -13
- package/dist/openwith.js +3 -3
- package/dist/picker.js +6 -6
- package/dist/preview.css +1 -1
- package/dist/preview.js +15 -15
- package/dist/sharing.js +5 -5
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +16 -16
- package/dist/uploader.js +4 -4
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js +2 -3
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.flow +2 -3
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.js +4 -12
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.flow +3 -16
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.scss +0 -5
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js +13 -28
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.flow +8 -32
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.map +1 -1
- package/es/elements/content-sidebar/versions/messages.js +0 -4
- package/es/elements/content-sidebar/versions/messages.js.flow +0 -5
- package/es/elements/content-sidebar/versions/messages.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +1 -3
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +16 -20
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/flowTypes.js.flow +0 -2
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/i18n/bn-IN.js +0 -1
- package/i18n/bn-IN.properties +0 -2
- package/i18n/da-DK.js +0 -1
- package/i18n/da-DK.properties +0 -2
- package/i18n/de-DE.js +0 -1
- package/i18n/de-DE.properties +0 -2
- package/i18n/en-AU.js +0 -1
- package/i18n/en-AU.properties +0 -2
- package/i18n/en-CA.js +0 -1
- package/i18n/en-CA.properties +0 -2
- package/i18n/en-GB.js +0 -1
- package/i18n/en-GB.properties +0 -2
- package/i18n/en-US.js +0 -1
- package/i18n/en-US.properties +0 -2
- package/i18n/en-x-pseudo.js +842 -843
- package/i18n/en-x-pseudo.properties +853 -831
- package/i18n/es-419.js +0 -1
- package/i18n/es-419.properties +0 -2
- package/i18n/es-ES.js +0 -1
- package/i18n/es-ES.properties +0 -2
- package/i18n/fi-FI.js +0 -1
- package/i18n/fi-FI.properties +0 -2
- package/i18n/fr-CA.js +0 -1
- package/i18n/fr-CA.properties +0 -2
- package/i18n/fr-FR.js +0 -1
- package/i18n/fr-FR.properties +0 -2
- package/i18n/hi-IN.js +0 -1
- package/i18n/hi-IN.properties +0 -2
- package/i18n/it-IT.js +0 -1
- package/i18n/it-IT.properties +0 -2
- package/i18n/ja-JP.js +0 -1
- package/i18n/ja-JP.properties +0 -2
- package/i18n/ko-KR.js +0 -1
- package/i18n/ko-KR.properties +0 -2
- package/i18n/nb-NO.js +0 -1
- package/i18n/nb-NO.properties +0 -2
- package/i18n/nl-NL.js +0 -1
- package/i18n/nl-NL.properties +0 -2
- package/i18n/pl-PL.js +0 -1
- package/i18n/pl-PL.properties +0 -2
- package/i18n/pt-BR.js +0 -1
- package/i18n/pt-BR.properties +0 -2
- package/i18n/ru-RU.js +0 -1
- package/i18n/ru-RU.properties +0 -2
- package/i18n/sv-SE.js +0 -1
- package/i18n/sv-SE.properties +0 -2
- package/i18n/tr-TR.js +0 -1
- package/i18n/tr-TR.properties +0 -2
- package/i18n/zh-CN.js +0 -1
- package/i18n/zh-CN.properties +0 -2
- package/i18n/zh-TW.js +0 -1
- package/i18n/zh-TW.properties +0 -2
- package/package.json +2 -2
- package/src/elements/content-sidebar/versions/StaticVersionSidebar.js +2 -3
- package/src/elements/content-sidebar/versions/VersionsSidebar.js +3 -16
- package/src/elements/content-sidebar/versions/VersionsSidebar.scss +0 -5
- package/src/elements/content-sidebar/versions/VersionsSidebarContainer.js +8 -32
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebar.test.js +1 -18
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebarContainer.test.js +1 -26
- package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +13 -47
- package/src/elements/content-sidebar/versions/messages.js +0 -5
- package/src/features/unified-share-modal/UnifiedShareForm.js +16 -20
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +0 -12
- package/src/features/unified-share-modal/flowTypes.js +0 -2
package/dist/sharing.js
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
Copyright (c) 2017 Jed Watson.
|
|
25
25
|
Licensed under the MIT License (MIT), see
|
|
26
26
|
http://jedwatson.github.io/classnames
|
|
27
|
-
*/!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var s=a.apply(null,n);s&&e.push(s)}else if("object"===r)for(var l in n)i.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):"object"===o(n(112))&&n(112)?void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r):window.classNames=a}()},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"We’re sorry, the preview didn’t load. Please refresh the page."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access to this content is restricted due to a security policy."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},add:{id:"be.add",defaultMessage:"Add"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},metadataState:{id:"be.metadataState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner’s file size limit"},uploadsFileSizeLimitExceededErrorMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta",defaultMessage:"This file exceeds your plan’s upload limit. Upgrade now to store larger files."},uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta",defaultMessage:"Upgrade"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsPackageUploadErrorMessage:{id:"be.uploadsPackageUploadErrorMessage",defaultMessage:"Failed to upload package file. Please retry by saving as a single file."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No activity to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We’re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We’re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"}});t.a=o},function(e,t,n){"use strict";n(88);var r,o,i=n(0),a=n(11),s=n(51),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));function u(e){var t=function(t){return i.createElement(s.a.Consumer,null,(function(n){Object(a.h)(n);var r=t.value,o=t.children,i=l(t,["value","children"]),s="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(s,i):n.formatTimeToParts(s,i))}))};return t.displayName=o[e],t}function c(e){var t=function(t){return i.createElement(s.a.Consumer,null,(function(n){Object(a.h)(n);var r=t.value,o=t.children,s=l(t,["value","children"]),u=n[e](r,s);if("function"==typeof o)return o(u);var c=n.textComponent||i.Fragment;return i.createElement(c,null,u)}))};return t.displayName=r[e],t}n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var f=c("formatDate"),d=(c("formatTime"),c("formatNumber"));c("formatList"),u("formatDate"),u("formatTime")},function(e,t,n){var r=n(194);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n(1);function o(){return new Error("Bad box item!")}function i(){return new Error("Insufficient Permissions!")}function a(){return new Error("Bad box user!")}function s(e){return e===r.Yd||e===r.ae||e===r.Sd||e>=r.Vd}},function(e,t,n){"use strict";var r=n(0),o=n(23),i=n.n(o),a=n(12),s=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),r=d(n),o="id",i=s()("icon"),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",n?(s["aria-labelledby"]=a,s.role="img"):(s["aria-hidden"]="true",s.role="presentation"),r.createElement("svg",s,n?r.createElement("title",{id:a},n):null,t)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);t.a=h},function(e,t,n){"use strict";var r=n(0),o=n(23),i=n.n(o),a=n(12),s=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),r=d(n),o="id",i=s()("icon"),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",n?(s["aria-labelledby"]=a,s.role="img"):(s["aria-hidden"]="true",s.role="presentation"),r.createElement("svg",s,n?r.createElement("title",{id:a},n):null,t)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);n.d(t,"a",(function(){return h}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return m}));var r=n(0),o=n(142),i=n(46),a=n(260),s={38:"&",62:">",60:"<",34:""",39:"'"},l=/[&><"']/g;function u(e){return(""+e).replace(l,(function(e){return s[e.charCodeAt(0)]}))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function f(e){Object(a.a)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function d(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var p={formats:{},messages:{},timeZone:void 0,textComponent:r.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}}}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat;return{getDateTimeFormat:Object(i.a)(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Object(i.a)(Intl.NumberFormat,e.number),getMessageFormat:Object(i.a)(o.a,e.message),getRelativeTimeFormat:Object(i.a)(t,e.relativeTime),getPluralRules:Object(i.a)(Intl.PluralRules,e.pluralRules),getListFormat:Object(i.a)(n,e.list)}}function m(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(d("No ".concat(t," format named: ").concat(n)))}},function(e,t,n){var r=n(97),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){e.exports=n(494)()},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(82),a=n.n(i),s=n(7),l=n.n(s),u=n(160),c=n.n(u),f=n(247),d=n.n(f),p=n(62),h=n(1);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=[h.Md,h.Od,h.Nd].map(d.a),E=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.id,o=n.clientName,i=n.language,s=n.token,u=n.version,c=n.sharedLink,f=n.sharedLinkPassword,d=n.responseInterceptor,p=n.requestInterceptor,b=n.retryableStatusCodes,m=void 0===b?[h.Yd]:b,y=n.shouldRetry,v=void 0===y||y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"retryCount",0),g(this,"errorInterceptor",(function(e){if(t.shouldRetryRequest(e)){t.retryCount+=1;var n=t.getExponentialRetryTimeoutInMs(t.retryCount);return new Promise((function(r,o){t.retryTimeout=setTimeout((function(){t.axios(e.config).then(r,o)}),n)}))}var r=l()(e,"response.data")||e;return t.responseInterceptor(r),Promise.reject(e)})),this.clientName=o,this.id=r,this.language=i,this.responseInterceptor=d||this.defaultResponseInterceptor,this.retryableStatusCodes=m,this.sharedLink=c,this.sharedLinkPassword=f,this.shouldRetry=v,this.token=s,this.version=u,this.axios=a.a.create(),this.axiosSource=a.a.CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof p&&this.axios.interceptors.request.use(p)}var t,n,r,o,i;return t=e,(n=[{key:"defaultResponseInterceptor",value:function(e){return e}},{key:"shouldRetryRequest",value:function(e){if(!this.shouldRetry||this.retryCount>=3)return!1;var t=e.response,n=e.request,r=e.config,o=l()(t,"status"),i=l()(r,"method"),a=n&&!t,s=o===h.Yd,u=c()(this.retryableStatusCodes,o)&&c()(w,i);return a||s||u}},{key:"getExponentialRetryTimeoutInMs",value:function(e){var t=Math.ceil(1e3*Math.random());return 1e3*Math.pow(2,e-1)+t}},{key:"getParsedUrl",value:function(e){var t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}},{key:"getHeaders",value:(o=regeneratorRuntime.mark((function e(t){var n,r,o,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},r=m(g({Accept:"application/json"},h.Kd,"application/json"),n),this.language&&!r[h.Hd]&&(r[h.Hd]=this.language),this.sharedLink&&(r.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(r.BoxApi="".concat(r.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(r[h.Id]=this.clientName),this.version&&(r[h.Jd]=this.version),o=t||this.id||"",e.next=9,p.a.getWriteToken(o,this.token);case 9:return(i=e.sent)&&(r.Authorization="Bearer ".concat(i)),e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){y(i,n,r,a,s,"next",e)}function s(e){y(i,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"get",value:function(e){var t=this,n=e.url,r=e.id,o=e.params,i=void 0===o?{}:o,a=e.headers,s=void 0===a?{}:a;return this.getHeaders(r,s).then((function(e){return t.axios.get(n,{cancelToken:t.axiosSource.token,params:i,headers:e,parsedUrl:t.getParsedUrl(n)})}))}},{key:"post",value:function(e){var t=this,n=e.url,r=e.id,o=e.data,i=e.params,a=e.headers,s=void 0===a?{}:a,l=e.method,u=void 0===l?h.Pd:l;return this.getHeaders(r,s).then((function(e){return t.axios({url:n,data:o,params:i,method:u,parsedUrl:t.getParsedUrl(n),headers:e})}))}},{key:"put",value:function(e){var t=e.url,n=e.id,r=e.data,o=e.params,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:r,params:o,headers:a,method:h.Qd})}},{key:"delete",value:function(e){var t=e.url,n=e.id,r=e.data,o=void 0===r?{}:r,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:o,headers:a,method:h.Ld})}},{key:"options",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.successHandler,l=e.errorHandler;return this.getHeaders(n,a).then((function(e){return t.axios({url:r,data:o,method:h.Od,headers:e}).then(s).catch(l)})).catch(l)}},{key:"uploadFile",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.method,l=void 0===s?h.Pd:s,u=e.successHandler,c=e.errorHandler,f=e.progressHandler,d=e.withIdleTimeout,p=void 0!==d&&d,b=e.idleTimeoutDuration,m=void 0===b?12e4:b,y=e.idleTimeoutHandler;return this.getHeaders(n,a).then((function(e){var n,i=f;if(p){var s=function(){t.abort(),y&&y()};n=setTimeout(s,m),i=function(e){clearTimeout(n),n=setTimeout(s,m),f(e)}}t.axios({url:r,data:o,transformRequest:function(e,t){if(delete t[h.Gd],delete t[h.Kd],a[h.Kd]&&(t[h.Kd]=a[h.Kd]),e&&!(e instanceof Blob)&&e.attributes){var n=new FormData;return Object.keys(e).forEach((function(t){n.append(t,e[t])})),n}return e},method:l,headers:e,onUploadProgress:i,cancelToken:t.axiosSource.token}).then((function(e){clearTimeout(n),u(e)})).catch((function(e){clearTimeout(n),c(e)}))})).catch(c)}},{key:"abort",value:function(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=a.a.CancelToken.source())}}])&&v(t.prototype,n),r&&v(t,r),e}(),S=n(71),O=n(101);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){C(i,r,o,a,s,"next",e)}function s(e){C(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.localStore=new O.a,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}var t,n,r,o,i;return t=e,(n=[{key:"getCachedResultsFromLocalStore",value:function(){return this.localStore.getItem("bcu-uploads-reachability-cached-results")}},{key:"saveCachedResultsToLocalStore",value:function(){this.localStore.setItem("bcu-uploads-reachability-cached-results",this.cachedResults)}},{key:"isCachedHostValid",value:function(e){return e.expirationTimestampMS>Date.now()}},{key:"getCachedResult",value:function(e){if(e in this.cachedResults){var t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}},{key:"updateCachedResult",value:function(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}},{key:"populateCachedResultsWithValidLocalStoreValues",value:function(){var e=this,t=this.getCachedResultsFromLocalStore();t&&Object.keys(t).forEach((function(n){var r=t[n];e.isCachedHostValid(r)&&(e.cachedResults[n]=r)}))}},{key:"getUnreachableHostsUrls",value:function(){var e=this,t=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((function(n){var r=e.cachedResults[n];e.isCachedHostValid(r)&&!r.isReachable&&t.push(n)})),t):t}},{key:"isReachable",value:(i=x(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!=="".concat(h.O,"/")&&t!=="".concat(h.P,"/")){e.next=2;break}return e.abrupt("return",!0);case 2:if(!(n=this.getCachedResult(t))){e.next=5;break}return e.abrupt("return",n.isReachable);case 5:return e.next=7,this.makeReachabilityRequest(t);case 7:return r=e.sent,this.updateCachedResult(t,r),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"makeReachabilityRequest",value:(o=x(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(t,"html5?reachability_test=run"),k(n={},h.Kd,"application/x-www-form-urlencoded; charset=UTF-8"),k(n,"X-File-Name","reachability_pseudofile.txt"),k(n,"X-File-Size","1234"),o=n,e.prev=3,e.next=6,a.a.post(r,"reachability_file=test_file_data",{headers:o});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",!1);case 11:return e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,null,[[3,8]])}))),function(e){return o.apply(this,arguments)})}])&&_(t.prototype,n),r&&_(t,r),e}(),A=n(21),T=n(8);function I(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),R(this,"errorHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.errorCallback){var t=e.response;t&&t.data?n.errorCallback(t.data,n.errorCode):n.errorCallback(e,n.errorCode)}})),this.cache=t.cache||new S.a,this.apiHost=t.apiHost||h.L,this.uploadHost=t.uploadHost||h.O,this.options=D({},t,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new E(this.options),this.destroyed=!1,this.consoleLog=t.consoleLog&&window.console&&window.console.log||o.a,this.consoleError=t.consoleError&&window.console&&window.console.error||o.a,this.uploadsReachability=new P}var t,n,r,i,a;return t=e,(n=[{key:"destroy",value:function(){this.xhr.abort(),this.destroyed=!0}},{key:"isDestroyed",value:function(){return this.destroyed}},{key:"checkApiCallValidity",value:function(e,t,n){if(!n||!t)throw Object(T.a)();if(!t[e])throw Object(T.b)()}},{key:"getBaseApiUrl",value:function(){var e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}},{key:"getBaseUploadUrl",value:function(){var e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}},{key:"getCache",value:function(){return this.cache}},{key:"getUrl",value:function(e){throw new Error("Implement me!")}},{key:"format",value:function(e){throw new Error("Implement me!")}},{key:"get",value:function(e){var t=e.id,n=e.successCallback,r=e.errorCallback,o=e.requestData,i=e.url||this.getUrl(t);return this.makeRequest(h.Md,t,i,n,r,o)}},{key:"post",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Pd,t,n,o,i,r)}},{key:"put",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Qd,t,n,o,i,r)}},{key:"delete",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Ld,t,n,o,i,r)}},{key:"makeRequest",value:(i=regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=c.length>5&&void 0!==c[5]?c[5]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return this.successCallback=o,this.errorCallback=i,s=this.xhr[t.toLowerCase()].bind(this.xhr),e.prev=6,e.next=9,s(D({id:Object(A.b)(n),url:r},a));case 9:l=e.sent,u=l.data,this.successHandler(u),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),this.errorHandler(e.t0);case 17:case"end":return e.stop()}}),e,this,[[6,14]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){I(o,n,r,a,s,"next",e)}function s(e){I(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t,n,r,o){return a.apply(this,arguments)})}])&&L(t.prototype,n),r&&L(t,r),e}();t.a=N},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return r})),n.d(t,"m",(function(){return a})),n.d(t,"n",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"p",(function(){return o})),n.d(t,"q",(function(){return u}));var r=3,o={FULL:"full",SHORT:"short",SHORT_WITH_BTN:"shortWithBtn"},i={SHARED_LINK:"sharedLink",DOWNLOAD:"download",EXTERNAL_COLLAB:"externalCollab",APP:"app",FTP:"ftp",WATERMARK:"watermark"},a={DESKTOP:"desktop",FTP:"ftp",MOBILE:"mobile",WEB:"web"},s={BLACKLIST:"blacklist",BLOCK:"block",WHITELIST:"whitelist"},l={OWNERS_AND_COOWNERS:"ownersCoOwners",OWNERS_COOWNERS_AND_EDITORS:"ownersCoOwnersEditors"},u={COLLAB_AND_COMPANY_ONLY:"companyAndCollabOnly",COLLAB_ONLY:"collabOnly",PUBLIC:"public"},c={DEFAULT:"default",WITH_APP_LIST:"withAppList",WITH_OVERFLOWN_APP_LIST:"withOverflownAppList"},f=0,d=1,p=2,h=3,b=4,m=5,y=6,v=7,g=f},,function(e,t,n){"use strict";var r=n(42);n.d(t,"c",(function(){return r.c})),n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b}))},function(e,t,n){"use strict";var r=n(22);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return E})),n.d(t,"j",(function(){return w})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p}));var r=n(183),o=n.n(r),i=n(75),a=n.n(i),s=n(1);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=[s.Kc,s.Wc,s.ud,s.od,s.Zc,s.Gc,s.bd,s.ad,s.Uc,s.Ac,s.Vc,s.Ic,s.Oc,s.Pc,s.wc,s.Nc,s.fd,s.wd],p=[s.Kc,s.Wc,s.od,s.Gc,s.Hc,s.ld,s.bd,s.yc,s.zc,s.Ac,s.Bc,s.Uc,s.Vc,s.Yc,s.Dc,s.Tc,s.Qc,s.xd,s.yd,s.Oc,s.id,s.wc,s.Nc,s.vd],h=[s.Kc,s.bd,s.ld,s.kd,s.Hc,s.Wc,s.od,s.Gc,s.fd,s.zd,s.wc,s.Nc],b=[s.Hc,s.Uc,s.Vc,s.id,s.od,s.vd,s.yd],m=[s.wc,s.Ac,s.Gc,s.Nc,s.Uc,s.Vc,s.Wc,s.bd,s.gd,s.hd,s.jd,s.od,s.sd,s.td,s.vd,s.yd],y=[s.tc,s.ld],v=(s.rd,s.Mc,s.Ac,s.Bc,s.Ec,s.Rc,s.vc,s.pd,[s.qd,s.Rc,s.Ac,s.Bc,s.Uc,s.bd]),g=(s.Bc,s.Vc,s.Yc,s.vc,[s.rc,s.uc,s.Bc,s.Xc,s.ed]);function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===f(e)&&0!==Object.keys(e).length?t.filter((function(t){return!o()(e,t)})):t}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(t)||0===t.length)return e;var n=u({},e);return w(e,t).forEach((function(e){a()(n,e,null)})),n}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(7),o=n.n(r),i=n(1),a=/\.([0-9a-z]+)$/i;function s(e){return"".concat(i.Hf).concat(e)}function l(e){return"".concat(i.If).concat(e)}function u(e){return e.extension===i.Ad}function c(e){if("string"!=typeof e)return"";var t=a.exec(e);return o()(t,"[1]","")}},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n.n(o),a=n(26);function s(){return(s=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,u=e.getDOMRef,c=void 0===u?i.a:u,f=e.isDisabled,d=void 0!==f&&f,p=e.type,h=void 0===p?a.a.SUBMIT:p,b=l(e,["children","className","getDOMRef","isDisabled","type"]),m={};return d&&(m["aria-disabled"]=!0,m.onClick=function(e){e.preventDefault(),e.stopPropagation()}),r.createElement("button",s({className:"btn-plain ".concat(o),ref:c,type:h},b,m),t)}},function(e,t,n){var r=n(167),o=n(269),i=n(414),a=n(104),s=n(77),l=n(420),u=n(325),c=n(224),f=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return v})),n.d(t,"o",(function(){return C}));var r=n(7),o=n.n(r),i=n(57);function a(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var s={};function l(e){return!(!e.options||!e.file)}function u(e){return!(!e.options||!e.item)}function c(e){return l(e)?e.file:e}function f(e){return u(e)?e.item:e}function d(e){return l(e)&&e.options||s}function p(e){return u(e)&&e.options||s}function h(e){var t,n=e.lastModified||e.lastModifiedDate;if(n&&("string"==typeof n||"number"==typeof n||n instanceof Date)){var r=new Date(n);if(t=r,"[object Date]"===Object.prototype.toString.call(t)&&!Number.isNaN(t.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(r)}return null}function b(e,t,n){var r=e*Math.pow(n,2);return r>t?t:r}function m(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function y(e){var t=m(f(e));return!!t&&t.isDirectory}function v(e){var t=f(e);return y(t)&&"application/zip"===t.type&&"file"===t.kind}function g(e){return new Promise((function(t){e.file((function(e){t(e)}))}))}function w(e){return E.apply(this,arguments)}function E(){var e;return e=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f(t),r=m(n)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,g(r);case 6:if(o=e.sent,!u(t)){e.next=9;break}return e.abrupt("return",{file:o,options:p(t)});case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),(E=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))}).apply(this,arguments)}function S(e){var t=f(e);if(!m(t))return null;var n=t.getAsFile();return u(e)?{file:n,options:p(e)}:n}function O(e,t){if(!l(e))return e.name;var n=e,r=o()(n,"options.folderId",t),i=o()(n,"options.uploadInitTimestamp",Date.now()),a=n.file.webkitRelativePath||n.file.name;return"".concat(a,"_").concat(r,"_").concat(i)}function k(e,t){var n=m(f(e)).name;if(!u(e))return n;var r=p(e),o=r.folderId,i=void 0===o?t:o,a=r.uploadInitTimestamp,s=void 0===a?Date.now():a;return"".concat(n,"_").concat(i,"_").concat(s)}function C(){var e=window.crypto||window.msCrypto;return!i.a.isMobileSafari()&&("https:"===window.location.protocol&&e&&e.subtle)}},,function(e,t,n){"use strict";var r=n(27);n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,o=n(0),i=n(4),a=n.n(i),s=n(23),l=n.n(s),u=n(52),c=n(146);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit"}(r||(r={}));var g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),v(m(n),"btnElement",null),v(m(n),"handleClick",(function(e){var t=n.props,r=t.isDisabled,o=t.onClick;if(r||n.btnElement&&n.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();o&&o(e)})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=t.icon,s=t.isDisabled,f=t.isLoading,h=t.isSelected,b=t.setRef,m=t.size,y=t.type,v=t.showRadar,g=p(t,["children","className","icon","isDisabled","isLoading","isSelected","setRef","size","type","showRadar"]),w=l()(g,["onClick"]);s&&(w["aria-disabled"]=!0);var E=a()("btn",{"is-disabled":s,"is-loading":f,"is-selected":h,"bdl-btn--large":"large"===m,"bdl-has-icon":!!i},r),S=o.createElement("button",d({ref:function(t){e.btnElement=t,b&&b(t)},className:E,onClick:this.handleClick,type:y},w),n?o.createElement("span",{className:"btn-content"},n):null,i?o.createElement("span",{className:"bdl-btn-icon"},o.cloneElement(i,{width:i&&n?16:20,height:i&&n?16:20})):null,f&&o.createElement(u.b,{className:"btn-loading-indicator"}));return v&&(S=o.createElement(c.a,null,S)),S}}])&&h(n.prototype,r),i&&h(n,i),t}(o.Component);v(g,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:r.SUBMIT}),t.b=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,o=n(0);n(430);!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default"}(r||(r={}));t.b=function(e){var t=e.className,n=void 0===t?"":t,i=e.size,a=void 0===i?r.DEFAULT:i;return o.createElement("div",{className:"crawler ".concat(n," is-").concat(a)},o.createElement("div",null),o.createElement("div",null),o.createElement("div",null))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(230),i=Object.prototype.toString;function a(e){return Array.isArray(e)}function s(e){return void 0===e}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return null!==e&&"object"===r(e)}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:f,isStream:function(e){return u(e)&&f(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return x})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return g})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return E})),n.d(t,"f",(function(){return S})),n.d(t,"a",(function(){return O}));var r=n(116),o=n.n(r),i=1e3,a=86400*i,s=60*i,l=/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?)?((Z$)|(?:[+-](?:([0-2]\d$)|([0-2]\d(?:00|30)$)|([0-2]\d:(?:00|30)$))))$/,u=1,c=2,f=3,d=4,p=5,h=6,b=7;function m(e){return e instanceof Date?e:new Date(e)}function y(e){return e*i}function v(e){return(new Date).toDateString()===m(e).toDateString()}function g(e){return v(m(e).getTime()+a)}function w(e){return(new Date).getMonth()===m(e).getMonth()}function E(e){return(new Date).getFullYear()===m(e).getFullYear()}function S(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60),o=t>0?"".concat(t.toString(),":"):"",i=r<10?"0".concat(r.toString()):r.toString(),a=n.toString();return t>0&&n<10&&(a="0".concat(a)),"".concat(o).concat(a,":").concat(i)}function O(e,t){return e instanceof Date?new Date(e.getTime()+t):e+t}function k(e){return e.getTime()-e.getTimezoneOffset()*s}function C(e){return!o()(e.getTime())}function x(e){var t=new Date(function(e){if(l.test(e)){var t=e.split(l),n=t[u],r=t[c],o=t[f];if(r||(n+=".000"),t[d])return e;if(t[p])return"".concat(n+o,":00");if(t[h])return"".concat(n+o.substr(0,3),":").concat(o.substr(3));if(t[b])return e}return e}(e)),n=t.getTime(),r=t.getTimezoneOffset();return new Date(n+r*s)}},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},commentUpdateErrorMessage:{id:"be.api.commentUpdateErrorMessage",defaultMessage:"This comment could not be modified."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}});t.a=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({cancel:{id:"boxui.core.cancel",defaultMessage:"Cancel"},close:{id:"boxui.core.close",defaultMessage:"Close"},copy:{id:"boxui.core.copy",defaultMessage:"Copy"},copied:{id:"boxui.core.copied",defaultMessage:"Copied"},done:{id:"boxui.core.done",defaultMessage:"Done"},okay:{id:"boxui.core.okay",defaultMessage:"Okay"},save:{id:"boxui.core.save",defaultMessage:"Save"},send:{id:"boxui.core.send",defaultMessage:"Send"},optional:{id:"boxui.core.optional",defaultMessage:"optional"},pillSelectorPlaceholder:{id:"boxui.share.pillSelectorPlaceholder",defaultMessage:"Add names or email addresses"},messageSelectorPlaceholder:{id:"boxui.share.messageSelectorPlaceholder",defaultMessage:"Add a message"},invalidInputError:{id:"boxui.validation.genericError",defaultMessage:"Invalid Input"},minLengthError:{id:"boxui.validation.tooShortError",defaultMessage:"Input must be at least {min} characters"},maxLengthError:{id:"boxui.validation.tooLongError",defaultMessage:"Input cannot exceed {max} characters"},invalidEmailError:{id:"boxui.validation.emailError",defaultMessage:"Invalid Email Address"},invalidURLError:{id:"boxui.validation.URLError",defaultMessage:"Invalid URL"},invalidUserError:{id:"boxui.validation.invalidUserError",defaultMessage:"Invalid User"},requiredFieldError:{id:"boxui.validation.requiredError",defaultMessage:"Required Field"},invalidDateError:{id:"boxui.validation.invalidDateError",defaultMessage:"Invalid Date"}});t.a=o},,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(359)},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(215),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t,n){"use strict";var r=n(127),o=n(59),i=n(0),a=n(4),s=n.n(a),l=n(23),u=n.n(l);function c(){return(c=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)}var f=function(e){return i.createElement(o.a,c({isSelectItem:!0},e))};var d=n(99),p=n.n(d),h=(n(549),n(2)),b=n(9);function m(){return(m=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)}var y=function(e){return i.createElement(b.a,m({width:16,height:16,viewBox:"0 0 16 16"},e),i.createElement("path",{fill:h.j,fillRule:"evenodd",d:"M7.646 7.646L4.354 4.354a.5.5 0 010-.708l1.292-1.292a.5.5 0 01.708 0l5.292 5.292a.5.5 0 010 .708l-5.292 5.292a.5.5 0 01-.708 0l-1.292-1.292a.5.5 0 010-.708l3.292-3.292a.5.5 0 000-.708z"}))};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x="is-left-aligned",_="is-bottom-aligned";i.Component;n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return f}))},function(e,t,n){"use strict";var r,o=n(0),i=n(4),a=n.n(i),s=n(12),l=n.n(s),u=n(7),c=n.n(u),f=n(49),d=n.n(f);!function(e){e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right"}(r||(r={}));var p,h,b,m=r,y=n(100),v=n(18);n(438);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=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 E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return b})),function(e){e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error"}(h||(h={})),function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(b||(b={}));var x=(C(p={},b.BOTTOM_CENTER,{attachment:m.TOP_CENTER,targetAttachment:m.BOTTOM_CENTER}),C(p,b.BOTTOM_LEFT,{attachment:m.TOP_RIGHT,targetAttachment:m.BOTTOM_RIGHT}),C(p,b.BOTTOM_RIGHT,{attachment:m.TOP_LEFT,targetAttachment:m.BOTTOM_LEFT}),C(p,b.MIDDLE_LEFT,{attachment:m.MIDDLE_RIGHT,targetAttachment:m.MIDDLE_LEFT}),C(p,b.MIDDLE_RIGHT,{attachment:m.MIDDLE_LEFT,targetAttachment:m.MIDDLE_RIGHT}),C(p,b.TOP_CENTER,{attachment:m.BOTTOM_CENTER,targetAttachment:m.TOP_CENTER}),C(p,b.TOP_LEFT,{attachment:m.BOTTOM_RIGHT,targetAttachment:m.TOP_RIGHT}),C(p,b.TOP_RIGHT,{attachment:m.BOTTOM_LEFT,targetAttachment:m.TOP_LEFT}),p),_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?O(e):t}(this,S(t).call(this,e)),C(O(n),"tooltipID",l()("tooltip")),C(O(n),"tetherRef",o.createRef()),C(O(n),"position",(function(){n.tetherRef.current&&n.isShown()&&n.tetherRef.current.position()})),C(O(n),"closeTooltip",(function(){var e=n.props.onDismiss;n.setState({wasClosedByUser:!0}),e&&e()})),C(O(n),"fireChildEvent",(function(e,t){var r=n.props.children.props[e];r&&r(t)})),C(O(n),"handleTooltipEvent",(function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),C(O(n),"handleMouseEnter",(function(e){n.setState({isShown:!0}),n.fireChildEvent("onMouseEnter",e)})),C(O(n),"handleMouseLeave",(function(e){n.setState({isShown:!1}),n.fireChildEvent("onMouseLeave",e)})),C(O(n),"handleFocus",(function(e){n.setState({isShown:!0}),n.fireChildEvent("onFocus",e)})),C(O(n),"handleBlur",(function(e){n.setState({isShown:!1}),n.fireChildEvent("onBlur",e)})),C(O(n),"isControlled",(function(){return void 0!==n.props.isShown})),C(O(n),"handleKeyDown",(function(e){"Escape"===e.key&&(e.stopPropagation(),n.setState({isShown:!1})),n.fireChildEvent("onKeyDown",e)})),C(O(n),"isShown",(function(){var e=n.props.isShown;return(n.isControlled()?e:n.state.isShown)&&!n.state.wasClosedByUser&&n.state.hasRendered})),n.state={isShown:!!e.isShown,hasRendered:!1,wasClosedByUser:!1},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.setState({hasRendered:!0})}},{key:"componentDidUpdate",value:function(e,t){this.isControlled()?!e.isShown&&this.props.isShown&&this.setState({wasClosedByUser:!1}):(!t.isShown&&this.state.isShown&&document.addEventListener("keydown",this.handleKeyDown,!0),t.isShown&&!this.state.isShown&&document.removeEventListener("keydown",this.handleKeyDown,!0))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown,!0)}},{key:"render",value:function(){var e=this.props,t=e.bodyElement,n=e.children,r=e.className,i=e.constrainToScrollParent,s=e.constrainToWindow,l=e.isDisabled,u=e.isTabbable,f=void 0===u||u,p=e.offset,m=e.position,g=void 0===m?b.TOP_CENTER:m,E=e.showCloseButton,S=e.stopBubble,O=e.tetherElementClassName,k=e.text,C=e.theme,_=c()(n,"props.aria-label"),P=!!_&&_===k;if(l)return o.Children.only(n);var A=this.isControlled(),T=this.isShown(),I=E&&A,j="string"==typeof g?x[g]:g,D=[],L={};i&&D.push({to:"scrollParent",attachment:"together"}),s&&D.push({to:"window",attachment:"together"}),T&&(P&&void 0!==_||(L["aria-describedby"]=this.tooltipID),C===h.ERROR&&(L["aria-errormessage"]=this.tooltipID)),A||(L.onBlur=this.handleBlur,L.onFocus=this.handleFocus,L.onMouseEnter=this.handleMouseEnter,L.onMouseLeave=this.handleMouseLeave,f&&(L.tabIndex="0"));var R=t instanceof HTMLElement?t:document.body,N=a()("tooltip","bdl-Tooltip",r,{"is-callout":C===h.CALLOUT,"is-error":C===h.ERROR,"with-close-button":I}),M={attachment:j.attachment,bodyElement:R,classPrefix:"tooltip",constraints:D,enabled:T,targetAttachment:j.targetAttachment};O&&(M.className=O),p&&(M.offset=p);var F=o.createElement(o.Fragment,null,k,I&&o.createElement(v.a,{className:"tooltip-close-button",onClick:this.closeTooltip},o.createElement(y.a,{className:"bdl-Tooltip-iconClose",width:14,height:14}))),U=S?o.createElement("div",{className:N,id:this.tooltipID,onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:"presentation"},o.createElement("div",{role:C===h.ERROR?void 0:"tooltip","aria-live":"polite","aria-hidden":P,"data-testid":"bdl-Tooltip"},F)):o.createElement("div",{"aria-live":"polite","aria-hidden":P,className:N,"data-testid":"bdl-Tooltip",id:this.tooltipID,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:C===h.ERROR?void 0:"tooltip"},F);return o.createElement(d.a,w({ref:this.tetherRef},M),o.cloneElement(o.Children.only(n),L),T&&U)}}])&&E(n.prototype,r),i&&E(n,i),t}(o.Component);C(_,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:b.TOP_CENTER,theme:h.DEFAULT});t.c=_},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};function i(e){return JSON.stringify(e.map((function(e){return e&&"object"===r(e)?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}t.a=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=i(r),l=s&&t[s];return l||(l=new((n=e).bind.apply(n,o([void 0],r))),s&&(t[s]=l)),l}}},function(e,t,n){"use strict";var r=n(0),o=n(27);function i(){return(i=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 a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,s=void 0===n?"":n,l=a(e,["children","className"]);return r.createElement(o.b,i({className:"btn-primary ".concat(s)},l),t)}},function(e,t,n){"use strict";n(0);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!=e&&"object"===r(e)&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)}return!1}function s(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var l=function(e,t){var n=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,u=t.skipOverflowHiddenElements,c="function"==typeof l?l:function(e){return e!==l};if(!o(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,d=[],p=e;o(p)&&c(p);){if((p=p.parentNode)===f){d.push(p);break}p===document.body&&a(p)&&!a(document.documentElement)||a(p,u)&&d.push(p)}for(var h=window.visualViewport?visualViewport.width:innerWidth,b=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,w=v.width,E=v.top,S=v.right,O=v.bottom,k=v.left,C="start"===r||"nearest"===r?E:"end"===r?O:E+g/2,x="center"===i?k+w/2:"end"===i?S:k,_=[],P=0;P<d.length;P++){var A=d[P],T=A.getBoundingClientRect(),I=T.height,j=T.width,D=T.top,L=T.right,R=T.bottom,N=T.left;if("if-needed"===n&&E>=0&&k>=0&&O<=b&&S<=h&&E>=D&&O<=R&&k>=N&&S<=L)return _;var M=getComputedStyle(A),F=parseInt(M.borderLeftWidth,10),U=parseInt(M.borderTopWidth,10),B=parseInt(M.borderRightWidth,10),H=parseInt(M.borderBottomWidth,10),z=0,V=0,W="offsetWidth"in A?A.offsetWidth-A.clientWidth-F-B:0,q="offsetHeight"in A?A.offsetHeight-A.clientHeight-U-H:0;if(f===A)z="start"===r?C:"end"===r?C-b:"nearest"===r?s(y,y+b,b,U,H,y+C,y+C+g,g):C-b/2,V="start"===i?x:"center"===i?x-h/2:"end"===i?x-h:s(m,m+h,h,F,B,m+x,m+x+w,w),z=Math.max(0,z+y),V=Math.max(0,V+m);else{z="start"===r?C-D-U:"end"===r?C-R+H+q:"nearest"===r?s(D,R,I,U,H+q,C,C+g,g):C-(D+I/2)+q/2,V="start"===i?x-N-F:"center"===i?x-(N+j/2)+W/2:"end"===i?x-L+B+W:s(N,L,j,F,B+W,x,x+w,w);var G=A.scrollLeft,K=A.scrollTop;C+=K-(z=Math.max(0,Math.min(K+z,A.scrollHeight-I+q))),x+=G-(V=Math.max(0,Math.min(G+V,A.scrollWidth-j+W)))}_.push({el:A,top:z,left:V})}return _};function u(e){return e===Object(e)&&0!==Object.keys(e).length}var c=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(u(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:l(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:u(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(l(e,r),r.behavior)}},f=n(1);n(550);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||"div"===t&&!!e.getAttribute("contenteditable")}function b(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase(),n=e.classList.contains("checkbox-pointer-target")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("checkbox-label"),r=e.classList.contains("btn-content")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("btn")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("bdl-Button")||!1;return h(e)||"button"===t||"a"===t||"option"===t||n||r}function m(e){return!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}function y(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e)if(t){var r=e.querySelector(t);r&&"function"==typeof r.focus?r.focus():n&&e.focus()}else e.focus()}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=e.closest(".body, .modal, .".concat(f.ze));c(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({scrollMode:"if-needed",boundary:n},t))}}n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return v}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(432))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(63),o=n.n(r),i=n(7),a=n.n(i),s=n(19),l=n(21),u=n(8),c=n(1),f=n(79),d=n(73),p=n(62);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),E(this,S(t).apply(this,arguments))}var n,r,i,f,h,b,y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(c.h).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/files").concat(t)}},{key:"getDownloadUrl",value:(y=g(regeneratorRuntime.mark((function e(t,n,r,i){var a,s,u,f,d,h,b,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=c.Sb,this.errorCallback=i,this.successCallback=r,a=n[c.Nc],s=n[c.wc],e.next=7,p.a.getReadToken(Object(l.b)(t),this.options.token);case 7:if(u=e.sent,a&&s&&u){e.next=11;break}return this.errorHandler(new Error("Download is missing required fields or token.")),e.abrupt("return");case 11:f=o.a.parseUrl(s),d=f.query,h=f.url,b=m({},d,{access_token:u}),y=o.a.stringify(b),this.successHandler("".concat(h,"?").concat(y));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return y.apply(this,arguments)})},{key:"isRepresentationsCallComplete",value:function(e){var t=a()(e,"data.status.state");return!t||t===c.Le||t===c.Me||t===c.Ne}},{key:"generateRepresentation",value:(b=g(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a()(t,"info.url")){e.next=3;break}return e.abrupt("return",t);case 3:return e.abrupt("return",Object(d.a)((function(e,t){return r.xhr.get({successCallback:e,errorCallback:t,url:n}).then((function(n){return r.isRepresentationsCallComplete(n)?e(n.data):t(n.data)})).catch((function(e){t(e)}))}),4,2e3,2));case 4:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"getThumbnailUrl",value:(h=g(regeneratorRuntime.mark((function e(t){var n,r,i,s,u,c,f,d,h,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a()(t,"representations.entries[0]"),r=a()(n,"representation"),i=a()(n,"content.url_template"),e.next=5,p.a.getReadToken(Object(l.b)(t.id),this.options.token);case 5:if(s=e.sent,r&&i&&s){e.next=8;break}return e.abrupt("return",null);case 8:return u=i.replace("{+asset_path}","jpg"===r?"":"1.png"),c=o.a.parseUrl(u),f=c.query,d=c.url,h=m({},f,{access_token:s}),b=o.a.stringify(h),e.abrupt("return","".concat(d,"?").concat(b));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"setFileDescription",value:function(e,t,n,r){var o=this,i=e.id,a=e.permissions;return i&&a?a.can_rename?this.xhr.put({id:Object(l.b)(i),url:this.getUrl(i),data:{description:t}}).then((function(e){var t=e.data;if(!o.isDestroyed()){var r=o.merge(o.getCacheKey(i),"description",t.description);n(r)}})).catch((function(){if(!o.isDestroyed()){var t=o.merge(o.getCacheKey(i),"description",e.description);r(t)}})):(r(Object(u.b)()),Promise.reject()):(r(Object(u.a)()),Promise.reject())}},{key:"getFile",value:(f=g(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,u,f,d,p,h,b,m,y=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=y.length>3&&void 0!==y[3]?y[3]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(i=this.getCache(),a=this.getCacheKey(t),u=!o.forceFetch&&i.has(a),f=u?i.get(a):{id:t},d=Object(s.j)(f,o.fields),p={id:Object(l.b)(t),url:this.getUrl(t),headers:{"X-Rep-Hints":c.eg}},this.errorCode=c.Fb,this.successCallback=n,this.errorCallback=r,!u||0!==d.length){e.next=17;break}if(n(f),d=o.fields||[],o.refreshCache){e.next=17;break}return e.abrupt("return");case 17:return d.length>0&&(p.params={fields:d.toString()}),e.prev=18,e.next=21,this.xhr.get(p);case 21:if(h=e.sent,b=h.data,!this.isDestroyed()){e.next=25;break}return e.abrupt("return");case 25:m=Object(s.i)(b,d),i.has(a)?i.merge(a,m):i.set(a,m),this.successHandler(i.get(a)),e.next=33;break;case 30:e.prev=30,e.t0=e.catch(18),this.errorHandler(e.t0);case 33:case"end":return e.stop()}}),e,this,[[18,30]])}))),function(e,t,n){return f.apply(this,arguments)})},{key:"getFileExtension",value:function(e,t,n){this.isDestroyed()||this.getFile(e,t,n,{fields:[c.Gc]})}}])&&w(n.prototype,r),i&&w(n,i),t}(f.a);t.a=k},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var r=n(0),o=n(182),i=n.n(o),a=n(11);function s(){return(s=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)}var l=i.a||o;var u=r.createContext(null),c=u.Consumer,f=u.Provider,d=u;function p(e,t){var n,o=t||{},i=o.intlPropName,u=void 0===i?"intl":i,f=o.forwardRef,d=void 0!==f&&f,p=o.enforceContext,h=void 0===p||p,b=function(t){return r.createElement(c,null,(function(n){return h&&Object(a.h)(n),r.createElement(e,s({},t,(l=n,(i=u)in(o={})?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o),{ref:d?t.forwardedRef:null}));var o,i,l}))};return b.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),b.WrappedComponent=e,l(d?r.forwardRef((function(e,t){return r.createElement(b,s({},e,{forwardedRef:t}))})):b,e)}},function(e,t,n){"use strict";n(165);var r=n(53);n.d(t,"a",(function(){return r.a}));var o=n(28);n.d(t,"b",(function(){return o.b}))},function(e,t,n){"use strict";var r,o=n(0),i=n(4),a=n.n(i),s=n(28);n(431);function l(){return(l=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 u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}!function(e){e.CENTER="center",e.TOP="top"}(r||(r={}));t.a=function(e){var t=e.children,n=e.className,i=void 0===n?"":n,c=e.crawlerPosition,f=void 0===c?r.CENTER:c,d=e.crawlerSize,p=void 0===d?s.a.DEFAULT:d,h=e.isLoading,b=void 0!==h&&h,m=e.hideContent,y=void 0!==m&&m,v=u(e,["children","className","crawlerPosition","crawlerSize","isLoading","hideContent"]),g=a()("loading-indicator-veil",{"is-with-top-crawler":f===r.TOP,"is-with-center-crawler":f===r.CENTER},y?"hide-content":"blur-content");return o.createElement("div",l({className:"loading-indicator-wrapper ".concat(i)},v),t,b&&o.createElement("div",{className:g},o.createElement(s.b,{size:p})))}},function(e,t,n){"use strict";
|
|
27
|
+
*/!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var s=a.apply(null,n);s&&e.push(s)}else if("object"===r)for(var l in n)i.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):"object"===o(n(112))&&n(112)?void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r):window.classNames=a}()},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"We’re sorry, the preview didn’t load. Please refresh the page."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access to this content is restricted due to a security policy."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},add:{id:"be.add",defaultMessage:"Add"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},metadataState:{id:"be.metadataState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner’s file size limit"},uploadsFileSizeLimitExceededErrorMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta",defaultMessage:"This file exceeds your plan’s upload limit. Upgrade now to store larger files."},uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta",defaultMessage:"Upgrade"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsPackageUploadErrorMessage:{id:"be.uploadsPackageUploadErrorMessage",defaultMessage:"Failed to upload package file. Please retry by saving as a single file."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No activity to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We’re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We’re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"}});t.a=o},function(e,t,n){"use strict";n(88);var r,o,i=n(0),a=n(11),s=n(51),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));function u(e){var t=function(t){return i.createElement(s.a.Consumer,null,(function(n){Object(a.h)(n);var r=t.value,o=t.children,i=l(t,["value","children"]),s="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(s,i):n.formatTimeToParts(s,i))}))};return t.displayName=o[e],t}function c(e){var t=function(t){return i.createElement(s.a.Consumer,null,(function(n){Object(a.h)(n);var r=t.value,o=t.children,s=l(t,["value","children"]),u=n[e](r,s);if("function"==typeof o)return o(u);var c=n.textComponent||i.Fragment;return i.createElement(c,null,u)}))};return t.displayName=r[e],t}n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var f=c("formatDate"),d=(c("formatTime"),c("formatNumber"));c("formatList"),u("formatDate"),u("formatTime")},function(e,t,n){var r=n(194);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n(1);function o(){return new Error("Bad box item!")}function i(){return new Error("Insufficient Permissions!")}function a(){return new Error("Bad box user!")}function s(e){return e===r.Yd||e===r.ae||e===r.Sd||e>=r.Vd}},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n.n(o),a=n(12),s=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),r=d(n),o="id",i=s()("icon"),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",n?(s["aria-labelledby"]=a,s.role="img"):(s["aria-hidden"]="true",s.role="presentation"),r.createElement("svg",s,n?r.createElement("title",{id:a},n):null,t)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);t.a=h},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n.n(o),a=n(12),s=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),r=d(n),o="id",i=s()("icon"),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",n?(s["aria-labelledby"]=a,s.role="img"):(s["aria-hidden"]="true",s.role="presentation"),r.createElement("svg",s,n?r.createElement("title",{id:a},n):null,t)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);n.d(t,"a",(function(){return h}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return m}));var r=n(0),o=n(142),i=n(46),a=n(260),s={38:"&",62:">",60:"<",34:""",39:"'"},l=/[&><"']/g;function u(e){return(""+e).replace(l,(function(e){return s[e.charCodeAt(0)]}))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function f(e){Object(a.a)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function d(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var p={formats:{},messages:{},timeZone:void 0,textComponent:r.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}}}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat;return{getDateTimeFormat:Object(i.a)(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Object(i.a)(Intl.NumberFormat,e.number),getMessageFormat:Object(i.a)(o.a,e.message),getRelativeTimeFormat:Object(i.a)(t,e.relativeTime),getPluralRules:Object(i.a)(Intl.PluralRules,e.pluralRules),getListFormat:Object(i.a)(n,e.list)}}function m(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(d("No ".concat(t," format named: ").concat(n)))}},function(e,t,n){var r=n(97),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){e.exports=n(494)()},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(82),a=n.n(i),s=n(7),l=n.n(s),u=n(160),c=n.n(u),f=n(247),d=n.n(f),p=n(62),h=n(1);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=[h.Md,h.Od,h.Nd].map(d.a),E=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.id,o=n.clientName,i=n.language,s=n.token,u=n.version,c=n.sharedLink,f=n.sharedLinkPassword,d=n.responseInterceptor,p=n.requestInterceptor,b=n.retryableStatusCodes,m=void 0===b?[h.Yd]:b,y=n.shouldRetry,v=void 0===y||y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"retryCount",0),g(this,"errorInterceptor",(function(e){if(t.shouldRetryRequest(e)){t.retryCount+=1;var n=t.getExponentialRetryTimeoutInMs(t.retryCount);return new Promise((function(r,o){t.retryTimeout=setTimeout((function(){t.axios(e.config).then(r,o)}),n)}))}var r=l()(e,"response.data")||e;return t.responseInterceptor(r),Promise.reject(e)})),this.clientName=o,this.id=r,this.language=i,this.responseInterceptor=d||this.defaultResponseInterceptor,this.retryableStatusCodes=m,this.sharedLink=c,this.sharedLinkPassword=f,this.shouldRetry=v,this.token=s,this.version=u,this.axios=a.a.create(),this.axiosSource=a.a.CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof p&&this.axios.interceptors.request.use(p)}var t,n,r,o,i;return t=e,(n=[{key:"defaultResponseInterceptor",value:function(e){return e}},{key:"shouldRetryRequest",value:function(e){if(!this.shouldRetry||this.retryCount>=3)return!1;var t=e.response,n=e.request,r=e.config,o=l()(t,"status"),i=l()(r,"method"),a=n&&!t,s=o===h.Yd,u=c()(this.retryableStatusCodes,o)&&c()(w,i);return a||s||u}},{key:"getExponentialRetryTimeoutInMs",value:function(e){var t=Math.ceil(1e3*Math.random());return 1e3*Math.pow(2,e-1)+t}},{key:"getParsedUrl",value:function(e){var t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}},{key:"getHeaders",value:(o=regeneratorRuntime.mark((function e(t){var n,r,o,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},r=m(g({Accept:"application/json"},h.Kd,"application/json"),n),this.language&&!r[h.Hd]&&(r[h.Hd]=this.language),this.sharedLink&&(r.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(r.BoxApi="".concat(r.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(r[h.Id]=this.clientName),this.version&&(r[h.Jd]=this.version),o=t||this.id||"",e.next=9,p.a.getWriteToken(o,this.token);case 9:return(i=e.sent)&&(r.Authorization="Bearer ".concat(i)),e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){y(i,n,r,a,s,"next",e)}function s(e){y(i,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"get",value:function(e){var t=this,n=e.url,r=e.id,o=e.params,i=void 0===o?{}:o,a=e.headers,s=void 0===a?{}:a;return this.getHeaders(r,s).then((function(e){return t.axios.get(n,{cancelToken:t.axiosSource.token,params:i,headers:e,parsedUrl:t.getParsedUrl(n)})}))}},{key:"post",value:function(e){var t=this,n=e.url,r=e.id,o=e.data,i=e.params,a=e.headers,s=void 0===a?{}:a,l=e.method,u=void 0===l?h.Pd:l;return this.getHeaders(r,s).then((function(e){return t.axios({url:n,data:o,params:i,method:u,parsedUrl:t.getParsedUrl(n),headers:e})}))}},{key:"put",value:function(e){var t=e.url,n=e.id,r=e.data,o=e.params,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:r,params:o,headers:a,method:h.Qd})}},{key:"delete",value:function(e){var t=e.url,n=e.id,r=e.data,o=void 0===r?{}:r,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:o,headers:a,method:h.Ld})}},{key:"options",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.successHandler,l=e.errorHandler;return this.getHeaders(n,a).then((function(e){return t.axios({url:r,data:o,method:h.Od,headers:e}).then(s).catch(l)})).catch(l)}},{key:"uploadFile",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.method,l=void 0===s?h.Pd:s,u=e.successHandler,c=e.errorHandler,f=e.progressHandler,d=e.withIdleTimeout,p=void 0!==d&&d,b=e.idleTimeoutDuration,m=void 0===b?12e4:b,y=e.idleTimeoutHandler;return this.getHeaders(n,a).then((function(e){var n,i=f;if(p){var s=function(){t.abort(),y&&y()};n=setTimeout(s,m),i=function(e){clearTimeout(n),n=setTimeout(s,m),f(e)}}t.axios({url:r,data:o,transformRequest:function(e,t){if(delete t[h.Gd],delete t[h.Kd],a[h.Kd]&&(t[h.Kd]=a[h.Kd]),e&&!(e instanceof Blob)&&e.attributes){var n=new FormData;return Object.keys(e).forEach((function(t){n.append(t,e[t])})),n}return e},method:l,headers:e,onUploadProgress:i,cancelToken:t.axiosSource.token}).then((function(e){clearTimeout(n),u(e)})).catch((function(e){clearTimeout(n),c(e)}))})).catch(c)}},{key:"abort",value:function(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=a.a.CancelToken.source())}}])&&v(t.prototype,n),r&&v(t,r),e}(),S=n(71),O=n(101);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){C(i,r,o,a,s,"next",e)}function s(e){C(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.localStore=new O.a,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}var t,n,r,o,i;return t=e,(n=[{key:"getCachedResultsFromLocalStore",value:function(){return this.localStore.getItem("bcu-uploads-reachability-cached-results")}},{key:"saveCachedResultsToLocalStore",value:function(){this.localStore.setItem("bcu-uploads-reachability-cached-results",this.cachedResults)}},{key:"isCachedHostValid",value:function(e){return e.expirationTimestampMS>Date.now()}},{key:"getCachedResult",value:function(e){if(e in this.cachedResults){var t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}},{key:"updateCachedResult",value:function(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}},{key:"populateCachedResultsWithValidLocalStoreValues",value:function(){var e=this,t=this.getCachedResultsFromLocalStore();t&&Object.keys(t).forEach((function(n){var r=t[n];e.isCachedHostValid(r)&&(e.cachedResults[n]=r)}))}},{key:"getUnreachableHostsUrls",value:function(){var e=this,t=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((function(n){var r=e.cachedResults[n];e.isCachedHostValid(r)&&!r.isReachable&&t.push(n)})),t):t}},{key:"isReachable",value:(i=x(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!=="".concat(h.O,"/")&&t!=="".concat(h.P,"/")){e.next=2;break}return e.abrupt("return",!0);case 2:if(!(n=this.getCachedResult(t))){e.next=5;break}return e.abrupt("return",n.isReachable);case 5:return e.next=7,this.makeReachabilityRequest(t);case 7:return r=e.sent,this.updateCachedResult(t,r),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"makeReachabilityRequest",value:(o=x(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(t,"html5?reachability_test=run"),k(n={},h.Kd,"application/x-www-form-urlencoded; charset=UTF-8"),k(n,"X-File-Name","reachability_pseudofile.txt"),k(n,"X-File-Size","1234"),o=n,e.prev=3,e.next=6,a.a.post(r,"reachability_file=test_file_data",{headers:o});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",!1);case 11:return e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,null,[[3,8]])}))),function(e){return o.apply(this,arguments)})}])&&_(t.prototype,n),r&&_(t,r),e}(),A=n(21),T=n(8);function I(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),R(this,"errorHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.errorCallback){var t=e.response;t&&t.data?n.errorCallback(t.data,n.errorCode):n.errorCallback(e,n.errorCode)}})),this.cache=t.cache||new S.a,this.apiHost=t.apiHost||h.L,this.uploadHost=t.uploadHost||h.O,this.options=D({},t,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new E(this.options),this.destroyed=!1,this.consoleLog=t.consoleLog&&window.console&&window.console.log||o.a,this.consoleError=t.consoleError&&window.console&&window.console.error||o.a,this.uploadsReachability=new P}var t,n,r,i,a;return t=e,(n=[{key:"destroy",value:function(){this.xhr.abort(),this.destroyed=!0}},{key:"isDestroyed",value:function(){return this.destroyed}},{key:"checkApiCallValidity",value:function(e,t,n){if(!n||!t)throw Object(T.a)();if(!t[e])throw Object(T.b)()}},{key:"getBaseApiUrl",value:function(){var e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}},{key:"getBaseUploadUrl",value:function(){var e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}},{key:"getCache",value:function(){return this.cache}},{key:"getUrl",value:function(e){throw new Error("Implement me!")}},{key:"format",value:function(e){throw new Error("Implement me!")}},{key:"get",value:function(e){var t=e.id,n=e.successCallback,r=e.errorCallback,o=e.requestData,i=e.url||this.getUrl(t);return this.makeRequest(h.Md,t,i,n,r,o)}},{key:"post",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Pd,t,n,o,i,r)}},{key:"put",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Qd,t,n,o,i,r)}},{key:"delete",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Ld,t,n,o,i,r)}},{key:"makeRequest",value:(i=regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=c.length>5&&void 0!==c[5]?c[5]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return this.successCallback=o,this.errorCallback=i,s=this.xhr[t.toLowerCase()].bind(this.xhr),e.prev=6,e.next=9,s(D({id:Object(A.b)(n),url:r},a));case 9:l=e.sent,u=l.data,this.successHandler(u),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),this.errorHandler(e.t0);case 17:case"end":return e.stop()}}),e,this,[[6,14]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){I(o,n,r,a,s,"next",e)}function s(e){I(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t,n,r,o){return a.apply(this,arguments)})}])&&L(t.prototype,n),r&&L(t,r),e}();t.a=N},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return r})),n.d(t,"m",(function(){return a})),n.d(t,"n",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"p",(function(){return o})),n.d(t,"q",(function(){return u}));var r=3,o={FULL:"full",SHORT:"short",SHORT_WITH_BTN:"shortWithBtn"},i={SHARED_LINK:"sharedLink",DOWNLOAD:"download",EXTERNAL_COLLAB:"externalCollab",APP:"app",FTP:"ftp",WATERMARK:"watermark"},a={DESKTOP:"desktop",FTP:"ftp",MOBILE:"mobile",WEB:"web"},s={BLACKLIST:"blacklist",BLOCK:"block",WHITELIST:"whitelist"},l={OWNERS_AND_COOWNERS:"ownersCoOwners",OWNERS_COOWNERS_AND_EDITORS:"ownersCoOwnersEditors"},u={COLLAB_AND_COMPANY_ONLY:"companyAndCollabOnly",COLLAB_ONLY:"collabOnly",PUBLIC:"public"},c={DEFAULT:"default",WITH_APP_LIST:"withAppList",WITH_OVERFLOWN_APP_LIST:"withOverflownAppList"},f=0,d=1,p=2,h=3,b=4,m=5,y=6,v=7,g=f},,function(e,t,n){"use strict";var r=n(42);n.d(t,"c",(function(){return r.c})),n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b}))},function(e,t,n){"use strict";var r=n(23);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return E})),n.d(t,"j",(function(){return w})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p}));var r=n(183),o=n.n(r),i=n(75),a=n.n(i),s=n(1);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=[s.Kc,s.Wc,s.ud,s.od,s.Zc,s.Gc,s.bd,s.ad,s.Uc,s.Ac,s.Vc,s.Ic,s.Oc,s.Pc,s.wc,s.Nc,s.fd,s.wd],p=[s.Kc,s.Wc,s.od,s.Gc,s.Hc,s.ld,s.bd,s.yc,s.zc,s.Ac,s.Bc,s.Uc,s.Vc,s.Yc,s.Dc,s.Tc,s.Qc,s.xd,s.yd,s.Oc,s.id,s.wc,s.Nc,s.vd],h=[s.Kc,s.bd,s.ld,s.kd,s.Hc,s.Wc,s.od,s.Gc,s.fd,s.zd,s.wc,s.Nc],b=[s.Hc,s.Uc,s.Vc,s.id,s.od,s.vd,s.yd],m=[s.wc,s.Ac,s.Gc,s.Nc,s.Uc,s.Vc,s.Wc,s.bd,s.gd,s.hd,s.jd,s.od,s.sd,s.td,s.vd,s.yd],y=[s.tc,s.ld],v=(s.rd,s.Mc,s.Ac,s.Bc,s.Ec,s.Rc,s.vc,s.pd,[s.qd,s.Rc,s.Ac,s.Bc,s.Uc,s.bd]),g=(s.Bc,s.Vc,s.Yc,s.vc,[s.rc,s.uc,s.Bc,s.Xc,s.ed]);function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===f(e)&&0!==Object.keys(e).length?t.filter((function(t){return!o()(e,t)})):t}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(t)||0===t.length)return e;var n=u({},e);return w(e,t).forEach((function(e){a()(n,e,null)})),n}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(7),o=n.n(r),i=n(1),a=/\.([0-9a-z]+)$/i;function s(e){return"".concat(i.Hf).concat(e)}function l(e){return"".concat(i.If).concat(e)}function u(e){return e.extension===i.Ad}function c(e){if("string"!=typeof e)return"";var t=a.exec(e);return o()(t,"[1]","")}},function(e,t,n){var r=n(167),o=n(269),i=n(414),a=n(104),s=n(77),l=n(420),u=n(325),c=n(224),f=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n.n(o),a=n(26);function s(){return(s=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,u=e.getDOMRef,c=void 0===u?i.a:u,f=e.isDisabled,d=void 0!==f&&f,p=e.type,h=void 0===p?a.a.SUBMIT:p,b=l(e,["children","className","getDOMRef","isDisabled","type"]),m={};return d&&(m["aria-disabled"]=!0,m.onClick=function(e){e.preventDefault(),e.stopPropagation()}),r.createElement("button",s({className:"btn-plain ".concat(o),ref:c,type:h},b,m),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return v})),n.d(t,"o",(function(){return C}));var r=n(7),o=n.n(r),i=n(57);function a(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var s={};function l(e){return!(!e.options||!e.file)}function u(e){return!(!e.options||!e.item)}function c(e){return l(e)?e.file:e}function f(e){return u(e)?e.item:e}function d(e){return l(e)&&e.options||s}function p(e){return u(e)&&e.options||s}function h(e){var t,n=e.lastModified||e.lastModifiedDate;if(n&&("string"==typeof n||"number"==typeof n||n instanceof Date)){var r=new Date(n);if(t=r,"[object Date]"===Object.prototype.toString.call(t)&&!Number.isNaN(t.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(r)}return null}function b(e,t,n){var r=e*Math.pow(n,2);return r>t?t:r}function m(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function y(e){var t=m(f(e));return!!t&&t.isDirectory}function v(e){var t=f(e);return y(t)&&"application/zip"===t.type&&"file"===t.kind}function g(e){return new Promise((function(t){e.file((function(e){t(e)}))}))}function w(e){return E.apply(this,arguments)}function E(){var e;return e=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f(t),r=m(n)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,g(r);case 6:if(o=e.sent,!u(t)){e.next=9;break}return e.abrupt("return",{file:o,options:p(t)});case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),(E=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))}).apply(this,arguments)}function S(e){var t=f(e);if(!m(t))return null;var n=t.getAsFile();return u(e)?{file:n,options:p(e)}:n}function O(e,t){if(!l(e))return e.name;var n=e,r=o()(n,"options.folderId",t),i=o()(n,"options.uploadInitTimestamp",Date.now()),a=n.file.webkitRelativePath||n.file.name;return"".concat(a,"_").concat(r,"_").concat(i)}function k(e,t){var n=m(f(e)).name;if(!u(e))return n;var r=p(e),o=r.folderId,i=void 0===o?t:o,a=r.uploadInitTimestamp,s=void 0===a?Date.now():a;return"".concat(n,"_").concat(i,"_").concat(s)}function C(){var e=window.crypto||window.msCrypto;return!i.a.isMobileSafari()&&("https:"===window.location.protocol&&e&&e.subtle)}},,function(e,t,n){"use strict";var r=n(27);n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,o=n(0),i=n(4),a=n.n(i),s=n(22),l=n.n(s),u=n(52),c=n(146);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit"}(r||(r={}));var g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),v(m(n),"btnElement",null),v(m(n),"handleClick",(function(e){var t=n.props,r=t.isDisabled,o=t.onClick;if(r||n.btnElement&&n.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();o&&o(e)})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=t.icon,s=t.isDisabled,f=t.isLoading,h=t.isSelected,b=t.setRef,m=t.size,y=t.type,v=t.showRadar,g=p(t,["children","className","icon","isDisabled","isLoading","isSelected","setRef","size","type","showRadar"]),w=l()(g,["onClick"]);s&&(w["aria-disabled"]=!0);var E=a()("btn",{"is-disabled":s,"is-loading":f,"is-selected":h,"bdl-btn--large":"large"===m,"bdl-has-icon":!!i},r),S=o.createElement("button",d({ref:function(t){e.btnElement=t,b&&b(t)},className:E,onClick:this.handleClick,type:y},w),n?o.createElement("span",{className:"btn-content"},n):null,i?o.createElement("span",{className:"bdl-btn-icon"},o.cloneElement(i,{width:i&&n?16:20,height:i&&n?16:20})):null,f&&o.createElement(u.b,{className:"btn-loading-indicator"}));return v&&(S=o.createElement(c.a,null,S)),S}}])&&h(n.prototype,r),i&&h(n,i),t}(o.Component);v(g,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:r.SUBMIT}),t.b=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,o=n(0);n(430);!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default"}(r||(r={}));t.b=function(e){var t=e.className,n=void 0===t?"":t,i=e.size,a=void 0===i?r.DEFAULT:i;return o.createElement("div",{className:"crawler ".concat(n," is-").concat(a)},o.createElement("div",null),o.createElement("div",null),o.createElement("div",null))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(230),i=Object.prototype.toString;function a(e){return Array.isArray(e)}function s(e){return void 0===e}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return null!==e&&"object"===r(e)}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:f,isStream:function(e){return u(e)&&f(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return x})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return g})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return E})),n.d(t,"f",(function(){return S})),n.d(t,"a",(function(){return O}));var r=n(116),o=n.n(r),i=1e3,a=86400*i,s=60*i,l=/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?)?((Z$)|(?:[+-](?:([0-2]\d$)|([0-2]\d(?:00|30)$)|([0-2]\d:(?:00|30)$))))$/,u=1,c=2,f=3,d=4,p=5,h=6,b=7;function m(e){return e instanceof Date?e:new Date(e)}function y(e){return e*i}function v(e){return(new Date).toDateString()===m(e).toDateString()}function g(e){return v(m(e).getTime()+a)}function w(e){return(new Date).getMonth()===m(e).getMonth()}function E(e){return(new Date).getFullYear()===m(e).getFullYear()}function S(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60),o=t>0?"".concat(t.toString(),":"):"",i=r<10?"0".concat(r.toString()):r.toString(),a=n.toString();return t>0&&n<10&&(a="0".concat(a)),"".concat(o).concat(a,":").concat(i)}function O(e,t){return e instanceof Date?new Date(e.getTime()+t):e+t}function k(e){return e.getTime()-e.getTimezoneOffset()*s}function C(e){return!o()(e.getTime())}function x(e){var t=new Date(function(e){if(l.test(e)){var t=e.split(l),n=t[u],r=t[c],o=t[f];if(r||(n+=".000"),t[d])return e;if(t[p])return"".concat(n+o,":00");if(t[h])return"".concat(n+o.substr(0,3),":").concat(o.substr(3));if(t[b])return e}return e}(e)),n=t.getTime(),r=t.getTimezoneOffset();return new Date(n+r*s)}},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},commentUpdateErrorMessage:{id:"be.api.commentUpdateErrorMessage",defaultMessage:"This comment could not be modified."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}});t.a=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({cancel:{id:"boxui.core.cancel",defaultMessage:"Cancel"},close:{id:"boxui.core.close",defaultMessage:"Close"},copy:{id:"boxui.core.copy",defaultMessage:"Copy"},copied:{id:"boxui.core.copied",defaultMessage:"Copied"},done:{id:"boxui.core.done",defaultMessage:"Done"},okay:{id:"boxui.core.okay",defaultMessage:"Okay"},save:{id:"boxui.core.save",defaultMessage:"Save"},send:{id:"boxui.core.send",defaultMessage:"Send"},optional:{id:"boxui.core.optional",defaultMessage:"optional"},pillSelectorPlaceholder:{id:"boxui.share.pillSelectorPlaceholder",defaultMessage:"Add names or email addresses"},messageSelectorPlaceholder:{id:"boxui.share.messageSelectorPlaceholder",defaultMessage:"Add a message"},invalidInputError:{id:"boxui.validation.genericError",defaultMessage:"Invalid Input"},minLengthError:{id:"boxui.validation.tooShortError",defaultMessage:"Input must be at least {min} characters"},maxLengthError:{id:"boxui.validation.tooLongError",defaultMessage:"Input cannot exceed {max} characters"},invalidEmailError:{id:"boxui.validation.emailError",defaultMessage:"Invalid Email Address"},invalidURLError:{id:"boxui.validation.URLError",defaultMessage:"Invalid URL"},invalidUserError:{id:"boxui.validation.invalidUserError",defaultMessage:"Invalid User"},requiredFieldError:{id:"boxui.validation.requiredError",defaultMessage:"Required Field"},invalidDateError:{id:"boxui.validation.invalidDateError",defaultMessage:"Invalid Date"}});t.a=o},,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(359)},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(215),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t,n){"use strict";var r=n(127),o=n(59),i=n(0),a=n(4),s=n.n(a),l=n(22),u=n.n(l);function c(){return(c=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)}var f=function(e){return i.createElement(o.a,c({isSelectItem:!0},e))};var d=n(99),p=n.n(d),h=(n(549),n(2)),b=n(9);function m(){return(m=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)}var y=function(e){return i.createElement(b.a,m({width:16,height:16,viewBox:"0 0 16 16"},e),i.createElement("path",{fill:h.j,fillRule:"evenodd",d:"M7.646 7.646L4.354 4.354a.5.5 0 010-.708l1.292-1.292a.5.5 0 01.708 0l5.292 5.292a.5.5 0 010 .708l-5.292 5.292a.5.5 0 01-.708 0l-1.292-1.292a.5.5 0 010-.708l3.292-3.292a.5.5 0 000-.708z"}))};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x="is-left-aligned",_="is-bottom-aligned";i.Component;n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return f}))},function(e,t,n){"use strict";var r,o=n(0),i=n(4),a=n.n(i),s=n(12),l=n.n(s),u=n(7),c=n.n(u),f=n(49),d=n.n(f);!function(e){e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right"}(r||(r={}));var p,h,b,m=r,y=n(100),v=n(18);n(438);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=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 E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return b})),function(e){e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error"}(h||(h={})),function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(b||(b={}));var x=(C(p={},b.BOTTOM_CENTER,{attachment:m.TOP_CENTER,targetAttachment:m.BOTTOM_CENTER}),C(p,b.BOTTOM_LEFT,{attachment:m.TOP_RIGHT,targetAttachment:m.BOTTOM_RIGHT}),C(p,b.BOTTOM_RIGHT,{attachment:m.TOP_LEFT,targetAttachment:m.BOTTOM_LEFT}),C(p,b.MIDDLE_LEFT,{attachment:m.MIDDLE_RIGHT,targetAttachment:m.MIDDLE_LEFT}),C(p,b.MIDDLE_RIGHT,{attachment:m.MIDDLE_LEFT,targetAttachment:m.MIDDLE_RIGHT}),C(p,b.TOP_CENTER,{attachment:m.BOTTOM_CENTER,targetAttachment:m.TOP_CENTER}),C(p,b.TOP_LEFT,{attachment:m.BOTTOM_RIGHT,targetAttachment:m.TOP_RIGHT}),C(p,b.TOP_RIGHT,{attachment:m.BOTTOM_LEFT,targetAttachment:m.TOP_LEFT}),p),_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?O(e):t}(this,S(t).call(this,e)),C(O(n),"tooltipID",l()("tooltip")),C(O(n),"tetherRef",o.createRef()),C(O(n),"position",(function(){n.tetherRef.current&&n.isShown()&&n.tetherRef.current.position()})),C(O(n),"closeTooltip",(function(){var e=n.props.onDismiss;n.setState({wasClosedByUser:!0}),e&&e()})),C(O(n),"fireChildEvent",(function(e,t){var r=n.props.children.props[e];r&&r(t)})),C(O(n),"handleTooltipEvent",(function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),C(O(n),"handleMouseEnter",(function(e){n.setState({isShown:!0}),n.fireChildEvent("onMouseEnter",e)})),C(O(n),"handleMouseLeave",(function(e){n.setState({isShown:!1}),n.fireChildEvent("onMouseLeave",e)})),C(O(n),"handleFocus",(function(e){n.setState({isShown:!0}),n.fireChildEvent("onFocus",e)})),C(O(n),"handleBlur",(function(e){n.setState({isShown:!1}),n.fireChildEvent("onBlur",e)})),C(O(n),"isControlled",(function(){return void 0!==n.props.isShown})),C(O(n),"handleKeyDown",(function(e){"Escape"===e.key&&(e.stopPropagation(),n.setState({isShown:!1})),n.fireChildEvent("onKeyDown",e)})),C(O(n),"isShown",(function(){var e=n.props.isShown;return(n.isControlled()?e:n.state.isShown)&&!n.state.wasClosedByUser&&n.state.hasRendered})),n.state={isShown:!!e.isShown,hasRendered:!1,wasClosedByUser:!1},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.setState({hasRendered:!0})}},{key:"componentDidUpdate",value:function(e,t){this.isControlled()?!e.isShown&&this.props.isShown&&this.setState({wasClosedByUser:!1}):(!t.isShown&&this.state.isShown&&document.addEventListener("keydown",this.handleKeyDown,!0),t.isShown&&!this.state.isShown&&document.removeEventListener("keydown",this.handleKeyDown,!0))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown,!0)}},{key:"render",value:function(){var e=this.props,t=e.bodyElement,n=e.children,r=e.className,i=e.constrainToScrollParent,s=e.constrainToWindow,l=e.isDisabled,u=e.isTabbable,f=void 0===u||u,p=e.offset,m=e.position,g=void 0===m?b.TOP_CENTER:m,E=e.showCloseButton,S=e.stopBubble,O=e.tetherElementClassName,k=e.text,C=e.theme,_=c()(n,"props.aria-label"),P=!!_&&_===k;if(l)return o.Children.only(n);var A=this.isControlled(),T=this.isShown(),I=E&&A,j="string"==typeof g?x[g]:g,D=[],L={};i&&D.push({to:"scrollParent",attachment:"together"}),s&&D.push({to:"window",attachment:"together"}),T&&(P&&void 0!==_||(L["aria-describedby"]=this.tooltipID),C===h.ERROR&&(L["aria-errormessage"]=this.tooltipID)),A||(L.onBlur=this.handleBlur,L.onFocus=this.handleFocus,L.onMouseEnter=this.handleMouseEnter,L.onMouseLeave=this.handleMouseLeave,f&&(L.tabIndex="0"));var R=t instanceof HTMLElement?t:document.body,N=a()("tooltip","bdl-Tooltip",r,{"is-callout":C===h.CALLOUT,"is-error":C===h.ERROR,"with-close-button":I}),M={attachment:j.attachment,bodyElement:R,classPrefix:"tooltip",constraints:D,enabled:T,targetAttachment:j.targetAttachment};O&&(M.className=O),p&&(M.offset=p);var F=o.createElement(o.Fragment,null,k,I&&o.createElement(v.a,{className:"tooltip-close-button",onClick:this.closeTooltip},o.createElement(y.a,{className:"bdl-Tooltip-iconClose",width:14,height:14}))),U=S?o.createElement("div",{className:N,id:this.tooltipID,onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:"presentation"},o.createElement("div",{role:C===h.ERROR?void 0:"tooltip","aria-live":"polite","aria-hidden":P,"data-testid":"bdl-Tooltip"},F)):o.createElement("div",{"aria-live":"polite","aria-hidden":P,className:N,"data-testid":"bdl-Tooltip",id:this.tooltipID,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:C===h.ERROR?void 0:"tooltip"},F);return o.createElement(d.a,w({ref:this.tetherRef},M),o.cloneElement(o.Children.only(n),L),T&&U)}}])&&E(n.prototype,r),i&&E(n,i),t}(o.Component);C(_,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:b.TOP_CENTER,theme:h.DEFAULT});t.c=_},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};function i(e){return JSON.stringify(e.map((function(e){return e&&"object"===r(e)?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}t.a=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=i(r),l=s&&t[s];return l||(l=new((n=e).bind.apply(n,o([void 0],r))),s&&(t[s]=l)),l}}},function(e,t,n){"use strict";var r=n(0),o=n(27);function i(){return(i=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 a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,s=void 0===n?"":n,l=a(e,["children","className"]);return r.createElement(o.b,i({className:"btn-primary ".concat(s)},l),t)}},function(e,t,n){"use strict";n(0);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!=e&&"object"===r(e)&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)}return!1}function s(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var l=function(e,t){var n=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,u=t.skipOverflowHiddenElements,c="function"==typeof l?l:function(e){return e!==l};if(!o(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,d=[],p=e;o(p)&&c(p);){if((p=p.parentNode)===f){d.push(p);break}p===document.body&&a(p)&&!a(document.documentElement)||a(p,u)&&d.push(p)}for(var h=window.visualViewport?visualViewport.width:innerWidth,b=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,w=v.width,E=v.top,S=v.right,O=v.bottom,k=v.left,C="start"===r||"nearest"===r?E:"end"===r?O:E+g/2,x="center"===i?k+w/2:"end"===i?S:k,_=[],P=0;P<d.length;P++){var A=d[P],T=A.getBoundingClientRect(),I=T.height,j=T.width,D=T.top,L=T.right,R=T.bottom,N=T.left;if("if-needed"===n&&E>=0&&k>=0&&O<=b&&S<=h&&E>=D&&O<=R&&k>=N&&S<=L)return _;var M=getComputedStyle(A),F=parseInt(M.borderLeftWidth,10),U=parseInt(M.borderTopWidth,10),B=parseInt(M.borderRightWidth,10),H=parseInt(M.borderBottomWidth,10),z=0,V=0,W="offsetWidth"in A?A.offsetWidth-A.clientWidth-F-B:0,q="offsetHeight"in A?A.offsetHeight-A.clientHeight-U-H:0;if(f===A)z="start"===r?C:"end"===r?C-b:"nearest"===r?s(y,y+b,b,U,H,y+C,y+C+g,g):C-b/2,V="start"===i?x:"center"===i?x-h/2:"end"===i?x-h:s(m,m+h,h,F,B,m+x,m+x+w,w),z=Math.max(0,z+y),V=Math.max(0,V+m);else{z="start"===r?C-D-U:"end"===r?C-R+H+q:"nearest"===r?s(D,R,I,U,H+q,C,C+g,g):C-(D+I/2)+q/2,V="start"===i?x-N-F:"center"===i?x-(N+j/2)+W/2:"end"===i?x-L+B+W:s(N,L,j,F,B+W,x,x+w,w);var G=A.scrollLeft,K=A.scrollTop;C+=K-(z=Math.max(0,Math.min(K+z,A.scrollHeight-I+q))),x+=G-(V=Math.max(0,Math.min(G+V,A.scrollWidth-j+W)))}_.push({el:A,top:z,left:V})}return _};function u(e){return e===Object(e)&&0!==Object.keys(e).length}var c=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(u(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:l(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:u(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(l(e,r),r.behavior)}},f=n(1);n(550);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||"div"===t&&!!e.getAttribute("contenteditable")}function b(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase(),n=e.classList.contains("checkbox-pointer-target")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("checkbox-label"),r=e.classList.contains("btn-content")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("btn")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("bdl-Button")||!1;return h(e)||"button"===t||"a"===t||"option"===t||n||r}function m(e){return!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}function y(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e)if(t){var r=e.querySelector(t);r&&"function"==typeof r.focus?r.focus():n&&e.focus()}else e.focus()}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=e.closest(".body, .modal, .".concat(f.ze));c(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({scrollMode:"if-needed",boundary:n},t))}}n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return v}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(432))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(63),o=n.n(r),i=n(7),a=n.n(i),s=n(19),l=n(21),u=n(8),c=n(1),f=n(79),d=n(73),p=n(62);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),E(this,S(t).apply(this,arguments))}var n,r,i,f,h,b,y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(c.h).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/files").concat(t)}},{key:"getDownloadUrl",value:(y=g(regeneratorRuntime.mark((function e(t,n,r,i){var a,s,u,f,d,h,b,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=c.Sb,this.errorCallback=i,this.successCallback=r,a=n[c.Nc],s=n[c.wc],e.next=7,p.a.getReadToken(Object(l.b)(t),this.options.token);case 7:if(u=e.sent,a&&s&&u){e.next=11;break}return this.errorHandler(new Error("Download is missing required fields or token.")),e.abrupt("return");case 11:f=o.a.parseUrl(s),d=f.query,h=f.url,b=m({},d,{access_token:u}),y=o.a.stringify(b),this.successHandler("".concat(h,"?").concat(y));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return y.apply(this,arguments)})},{key:"isRepresentationsCallComplete",value:function(e){var t=a()(e,"data.status.state");return!t||t===c.Le||t===c.Me||t===c.Ne}},{key:"generateRepresentation",value:(b=g(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a()(t,"info.url")){e.next=3;break}return e.abrupt("return",t);case 3:return e.abrupt("return",Object(d.a)((function(e,t){return r.xhr.get({successCallback:e,errorCallback:t,url:n}).then((function(n){return r.isRepresentationsCallComplete(n)?e(n.data):t(n.data)})).catch((function(e){t(e)}))}),4,2e3,2));case 4:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"getThumbnailUrl",value:(h=g(regeneratorRuntime.mark((function e(t){var n,r,i,s,u,c,f,d,h,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a()(t,"representations.entries[0]"),r=a()(n,"representation"),i=a()(n,"content.url_template"),e.next=5,p.a.getReadToken(Object(l.b)(t.id),this.options.token);case 5:if(s=e.sent,r&&i&&s){e.next=8;break}return e.abrupt("return",null);case 8:return u=i.replace("{+asset_path}","jpg"===r?"":"1.png"),c=o.a.parseUrl(u),f=c.query,d=c.url,h=m({},f,{access_token:s}),b=o.a.stringify(h),e.abrupt("return","".concat(d,"?").concat(b));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"setFileDescription",value:function(e,t,n,r){var o=this,i=e.id,a=e.permissions;return i&&a?a.can_rename?this.xhr.put({id:Object(l.b)(i),url:this.getUrl(i),data:{description:t}}).then((function(e){var t=e.data;if(!o.isDestroyed()){var r=o.merge(o.getCacheKey(i),"description",t.description);n(r)}})).catch((function(){if(!o.isDestroyed()){var t=o.merge(o.getCacheKey(i),"description",e.description);r(t)}})):(r(Object(u.b)()),Promise.reject()):(r(Object(u.a)()),Promise.reject())}},{key:"getFile",value:(f=g(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,u,f,d,p,h,b,m,y=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=y.length>3&&void 0!==y[3]?y[3]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(i=this.getCache(),a=this.getCacheKey(t),u=!o.forceFetch&&i.has(a),f=u?i.get(a):{id:t},d=Object(s.j)(f,o.fields),p={id:Object(l.b)(t),url:this.getUrl(t),headers:{"X-Rep-Hints":c.eg}},this.errorCode=c.Fb,this.successCallback=n,this.errorCallback=r,!u||0!==d.length){e.next=17;break}if(n(f),d=o.fields||[],o.refreshCache){e.next=17;break}return e.abrupt("return");case 17:return d.length>0&&(p.params={fields:d.toString()}),e.prev=18,e.next=21,this.xhr.get(p);case 21:if(h=e.sent,b=h.data,!this.isDestroyed()){e.next=25;break}return e.abrupt("return");case 25:m=Object(s.i)(b,d),i.has(a)?i.merge(a,m):i.set(a,m),this.successHandler(i.get(a)),e.next=33;break;case 30:e.prev=30,e.t0=e.catch(18),this.errorHandler(e.t0);case 33:case"end":return e.stop()}}),e,this,[[18,30]])}))),function(e,t,n){return f.apply(this,arguments)})},{key:"getFileExtension",value:function(e,t,n){this.isDestroyed()||this.getFile(e,t,n,{fields:[c.Gc]})}}])&&w(n.prototype,r),i&&w(n,i),t}(f.a);t.a=k},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var r=n(0),o=n(182),i=n.n(o),a=n(11);function s(){return(s=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)}var l=i.a||o;var u=r.createContext(null),c=u.Consumer,f=u.Provider,d=u;function p(e,t){var n,o=t||{},i=o.intlPropName,u=void 0===i?"intl":i,f=o.forwardRef,d=void 0!==f&&f,p=o.enforceContext,h=void 0===p||p,b=function(t){return r.createElement(c,null,(function(n){return h&&Object(a.h)(n),r.createElement(e,s({},t,(l=n,(i=u)in(o={})?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o),{ref:d?t.forwardedRef:null}));var o,i,l}))};return b.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),b.WrappedComponent=e,l(d?r.forwardRef((function(e,t){return r.createElement(b,s({},e,{forwardedRef:t}))})):b,e)}},function(e,t,n){"use strict";n(165);var r=n(53);n.d(t,"a",(function(){return r.a}));var o=n(28);n.d(t,"b",(function(){return o.b}))},function(e,t,n){"use strict";var r,o=n(0),i=n(4),a=n.n(i),s=n(28);n(431);function l(){return(l=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 u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}!function(e){e.CENTER="center",e.TOP="top"}(r||(r={}));t.a=function(e){var t=e.children,n=e.className,i=void 0===n?"":n,c=e.crawlerPosition,f=void 0===c?r.CENTER:c,d=e.crawlerSize,p=void 0===d?s.a.DEFAULT:d,h=e.isLoading,b=void 0!==h&&h,m=e.hideContent,y=void 0!==m&&m,v=u(e,["children","className","crawlerPosition","crawlerSize","isLoading","hideContent"]),g=a()("loading-indicator-veil",{"is-with-top-crawler":f===r.TOP,"is-with-center-crawler":f===r.CENTER},y?"hide-content":"blur-content");return o.createElement("div",l({className:"loading-indicator-wrapper ".concat(i)},v),t,b&&o.createElement("div",{className:g},o.createElement(s.b,{size:p})))}},function(e,t,n){"use strict";
|
|
28
28
|
/*
|
|
29
29
|
object-assign
|
|
30
30
|
(c) Sindre Sorhus
|
|
31
31
|
@license MIT
|
|
32
|
-
*/function r(){return(r=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)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(r({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,l=s(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(o){r=o(n);for(var f=0;f<r.length;f++)a.call(n,r[f])&&(l[r[f]]=n[r[f]])}}return l}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(527),s=n.n(a);function l(){return(l=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 u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var c=function(e){var t=e.Component,n=e.className,o=u(e,["Component","className"]);return r.createElement(t,l({className:i()("bdl-LabelPill-iconContent",n),width:12,height:12},o))};function f(){return(f=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 d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var p,h,b=function(e){var t=e.children,n=e.className,o=d(e,["children","className"]);return r.createElement("span",f({className:i()("bdl-LabelPill-textContent",n)},o),t)};n(636);function m(){return(m=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 y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}!function(e){e.DEFAULT="default",e.INFO="info",e.FTUX="ftux",e.HIGHLIGHT="highlight",e.SUCCESS="success",e.WARNING="warning",e.ALERT="alert",e.ERROR="error"}(p||(p={})),function(e){e.REGULAR="regular",e.LARGE="large"}(h||(h={}));var v=r.forwardRef((function(e,t){var n=e.children,o=e.type,a=void 0===o?p.DEFAULT:o,l=e.size,u=void 0===l?h.REGULAR:l,c=e.className,f=y(e,["children","type","size","className"]),d=i()("bdl-LabelPill","bdl-LabelPill--".concat(a),"bdl-LabelPill--size".concat(s()(u)),c);return r.createElement("span",m({ref:t,className:d},f),n)}));v.displayName="LabelPill";var g={Pill:v,Text:b,Icon:c};n.d(t,"a",(function(){return g}))},function(e,t,n){"use strict";var r=n(201);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";(function(e){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r,o=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var o,i,a;return o=t,a=[{key:"getUserAgent",value:function(){return e.navigator.userAgent}},{key:"isMobile",value:function(){var e=t.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}},{key:"isIE",value:function(){return/Trident/i.test(t.getUserAgent())}},{key:"isFirefox",value:function(){var e=t.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}},{key:"isSafari",value:function(){var e=t.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}},{key:"isMobileSafari",value:function(){return t.isMobile()&&t.isSafari()&&!t.isMobileChromeOniOS()}},{key:"isMobileChromeOniOS",value:function(){var e=t.getUserAgent();return t.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}},{key:"canPlayDash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(void 0===r||t){var n=e.MediaSource;r=!!n&&"function"==typeof n.isTypeSupported&&n.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return r}},{key:"canWriteToClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.writeText)}},{key:"canReadFromClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.readText)}}],(i=null)&&n(o.prototype,i),a&&n(o,a),t}();t.a=o}).call(this,n(43))},function(e,t,n){var r=n(89),o=n(373),i=n(374),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(23),s=n.n(a),l=n(146);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(s))),r=p(n),i=function(e){var t=n.props,r=t.isDisabled,o=t.onClick;if(r)return e.stopPropagation(),void e.preventDefault();o&&o(e)},(o="onClickHandler")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.isDisabled,a=e.isSelectItem,u=e.isSelected,f=e.showRadar,d=c(e,["children","className","isDisabled","isSelectItem","isSelected","showRadar"]),p=s()(d,["role","tabIndex","onClick"]);p.className=i()("menu-item",n,{"is-select-item":a,"is-selected":u}),p.role=a?"menuitemradio":"menuitem",p.tabIndex=-1,p.onClick=this.onClickHandler,a&&(p["aria-checked"]=u),o&&(p["aria-disabled"]="true");var h=r.createElement("li",p,t);return f&&(h=r.createElement(l.a,null,h)),h}}])&&f(n.prototype,o),a&&f(n,a),t}(r.Component);t.a=b},function(e,t,n){"use strict";var r=n(79),o=n(1),i=n(19);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var n,r,a,d,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(o.n).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/web_links").concat(t)}},{key:"getWeblink",value:(d=regeneratorRuntime.mark((function e(t,n,r){var a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=p.length>3&&void 0!==p[3]?p[3]:{},s=a.fields,!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(l=this.getCache(),u=this.getCacheKey(t),this.errorCode=o.Rb,this.successCallback=n,this.errorCallback=r,!l.has(u)){e.next=13;break}if(0!==Object(i.j)(l.get(u),s).length){e.next=13;break}return n(l.get(u)),e.abrupt("return");case 13:return c={url:this.getUrl(t)},s&&(c.params={fields:s.toString()}),e.prev=15,e.next=18,this.xhr.get(c);case 18:if(f=e.sent,d=f.data,!this.isDestroyed()){e.next=22;break}return e.abrupt("return");case 22:l.has(u)?l.merge(u,d):l.set(u,d),this.successHandler(l.get(u)),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(15),this.errorHandler(e.t0);case 29:case"end":return e.stop()}}),e,this,[[15,26]])})),p=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=d.apply(e,t);function i(e){s(o,n,r,i,a,"next",e)}function a(e){s(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e,t,n){return p.apply(this,arguments)})}])&&l(n.prototype,r),a&&l(n,a),t}(r.a);t.a=d},,function(e,t,n){"use strict";var r=n(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function."),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i,u,c,f,d,p;return t=e,n=null,i=[{key:"getToken",value:(p=a(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==n||"string"==typeof n||"function"==typeof n)&&(t.startsWith(r.If)||t.startsWith(r.Hf))){e.next=2;break}throw l;case 2:if(n&&"string"!=typeof n){e.next=4;break}return e.abrupt("return",n);case 4:return e.next=6,n(t);case 6:if((i=e.sent)&&"string"!=typeof i&&("object"!==o(i)||!i.read&&!i.write)){e.next=9;break}return e.abrupt("return",i);case 9:throw l;case 10:case"end":return e.stop()}}),e)}))),function(e,t){return p.apply(this,arguments)})},{key:"getReadToken",value:(d=a(regeneratorRuntime.mark((function t(n,r){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(n,r);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return d.apply(this,arguments)})},{key:"getReadTokens",value:(f=a(regeneratorRuntime.mark((function t(n,r){var o,i,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Array.isArray(n)?n:[n],i=o.map((function(t){return e.getReadToken(t,r)})),t.next=4,Promise.all(i);case 4:return a=t.sent,s={},a.forEach((function(e,t){s[o[t]]=e})),t.abrupt("return",Promise.resolve(s));case 8:case"end":return t.stop()}}),t)}))),function(e,t){return f.apply(this,arguments)})},{key:"getWriteToken",value:(c=a(regeneratorRuntime.mark((function t(n,r){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(n,r);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.write||i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return c.apply(this,arguments)})},{key:"cacheTokens",value:(u=a(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==n||"string"==typeof n||"function"==typeof n)&&t.every((function(e){return e.startsWith(r.If)||e.startsWith(r.Hf)}))){e.next=2;break}throw l;case 2:if("function"!=typeof n){e.next=5;break}return e.next=5,n(t);case 5:return e.abrupt("return",Promise.resolve());case 6:case"end":return e.stop()}}),e)}))),function(e,t){return u.apply(this,arguments)})}],n&&s(t.prototype,n),i&&s(t,i),e}();t.a=u},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(477),i=n(54),a=n(478);function s(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:a(i),n(a(r),i,o)})),Object.keys(o).sort().reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===r(t)?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):o}t.extract=l,t.parse=u,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[s(t,e),"[",r,"]"].join(""):[s(t,e),"[",s(r,e),"]=",s(n,e)].join("")};case"bracket":return function(t,n){return null===n?s(t,e):[s(t,e),"[]=",s(n,e)].join("")};default:return function(t,n){return null===n?s(t,e):[s(t,e),"=",s(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return s(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return s(r,t)+"="+s(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:u(l(e),t)}}},function(e,t,n){"use strict";e.exports=n(652)},,,,,,function(e,t,n){var r=n(372),o=n(377);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(109),o=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.cache[e]=t}},{key:"merge",value:function(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,o()({},this.get(e),t))}},{key:"unset",value:function(e){delete this.cache[e]}},{key:"unsetAll",value:function(e){var t=this;Object.keys(this.cache).forEach((function(n){n.startsWith(e)&&delete t.cache[n]}))}},{key:"has",value:function(e){return{}.hasOwnProperty.call(this.cache,e)}},{key:"get",value:function(e){if(this.has(e))return this.cache[e]}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=a},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(78),a=n(19),s=n(8),l=n(79),u=n(50),c=n(60),f=n(1);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(n),"folderSuccessHandler",(function(e){var r=e.data;if(!n.isDestroyed()){var o=r.item_collection;if(!o)throw Object(s.a)();var a=o.entries,l=o.total_count,f=o.limit,d=o.offset;if(!Array.isArray(a)||"number"!=typeof l||"number"!=typeof f||"number"!=typeof d)throw Object(s.a)();var p=Object(i.a)(a,new t(n.options),new u.a(n.options),new c.a(n.options));n.itemCache=(n.itemCache||[]).concat(p),n.getCache().set(n.key,h({},r,{item_collection:h({},o,{entries:n.itemCache})})),n.finish()}})),g(y(n),"folderDetailsSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=h({},n.getCache().get(n.key),{},t);n.getCache().set(n.key,r),n.successCallback(r)}})),g(y(n),"createSuccessHandler",(function(e){var t=e.data,r=t.id;if(!n.isDestroyed()&&r){var o=n.getCacheKey(r),i=n.getCache(),a=i.get(n.key);if(a){var l=a.item_collection;if(!l)throw Object(s.a)();var u=l.total_count,c=l.entries;if(!Array.isArray(c)||"number"!=typeof u)throw Object(s.a)();i.set(o,t),l.entries=[o].concat(c),l.total_count=u+1,n.successCallback(t)}else n.successCallback(t)}})),n}var n,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(f.i).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/folders").concat(t)}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key),n=t.id,r=t.name,o=t.permissions,i=t.path_collection,a=t.item_collection;if(!a||!i)throw Object(s.a)();var l=a.entries,u=a.offset,c=a.total_count;if(!Array.isArray(l)||"number"!=typeof c)throw Object(s.a)();var f={id:n,name:r,offset:u,percentLoaded:100,permissions:o,boxItem:t,breadcrumbs:i.entries,items:l.map((function(t){return e.get(t)})),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(f)}}},{key:"folderRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fields,n=e.noPagination,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.folderSuccessHandler;if(this.isDestroyed())return Promise.reject();var o=t||a.f;this.errorCode=f.Hb;var i={fields:o.toString()};return n||(i=h({},i,{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:o.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i,headers:o.includes(f.fd)?{"X-Rep-Hints":f.fg}:{}}).then(r).catch(this.errorHandler)}},{key:"getFolderFields",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=n,this.folderRequest(h({},r,{noPagination:!0}),this.folderDetailsSuccessHandler))}},{key:"getFolder",value:function(e,t,n,r,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=n,this.sortBy=r,this.sortDirection=o,this.successCallback=i,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}},{key:"folderCreateRequest",value:function(e){if(this.isDestroyed())return Promise.reject();this.errorCode=f.ib;var t="".concat(this.getUrl(),"?fields=").concat(a.f.toString());return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}},{key:"create",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=n,this.errorCallback=r,this.folderCreateRequest(t))}}])&&b(n.prototype,r),l&&b(n,l),t}(l.a);t.a=w},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0,i=n;return new Promise((function(n,a){function s(l){setTimeout((function(){o+=1,new Promise((function(t,n){e(t,n,a)})).then(n).catch((function(e){o<t?s(i*=r):a(e)}))}),l)}s(i)}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n(119),i=n(2),a=n(9);function s(){return(s=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)}var l=function(e){return r.createElement(a.a,s({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:i.j,d:"M8 1a7 7 0 110 14A7 7 0 018 1zm.5 6H7a.5.5 0 000 1h.5v3H7a.5.5 0 100 1h2.5a.5.5 0 100-1H9V7.75a.783.783 0 00-.012-.139A.502.502 0 008.5 7zM8 4a1 1 0 100 2 1 1 0 000-2z"}))},u=n(17),c=function(e){var t=e.className,n=void 0===t?"":t,o=e.iconProps,i=e.tooltipText;return r.createElement("span",{key:"infoIcon",className:"".concat(n," tooltip-icon-container")},r.createElement(u.c,{position:u.a.TOP_CENTER,text:i},r.createElement("span",{className:"info-icon-container"},r.createElement(l,o))))},f=n(4),d=n.n(f);function p(){return(p=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 h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var b=function(e){var t=e.children,n=e.className,o=e.labelContent,i=h(e,["children","className","labelContent"]);return r.createElement("label",null,r.createElement("span",p({className:d()("label bdl-Label",n)},i),o),t)},m=function(e){var t=e.children,n=e.labelContent,o=e.tooltip,i=r.createElement(b,{labelContent:n},t);return o?r.createElement(u.c,{position:u.a.TOP_RIGHT,text:o},i):i},y=function(e){var t=e.children,n=e.labelContent;return r.createElement(b,{className:"accessibility-hidden",labelContent:n},t)},v=n(33);n(639);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){return r.createElement("span",{className:"label-optional bdl-Label-optional"},"(",r.createElement(o.a,v.a.optional),")")};t.a=function(e){var t=e.text,n=e.tooltip,o=e.infoTooltip,i=e.infoIconProps,a=e.showOptionalText,s=e.hideLabel,l=e.children,u=[r.createElement("span",{key:"labelText"},t),a?r.createElement(S,{key:"optionalMessage"}):null];return o&&u.push(r.createElement(c,{key:"infoTooltip",iconProps:w({className:"tooltip-icon"},i),tooltipText:o})),s?r.createElement(y,{labelContent:u},l):r.createElement(m,{labelContent:u,tooltip:n},l)}},function(e,t,n){var r=n(440);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},,function(e,t,n){var r=n(170),o=n(171);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},function(e,t,n){"use strict";var r=n(8),o=n(1);t.a=function(e,t,n,i){var a=[];return e.forEach((function(e){var s,l=e.id,u=e.type;if(!l||!u)throw Object(r.a)();switch(u){case o.Kf:s=t;break;case o.Jf:s=n;break;case o.Lf:s=i;break;default:throw new Error("Unknown Type!")}var c=s.getCache(),f=s.getCacheKey(l);c.has(f)?c.merge(f,e):c.set(f,e),a.push(f)})),a}},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(75),a=n.n(i),s=n(8),l=n(19),u=n(14),c=n(1);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(){return(h=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 b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(n),"deleteSuccessHandler",(function(){if(!n.isDestroyed()){var e=n.getParentCacheKey(n.parentId),t=n.getCache().get(e);if(t){var r=t.item_collection;if(r){var o=r.entries,i=r.total_count;if(!Array.isArray(o)||"number"!=typeof i)throw Object(s.a)();var a=n.getCacheKey(n.id),l=o.length,u=o.filter((function(e){return e!==a})),c=u.length,f=n.merge(e,"item_collection",h(r,{entries:u,total_count:i-(l-c)}));n.successCallback(f),n.postDeleteCleanup()}else n.postDeleteCleanup()}else n.postDeleteCleanup()}})),g(y(n),"renameSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){n.getCache().unsetAll(c.m);var r=n.merge(n.getCacheKey(n.id),"name",t.name);n.successCallback(r)}})),g(y(n),"shareSuccessHandler",(function(e,t){if(!n.isDestroyed()){var r=t?Object(l.i)(e,t):e,o=n.getCache(),i=n.getCacheKey(n.id);o.has(i)?o.merge(i,r):o.set(i,r),n.successCallback(o.get(i))}})),n}var n,r,i,u,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(r=[{key:"getParentCacheKey",value:function(e){return"".concat(c.i).concat(e)}},{key:"getCacheKey",value:function(e){return"getCacheKey(".concat(e,") should be overriden")}},{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overriden")}},{key:"merge",value:function(e,t,n){var r=this.getCache();return r.merge(e,a()({},t,n)),r.get(e)}},{key:"postDeleteCleanup",value:function(){this.isDestroyed()||(this.getCache().unsetAll(c.m),this.successCallback())}},{key:"deleteItem",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.qb;var i=e.id,a=e.permissions,l=e.parent,u=e.type;if(!(i&&a&&l&&u))return r(Object(s.a)(),this.errorCode),Promise.reject();var f=l.id,d=a.can_delete;if(!d||!f)return r(Object(s.b)(),this.errorCode),Promise.reject();this.id=i,this.parentId=f,this.successCallback=t,this.errorCallback=r;var p="".concat(this.getUrl(i)).concat(u===c.Kf?"?recursive=true":"");return this.xhr.delete({url:p}).then(this.deleteSuccessHandler).catch((function(e){n.errorHandler(e)}))}},{key:"rename",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Zb;var a=e.id,l=e.permissions;if(!a||!l)return i(Object(s.a)(),this.errorCode),Promise.reject();var u=l.can_rename;return u?(this.id=a,this.successCallback=n,this.errorCallback=i,this.xhr.put({url:"".concat(this.getUrl(a)),data:{name:t}}).then(this.renameSuccessHandler).catch((function(e){r.errorHandler(e)}))):(i(Object(s.b)(),this.errorCode),Promise.reject())}},{key:"validateRequest",value:function(e,t){if(!e||!t)throw this.errorCode=c.cc,Object(s.a)();var n=t.can_share,r=t.can_set_share_access;if(!n||!r)throw this.errorCode=c.cc,Object(s.b)()}},{key:"share",value:(d=p(regeneratorRuntime.mark((function e(t,n,r){var i,a,s,l,u,f,d,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=h.length>3&&void 0!==h[3]?h[3]:o.a,a=h.length>4&&void 0!==h[4]?h[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=r,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,f={url:this.getUrl(this.id),data:{shared_link:n===c.c?null:{access:n}}},u&&(f.params={fields:u.toString()}),e.next=15,this.xhr.put(f);case 15:return d=e.sent,p=d.data,e.abrupt("return",this.shareSuccessHandler(p,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,n){return d.apply(this,arguments)})},{key:"updateSharedLink",value:(u=p(regeneratorRuntime.mark((function e(t,n,r){var i,a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=p.length>3&&void 0!==p[3]?p[3]:o.a,a=p.length>4&&void 0!==p[4]?p[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=r,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,c={url:this.getUrl(this.id),data:{shared_link:n}},u&&(c.params={fields:u.toString()}),e.next=15,this.xhr.put(c);case 15:return f=e.sent,d=f.data,e.abrupt("return",this.shareSuccessHandler(d,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,n){return u.apply(this,arguments)})}])&&b(n.prototype,r),i&&b(n,i),t}(u.a);t.a=w},,function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},function(e,t,n){e.exports=n(441)},function(e,t,n){var r=n(169),o=n(172);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}},function(e,t,n){var r=n(40).Symbol;e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,function(e,t,n){"use strict";var r=n(47);n.d(t,"a",(function(){return r.a}))},,function(e,t,n){var r=n(418);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(138),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(38),o=n(497),i=n(262),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,f,d,p,h,b=0,m=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError(a);function g(t){var n=u,r=c;return u=c=void 0,b=t,d=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||y&&e-b>=f}function E(){var e=o();if(w(e))return S(e);p=setTimeout(E,function(e){var n=t-(e-h);return y?l(n,f-(e-b)):n}(e))}function S(e){return p=void 0,v&&u?g(e):(u=c=void 0,d)}function O(){var e=o(),n=w(e);if(u=arguments,c=this,h=e,n){if(void 0===p)return function(e){return b=e,p=setTimeout(E,t),m?g(e):d}(h);if(y)return clearTimeout(p),p=setTimeout(E,t),g(h)}return void 0===p&&(p=setTimeout(E,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,f=(y="maxWait"in n)?s(i(n.maxWait)||0,t):f,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),b=0,u=h=c=p=void 0},O.flush=function(){return void 0===p?d:S(o())},O}},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(9);function a(){return(a=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)}t.a=function(e){return r.createElement(i.a,a({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:o.j,fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"}))}},function(e,t,n){"use strict";var r=n(71);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.memoryStore=new r.a;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}var t,n,i;return t=e,(n=[{key:"buildKey",value:function(e){return"".concat("localStore","/").concat("0","/").concat(e)}},{key:"canUseLocalStorage",value:function(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}},{key:"setItem",value:function(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}},{key:"getItem",value:function(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{var t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}},{key:"removeItem",value:function(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}}])&&o(t.prototype,n),i&&o(t,i),e}();t.a=i},,function(e,t,n){var r=n(331);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(32),o=n(211),i=n(415),a=n(97);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},,function(e,t,n){"use strict";var r=n(126);n.d(t,"b",(function(){return r.a}));var o=n(144);n.d(t,"a",(function(){return o.a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h}));var r=n(0),o=n(260),i=n(11),a=n(142);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(){return(l=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 u(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=l({timeZone:t},e[r]),n}),{})}function c(e,t){return Object.keys(l(l({},e),t)).reduce((function(n,r){return n[r]=l(l({},e[r]||{}),t[r]||{}),n}),{})}function f(e,t){if(!t)return e;var n=a.a.formats;return l(l(l({},n),e),{date:c(u(n.date,t),u(e.date||{},t)),time:c(u(n.time,t),u(e.time||{},t))})}var d=function(e){return r.createElement.apply(r,[r.Fragment,null].concat(s(e)))};function p(e,t){var n=e.locale,r=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=e.onError,c=e.timeZone,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},b=p.id,m=p.defaultMessage;Object(o.a)(!!b,"[React Intl] An `id` must be provided to format a message.");var y=a&&a[String(b)];r=f(r,c),l=f(l,c);var v=[];if(y)try{v=t.getMessageFormat(y,n,r,{formatters:t}).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting message: "'.concat(b,'" for locale: "').concat(n,'"')+(m?", using default message as fallback.":""),e))}else(!m||n&&n.toLowerCase()!==s.toLowerCase())&&u(Object(i.b)('Missing message: "'.concat(b,'" for locale: "').concat(n,'"')+(m?", using default message as fallback.":"")));if(!v.length&&m)try{v=t.getMessageFormat(m,s,l).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting the default message for: "'.concat(b,'"'),e))}return v.length?1===v.length&&"string"==typeof v[0]?v[0]||m||String(b):d(v):(u(Object(i.b)('Cannot format message: "'.concat(b,'", ')+"using message ".concat(y||m?"source":"id"," as fallback."))),"string"==typeof y?y||m||String(b):m||String(b))}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(e,t,n,Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?Object(i.e)(n):n,e}),{}))}},function(e,t,n){var r=n(218),o=n(300),i=n(83);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(470),o=n(475)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,u=e.title,c=e.width,f=void 0===c?24:c;return r.createElement(o.a,{className:"icon-info ".concat(n),height:l,title:u,viewBox:"-603 389 16 16",width:f},r.createElement("path",{className:"fill-color",d:"M-595 403c5.5 0 8-7.1 3.9-10.6-4.2-3.6-10.8.3-9.8 5.7.5 2.8 3 4.9 5.9 4.9zm.9-6.7v3.7h-1.4v-3.7h1.4zm.1-2.2c0 1-1.7 1.1-1.7 0 .1-1.1 1.7-1.1 1.7 0z",fill:a,fillRule:"evenodd"}))}},,function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(393),o=n(44),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},,function(e,t,n){var r=n(479);e.exports=function(e){return r(e)&&e!=+e}},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(23),s=n.n(a),l=n(12),u=n.n(l);n(651);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(e){var n,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?b(e):t}(this,h(t).call(this,e)),r=b(n),i=function(){var e=n.props.setActiveItemID;e&&e(n.id)},(o="setActiveItemID")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n.id=u()("datalistitem"),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.props.isActive&&this.setActiveItemID()}},{key:"componentDidUpdate",value:function(e){this.props.isActive&&!e.isActive&&this.setActiveItemID()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.isActive,a=e.isSelected,l=d(e,["children","className","isActive","isSelected"]),u=i()("datalist-item",{"is-active":o},n),c=s()(l,["closeDropdown","setActiveItemID"]);return r.createElement("li",f({},c,{className:u,id:this.id,role:"option","aria-selected":a}),t)}}])&&p(n.prototype,o),a&&p(n,a),t}(r.Component);n.d(t,"a",(function(){return y}))},function(e,t,n){"use strict";var r=n(0),o=n(51),i=n(107),a=n(11),s=n(81);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=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)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=n.n(s).a||s,y=function(e,t){return Object(i.b)(h(h({},a.a),{locale:"en"}),Object(a.c)(),e,t)},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,d(t).apply(this,arguments))}var n,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(i=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.values,r=b(t,["values"]),o=e.values,i=b(e,["values"]);return!m(o,n)||!m(r,i)}},{key:"render",value:function(){var e=this;return r.createElement(o.a.Consumer,null,(function(t){e.props.defaultMessage||Object(a.h)(t);var n=t||{},o=n.formatMessage,i=void 0===o?y:o,s=n.textComponent,l=void 0===s?r.Fragment:s,c=e.props,f=c.id,d=c.description,p=c.defaultMessage,h=c.values,b=c.children,m=c.tagName,v=void 0===m?l:m,g=i({id:f,description:d,defaultMessage:p},h);return Array.isArray(g)||(g=[g]),"function"==typeof b?b.apply(void 0,u(g)):v?r.createElement.apply(r,[v,null].concat(u(g))):g}))}}])&&c(n.prototype,i),s&&c(n,s),t}(r.Component);v.displayName="FormattedMessage",v.defaultProps={values:{}},t.a=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c}));var r="file",o="web_link",i="add",a="remove",s="replace",l="test",u="enum",c="multiSelect"},,,function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(40),i=n(394),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=(l?l.isBuffer:void 0)||i;e.exports=u}).call(this,n(90)(e))},function(e,t,n){var r=n(403),o=n(168),i=n(404),a=n(340),s=n(324),l=n(58),u=n(216),c=u(r),f=u(o),d=u(i),p=u(a),h=u(s),b=l;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=b},,function(e,t,n){"use strict";var r=n(0),o=n(49),i=n.n(o),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(1);n(498);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?h(e):t}(this,(e=p(t)).call.apply(e,[this].concat(o))),m(h(n),"menuID",s()("menu")),m(h(n),"menuButtonID",s()("menubutton")),m(h(n),"state",{initialFocusIndex:null,isOpen:!1}),m(h(n),"openMenuAndSetFocusIndex",(function(e){n.setState({initialFocusIndex:e,isOpen:!0})})),m(h(n),"closeMenu",(function(e){var t=n.props.onMenuClose,r=void 0===t?u.a:t;n.setState({isOpen:!1},(function(){return r(e)}))})),m(h(n),"focusButton",(function(){var e=document.getElementById(n.menuButtonID);e&&e.focus()})),m(h(n),"handleButtonClick",(function(e){var t=n.state.isOpen;e.stopPropagation(),e.preventDefault(),t?n.closeMenu(e):n.openMenuAndSetFocusIndex(null)})),m(h(n),"handleButtonKeyDown",(function(e){var t=n.state.isOpen;switch(e.key){case c.de.space:case c.de.enter:case c.de.arrowDown:e.stopPropagation(),e.preventDefault(),n.openMenuAndSetFocusIndex(0);break;case c.de.arrowUp:e.stopPropagation(),e.preventDefault(),n.openMenuAndSetFocusIndex(-1);break;case c.de.escape:t&&e.stopPropagation(),e.preventDefault(),n.closeMenu(e)}})),m(h(n),"handleMenuClose",(function(e,t){n.closeMenu(t),n.focusButton()})),m(h(n),"handleDocumentClick",(function(e){var t=document.getElementById(n.menuID),r=document.getElementById(n.menuButtonID);t&&r&&e.target instanceof Node&&!t.contains(e.target)&&!r.contains(e.target)&&n.closeMenu(e)})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e,t){var n=this.props.useBubble;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!n),document.addEventListener("contextmenu",this.handleDocumentClick,!n);var r=this.props.onMenuOpen;r&&r()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!n),document.removeEventListener("click",this.handleDocumentClick,!n))}},{key:"componentWillUnmount",value:function(){var e=this.props.useBubble;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}},{key:"render",value:function(){var e=this.props,t=e.bodyElement,n=e.children,o=e.isRightAligned,a=e.constrainToScrollParent,s=e.constrainToWindow,l=e.className,u=this.state,c=u.isOpen,f=u.initialFocusIndex,d=r.Children.toArray(n);if(2!==d.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");var p=d[0],h=d[1],b={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-expanded":c?"true":"false"};void 0===p.props["aria-haspopup"]&&(b["aria-haspopup"]="true"),c&&(b["aria-controls"]=this.menuID);var m={id:this.menuID,key:this.menuID,initialFocusIndex:f,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID},y="top left",v="bottom left";o&&(y="top right",v="bottom right");var g=[];a&&g.push({to:"scrollParent",attachment:"together"}),s&&g.push({to:"window",attachment:"together"});var w=t instanceof HTMLElement?t:document.body;return r.createElement(i.a,{attachment:y,bodyElement:w,className:l,classPrefix:"dropdown-menu",constraints:g,enabled:c,targetAttachment:v},r.cloneElement(p,b),c?r.cloneElement(h,m):null)}}])&&d(n.prototype,o),a&&d(n,a),t}(r.Component);m(y,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isRightAligned:!1}),t.a=y},function(e,t,n){"use strict";var r=n(0),o=n(23),i=n.n(o),a=n(4),s=n.n(a);n(499);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=".menu-item:not([aria-disabled])",m="ul:not(.submenu) > ".concat(b,", ul:not(.submenu) > li > ").concat(b,", ul:not(.submenu) > span > ").concat(b),y="ul.submenu > ".concat(b,", ul.submenu > li > ").concat(b,", ul.submenu > span > ").concat(b);function v(e){e.stopPropagation(),e.preventDefault()}var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e)),h(d(n),"setInitialFocusIndex",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props,t=e.initialFocusIndex,r=e.isHidden;r||void 0===t||("number"==typeof t?setTimeout((function(){n.setFocus(t)}),0):null===t&&setTimeout((function(){n.menuEl&&n.menuEl.focus()}),0))})),h(d(n),"setMenuItemEls",(function(){var e=n.props,t=e.isSubmenu,r=e.menuItemSelector||(t?y:m);n.menuItemEls=n.menuEl?[].slice.call(n.menuEl.querySelectorAll(r)):[]})),h(d(n),"getMenuItemElFromEventTarget",(function(e){for(var t=null,r=-1,o=0;o<n.menuItemEls.length;o+=1)if(n.menuItemEls[o].contains(e)){t=n.menuItemEls[o],r=o;break}return{menuItemEl:t,menuIndex:r}})),h(d(n),"setFocus",(function(e){if(n.menuItemEls.length){var t=n.menuItemEls.length;n.focusIndex=e>=t?0:e<0?t-1:e,n.menuItemEls[n.focusIndex].focus()}})),h(d(n),"focusFirstItem",(function(){n.setFocus(0)})),h(d(n),"focusLastItem",(function(){n.setFocus(-1)})),h(d(n),"focusNextItem",(function(){n.setFocus(n.focusIndex+1)})),h(d(n),"focusPreviousItem",(function(){n.setFocus(n.focusIndex-1)})),h(d(n),"fireOnCloseHandler",(function(e,t){var r=n.props.onClose;r&&r(e,t)})),h(d(n),"handleClick",(function(e){(e.target instanceof Node?n.getMenuItemElFromEventTarget(e.target):{}).menuItemEl&&n.fireOnCloseHandler(!1,e)})),h(d(n),"handleKeyDown",(function(e){var t=n.props,r=t.isSubmenu,o=t.initialFocusIndex;switch(e.key){case"ArrowDown":v(e),null!==o||n.keyboardPressed?n.focusNextItem():n.focusFirstItem();break;case"ArrowUp":v(e),n.focusPreviousItem();break;case"ArrowLeft":if(!r)return;v(e),n.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":v(e),n.focusFirstItem();break;case"End":case"PageDown":v(e),n.focusLastItem();break;case"Escape":v(e),n.fireOnCloseHandler(!0,e);break;case"Tab":n.fireOnCloseHandler(!0,e);break;case" ":case"Enter":v(e),e.target instanceof HTMLElement&&e.target.click()}n.keyboardPressed=!0})),n.focusIndex=0,n.menuEl=null,n.menuItemEls=[],n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.setMenuItemEls(),this.setInitialFocusIndex()}},{key:"componentDidUpdate",value:function(e){var t=e.isHidden,n=e.children,o=this.props,i=o.children,a=o.isHidden;if(o.isSubmenu&&t&&!a&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),r.Children.toArray(n).length!==r.Children.toArray(i).length){var s=this.menuItemEls[this.focusIndex];this.setMenuItemEls();var l=this.getMenuItemElFromEventTarget(s).menuIndex;this.setFocus(l)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=t.isHidden,l=t.setRef,c=t.shouldOutlineFocus,f=u(t,["children","className","isHidden","setRef","shouldOutlineFocus"]),d=i()(f,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return d.className=s()("aria-menu",o,{"is-hidden":a,"should-outline-focus":c}),d.ref=function(t){e.menuEl=t,l&&l(t)},void 0===d.role&&(d.role="menu"),d.tabIndex=-1,d.onClick=this.handleClick,d.onKeyDown=this.handleKeyDown,r.createElement("ul",d,n)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);h(g,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1}),t.a=g},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(189);t.a=function(e){var t=e.language,n=e.messages,a=e.children;return!!t&&!!n?o.a.createElement(i.a,{locale:t,messages:n},a):r.Children.only(a)}},function(e,t,n){"use strict";var r=n(74);n.d(t,"a",(function(){return r.a}))},,,function(e,t,n){var r=n(362),o=n(363),i=n(364),a=n(365),s=n(366);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(113);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(70)(Object,"create");e.exports=r},function(e,t,n){var r=n(386);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=n(e);return!!(t=null==t?r:t)&&("number"==i||"symbol"!=i&&o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(218),o=n(398),i=n(83);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(58),i=n(44),a="[object Symbol]";e.exports=function(e){return"symbol"==r(e)||i(e)&&o(e)==a}},function(e,t,n){"use strict";(function(t){var r=n(29),o=n(446),i=n(232),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?l=n(233):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(l=n(233)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(179))},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(12),s=n.n(a),l=n(316),u=n(129),c=n(52),f=n(17);n(648);function d(){return(d=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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var h=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.error,h=e.errorPosition,b=e.hideLabel,m=e.hideOptionalLabel,y=e.icon,v=e.inputRef,g=e.isLoading,w=e.isRequired,E=e.isValid,S=e.label,O=e.labelTooltip,k=e.tooltipTetherClassName,C=p(e,["className","description","error","errorPosition","hideLabel","hideOptionalLabel","icon","inputRef","isLoading","isRequired","isValid","label","labelTooltip","tooltipTetherClassName"]),x=!!a,_=i()(n,"text-input-container",{"show-error":x}),P=r.useRef(s()("description")).current,A={"aria-invalid":x,"aria-required":w,"aria-describedby":o?P:void 0};return r.createElement("div",{className:_},r.createElement(u.a,{hideLabel:b,showOptionalText:!m&&!w,text:S,tooltip:O},!!o&&r.createElement("div",{id:P,className:"text-input-description"},o),r.createElement(f.c,{isShown:x,position:h||"middle-right",tetherElementClassName:k,text:a||"",theme:"error"},r.createElement("input",d({ref:v,required:w},A,C))),g&&!E&&r.createElement(c.b,{className:"text-input-loading"}),E&&!g&&r.createElement(l.a,{className:"text-input-verified"}),g||E||!y?null:y))};h.displayName="TextInput",t.a=h},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;function i(e){return e.type===o.literal}function a(e){return e.type===o.argument}function s(e){return e.type===o.number}function l(e){return e.type===o.date}function u(e){return e.type===o.time}function c(e){return e.type===o.select}function f(e){return e.type===o.plural}function d(e){return e.type===o.pound}function p(e){return!(!e||"object"!==r(e)||0!==e.type)}function h(e){return!(!e||"object"!==r(e)||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(o||(o={}));var b,m=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e){function t(n,r,o,i){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return m(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((a=t)?'"'+r(a)+'"':"end of input")+" found.";var a},t}(Error);var g=function(e,t){t=void 0!==t?t:{};var n,r={},i={start:ct},a=ct,s=function(e){return e.join("")},l=function(e){return y({type:o.literal,value:e},Dt())},u="#",c=rt("#",!1),f=function(){return y({type:o.pound},Dt())},d=it("argumentElement"),p="{",h=rt("{",!1),b="}",m=rt("}",!1),g=function(e){return y({type:o.argument,value:e},Dt())},w=it("numberSkeletonId"),E=/^['\/{}]/,S=ot(["'","/","{","}"],!1,!1),O={type:"any"},k=it("numberSkeletonTokenOption"),C="/",x=rt("/",!1),_=function(e){return e},P=it("numberSkeletonToken"),A=function(e,t){return{stem:e,options:t}},T=function(e){return y({type:0,tokens:e},Dt())},I="::",j=rt("::",!1),D=function(e){return e},L=function(){return It.push("numberArgStyle"),!0},R=function(e){return It.pop(),e.replace(/\s*$/,"")},N=",",M=rt(",",!1),F="number",U=rt("number",!1),B=function(e,t,n){return y({type:"number"===t?o.number:"date"===t?o.date:o.time,style:n&&n[2],value:e},Dt())},H="'",z=rt("'",!1),V=/^[^']/,W=ot(["'"],!0,!1),q=/^[^a-zA-Z'{}]/,G=ot([["a","z"],["A","Z"],"'","{","}"],!0,!1),K=/^[a-zA-Z]/,X=ot([["a","z"],["A","Z"]],!1,!1),Y=function(e){return y({type:1,pattern:e},Dt())},J=function(){return It.push("dateOrTimeArgStyle"),!0},$="date",Q=rt("date",!1),Z="time",ee=rt("time",!1),te="plural",ne=rt("plural",!1),re="selectordinal",oe=rt("selectordinal",!1),ie="offset:",ae=rt("offset:",!1),se=function(e,t,n,r){return y({type:o.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&nt('Duplicate option "'+n+'" in plural element: "'+et()+'"',tt()),e[n]={value:r,location:o},e}),{})},Dt())},le="select",ue=rt("select",!1),ce=function(e,t){return y({type:o.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&nt('Duplicate option "'+n+'" in select element: "'+et()+'"',tt()),e[n]={value:r,location:o},e}),{})},Dt())},fe="=",de=rt("=",!1),pe=function(e){return It.push("select"),!0},he=function(e,t){return It.pop(),y({id:e,value:t},Dt())},be=function(e){return It.push("plural"),!0},me=function(e,t){return It.pop(),y({id:e,value:t},Dt())},ye=it("whitespace"),ve=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ge=ot([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),we=it("syntax pattern"),Ee=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Se=ot([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Oe=it("optional whitespace"),ke=it("number"),Ce="-",xe=rt("-",!1),_e=function(e,t){return t?e?-t:t:0},Pe=(it("apostrophe"),it("double apostrophes")),Ae="''",Te=rt("''",!1),Ie=function(){return"'"},je=function(e,t){return e+t.replace("''","'")},De=function(e){return!("{"===e||jt()&&"#"===e||It.length>1&&"}"===e)},Le="\n",Re=rt("\n",!1),Ne=function(e){return"{"===e||"}"===e||jt()&&"#"===e},Me=it("argNameOrNumber"),Fe=it("argNumber"),Ue="0",Be=rt("0",!1),He=function(){return 0},ze=/^[1-9]/,Ve=ot([["1","9"]],!1,!1),We=/^[0-9]/,qe=ot([["0","9"]],!1,!1),Ge=function(e){return parseInt(e.join(""),10)},Ke=it("argName"),Xe=0,Ye=0,Je=[{line:1,column:1}],$e=0,Qe=[],Ze=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function et(){return e.substring(Ye,Xe)}function tt(){return st(Ye,Xe)}function nt(e,t){throw function(e,t){return new v(e,[],"",t)}(e,t=void 0!==t?t:st(Ye,Xe))}function rt(e,t){return{type:"literal",text:e,ignoreCase:t}}function ot(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function it(e){return{type:"other",description:e}}function at(t){var n,r=Je[t];if(r)return r;for(n=t-1;!Je[n];)n--;for(r={line:(r=Je[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Je[t]=r,r}function st(e,t){var n=at(e),r=at(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function lt(e){Xe<$e||(Xe>$e&&($e=Xe,Qe=[]),Qe.push(e))}function ut(e,t,n){return new v(v.buildMessage(e,t),e,t,n)}function ct(){return ft()}function ft(){var e,t;for(e=[],t=dt();t!==r;)e.push(t),t=dt();return e}function dt(){var t;return(t=function(){var e,t;e=Xe,(t=pt())!==r&&(Ye=e,t=l(t));return e=t}())===r&&(t=function(){var t,n,o,i;Ze++,t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(125===e.charCodeAt(Xe)?(i=b,Xe++):(i=r,0===Ze&<(m)),i!==r?(Ye=t,n=g(o),t=n):(Xe=t,t=r)):(Xe=t,t=r);Ze--,t===r&&(n=r,0===Ze&<(d));return t}())===r&&(t=function(){var t;(t=function(){var t,n,o,i,a,s,l,u,c;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r&&Ot()!==r?(e.substr(Xe,6)===F?(a=F,Xe+=6):(a=r,0===Ze&<(U)),a!==r&&Ot()!==r?(s=Xe,44===e.charCodeAt(Xe)?(l=N,Xe++):(l=r,0===Ze&<(M)),l!==r&&(u=Ot())!==r&&(c=function(){var t,n,o;t=Xe,e.substr(Xe,2)===I?(n=I,Xe+=2):(n=r,0===Ze&<(j));n!==r&&(o=function(){var e,t,n;if(e=Xe,t=[],(n=mt())!==r)for(;n!==r;)t.push(n),n=mt();else t=r;t!==r&&(Ye=e,t=T(t));return e=t}())!==r?(Ye=t,n=D(o),t=n):(Xe=t,t=r);t===r&&(t=Xe,Ye=Xe,(n=(n=L())?void 0:r)!==r&&(o=pt())!==r?(Ye=t,n=R(o),t=n):(Xe=t,t=r));return t}())!==r?s=l=[l,u,c]:(Xe=s,s=r),s===r&&(s=null),s!==r&&(l=Ot())!==r?(125===e.charCodeAt(Xe)?(u=b,Xe++):(u=r,0===Ze&<(m)),u!==r?(Ye=t,n=B(o,a,s),t=n):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r);return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r&&Ot()!==r?(e.substr(Xe,4)===$?(a=$,Xe+=4):(a=r,0===Ze&<(Q)),a===r&&(e.substr(Xe,4)===Z?(a=Z,Xe+=4):(a=r,0===Ze&<(ee))),a!==r&&Ot()!==r?(s=Xe,44===e.charCodeAt(Xe)?(l=N,Xe++):(l=r,0===Ze&<(M)),l!==r&&(u=Ot())!==r&&(c=function(){var t,n,o;t=Xe,e.substr(Xe,2)===I?(n=I,Xe+=2):(n=r,0===Ze&<(j));n!==r&&(o=function(){var t,n,o,i;t=Xe,n=Xe,o=[],(i=yt())===r&&(i=vt());if(i!==r)for(;i!==r;)o.push(i),(i=yt())===r&&(i=vt());else o=r;n=o!==r?e.substring(n,Xe):o;n!==r&&(Ye=t,n=Y(n));return t=n}())!==r?(Ye=t,n=D(o),t=n):(Xe=t,t=r);t===r&&(t=Xe,Ye=Xe,(n=(n=J())?void 0:r)!==r&&(o=pt())!==r?(Ye=t,n=R(o),t=n):(Xe=t,t=r));return t}())!==r?s=l=[l,u,c]:(Xe=s,s=r),s===r&&(s=null),s!==r&&(l=Ot())!==r?(125===e.charCodeAt(Xe)?(u=b,Xe++):(u=r,0===Ze&<(m)),u!==r?(Ye=t,n=B(o,a,s),t=n):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c,f,d;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));if(n!==r)if(Ot()!==r)if((o=Pt())!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r)if(Ot()!==r)if(e.substr(Xe,6)===te?(a=te,Xe+=6):(a=r,0===Ze&<(ne)),a===r&&(e.substr(Xe,13)===re?(a=re,Xe+=13):(a=r,0===Ze&<(oe))),a!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(s=N,Xe++):(s=r,0===Ze&<(M)),s!==r)if(Ot()!==r)if(l=Xe,e.substr(Xe,7)===ie?(u=ie,Xe+=7):(u=r,0===Ze&<(ae)),u!==r&&(c=Ot())!==r&&(f=kt())!==r?l=u=[u,c,f]:(Xe=l,l=r),l===r&&(l=null),l!==r)if((u=Ot())!==r){if(c=[],(f=wt())!==r)for(;f!==r;)c.push(f),f=wt();else c=r;c!==r&&(f=Ot())!==r?(125===e.charCodeAt(Xe)?(d=b,Xe++):(d=r,0===Ze&<(m)),d!==r?(Ye=t,n=se(o,a,l,c),t=n):(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));if(n!==r)if(Ot()!==r)if((o=Pt())!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r)if(Ot()!==r)if(e.substr(Xe,6)===le?(a=le,Xe+=6):(a=r,0===Ze&<(ue)),a!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(s=N,Xe++):(s=r,0===Ze&<(M)),s!==r)if(Ot()!==r){if(l=[],(u=gt())!==r)for(;u!==r;)l.push(u),u=gt();else l=r;l!==r&&(u=Ot())!==r?(125===e.charCodeAt(Xe)?(c=b,Xe++):(c=r,0===Ze&<(m)),c!==r?(Ye=t,n=ce(o,l),t=n):(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;return t}())===r&&(t=function(){var t,n;t=Xe,35===e.charCodeAt(Xe)?(n=u,Xe++):(n=r,0===Ze&<(c));n!==r&&(Ye=t,n=f());return t=n}()),t}function pt(){var e,t,n;if(e=Xe,t=[],(n=Ct())===r&&(n=xt())===r&&(n=_t()),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(n=xt())===r&&(n=_t());else t=r;return t!==r&&(Ye=e,t=s(t)),e=t}function ht(){var t,n,o,i,a;if(Ze++,t=Xe,n=[],o=Xe,i=Xe,Ze++,(a=Et())===r&&(E.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(S))),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Xe,i=Xe,Ze++,(a=Et())===r&&(E.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(S))),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r);else n=r;return t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(w)),t}function bt(){var t,n,o;return Ze++,t=Xe,47===e.charCodeAt(Xe)?(n=C,Xe++):(n=r,0===Ze&<(x)),n!==r&&(o=ht())!==r?(Ye=t,t=n=_(o)):(Xe=t,t=r),Ze--,t===r&&(n=r,0===Ze&<(k)),t}function mt(){var e,t,n,o;if(Ze++,e=Xe,Ot()!==r)if((t=ht())!==r){for(n=[],o=bt();o!==r;)n.push(o),o=bt();n!==r?(Ye=e,e=A(t,n)):(Xe=e,e=r)}else Xe=e,e=r;else Xe=e,e=r;return Ze--,e===r&&(r,0===Ze&<(P)),e}function yt(){var t,n,o,i;if(t=Xe,39===e.charCodeAt(Xe)?(n=H,Xe++):(n=r,0===Ze&<(z)),n!==r){if(o=[],(i=Ct())===r&&(V.test(e.charAt(Xe))?(i=e.charAt(Xe),Xe++):(i=r,0===Ze&<(W))),i!==r)for(;i!==r;)o.push(i),(i=Ct())===r&&(V.test(e.charAt(Xe))?(i=e.charAt(Xe),Xe++):(i=r,0===Ze&<(W)));else o=r;o!==r?(39===e.charCodeAt(Xe)?(i=H,Xe++):(i=r,0===Ze&<(z)),i!==r?t=n=[n,o,i]:(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;if(t===r)if(t=[],(n=Ct())===r&&(q.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(G))),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(q.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(G)));else t=r;return t}function vt(){var t,n;if(t=[],K.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(X)),n!==r)for(;n!==r;)t.push(n),K.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(X));else t=r;return t}function gt(){var t,n,o,i,a;return t=Xe,Ot()!==r&&(n=Tt())!==r&&Ot()!==r?(123===e.charCodeAt(Xe)?(o=p,Xe++):(o=r,0===Ze&<(h)),o!==r?(Ye=Xe,(pe(n)?void 0:r)!==r&&(i=ft())!==r?(125===e.charCodeAt(Xe)?(a=b,Xe++):(a=r,0===Ze&<(m)),a!==r?(Ye=t,t=he(n,i)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r),t}function wt(){var t,n,o,i,a;return t=Xe,Ot()!==r&&(n=function(){var t,n,o,i;return t=Xe,n=Xe,61===e.charCodeAt(Xe)?(o=fe,Xe++):(o=r,0===Ze&<(de)),o!==r&&(i=kt())!==r?n=o=[o,i]:(Xe=n,n=r),(t=n!==r?e.substring(t,Xe):n)===r&&(t=Tt()),t}())!==r&&Ot()!==r?(123===e.charCodeAt(Xe)?(o=p,Xe++):(o=r,0===Ze&<(h)),o!==r?(Ye=Xe,(be(n)?void 0:r)!==r&&(i=ft())!==r?(125===e.charCodeAt(Xe)?(a=b,Xe++):(a=r,0===Ze&<(m)),a!==r?(Ye=t,t=me(n,i)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r),t}function Et(){var t;return Ze++,ve.test(e.charAt(Xe))?(t=e.charAt(Xe),Xe++):(t=r,0===Ze&<(ge)),Ze--,t===r&&(r,0===Ze&<(ye)),t}function St(){var t;return Ze++,Ee.test(e.charAt(Xe))?(t=e.charAt(Xe),Xe++):(t=r,0===Ze&<(Se)),Ze--,t===r&&(r,0===Ze&<(we)),t}function Ot(){var t,n,o;for(Ze++,t=Xe,n=[],o=Et();o!==r;)n.push(o),o=Et();return t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(Oe)),t}function kt(){var t,n,o;return Ze++,t=Xe,45===e.charCodeAt(Xe)?(n=Ce,Xe++):(n=r,0===Ze&<(xe)),n===r&&(n=null),n!==r&&(o=At())!==r?(Ye=t,t=n=_e(n,o)):(Xe=t,t=r),Ze--,t===r&&(n=r,0===Ze&<(ke)),t}function Ct(){var t,n;return Ze++,t=Xe,e.substr(Xe,2)===Ae?(n=Ae,Xe+=2):(n=r,0===Ze&<(Te)),n!==r&&(Ye=t,n=Ie()),Ze--,(t=n)===r&&(n=r,0===Ze&<(Pe)),t}function xt(){var t,n,o,i,a,s;if(t=Xe,39===e.charCodeAt(Xe)?(n=H,Xe++):(n=r,0===Ze&<(z)),n!==r)if((o=function(){var t,n,o,i;t=Xe,n=Xe,e.length>Xe?(o=e.charAt(Xe),Xe++):(o=r,0===Ze&<(O));o!==r?(Ye=Xe,(i=(i=Ne(o))?void 0:r)!==r?n=o=[o,i]:(Xe=n,n=r)):(Xe=n,n=r);t=n!==r?e.substring(t,Xe):n;return t}())!==r){for(i=Xe,a=[],e.substr(Xe,2)===Ae?(s=Ae,Xe+=2):(s=r,0===Ze&<(Te)),s===r&&(V.test(e.charAt(Xe))?(s=e.charAt(Xe),Xe++):(s=r,0===Ze&<(W)));s!==r;)a.push(s),e.substr(Xe,2)===Ae?(s=Ae,Xe+=2):(s=r,0===Ze&<(Te)),s===r&&(V.test(e.charAt(Xe))?(s=e.charAt(Xe),Xe++):(s=r,0===Ze&<(W)));(i=a!==r?e.substring(i,Xe):a)!==r?(39===e.charCodeAt(Xe)?(a=H,Xe++):(a=r,0===Ze&<(z)),a===r&&(a=null),a!==r?(Ye=t,t=n=je(o,i)):(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;else Xe=t,t=r;return t}function _t(){var t,n,o,i;return t=Xe,n=Xe,e.length>Xe?(o=e.charAt(Xe),Xe++):(o=r,0===Ze&<(O)),o!==r?(Ye=Xe,(i=(i=De(o))?void 0:r)!==r?n=o=[o,i]:(Xe=n,n=r)):(Xe=n,n=r),n===r&&(10===e.charCodeAt(Xe)?(n=Le,Xe++):(n=r,0===Ze&<(Re))),t=n!==r?e.substring(t,Xe):n}function Pt(){var t,n;return Ze++,t=Xe,(n=At())===r&&(n=Tt()),t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(Me)),t}function At(){var t,n,o,i,a;if(Ze++,t=Xe,48===e.charCodeAt(Xe)?(n=Ue,Xe++):(n=r,0===Ze&<(Be)),n!==r&&(Ye=t,n=He()),(t=n)===r){if(t=Xe,n=Xe,ze.test(e.charAt(Xe))?(o=e.charAt(Xe),Xe++):(o=r,0===Ze&<(Ve)),o!==r){for(i=[],We.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(qe));a!==r;)i.push(a),We.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(qe));i!==r?n=o=[o,i]:(Xe=n,n=r)}else Xe=n,n=r;n!==r&&(Ye=t,n=Ge(n)),t=n}return Ze--,t===r&&(n=r,0===Ze&<(Fe)),t}function Tt(){var t,n,o,i,a;if(Ze++,t=Xe,n=[],o=Xe,i=Xe,Ze++,(a=Et())===r&&(a=St()),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Xe,i=Xe,Ze++,(a=Et())===r&&(a=St()),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r);else n=r;return t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(Ke)),t}var It=["root"];function jt(){return"plural"===It[It.length-1]}function Dt(){return t&&t.captureLocation?{location:tt()}:{}}if((n=a())!==r&&Xe===e.length)return n;throw n!==r&&Xe<e.length&<({type:"end"}),ut(Qe,$e<e.length?e.charAt($e):null,$e<e.length?st($e,$e+1):st($e,$e))},w=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},E=/(^|[^\\])#/g;function S(e,t){var n=g(e,t);return t&&!1===t.normalizeHashtagInPlural||function e(t){t.forEach((function(t){(f(t)||c(t))&&Object.keys(t.options).forEach((function(n){for(var r,o=t.options[n],a=-1,s=void 0,l=0;l<o.value.length;l++){var u=o.value[l];if(i(u)&&E.test(u.value)){a=l,s=u;break}}if(s){var c=s.value.replace(E,"$1{"+t.value+", number}"),f=g(c);(r=o.value).splice.apply(r,w([a,1],f))}e(o.value)}))}))}(n),n}var O=n(46),k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},C=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function x(e){var t={};return e.replace(C,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var _=/^\.(?:(0+)(\+|#+)?)?$/g,P=/^(@+)?(\+|#+)?$/g;function A(e){var t={};return e.replace(P,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function T(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function I(e){var t=T(e);return t||{}}function j(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return k(k({},e),I(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return k(k({},e),I(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(_.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=k(k({},t),A(o.options[0])))}else if(P.test(o.stem))t=k(k({},t),A(o.stem));else{var i=T(o.stem);i&&(t=k(k({},t),i))}}return t}var D,L=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},N=function(e){function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return L(t,e),t}(Error);function M(e,t,n,r,o,b,m){if(1===e.length&&i(e[0]))return[{type:0,value:e[0].value}];for(var y,v=[],g=0,w=e;g<w.length;g++){var E=w[g];if(i(E))v.push({type:0,value:E.value});else if(d(E))"number"==typeof b&&v.push({type:0,value:n.getNumberFormat(t).format(b)});else{var S=E.value;if(!(o&&S in o))throw new N('The intl string context variable "'+S+'" was not provided to the string "'+m+'"');var O=o[S];if(a(E))O&&"string"!=typeof O&&"number"!=typeof O||(O="string"==typeof O||"number"==typeof O?String(O):""),v.push({type:1,value:O});else if(l(E)){var k="string"==typeof E.style?r.date[E.style]:void 0;v.push({type:0,value:n.getDateTimeFormat(t,k).format(O)})}else if(u(E)){k="string"==typeof E.style?r.time[E.style]:h(E.style)?x(E.style.pattern):void 0;v.push({type:0,value:n.getDateTimeFormat(t,k).format(O)})}else if(s(E)){k="string"==typeof E.style?r.number[E.style]:p(E.style)?j(E.style.tokens):void 0;v.push({type:0,value:n.getNumberFormat(t,k).format(O)})}else if(c(E)){if(!(C=E.options[O]||E.options.other))throw new RangeError('Invalid values for "'+E.value+'": "'+O+'". Options are "'+Object.keys(E.options).join('", "')+'"');v.push.apply(v,M(C.value,t,n,r,o))}else if(f(E)){var C;if(!(C=E.options["="+O])){if(!Intl.PluralRules)throw new N('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var _=n.getPluralRules(t,{type:E.pluralType}).select(O-(E.offset||0));C=E.options[_]||E.options.other}if(!C)throw new RangeError('Invalid values for "'+E.value+'": "'+O+'". Options are "'+Object.keys(E.options).join('", "')+'"');v.push.apply(v,M(C.value,t,n,r,o,O-(E.offset||0)))}else;}}return(y=v).length<2?y:y.reduce((function(e,t){var n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e}),[])}var F="@@",U=/@@(\d+_\d+)@@/g,B=0;function H(e,t){return e.split(U).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var z=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,V=Date.now()+"@@",W=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function q(e,t,n,r,o,i){var a=M(e,t,n,r,o,void 0,i),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++B;return s[n]=t.value,e+""+F+n+F}),"");if(!z.test(l))return H(l,s);if(!o)throw new N("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new N("Cannot format XML message without DOMParser");D||(D=new DOMParser);var u=D.parseFromString('<formatted-message id="'+V+'">'+l+"</formatted-message>","text/html").getElementById(V);if(!u)throw new N("Malformed HTML message "+l);var c=Object.keys(o).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!c.length)return H(l,s);var f=c.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new N("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(function e(t,n,r){var o=t.tagName,i=t.outerHTML,a=t.textContent,s=t.childNodes;if(!o)return H(a||"",n);o=o.toLowerCase();var l=~W.indexOf(o),u=r[o];if(u&&l)throw new N(o+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[i];var c=Array.prototype.slice.call(s).reduce((function(t,o){return t.concat(e(o,n,r))}),[]);return u?"function"==typeof u?[u.apply(void 0,c)]:[u]:R(["<"+o+">"],c,["</"+o+">"])}(t,s,o))}),[])}var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function K(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?G(G(G({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=G(G({},o[t]),i[t]||{}),e}),{})):o),n}),G({},e)):e}var X=function(){function e(t,n,r,o){var i,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,n,r,o,i){var a=M(e,t,n,r,o,void 0,i);return 1===a.length?a[0].value:a.reduce((function(e,t){return e+t.value}),"")}(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return M(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return q(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=K(e.formats,r),this.locales=n,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(O.a)(Intl.NumberFormat,i.number),getDateTimeFormat:Object(O.a)(Intl.DateTimeFormat,i.dateTime),getPluralRules:Object(O.a)(Intl.PluralRules,i.pluralRules)})}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=S,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();t.a=X},,function(e,t,n){"use strict";var r=n(0),o=n(156);n(501);t.a=function(e){var t=e.children;return r.createElement("span",{className:"menu-toggle"},t,r.createElement(o.a,{className:"toggle-arrow",width:7}))}},,function(e,t,n){"use strict";var r,o,i=n(0),a=n(12),s=n.n(a),l=n(49),u=n.n(l);n(437);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(o||(o={}));var v=(y(r={},o.BOTTOM_CENTER,{attachment:"top center",targetAttachment:"bottom center"}),y(r,o.BOTTOM_LEFT,{attachment:"top left",targetAttachment:"bottom left"}),y(r,o.BOTTOM_RIGHT,{attachment:"top right",targetAttachment:"bottom right"}),y(r,o.MIDDLE_CENTER,{attachment:"middle center",targetAttachment:"middle center"}),y(r,o.MIDDLE_LEFT,{attachment:"middle right",targetAttachment:"middle left"}),y(r,o.MIDDLE_RIGHT,{attachment:"middle left",targetAttachment:"middle right"}),y(r,o.TOP_CENTER,{attachment:"bottom center",targetAttachment:"top center"}),y(r,o.TOP_LEFT,{attachment:"bottom left",targetAttachment:"top left"}),y(r,o.TOP_RIGHT,{attachment:"bottom right",targetAttachment:"top right"}),r),g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?b(e):t}(this,(e=h(t)).call.apply(e,[this].concat(o))),y(b(n),"tetherRef",i.createRef()),y(b(n),"radarAnimationID",s()("radarAnimation")),y(b(n),"position",(function(){var e=n.props.isShown;n.tetherRef.current&&e&&n.tetherRef.current.position()})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=void 0===n?"":n,o=e.constrainToScrollParent,a=e.constrainToWindow,s=e.position,l=e.isShown,c=e.offset,p=e.tetherElementClassName,h=d(e,["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset","tetherElementClassName"]),b=[];o&&b.push({to:"scrollParent",attachment:"together"}),a&&b.push({to:"window",attachment:"together"});var m=v[s],y=m.attachment,g=m.targetAttachment,w=i.Children.only(t),E=i.cloneElement(w,{"aria-describedby":this.radarAnimationID}),S={attachment:y,classPrefix:"radar-animation",constraints:b,targetAttachment:g};return p&&(S.className=p),c&&(S.offset=c),i.createElement(u.a,f({ref:this.tetherRef},S),E,l&&i.createElement("div",f({className:"radar ".concat(r),id:this.radarAnimationID},h),i.createElement("div",{className:"radar-dot"}),i.createElement("div",{className:"radar-circle"})))}}])&&p(n.prototype,r),o&&p(n,o),t}(i.Component);y(g,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:o.MIDDLE_RIGHT});var w=g;n.d(t,"a",(function(){return w}))},,,function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="data-resin-target"},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},,,,,function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000":i,s=e.height,l=void 0===s?6:s,u=e.title,c=e.width,f=void 0===c?10:c;return r.createElement(o.a,{className:"icon-caret-down ".concat(n),height:l,title:u,viewBox:"0 0 10 6",width:f},r.createElement("path",{className:"fill-color",d:"M0 .5l5 5 5-5H0z",fill:a,fillRule:"evenodd"}))}},,function(e,t,n){"use strict";var r=n(245);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(188),o=n(0);n(4),n(214);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c,f,d,p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.className;return o.createElement("div",{className:"link-group ".concat(r)},t?o.createElement("div",{className:"link-group-title"},t):null,o.createElement("ul",null,o.Children.map(n,(function(e,t){return e?o.createElement("li",{key:t},e," "):null}))))}}])&&a(n.prototype,r),i&&a(n,i),t}(o.Component);d={title:"",className:""},(f="defaultProps")in(c=p)?Object.defineProperty(c,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[f]=d;n.d(t,"a",(function(){return r.a}))},function(e,t,n){var r=n(341),o=n(83),i=n(264),a=n(306),s=n(460),l=Math.max;e.exports=function(e,t,n,u){e=o(e)?e:s(e),n=n&&!u?a(n):0;var c=e.length;return n<0&&(n=l(c+n,0)),i(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},function(e,t,n){"use strict";t.a="__clear__"},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({clearAll:{id:"boxui.selectField.clearAll",defaultMessage:"Clear All"},searchPlaceholder:{id:"boxui.selectField.searchPlaceholder",defaultMessage:"Search"},noResults:{id:"boxui.selectField.noResults",defaultMessage:"No Results"}});t.a=o},function(e,t,n){var r=n(132),o=n(367),i=n(368),a=n(369),s=n(370),l=n(371);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(395),o=n(173),i=n(174),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){"use strict";var r=n(0),o=n(28);function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=function(t){var n=t.isLoading,a=void 0!==n&&n,s=t.loadingIndicatorProps,l=void 0===s?{}:s,u=i(t,["isLoading","loadingIndicatorProps"]);return a?r.createElement(o.b,l):r.createElement(e,u)};return t.displayName="Loadable".concat(e.displayName||e.name||"Component"),t}},function(e,t,n){"use strict";var r=n(0),o=function(e){var t=e.className,n=void 0===t?"":t,o=e.url,i=e.onError;return r.createElement("img",{alt:"",className:"avatar-image ".concat(n),onError:function(e){"function"==typeof i&&i(e)},src:o})},i=n(2),a=function(e){var t=e.className,n=void 0===t?"":t,o=e.id,a=void 0===o?0:o,s=e.name,l=(parseInt(a,10)||0)%i.a.length;return r.createElement("span",{className:"avatar-initials ".concat(n),"data-bg-idx":l},function(e){var t=e.replace(/[[({<]+.*[\])}>]+/g,"").trim();return(t.slice(0,1)+t.slice(t.lastIndexOf(" ")+1,t.lastIndexOf(" ")+2)).toUpperCase()}(s))},s=n(9),l=function(e){var t=e.className,n=void 0===t?"":t,o=e.height,a=void 0===o?28:o,l=e.title,u=e.width,c=void 0===u?28:u;return r.createElement(s.a,{className:"unknown-user-avatar ".concat(n),height:a,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{fill:i.j,fillRule:"evenodd",d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 9.5c-1.21 0-2.293.413-3.232 1.096-.56.407-.953.817-1.168 1.104a.5.5 0 00.8.6c.035-.047.114-.141.234-.267.205-.214.447-.428.722-.629.78-.567 1.665-.904 2.644-.904.979 0 1.865.337 2.644.904.275.2.517.415.722.63.12.125.199.219.234.266a.5.5 0 00.8-.6c-.215-.287-.607-.697-1.168-1.104C10.293 9.913 9.21 9.5 8 9.5zm0-6a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm0 1a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 018 4.5z"}))},u=n(4),c=n.n(u),f=n(266);function d(){return(d=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)}var p=function(e){return r.createElement(s.a,d({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:i.j,fillRule:"evenodd",d:"M8 0a7.988 7.988 0 00-5.662 2.338A7.992 7.992 0 000 8a7.988 7.988 0 002.338 5.662A7.992 7.992 0 008 16a7.988 7.988 0 005.662-2.338A7.992 7.992 0 0016 8a7.988 7.988 0 00-2.338-5.662A7.992 7.992 0 008 0zm-.862 14.4C4.062 13.908 1.6 11.323 1.6 8c0-.492.123-.984.123-1.477L5.54 10.34v.861c0 .862.738 1.6 1.6 1.6v1.6zm5.539-2.092c-.247-.616-.861-1.108-1.477-1.108h-.862V8.738c0-.368-.246-.738-.738-.738H4.8V6.4h1.6c.492 0 .862-.37.862-.862V4.062h1.6c.861 0 1.6-.739 1.6-1.6v-.37C12.8 3.077 14.4 5.292 14.4 8c0 1.723-.616 3.2-1.723 4.308z"}))};n(637);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m={small:!0,large:!0};var y=function(e){var t,n,i=e.avatarUrl,s=e.className,u=e.name,d=e.id,y=e.isExternal,v=e.shouldShowExternal,g=void 0!==v&&v,w=e.size,E=void 0===w?"":w,S=b(r.useState(!1),2),O=S[0],k=S[1],C=b(r.useState(null),2),x=C[0],_=C[1],P=c()(["avatar",s,(t={},h(t,"avatar--".concat(E),E&&m[E]),h(t,"avatar--isExternal",g&&y),t)]);return i!==x&&(k(!1),_(i)),n=i&&!O?r.createElement(o,{onError:function(){k(!0)},url:i}):u?r.createElement(a,{id:d,name:u}):r.createElement(l,{className:"avatar-icon"}),r.createElement(f.a,{className:P,bottomRight:g&&y?r.createElement(p,{className:"bdl-Avatar-externalBadge"}):void 0},r.createElement("span",null,n))};n.d(t,"a",(function(){return y}))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(70)(n(40),"Map");e.exports=r},function(e,t,n){var r=n(58),o=n(38),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},function(e,t,n){var r=n(171),o=n(113),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(217);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(215),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(this,n(90)(e))},function(e,t,n){var r=n(401),o=n(221),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(219)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(302);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function b(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,u=e.title,c=e.width,f=void 0===c?24:c;return r.createElement(o.a,{className:"icon-check ".concat(n),height:l,title:u,viewBox:"0 0 24 24",width:f},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{className:"fill-color",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:a}))}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(428),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),b=l(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||b&&b[y]||s&&s[y])){var v=d(n,y);try{u(t,y,v)}catch(e){}}}}return t}},function(e,t,n){var r=n(439),o=n(304);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";var r=n(312);n.d(t,"a",(function(){return r.a}));var o=n(313);n.d(t,"b",(function(){return o.a}));n(265)},,,,function(e,t,n){"use strict";var r=n(0),o=n(214);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=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(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d,p,h,b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var n,i,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.className,n=s(e,["className"]);return r.createElement(o.a,a({className:"link ".concat(t)},n))}}])&&l(n.prototype,i),d&&l(n,d),t}(r.Component);h={className:""},(p="defaultProps")in(d=b)?Object.defineProperty(d,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[p]=h,t.a=b},function(e,t,n){"use strict";var r=n(0),o=n(51),i=n(11);var a=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function s(e,t){var n=e.locale,r=e.formats,o=e.onError,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=s.format,u=l&&Object(i.g)(r,"number",l,o)||{};return t(n,Object(i.f)(s,a,u))}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,r).format(n)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return String(n)}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,r).formatToParts(n)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return[]}var c=["numeric","style"];function f(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second"),Intl.RelativeTimeFormat||e.onError(Object(i.b)('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function(e,t){var n=e.locale,r=e.formats,o=e.onError,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a.format,l=!!s&&Object(i.g)(r,"relative",s,o)||{};return t(n,Object(i.f)(a,c,l))}(e,t,o).format(n,r)}catch(t){e.onError(Object(i.b)("Error formatting relative time.",t))}return String(n)}function d(){return(d=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)}var p=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function h(e,t,n){var r=e.locale,o=e.formats,a=e.onError,s=e.timeZone,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.format,c=d(d({},s&&{timeZone:s}),u&&Object(i.g)(o,t,u,a)),f=Object(i.f)(l,p,c);return"time"!==t||f.hour||f.minute||f.second||(f=d(d({},f),{hour:"numeric",minute:"numeric"})),n(r,f)}function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).format(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return String(o)}function m(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).format(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return String(o)}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return[]}function v(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return[]}var g=["localeMatcher","type"];function w(e,t,n){var r=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(Object(i.b)('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var s=Object(i.f)(a,g);try{return t(r,s).select(n)}catch(e){o(Object(i.b)("Error formatting plural.",e))}return"other"}var E=n(107),S=n(81),O=n.n(S);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var C=["localeMatcher","type","style"],x=Date.now();function _(e,t,n){var r=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(Object(i.b)('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=Object(i.f)(a,C);try{var l={},u=n.map((function(e,t){if("object"===k(e)){var n=function(e){return"".concat(x,"_").concat(e,"_").concat(x)}(t);return l[n]=e,n}return String(e)}));return Object.keys(l).length?t(r,s).formatToParts(u).reduce((function(e,t){var n=t.value;return l[n]?e.push(l[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]):t(r,s).format(u)}catch(e){o(Object(i.b)("Error formatting list.",e))}return n}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(){return(D=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)}n.d(t,"a",(function(){return M}));var L=O.a||S;function R(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function N(e,t){var n=Object(i.c)(t),r=D(D({},i.a),e);if(!r.locale||!function(e,t){if("undefined"==typeof Intl)return!1;if(!e)throw new Error("locales must be supplied.");Array.isArray(e)||(e=[e]);var n=t||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(n=n.filter(Boolean)).length||t&&n.length!==t.length)&&n.every((function(t){return t.supportedLocalesOf(e).length===e.length}))}(r.locale)){var o=r.locale,a=r.defaultLocale,s=r.onError;"function"==typeof s&&s(Object(i.b)('Missing locale data for locale: "'.concat(o,'". ')+'Using default locale: "'.concat(a,'" as fallback.'))),r.locale=r.defaultLocale||"en"}return D(D({},r),{formatters:n,formatNumber:l.bind(null,r,n.getNumberFormat),formatNumberToParts:u.bind(null,r,n.getNumberFormat),formatRelativeTime:f.bind(null,r,n.getRelativeTimeFormat),formatDate:b.bind(null,r,n.getDateTimeFormat),formatDateToParts:y.bind(null,r,n.getDateTimeFormat),formatTime:m.bind(null,r,n.getDateTimeFormat),formatTimeToParts:v.bind(null,r,n.getDateTimeFormat),formatPlural:w.bind(null,r,n.getPluralRules),formatMessage:E.b.bind(null,r,n),formatHTMLMessage:E.a.bind(null,r,n),formatList:_.bind(null,r,n.getListFormat)})}var M=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=T(this,I(t).apply(this,arguments))).cache=Object(i.d)(),e.state={cache:e.cache,intl:N(R(e.props),e.cache),prevConfig:R(e.props)},e}var n,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(t,e),n=t,s=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,o=R(e);return L(n,o)?null:{intl:N(o,r),prevConfig:o}}}],(a=[{key:"render",value:function(){return Object(i.h)(this.state.intl),r.createElement(o.b,{value:this.state.intl},this.props.children)}}])&&A(n.prototype,a),s&&A(n,s),t}(r.PureComponent);M.displayName="IntlProvider",M.defaultProps=i.a},function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#F7931D":i,s=e.height,l=void 0===s?26:s,u=e.title,c=e.width,f=void 0===c?26:c;return r.createElement(o.a,{className:"icon-alert-default ".concat(n),title:u,height:l,width:f,viewBox:"0 0 26 26"},r.createElement("defs",null,r.createElement("circle",{id:"b",cx:"8",cy:"8",r:"8"}),r.createElement("filter",{x:"-46.9%",y:"-46.9%",width:"193.8%",height:"193.8%",filterUnits:"objectBoundingBox",id:"a"},r.createElement("feMorphology",{radius:".5",operator:"dilate",in:"SourceAlpha",result:"shadowSpreadOuter1"}),r.createElement("feOffset",{in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),r.createElement("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0.5 0",in:"shadowBlurOuter1"}))),r.createElement("g",{transform:"translate(5 5)",fill:"none",fillRule:"evenodd"},r.createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),r.createElement("use",{fill:a,xlinkHref:"#b"}),r.createElement("path",{d:"M8.047 4.706v4.111",stroke:"#FFF",strokeWidth:"1.412",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("circle",{fill:"#FFF",cx:"8.047",cy:"11.294",r:"1"})))}},,,function(e,t,n){var r=n(378),o=n(385),i=n(387),a=n(388),s=n(389);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(104),o=n(98);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){var r=n(547)();e.exports=r},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},,,function(e,t,n){"use strict";var r=n(71),o=n(3),i=n.n(o),a=n(116),s=n.n(a),l=n(24),u=n(73),c=n(248),f=n.n(c);function d(){return window.crypto||window.msCrypto}function p(e,t){var n=d();return n!==window.msCrypto?n.subtle.digest(e,t):new Promise((function(r,o){if("SHA-1"===e)try{var i=f.a.arrayBuffer(t);r(i)}catch(e){o(e)}else{var a=n.subtle.digest({name:e},t);a.oncomplete=function(e){r(e.target.result)},a.onerror=o}}))}function h(e,t,n){"use asm";var r=new e.Int32Array(n);function o(e,t){e=e|0;t=t|0;var n=0,o=0,i=0,a=0,s=0,l=0,u=0,c=0,f=0,d=0,p=0,h=0,b=0,m=0;i=r[t+320>>2]|0;s=r[t+324>>2]|0;u=r[t+328>>2]|0;f=r[t+332>>2]|0;p=r[t+336>>2]|0;for(n=0;(n|0)<(e|0);n=n+64|0){a=i;l=s;c=u;d=f;h=p;for(o=0;(o|0)<64;o=o+4|0){m=r[n+o>>2]|0;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[e+o>>2]=m}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)+1859775393|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|s&f|u&f)|0)+((m+p|0)-1894007588|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)-899497514|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}i=i+a|0;s=s+l|0;u=u+c|0;f=f+d|0;p=p+h|0}r[t+320>>2]=i;r[t+324>>2]=s;r[t+328>>2]=u;r[t+332>>2]=f;r[t+336>>2]=p}return{hash:o}}var b=function(){var e=new Blob(["const RushaCore = ".concat(h.toString()),";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){var e=new Rusha;e.resetState();var t=0;self.onmessage=function(n){var r=n.data,o=r.part,i=r.fileSize,a=r.partContents,s=Date.now();try{if(o.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:r.part,duration:Date.now()-s,partContents:a},[a]),t+=o.size,o.offset+o.size===i){var l=e.end();self.postMessage({type:"done",sha1:l})}}catch(e){var u={type:"error",name:e.name,message:e.message,part:o};self.postMessage(u)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),n=new Worker(t);return n.oldTerminate=n.terminate,n.terminate=function(){(window.URL||window.webkitURL).revokeObjectURL(t),n.oldTerminate()},n},m=n(57),y=n(1),v=n(7),g=n.n(v),w=n(249),E=n.n(w);function S(e,t){if(!t)return e;var n=new E.a(e);return Object.keys(t).forEach((function(e){var r=t[e];r&&(n.hasQueryParam(e)?n.replaceQueryParam(e,r):n.addQueryParam(e,r))})),n.toString()}var O=n(14);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=5,j=10,D=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?P(e):t}(this,(e=_(t)).call.apply(e,[this].concat(o))),T(P(n),"retryCount",0),T(P(n),"reachabilityRetryCount",0),T(P(n),"isUploadFallbackLogicEnabled",!1),T(P(n),"makePreflightRequest",(function(){if(!n.isDestroyed()){var e="".concat(n.getBaseApiUrl(),"/files/content");if(n.fileId&&(e=e.replace("content","".concat(n.fileId,"/content"))),n.isUploadFallbackLogicEnabled){var t=n.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+="?unreachable_hosts=".concat(t.join(",")))}var r=n.file,o=r.size,i=r.name,a={name:n.fileName||i,parent:{id:n.folderId},description:n.fileDescription,size:o};n.xhr.options({url:e,data:a,successHandler:function(e){n.isUploadFallbackLogicEnabled?n.preflightSuccessReachabilityHandler(e):n.preflightSuccessHandler(e)},errorHandler:n.preflightErrorHandler})}})),T(P(n),"preflightSuccessReachabilityHandler",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,!n.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(o=r.upload_url){e.next=7;break}return n.preflightSuccessHandler({data:r}),e.abrupt("return");case 7:if((i=n.getUploadHostFromUrl(o))!=="".concat(y.O,"/")&&i!=="".concat(y.P,"/")&&i!=="".concat(y.Q,"/")){e.next=11;break}return n.preflightSuccessHandler({data:r}),e.abrupt("return");case 11:return e.next=13,n.uploadsReachability.isReachable(i);case 13:e.sent?n.preflightSuccessHandler({data:r}):n.reachabilityRetryCount>=j?n.preflightSuccessHandler({data:{}}):(n.reachabilityRetryCount+=1,n.makePreflightRequest());case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){C(i,r,o,a,s,"next",e)}function s(e){C(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),T(P(n),"preflightErrorHandler",(function(e){if(!n.isDestroyed()){n.fileName=n.file?n.file.name:"";var t=e,r=e.response;if(r&&r.data&&(t=r.data),n.retryCount>=I)n.errorCallback(t);else if(t&&409===t.status){if(n.overwrite){var o=t.context_info.conflicts.id;!n.fileId&&o&&(n.fileId=o)}else if(n.conflictCallback)n.fileName=n.conflictCallback(n.fileName);else{var i=n.fileName.substr(n.fileName.lastIndexOf("."))||"";n.fileName="".concat(n.fileName.substr(0,n.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(i)}n.makePreflightRequest(),n.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof n.errorCallback?n.errorCallback(t):(n.retryTimeout=setTimeout(n.makePreflightRequest,Math.pow(2,n.retryCount)*y.me),n.retryCount+=1);else{var a=y.Y;if(t.headers){var s=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(s)||(a=s*y.me)}n.retryTimeout=setTimeout(n.makePreflightRequest,a),n.retryCount+=1}}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(t,e),n=t,(r=[{key:"readFile",value:function(e,t){return new Promise((function(n,r){e.readAsArrayBuffer(t),e.onload=function(){n({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=r}))}},{key:"getUploadHostFromUrl",value:function(e){var t=e.split("/");return"".concat(t[0],"//").concat(t[2],"/")}}])&&x(n.prototype,r),o&&x(n,o),t}(O.a);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},H=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?M(e):t}(this,N(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{shouldRetry:!1}))),U(M(o),"logEvent",(function(e,t){var n={event_type:e};return t&&(n.event_info=t),o.xhr.post({url:o.sessionEndpoints.logEvent,data:n})})),o.config=r||B,o.sessionEndpoints=n,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(t,e),t}(D);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function W(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){V(i,r,o,a,s,"next",e)}function s(e){V(i,r,o,a,s,"throw",e)}a(void 0)}))}}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=0,$=2,Q=3,Z=function(e){function t(e,n,r,o,a,s,c,f,d,p,h,b){var m;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m=function(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?K(e):t}(this,G(t).call(this,e,c,f)),Y(K(m),"toJSON",(function(){return JSON.stringify({index:m.index,offset:m.offset,partSize:m.partSize,state:m.state,uploadedBytes:m.uploadedBytes,numUploadRetriesPerformed:m.numUploadRetriesPerformed,numDigestRetriesPerformed:m.numDigestRetriesPerformed,sha256:m.sha256,timing:m.timing})})),Y(K(m),"getPart",(function(){return m.data.part||{}})),Y(K(m),"upload",(function(){if(!m.isDestroyedOrPaused()){if(!m.sha256)throw new Error("Part SHA-256 unavailable");if(!m.blob)throw new Error("Part blob unavailable");var e={documentHidden:document.hidden,digest_retries:m.numDigestRetriesPerformed,timing:m.timing,parts_uploading:m.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:"sha-256=".concat(m.sha256),"Content-Range":"bytes ".concat(m.offset,"-").concat(m.rangeEnd,"/").concat(m.fileSize),"X-Box-Client-Event-Info":JSON.stringify(e)};m.state=$,m.startTimestamp=Date.now(),m.xhr.uploadFile({url:m.sessionEndpoints.uploadPart,data:m.blob,headers:t,method:y.Qd,successHandler:m.uploadSuccessHandler,errorHandler:m.uploadErrorHandler,progressHandler:m.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:m.config.requestTimeoutMs})}})),Y(K(m),"uploadSuccessHandler",(function(e){var t=e.data;m.isDestroyedOrPaused()||(m.state=Q,m.consoleLog("Upload completed: ".concat(m.toJSON(),".")),m.data=t,m.blob=null,m.timing.uploadTime=Date.now()-m.startTimestamp,m.onSuccess(K(m)),m.uploadedBytes=m.partSize)})),Y(K(m),"uploadProgressHandler",(function(e){if(!m.isDestroyedOrPaused()){var t=parseInt(e.loaded,10),n=m.uploadedBytes;m.uploadedBytes=t,m.onProgress(n,t)}})),Y(K(m),"uploadErrorHandler",function(){var e=W(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:if(n=g()(m.xhr,"xhr.readyState",null),r=g()(m.xhr,"xhr.statusText",""),m.consoleLog("Upload failure ".concat(t.message," for part ").concat(m.toJSON(),". XHR state: ").concat(n,".")),o={message:t.message,part:{uploadedBytes:m.uploadedBytes,id:m.id,index:m.index,offset:m.offset},xhr_ready_state:n,xhr_status_text:r},i=JSON.stringify(o),m.sessionEndpoints.logEvent?Object(u.a)((function(e,t){m.logEvent("part_failure",i).then(e).catch(t)}),m.config.retries,m.config.initialRetryDelayMs).catch((function(e){return m.consoleLog("Failure in logEvent: ".concat(e.message))})):m.consoleLog("logEvent endpoint not found"),!(m.numUploadRetriesPerformed>=m.config.retries)){e.next=11;break}return m.onError(t,i),e.abrupt("return");case 11:a=Object(l.a)(m.config.initialRetryDelayMs,m.config.maxRetryDelayMs,m.numUploadRetriesPerformed),m.numUploadRetriesPerformed+=1,m.consoleLog("Retrying uploading part ".concat(m.toJSON()," in ").concat(a," ms")),m.retryTimeout=setTimeout(m.retryUpload,a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Y(K(m),"retryUpload",W(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,m.listParts(m.index,1);case 5:if(!(t=e.sent)||1!==t.length||t[0].offset!==m.offset||!t[0].part_id){e.next=11;break}return m.consoleLog("Part ".concat(m.toJSON()," is available on server. Not re-uploading.")),m.id=t[0].part_id,m.uploadSuccessHandler({data:{part:t[0]}}),e.abrupt("return");case 11:throw m.consoleLog("Part ".concat(m.toJSON()," is not available on server. Re-uploading.")),new Error("Part not found on the server");case 15:e.prev=15,e.t0=e.catch(2),(n=e.t0.response)&&n.status&&m.consoleLog("Error ".concat(n.status," while listing part ").concat(m.toJSON(),". Re-uploading.")),m.numUploadRetriesPerformed+=1,m.upload();case 21:case"end":return e.stop()}}),e,null,[[2,15]])})))),Y(K(m),"listParts",function(){var e=W(regeneratorRuntime.mark((function e(t,n){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={offset:t,limit:n},o=S(m.sessionEndpoints.listParts,r),e.next=4,m.xhr.get({url:o});case 4:return i=e.sent,e.abrupt("return",i.data.entries);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),m.index=n,m.numDigestRetriesPerformed=0,m.numUploadRetriesPerformed=0,m.offset=r,m.partSize=o,m.fileSize=a,m.state=J,m.timing={},m.uploadedBytes=0,m.data={},m.config=f,m.rangeEnd=r+o-1,m.rangeEnd>a-1&&(m.rangeEnd=a-1),m.isPaused=!1,m.onSuccess=p||i.a,m.onError=b||i.a,m.onProgress=h||i.a,m.getNumPartsUploading=d,m}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(t,e),n=t,(r=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}},{key:"pause",value:function(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}},{key:"unpause",value:function(){this.isPaused=!1,this.state=$,this.retryUpload()}},{key:"reset",value:function(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}},{key:"isDestroyedOrPaused",value:function(){return this.isDestroyed()||this.isPaused}}])&&q(n.prototype,r),o&&q(n,o),t}(H);function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function oe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){re(i,r,o,a,s,"next",e)}function s(e){re(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce="create_session_misc_error",fe="create_session_retries_exceeded",de="part_upload_retries_exceeded",pe="commit_retries_exceeded",he="web_worker_error",be="file_reader_received_not_found_error",me="part_digest_retries_exceeded",ye=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?se(e):t}(this,ae(t).call(this,e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},n)),ue(se(r),"getBaseUploadUrlFromPreflightResponse",(function(e){var t=e.data;if(!t||!t.upload_url)return r.getBaseUploadUrl();var n=t.upload_url.split("/");return r.uploadHost="".concat(n[0],"//").concat(n[2]),r.getBaseUploadUrl()})),ue(se(r),"preflightSuccessHandler",function(){var e=oe(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return n=r.getBaseUploadUrlFromPreflightResponse(t),(o="".concat(n,"/files/upload_sessions")).includes("fupload-ec2")&&(r.config.parallelism=1),i={file_size:r.file.size,file_name:r.fileName},r.fileId?o=o.replace("upload_sessions","".concat(r.fileId,"/upload_sessions")):i.folder_id=r.folderId,e.prev=7,e.next=10,r.xhr.post({url:o,data:i});case 10:a=e.sent,r.createSessionSuccessHandler(a.data),e.next=31;break;case 14:if(e.prev=14,e.t0=e.catch(7),!((s=r.getErrorResponse(e.t0))&&s.status>=500&&s.status<600)){e.next=20;break}return r.createSessionErrorHandler(e.t0),e.abrupt("return");case 20:if(!s||409!==s.status||"session_conflict"!==s.code){e.next=23;break}return r.createSessionSuccessHandler(s.context_info.session),e.abrupt("return");case 23:if(!(s&&s.status===y.Td&&s.code===y.qc||s.status===y.Td&&"access_denied_insufficient_permissions"===s.code)){e.next=26;break}return r.errorCallback(s),e.abrupt("return");case 26:if(!s||409!==s.status){e.next=30;break}return r.resolveConflict(s),r.createSessionRetry(),e.abrupt("return");case 30:r.sessionErrorHandler(e.t0,ce,JSON.stringify(e.t0));case 31:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}()),ue(se(r),"createSessionErrorHandler",(function(e){r.isDestroyed()||(r.createSessionNumRetriesPerformed<r.config.retries?r.createSessionRetry():(r.consoleLog("Too many create session failures, failing upload"),r.sessionErrorHandler(e,fe,JSON.stringify(e))))})),ue(se(r),"getSessionInfo",oe(regeneratorRuntime.mark((function e(){var t,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.getBaseUploadUrl(),n="".concat(t,"/files/upload_sessions/").concat(r.sessionId),e.prev=2,e.next=5,r.xhr.get({url:n});case 5:o=e.sent,r.getSessionSuccessHandler(o.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),r.getSessionErrorHandler(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))),ue(se(r),"partUploadSuccessHandler",(function(e){r.numPartsUploading-=1,r.numPartsUploaded+=1,r.updateProgress(e.uploadedBytes,r.partSize),r.processNextParts()})),ue(se(r),"partUploadErrorHandler",(function(e,t){if(r.sessionErrorHandler(e,de,t),r.isResumableUploadsEnabled)for(var n=r.firstUnuploadedPartIndex;r.numPartsUploading>0;){var o=r.parts[n];o&&o.state===$&&(o.reset(),o.pause(),r.numPartsUploading-=1,r.numPartsDigestReady+=1),n+=1}})),ue(se(r),"updateProgress",(function(e,t){r.isDestroyed()||(r.totalUploadedBytes+=t-e,r.progressCallback({loaded:r.totalUploadedBytes,total:r.file.size}))})),ue(se(r),"processNextParts",(function(){if(!r.failSessionIfFileChangeDetected())if(r.numPartsUploaded===r.parts.length&&r.fileSha1)r.commitSession();else{for(r.updateFirstUnuploadedPartIndex();r.canStartMorePartUploads();)r.uploadNextPart();r.shouldComputeDigestForNextPart()&&r.computeDigestForNextPart()}})),ue(se(r),"onWorkerMessage",(function(e){if(!r.isDestroyed()){var t,n=e.data;if("partDone"===n.type){r.numPartsDigestComputing-=1;var o=n.part;r.parts[o.index].timing.fileDigestTime=n.duration,r.processNextParts()}else"done"===n.type?(r.fileSha1=(t=n.sha1,btoa(String.fromCharCode.apply(null,t.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),r.sha1Worker.terminate(),r.processNextParts()):"error"===n.type&&r.sessionErrorHandler(null,he,JSON.stringify(n))}})),ue(se(r),"sendPartToWorker",(function(e,t){if(!r.isDestroyed()){var n={index:e.index,offset:e.offset,size:e.partSize};r.sha1Worker.postMessage({part:n,fileSize:r.file.size,partContents:t},[t]),r.consoleLog("Part sent to worker: ".concat(JSON.stringify(e),".}"))}})),ue(se(r),"onPartDigestError",(function(e,t){if(r.consoleLog("Error computing digest for part ".concat(JSON.stringify(t),": ").concat(JSON.stringify(e))),"NotFoundError"!==e.name&&"NOT_FOUND_ERR"!==e.name){if(!r.failSessionIfFileChangeDetected())if(t.numDigestRetriesPerformed>=r.config.retries)r.sessionErrorHandler(null,me,JSON.stringify(e));else{var n=Object(l.a)(r.config.initialRetryDelayMs,r.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,r.consoleLog("Retrying digest work for part ".concat(JSON.stringify(t)," in ").concat(n," ms")),setTimeout((function(){r.computeDigestForPart(t)}),n)}}else r.sessionErrorHandler(null,be,JSON.stringify(e))})),ue(se(r),"commitSession",(function(){if(!r.isDestroyed()){var e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:r.parts.map((function(t){return e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()})).sort((function(e,t){return e.offset-t.offset})),attributes:{}},n=Object(l.k)(r.file);n&&(t.attributes.content_modified_at=n),r.fileDescription&&(t.attributes.description=r.fileDescription);var o={avg_part_read_time:Math.round(e.totalPartReadTime/r.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/r.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/r.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/r.parts.length)},i=r.fileSha1,a={Digest:"sha=".concat(i),"X-Box-Client-Event-Info":JSON.stringify(o)};r.xhr.post({url:r.sessionEndpoints.commit,data:t,headers:a}).then(r.commitSessionSuccessHandler).catch(r.commitSessionErrorHandler)}})),ue(se(r),"commitSessionSuccessHandler",(function(e){if(!r.isDestroyed()){var t=e.status,n=e.data;if(202!==t){var o=n.entries;!o&&n.id&&(o=[n]),r.destroy(),r.successCallback&&o&&r.successCallback(o)}else r.commitSessionRetry(e)}})),ue(se(r),"commitSessionErrorHandler",(function(e){if(!r.isDestroyed()){var t=e.response;if(t)return r.commitRetryCount>=r.config.retries?(r.consoleLog("Too many commit failures, failing upload"),void r.sessionErrorHandler(e,pe,JSON.stringify(e))):void r.commitSessionRetry(t);r.consoleError(e)}})),ue(se(r),"getNumPartsUploading",(function(){return r.numPartsUploading})),r.parts=[],r.options=e,r.fileSha1=null,r.totalUploadedBytes=0,r.numPartsNotStarted=0,r.numPartsDigestComputing=0,r.numPartsDigestReady=0,r.numPartsUploading=0,r.numPartsUploaded=0,r.firstUnuploadedPartIndex=0,r.createSessionNumRetriesPerformed=0,r.partSize=0,r.commitRetryCount=0,r.clientId=null,r.isResumableUploadsEnabled=!1,r.numResumeRetries=0,r}var n,r,o,a,c,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(t,e),n=t,(r=[{key:"reset",value:function(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}},{key:"setFileInfo",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.file=t,this.fileName=this.file.name,this.folderId=n,this.errorCallback=r||i.a,this.progressCallback=o||i.a,this.successCallback=a||i.a,this.overwrite=l,this.conflictCallback=u,this.fileId=c}},{key:"upload",value:function(e){var t=e.file,n=e.fileDescription,r=e.folderId,o=e.errorCallback,a=e.progressCallback,s=e.successCallback,u=e.overwrite,c=void 0===u||u,f=e.conflictCallback,d=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=Object(l.k)(this.file),this.folderId=r,this.errorCallback=o||i.a,this.progressCallback=a||i.a,this.successCallback=s||i.a,this.sha1Worker=b(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=f,this.overwrite=c,this.fileId=d,this.fileDescription=n,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog("Retrying create session in ".concat(e," ms")),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}},{key:"createSessionSuccessHandler",value:function(e){if(!this.isDestroyed()){var t=e.id,n=e.part_size,r=e.session_endpoints;this.sessionId=t,this.partSize=n,this.sessionEndpoints=ne({},this.sessionEndpoints,{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.populateParts(),this.processNextParts()}}},{key:"resume",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,i=e.sessionId,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.setFileInfo({file:t,folderId:n,errorCallback:r,progressCallback:o,successCallback:a,conflictCallback:u,overwrite:l,fileId:c}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=b()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}},{key:"getSessionSuccessHandler",value:function(e){var t=e.part_size,n=e.session_endpoints;this.partSize=t,this.sessionEndpoints=ne({},this.sessionEndpoints,{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.processNextParts()}},{key:"getSessionErrorHandler",value:function(e){if(!this.isDestroyed()){var t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){var n=y.Y;if(t.headers){var r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);s()(r)||(n=r*y.me)}this.retryTimeout=setTimeout(this.getSessionInfo,n),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((function(e){e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();var o={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(o)}else this.retryTimeout=setTimeout(this.getSessionInfo,Math.pow(2,this.numResumeRetries)*y.me),this.numResumeRetries+=1}}},{key:"sessionErrorHandler",value:(f=oe(regeneratorRuntime.mark((function e(t,n,r){var o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isResumableUploadsEnabled||this.destroy(),o=this.getErrorResponse(t),this.errorCallback(o),e.prev=3,this.sessionEndpoints.logEvent){e.next=6;break}throw new Error("logEvent endpoint not found");case 6:return e.next=8,Object(u.a)((function(e,t){i.logEvent(n,r).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs);case 8:this.isResumableUploadsEnabled||this.abortSession(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),this.isResumableUploadsEnabled||this.abortSession();case 14:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e,t,n){return f.apply(this,arguments)})},{key:"abortSession",value:function(){var e=this;this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((function(){e.sessionId=""}))}},{key:"shouldComputeDigestForNextPart",value:function(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}},{key:"computeDigestForNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(t.state===J)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}},{key:"computeDigestForPart",value:(c=oe(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.file.slice(t.offset,t.offset+this.partSize),r=new window.FileReader,o=Date.now(),e.prev=3,e.next=6,this.readFile(r,n);case 6:return i=e.sent,a=i.buffer,s=i.readCompleteTimestamp,e.next=11,p("SHA-256",a);case 11:l=e.sent,u=btoa([].reduce.call(new Uint8Array(l),(function(e,t){return e+String.fromCharCode(t)}),"")),this.sendPartToWorker(t,a),t.sha256=u,t.state=1,t.blob=n,this.numPartsDigestReady+=1,c=Date.now(),t.timing={partDigestTime:c-o,readTime:s-o,subtleCryptoTime:c-s},this.processNextParts(),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),this.onPartDigestError(e.t0,t);case 26:case"end":return e.stop()}}),e,this,[[3,23]])}))),function(e){return c.apply(this,arguments)})},{key:"commitSessionRetry",value:function(e){var t=e.status,n=e.headers,r=y.Y;if(n){var o=parseInt(n["retry-after"],10);Number.isNaN(o)||(r=1e3*o)}var i=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);var a=r||i;this.consoleLog("Retrying commit in ".concat(a," ms")),this.commitSessionTimeout=setTimeout(this.commitSession,a)}},{key:"uploadNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}},{key:"canStartMorePartUploads",value:function(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&e.state===Q;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}},{key:"populateParts",value:function(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(var e=0;e<this.numPartsNotStarted;e+=1){var t=e*this.partSize,n=Math.min(t+this.partSize,this.file.size)-t,r=new Z(this.options,e,t,n,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(r)}}},{key:"failSessionIfFileChangeDetected",value:function(){var e=this.file.size,t=Object(l.k)(this.file);if(e!==this.initialFileSize||t!==this.initialFileLastModified){var n=JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t});return m.a.isIE()?(this.sessionErrorHandler(null,"file_changed_during_upload",n),!0):(this.consoleLog("file properties changed during upload: ".concat(n)),!1)}return!1}},{key:"cancel",value:function(){this.isDestroyed()||(this.parts.forEach((function(e){e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}},{key:"resolveConflict",value:(a=oe(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.overwrite||!t.context_info){e.next=3;break}return this.fileId=t.context_info.conflicts.id,e.abrupt("return");case 3:if(!this.conflictCallback){e.next=6;break}return this.fileName=this.conflictCallback(this.fileName),e.abrupt("return");case 6:n=this.fileName.substr(this.fileName.lastIndexOf("."))||"",this.fileName="".concat(this.fileName.substr(0,this.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(n);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getErrorResponse",value:function(e){if(!e)return{};var t=e.response;return t?401===t.status?t:t.data:{}}}])&&ie(n.prototype,r),o&&ie(n,o),t}(H);function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function we(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ge(i,r,o,a,s,"next",e)}function s(e){ge(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe="Content-MD5",_e=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ve(t)&&"function"!=typeof t?Oe(e):t}(this,(e=Se(t)).call.apply(e,[this].concat(o))),Ce(Oe(n),"uploadSuccessHandler",(function(e){var t=e.data.entries;n.isDestroyed()||"function"==typeof n.successCallback&&n.successCallback(t)})),Ce(Oe(n),"uploadProgressHandler",(function(e){n.isDestroyed()||"function"==typeof n.progressCallback&&n.progressCallback(e)})),Ce(Oe(n),"preflightSuccessHandler",function(){var e=we(regeneratorRuntime.mark((function e(t){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,!n.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return(o=r.upload_url)||(o="".concat(n.getBaseUploadUrl(),"/files/content"),n.fileId&&(o=o.replace("content","".concat(n.fileId,"/content")))),i=JSON.stringify({name:n.fileName,parent:{id:n.folderId},description:n.fileDescription,content_modified_at:Object(l.k)(n.file)}),a={url:o,data:{attributes:i,file:n.file},headers:{},successHandler:n.uploadSuccessHandler,errorHandler:n.preflightErrorHandler,progressHandler:n.uploadProgressHandler},e.next=9,n.computeSHA1(n.file);case 9:(s=e.sent)&&(a.headers=Ce({},xe,s)),n.xhr.uploadFile(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n}var n,r,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(t,e),n=t,(r=[{key:"upload",value:function(e){var t=e.folderId,n=e.fileId,r=e.file,o=e.fileDescription,a=e.successCallback,s=void 0===a?i.a:a,l=e.errorCallback,u=void 0===l?i.a:l,c=e.progressCallback,f=void 0===c?i.a:c,d=e.conflictCallback,p=e.overwrite,h=void 0===p||p;this.isDestroyed()||(this.folderId=t,this.fileId=n,this.file=r,this.fileDescription=o,this.fileName=this.file.name,this.successCallback=s,this.errorCallback=u,this.progressCallback=f,this.overwrite=h,this.conflictCallback=d,this.makePreflightRequest())}},{key:"cancel",value:function(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}},{key:"computeSHA1",value:(a=we(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="",e.prev=1,r=new window.FileReader,e.next=5,this.readFile(r,t);case 5:return o=e.sent,i=o.buffer,e.next=9,p("SHA-1",i);case 9:a=e.sent,s=Array.from(new Uint8Array(a)),n=s.map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(1);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[1,14]])}))),function(e){return a.apply(this,arguments)})}])&&Ee(n.prototype,r),o&&Ee(n,o),t}(D),Pe=n(72),Ae=n(50),Te=n(60),Ie=n(78),je=n(19),De=n(8);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Ue(e):t}(this,(e=Fe(t)).call.apply(e,[this].concat(o))),He(Ue(n),"searchSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=t.entries,o=t.total_count,i=t.limit,a=t.offset;if(!Array.isArray(r)||"number"!=typeof o||"number"!=typeof i||"number"!=typeof a)throw Object(De.a)();var s=Object(Ie.a)(r,new Pe.a(n.options),new Ae.a(n.options),new Te.a(n.options));n.itemCache=(n.itemCache||[]).concat(s),n.getCache().set(n.key,{item_collection:Ne({},t,{entries:n.itemCache})}),n.finish()}})),He(Ue(n),"searchErrorHandler",(function(e){n.isDestroyed()||n.errorCallback(e,n.errorCode)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(t,e),n=t,(r=[{key:"getEncodedQuery",value:function(e){return encodeURIComponent(e)}},{key:"getCacheKey",value:function(e,t){return"".concat(y.m).concat(e,"|").concat(t)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/search")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(De.a)();var n=t.entries,r=t.total_count;if(!Array.isArray(n)||"number"!=typeof r)throw Object(De.a)();var o={id:this.id,items:n.map((function(t){return e.get(t)})),offset:this.offset,percentLoaded:100,sortBy:y.dd,sortDirection:y.mf,totalCount:r};this.successCallback(o)}}},{key:"searchRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||je.f;return this.errorCode=y.bc,this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:n.toString()},headers:n.includes(y.fd)?{"X-Rep-Hints":y.fg}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}},{key:"search",value:function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};this.isDestroyed()||(this.limit=n,this.offset=r,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=o,this.errorCallback=i,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}}])&&Me(n.prototype,r),o&&Me(n,o),t}(O.a);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(){return(We=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 qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?Ke(e):t}(this,(e=Ge(t)).call.apply(e,[this].concat(o))),Ye(Ke(n),"recentsSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=t.entries,o=t.order,i=o.by,a=o.direction,s=[];r.forEach((function(e){var t=e.item,r=e.interacted_at,o=t.path_collection;(n.id===y.Z||!!o&&-1!==o.entries.findIndex((function(e){return e.id===n.id})))&&s.push(We(t,{interacted_at:r}))}));var l=Object(Ie.a)(s,new Pe.a(n.options),new Ae.a(n.options),new Te.a(n.options));n.getCache().set(n.key,{item_collection:{entries:l,order:[{by:i,direction:a}]}}),n.finish()}})),Ye(Ke(n),"recentsErrorHandler",(function(e){n.isDestroyed()||n.errorCallback(e,n.errorCode)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(y.l).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/recent_items")}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(De.a)();var n=t.entries;if(!Array.isArray(n))throw Object(De.a)();var r={id:this.id,items:n.map((function(t){return e.get(t)})),percentLoaded:100,sortBy:y.Cc,sortDirection:y.mf};this.successCallback(r)}}},{key:"recentsRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||je.f;return this.errorCode=y.Lb,this.xhr.get({url:this.getUrl(),params:{fields:n.toString()},headers:n.includes(y.fd)?{"X-Rep-Hints":y.fg}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}},{key:"recents",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){this.id=e,this.successCallback=t,this.errorCallback=n;var o=this.getCache();this.key=this.getCacheKey(this.id),r.forceFetch&&o.unset(this.key),o.has(this.key)?this.finish():this.recentsRequest(r)}}}])&&qe(n.prototype,r),o&&qe(n,o),t}(O.a),$e=n(21);function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function rt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){nt(i,r,o,a,s,"next",e)}function s(e){nt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function it(e,t){return!t||"object"!==Qe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),it(this,at(t).apply(this,arguments))}var n,r,o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(t,e),n=t,(r=[{key:"getQueryParameters",value:function(e,t,n){var r={offset:e,limit:t};return n&&n.length>0&&(r.fields=n.toString()),r}},{key:"hasMoreItems",value:function(e,t){return void 0===t||e<t}},{key:"offsetGetRequest",value:(a=rt(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a=this.getQueryParameters(n,r,i),s=this.getUrl(t),e.next=7,this.xhr.get({url:s,id:Object($e.b)(t),params:a});case 7:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=et({},u,{entries:c.concat(u.entries)}),f=u.total_count,d=n+r,!o||!this.hasMoreItems(d,f)){e.next=16;break}return this.offsetGetRequest(t,d,r,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[2,19]])}))),function(e,t,n,r,o){return a.apply(this,arguments)})},{key:"offsetGet",value:(i=rt(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=l.length>3&&void 0!==l[3]?l[3]:y.K,i=l.length>4&&void 0!==l[4]?l[4]:y.J,a=l.length>5?l[5]:void 0,s=!(l.length>6&&void 0!==l[6])||l[6],this.successCallback=n,this.errorCallback=r,e.abrupt("return",this.offsetGetRequest(t,o,i,s,a));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})}])&&ot(n.prototype,r),o&&ot(n,o),t}(O.a);function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e,t){return(yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ut(t)&&"function"!=typeof t?mt(e):t}(this,(e=bt(t)).call.apply(e,[this].concat(o))),vt(mt(n),"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yt(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/versions")}},{key:"getVersionUrl",value:function(e,t){if(!t)throw new Error("Missing version id!");return"".concat(this.getUrl(e),"/").concat(t)}},{key:"addPermissions",value:function(e,t){if(!e)return e;var n=e.entries,r=e.total_count,o=g()(t,["permissions",y.Ie],!1);return{entries:n.map((function(e){var t=e.permissions;return dt({},pt(e,["permissions"]),{permissions:dt({can_upload:o},t)})})),total_count:r}}},{key:"deleteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=y.ub;try{this.checkApiCallValidity(y.Ce,r,n)}catch(e){return void t(e,this.errorCode)}this.delete({id:n,url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}},{key:"getVersions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y.K,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.J,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:je.d,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];this.errorCode=y.Qb,this.offsetGet(e,t,n,r,o,i,a)}},{key:"getVersion",value:function(e,t,n,r){this.errorCode=y.Pb,this.get({id:e,successCallback:n,errorCallback:r,url:this.getVersionUrl(e,t),requestData:{params:{fields:je.d.toString()}}})}},{key:"addCurrentVersion",value:function(e,t,n){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};var r=g()(n,"restored_from.id"),o=t.entries.find((function(e){return e.id===r}));return o&&(e.version_promoted=o.version_number),{entries:[].concat(ct(t.entries),[e]),total_count:t.total_count+1}}},{key:"promoteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=y.Yb;try{this.checkApiCallValidity(y.Ie,r,n)}catch(e){return void t(e,this.errorCode)}this.post({id:n,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(n,"current"),successCallback:o,errorCallback:t})}},{key:"restoreVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=y.ac;try{this.checkApiCallValidity(y.Ce,r,n)}catch(e){return void t(e,this.errorCode)}this.put({id:n,data:{data:{trashed_at:null}},url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}}])&&ht(n.prototype,r),o&&ht(n,o),t}(lt);function wt(e){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?Ct(e):t}(this,(e=kt(t)).call.apply(e,[this].concat(o))),_t(Ct(n),"successHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.successCallback)if(e)if(e.entries){var t=e.entries.map(n.format);n.successCallback(St({},e,{entries:t}))}else n.successCallback(n.format(e));else n.successCallback()})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/comments")}},{key:"commentsUrl",value:function(e){var t="".concat(this.getBaseApiUrl(),"/comments");return e?"".concat(t,"/").concat(e):t}},{key:"format",value:function(e){return St({},e,{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}},{key:"createComment",value:function(e){var t=e.file,n=e.message,r=e.taggedMessage,o=e.successCallback,i=e.errorCallback;this.errorCode=y.hb;var a=t.id,s=void 0===a?"":a,l=t.permissions;try{this.checkApiCallValidity(y.Ae,l,s)}catch(e){return void i(e,this.errorCode)}var u={data:{item:{id:s,type:"file"},message:n,tagged_message:r},params:{fields:je.b.toString()}};this.post({id:s,url:this.commentsUrl(),data:u,successCallback:o,errorCallback:i})}},{key:"updateComment",value:function(e){var t=e.file,n=e.commentId,r=e.message,o=e.tagged_message,i=e.permissions,a=e.successCallback,s=e.errorCallback;this.errorCode=y.fc;var l=t.id,u=void 0===l?"":l;try{this.checkApiCallValidity(y.Ee,i,u)}catch(e){return void s(e,this.errorCode)}var c={data:{message:r,tagged_message:o}};this.put({id:u,url:this.commentsUrl(n),data:c,successCallback:a,errorCallback:s})}},{key:"deleteComment",value:function(e){var t=e.file,n=e.commentId,r=e.permissions,o=e.successCallback,i=e.errorCallback;this.errorCode=y.pb;var a=t.id,s=void 0===a?"":a;try{this.checkApiCallValidity(y.Ce,r,s)}catch(e){return void i(e,this.errorCode)}this.delete({id:s,url:this.commentsUrl(n),successCallback:o,errorCallback:i})}},{key:"getComments",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:je.b,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;this.errorCode=y.Bb;try{this.checkApiCallValidity(y.Ae,t,e)}catch(e){return void r(e,this.errorCode)}this.offsetGet(e,n,r,i,a,o,s)}}])&&Ot(n.prototype,r),o&&Ot(n,o),t}(lt);function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function Dt(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lt(e){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rt(e,t){return(Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nt=[y.Yd,y.Vd,y.Xd,y.Rd,y.Zd,y.Ud],Mt=function(e){function t(e){var n=e.retryableStatusCodes,r=void 0===n?Nt:n,o=jt(e,["retryableStatusCodes"]);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(this,Lt(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o,{retryableStatusCodes:r})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}(t,e),t}(O.a);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Vt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kt(e,t){return(Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qt(this,Gt(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kt(e,t)}(t,e),n=t,(r=[{key:"getUrlForFileTasks",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/files/").concat(e,"/linked_tasks?limit=").concat(y.e)}},{key:"getUrlForTaskCreateWithDeps",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/with_dependencies")}},{key:"getUrlForTask",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e)}},{key:"getUrlForTaskWithDeps",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/with_dependencies")}},{key:"updateTaskWithDeps",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.ic;var i=o.addedAssignees.map((function(e){return{op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}})),a=o.removedAssignees.map((function(e){return{op:"delete_task_collaborator",id:e.id}})),s=(o.id,o.addedAssignees,o.removedAssignees,Vt(o,["id","addedAssignees","removedAssignees"]));this.put({id:n.id,url:this.getUrlForTaskWithDeps(o.id),data:{data:[{op:"update_task",payload:Bt({},s)}].concat(zt(i),zt(a))},successCallback:r,errorCallback:t})}},{key:"deleteTask",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.sb,this.delete({id:n.id,url:this.getUrlForTask(o.id),successCallback:r,errorCallback:t})}},{key:"getTasksForFile",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback;this.errorCode=y.Nb,this.get({id:n.id,url:this.getUrlForFileTasks(n.id),successCallback:r,errorCallback:t})}},{key:"getTask",value:function(e){var t=e.errorCallback,n=e.file,r=e.id,o=e.successCallback;this.errorCode=y.Nb,this.get({id:n.id,url:this.getUrlForTask(r),successCallback:o,errorCallback:t})}},{key:"createTaskWithDeps",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.assignees;this.errorCode=y.kb;var a=i.map((function(e){return{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}})),s=[{target:{id:n.id,type:"file"}}],l={task:Bt({},o),assigned_to:a,task_links:s};this.post({id:n.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:Bt({},l)},successCallback:r,errorCallback:t})}}])&&Wt(n.prototype,r),o&&Wt(n,o),t}(Mt),Yt=n(23),Jt=n.n(Yt);function $t(e){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nn(e,t){return!t||"object"!==$t(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function on(e,t){return(on=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var an=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nn(this,rn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&on(e,t)}(t,e),n=t,(r=[{key:"getUrlForTaskCollaborators",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/task_collaborators?role=ASSIGNEE&limit=").concat(y.e)}},{key:"getUrlForTaskCollaboratorCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators")}},{key:"getUrlForTaskCollaborator",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/").concat(e)}},{key:"getUrlForTaskGroupCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/expand_group")}},{key:"createTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.user;this.errorCode=y.lb;var a={data:{task:{type:"task",id:o.id},target:{type:"user",id:i.id}}};this.post({id:n.id,url:this.getUrlForTaskCollaboratorCreate(),data:Zt({},a),successCallback:r,errorCallback:t})}},{key:"createTaskCollaboratorsforGroup",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.group;this.errorCode=y.lb;var a={data:{task:{type:"task",id:o.id},target:{type:"group",id:i.id}}};this.post({id:n.id,url:this.getUrlForTaskGroupCreate(),data:Zt({},a),successCallback:r,errorCallback:t})}},{key:"getTaskCollaborators",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.Ob;var i=this.getUrlForTaskCollaborators(o.id);this.get({id:n.id,successCallback:r,errorCallback:t,url:i})}},{key:"updateTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.taskCollaborator;this.errorCode=y.jc;var i={data:Jt()(o,"id")};this.put({id:n.id,url:this.getUrlForTaskCollaborator(o.id),data:Zt({},i),successCallback:r,errorCallback:t})}},{key:"deleteTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.taskCollaborator;this.errorCode=y.tb,this.delete({id:n.id,url:this.getUrlForTaskCollaborator(o.id),successCallback:r,errorCallback:t})}}])&&tn(n.prototype,r),o&&tn(n,o),t}(Mt);function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t){return!t||"object"!==sn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hn(e,t){return(hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dn(this,pn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hn(e,t)}(t,e),n=t,(r=[{key:"getUrlForTaskLinkCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_links")}},{key:"createTaskLink",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.mb;var i={data:{target:{id:n.id,type:"file"},task:{id:o.id,type:"task"}}};this.post({id:n.id,url:this.getUrlForTaskLinkCreate(),data:un({},i),successCallback:r,errorCallback:t})}}])&&fn(n.prototype,r),o&&fn(n,o),t}(Mt);function mn(e){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return!t||"object"!==mn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gn(e){return(gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var En=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vn(this,gn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/file_access_stats/").concat(e)}},{key:"getFileAccessStats",value:function(e,t,n){this.errorCode=y.xb,this.get({id:e,successCallback:t,errorCallback:n})}}])&&yn(n.prototype,r),o&&yn(n,o),t}(O.a);function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function _n(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xn(i,r,o,a,s,"next",e)}function s(e){xn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return!t||"object"!==Sn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function In(e,t){return(In=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),An(this,Tn(t).apply(this,arguments))}var n,r,o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&In(e,t)}(t,e),n=t,(r=[{key:"hasMoreItems",value:function(e){return null!==e&&""!==e}},{key:"markerGetRequest",value:(a=_n(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=d.length>4&&void 0!==d[4]?d[4]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,a=this.getUrl(t),s=kn({},i,{marker:n,limit:r}),e.next=8,this.xhr.get({url:a,id:Object($e.b)(t),params:s});case 8:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=kn({},u,{entries:c.concat(u.entries)}),f=u.next_marker,!o||!this.hasMoreItems(f)){e.next=16;break}return this.markerGetRequest(t,f,r,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(3),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[3,19]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"markerGet",value:(i=_n(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.successCallback,o=t.errorCallback,i=t.marker,a=void 0===i?"":i,s=t.limit,l=void 0===s?1e3:s,u=t.requestData,c=t.shouldFetchAll,f=void 0===c||c,this.successCallback=r,this.errorCallback=o,e.abrupt("return",this.markerGetRequest(n,a,l,f,u));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&Pn(n.prototype,r),o&&Pn(n,o),t}(O.a);function Dn(e){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){Nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(e,t){return!t||"object"!==Dn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e,t){return(Bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Hn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fn(this,Un(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/groups")}},{key:"getGroupsInEnterprise",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.T;this.errorCode=y.Db,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:Rn({usemarker:!0},r),shouldFetchAll:!1})}}])&&Mn(n.prototype,r),o&&Mn(n,o),t}(jn);function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kn(e,t){return!t||"object"!==zn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e,t){return(Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Kn(this,Xn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users")}},{key:"getUsersInEnterprise",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.T;this.errorCode=y.Eb,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:Wn({usemarker:!0},r),shouldFetchAll:!1})}}])&&Gn(n.prototype,r),o&&Gn(n,o),t}(jn);function $n(e){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zn(e,t){return!t||"object"!==$n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zn(this,er(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tr(e,t)}(t,e),n=t,(r=[{key:"getUrlForGroupCount",value:function(e){return"".concat(this.getBaseApiUrl(),"/groups/").concat(e,"/memberships")}},{key:"getGroupCount",value:function(e){var t=this,n=e.errorCallback,r=void 0===n?i.a:n,o=e.successCallback,a=void 0===o?i.a:o,s=e.group,l=e.file;return new Promise((function(e,n){return t.get({id:l.id,url:t.getUrlForGroupCount(s.id),successCallback:function(){a.apply(void 0,arguments),e.apply(void 0,arguments)},errorCallback:function(){r.apply(void 0,arguments),n()},requestData:{params:{limit:1}}})}))}}])&&Qn(n.prototype,r),o&&Qn(n,o),t}(O.a),rr=n(63),or=n.n(rr),ir=n(62);function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ur(e,t){return!t||"object"!==ar(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cr(e){return(cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fr(e,t){return(fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var dr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ur(this,cr(t).apply(this,arguments))}var n,r,o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users/me")}},{key:"getAvatarUrl",value:function(e){if(!e)throw new Error("Missing user id");return"".concat(this.getBaseApiUrl(),"/users/").concat(e,"/avatar")}},{key:"getAvatarUrlWithAccessToken",value:(i=regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:if(!(r=this.getCache()).has(t)){e.next=5;break}return e.abrupt("return",r.get(t));case 5:return e.next=7,ir.a.getReadToken(Object($e.b)(n),this.options.token);case 7:if("string"!=typeof(o=e.sent)){e.next=14;break}return i={access_token:o,pic_type:"large"},a=or.a.stringify(i),s="".concat(this.getAvatarUrl(t),"?").concat(a),r.set(t,s),e.abrupt("return",s);case 14:return e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){sr(o,n,r,a,s,"next",e)}function s(e){sr(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t){return a.apply(this,arguments)})},{key:"getUser",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.errorCode=y.Cb,this.get({id:e,successCallback:t,errorCallback:n,requestData:r})}}])&&lr(n.prototype,r),o&&lr(n,o),t}(O.a),pr=n(12),hr=n.n(pr);function br(e){return(br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function vr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function gr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){vr(i,r,o,a,s,"next",e)}function s(e){vr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return!t||"object"!==br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sr(e){return(Sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Er(this,Sr(t).apply(this,arguments))}var n,r,o,i,a,s,l,u,c,f,d,p,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}(t,e),n=t,(r=[{key:"getMetadataCacheKey",value:function(e){return"".concat(y.j).concat(e)}},{key:"getSkillsCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_skills")}},{key:"getClassificationCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_classification")}},{key:"getMetadataUrl",value:function(e,t,n){var r="".concat(this.getUrl(e),"/metadata");return t&&n?"".concat(r,"/").concat(t,"/").concat(n):r}},{key:"getMetadataTemplateUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_templates")}},{key:"getMetadataTemplateUrlForInstance",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"?metadata_instance_id=").concat(e)}},{key:"getMetadataTemplateSchemaUrl",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/enterprise/").concat(e,"/schema")}},{key:"getMetadataTemplateUrlForScope",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/").concat(e)}},{key:"getCustomPropertiesTemplate",value:function(){return{id:hr()("metadata_template_"),scope:y.fe,templateKey:y.ie,hidden:!1}}},{key:"createEditor",value:function(e,t,n){var r={};return Object.keys(e).forEach((function(t){t.startsWith("$")||(r[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&n,data:r}}}},{key:"getTemplates",value:(h=gr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=y.Kb,o={},i=r?this.getMetadataTemplateUrlForInstance(r):this.getMetadataTemplateUrlForScope(n),e.prev=3,e.next=6,this.xhr.get({url:i,id:Object($e.b)(t),params:{limit:y.he}});case 6:o=e.sent,e.next=14;break;case 9:if(e.prev=9,e.t0=e.catch(3),a=e.t0.status,!Object(De.d)(a)){e.next=14;break}throw e.t0;case 14:return e.abrupt("return",g()(o,"data.entries",[]));case 15:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(e,t,n){return h.apply(this,arguments)})},{key:"getSchemaByTemplateKey",value:function(e){var t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}},{key:"getInstances",value:(p=gr(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=y.Jb,n={},e.prev=2,e.next=5,this.xhr.get({url:this.getMetadataUrl(t),id:Object($e.b)(t)});case 5:n=e.sent,e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(2),r=e.t0.status,!Object(De.d)(r)){e.next=13;break}throw e.t0;case 13:return e.abrupt("return",g()(n,"data.entries",[]));case 14:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return p.apply(this,arguments)})},{key:"getUserAddableTemplates",value:function(e,t,n,r){var o=[];return n&&(o=r?[e]:[e].concat(t)),o.filter((function(e){return!e.hidden&&e.templateKey!==y.ge}))}},{key:"extractClassification",value:function(e,t){var n=t.find((function(e){return e.$template===y.ge}));if(n){t.splice(t.indexOf(n),1);var r=this.getCache(),o=this.getClassificationCacheKey(e);r.set(o,n)}return t}},{key:"getTemplateForInstance",value:(d=gr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.$id,i=n.$template,a=n.$scope,(s=r.find((function(e){return e.templateKey===i&&e.scope===a})))||!a.startsWith(y.ee)){e.next=9;break}return e.next=7,this.getTemplates(t,a,o);case 7:l=e.sent,s=l[0];case 9:return e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"getEditors",value:(f=gr(regeneratorRuntime.mark((function e(t,n,r,o,i,a){var s,l,u,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=[r].concat(o,i),l=this.extractClassification(t,n),u=[],e.next=5,Promise.all(l.map(function(){var e=gr(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getTemplateForInstance(t,n,s);case 2:(r=e.sent)&&u.push(c.createEditor(n,r,a));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return e.abrupt("return",u);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,o,i){return f.apply(this,arguments)})},{key:"getMetadata",value:(c=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d,p,h,b,m,v,g,w=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=w.length>4&&void 0!==w[4]?w[4]:{},a=t.id,s=t.permissions,l=t.is_externally_owned,this.errorCode=y.Jb,this.successCallback=n,this.errorCallback=r,a&&s){e.next=8;break}return this.errorHandler(Object(De.a)()),e.abrupt("return");case 8:if(u=this.getCache(),c=this.getMetadataCacheKey(a),i.forceFetch&&u.unset(c),!u.has(c)){e.next=15;break}if(this.successHandler(u.get(c)),i.refreshCache){e.next=15;break}return e.abrupt("return");case 15:return e.prev=15,f=this.getCustomPropertiesTemplate(),e.next=19,Promise.all([this.getInstances(a),this.getTemplates(a,y.fe),o?this.getTemplates(a,y.ee):Promise.resolve([])]);case 19:return d=e.sent,p=yr(d,3),h=p[0],b=p[1],m=p[2],e.next=26,this.getEditors(a,h,f,m,b,!!s.can_upload);case 26:v=e.sent,g={editors:v,templates:this.getUserAddableTemplates(f,m,o,l)},u.set(c,g),this.isDestroyed()||this.successHandler(g),e.next=35;break;case 32:e.prev=32,e.t0=e.catch(15),this.errorHandler(e.t0);case 35:case"end":return e.stop()}}),e,this,[[15,32]])}))),function(e,t,n,r){return c.apply(this,arguments)})},{key:"getSkills",value:(u=gr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]&&c[3],this.errorCode=y.Mb,i=t.id){e.next=6;break}return r(Object(De.a)(),this.errorCode),e.abrupt("return");case 6:if(a=this.getCache(),s=this.getSkillsCacheKey(i),this.successCallback=n,this.errorCallback=r,o&&a.unset(s),!a.has(s)){e.next=14;break}return this.successHandler(a.get(s)),e.abrupt("return");case 14:if(l={data:g()(t,y.Tc)},e.prev=15,l.data){e.next=20;break}return e.next=19,this.xhr.get({url:this.getMetadataUrl(i,y.fe,y.je),id:Object($e.b)(i)});case 19:l=e.sent;case 20:this.isDestroyed()||(u=l.data.cards||[],a.set(s,u),this.successHandler(u)),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(15),this.errorHandler(e.t0);case 26:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(e,t,n){return u.apply(this,arguments)})},{key:"updateSkills",value:(l=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.hc,i=t.id,a=t.permissions,i&&a){e.next=5;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 5:if(a.can_upload){e.next=8;break}return o(Object(De.b)(),this.errorCode),e.abrupt("return");case 8:return this.successCallback=r,this.errorCallback=o,e.prev=10,e.next=13,this.xhr.put({url:this.getMetadataUrl(i,y.fe,y.je),headers:mr({},y.Kd,"application/json-patch+json"),id:Object($e.b)(i),data:n});case 13:s=e.sent,this.isDestroyed()||(l=s.data.cards||[],this.merge(this.getCacheKey(i),y.Tc,s.data),this.getCache().set(this.getSkillsCacheKey(i),l),this.successHandler(l)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),this.errorHandler(e.t0);case 20:case"end":return e.stop()}}),e,this,[[10,17]])}))),function(e,t,n,r){return l.apply(this,arguments)})},{key:"updateMetadata",value:(s=gr(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.gc,this.successCallback=o,this.errorCallback=i,a=t.id,s=t.permissions,a&&s){e.next=7;break}return this.errorHandler(Object(De.a)()),e.abrupt("return");case 7:if(l=!!s.can_upload){e.next=11;break}return this.errorHandler(Object(De.b)()),e.abrupt("return");case 11:return e.prev=11,e.next=14,this.xhr.put({url:this.getMetadataUrl(a,n.scope,n.templateKey),headers:mr({},y.Kd,"application/json-patch+json"),id:Object($e.b)(a),data:r});case 14:u=e.sent,this.isDestroyed()||(c=this.getCache(),f=this.getMetadataCacheKey(a),d=c.get(f),p=this.createEditor(u.data,n,l),d&&d.editors&&d.editors.splice(d.editors.findIndex((function(e){return e.instance.id===p.instance.id})),1,p),this.successHandler(p)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(11),this.errorHandler(e.t0);case 21:case"end":return e.stop()}}),e,this,[[11,18]])}))),function(e,t,n,r,o){return s.apply(this,arguments)})},{key:"createMetadata",value:(a=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d,p,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.jb,t&&n){e.next=4;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 4:if(i=t.id,a=t.permissions,s=t.is_externally_owned,i&&a){e.next=8;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 8:if(l=!!a.can_upload,u=n.templateKey===y.ie&&n.scope===y.fe,l&&(!s||u)){e.next=13;break}return o(Object(De.b)(),this.errorCode),e.abrupt("return");case 13:return this.successCallback=r,this.errorCallback=o,e.prev=15,e.next=18,this.xhr.post({url:this.getMetadataUrl(i,n.scope,n.templateKey),id:Object($e.b)(i),data:{}});case 18:c=e.sent,this.isDestroyed()||(f=this.getCache(),d=this.getMetadataCacheKey(i),p=f.get(d),h=this.createEditor(c.data,n,l),p.editors.push(h),this.successHandler(h)),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),this.errorHandler(e.t0);case 25:case"end":return e.stop()}}),e,this,[[15,22]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"deleteMetadata",value:(i=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.rb,t&&n){e.next=4;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 4:if(i=n.scope,a=n.templateKey,s=t.id,l=t.permissions,s&&l){e.next=9;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 9:if(l.can_upload){e.next=12;break}return o(Object(De.b)(),this.errorCode),e.abrupt("return");case 12:return this.successCallback=r,this.errorCallback=o,e.prev=14,e.next=17,this.xhr.delete({url:this.getMetadataUrl(s,i,a),id:Object($e.b)(s)});case 17:this.isDestroyed()||(u=this.getCache(),c=this.getMetadataCacheKey(s),(f=u.get(c)).editors.splice(f.editors.findIndex((function(e){return e.template.scope===i&&e.template.templateKey===a})),1),this.successHandler()),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(14),this.errorHandler(e.t0);case 23:case"end":return e.stop()}}),e,this,[[14,20]])}))),function(e,t,n,r){return i.apply(this,arguments)})}])&&wr(n.prototype,r),o&&wr(n,o),t}(Ae.a);function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e,t){return(Tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jr=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?Ar(e):t}(this,(e=Pr(t)).call.apply(e,[this].concat(o))),Ir(Ar(n),"successHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.successCallback){var t=e.entries.map((function(e){var t;return"group"===e.type?t=e:(t=e).email=t.login,{id:e.id,name:e.name,item:t}}));n.successCallback(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){Ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{entries:t}))}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}},{key:"getFileCollaborators",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.S;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:r})}}])&&_r(n.prototype,r),o&&_r(n,o),t}(jn);function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rr(e){return(Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mr(e,t){return(Mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?Nr(e):t}(this,(e=Rr(t)).call.apply(e,[this].concat(o))),Fr(Nr(n),"getCollaborations",(function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.S;n.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:o})})),Fr(Nr(n),"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overridden")}}])&&Lr(n.prototype,r),o&&Lr(n,o),t}(jn);function Br(e){return(Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vr(e){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wr(e,t){return(Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zr(this,Vr(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file ID!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborations")}}])&&Hr(n.prototype,r),o&&Hr(n,o),t}(Ur);function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return!t||"object"!==Gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yr(e){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(e,t){return(Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xr(this,Yr(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing folder ID!");return"".concat(this.getBaseApiUrl(),"/folders/").concat(e,"/collaborations")}}])&&Kr(n.prototype,r),o&&Kr(n,o),t}(Ur);function Qr(e){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function no(e){return(no=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oo(e,t){return(oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ao=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Qr(t)&&"function"!=typeof t?ro(e):t}(this,(e=no(t)).call.apply(e,[this].concat(o))),io(ro(n),"addCollaboration",(function(e,t,r,o){var i=e.id;n.post({id:i,data:{data:eo({item:e},t)},errorCallback:o,successCallback:r,url:n.getUrl()})})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/collaborations")}}])&&to(n.prototype,r),o&&to(n,o),t}(O.a),so=n(5),lo=n(31);function uo(){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?e.concat(t.entries):e}),[]).sort((function(e,t){return Date.parse(e.created_at)-Date.parse(t.created_at)}))}var co=n(109),fo=n.n(co);function po(e){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bo(e,t){return!t||"object"!==po(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mo(e){return(mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yo(e,t){return(yo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bo(this,mo(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}},{key:"getUrlForId",value:function(e){return"".concat(this.getUrl(),"/").concat(e)}},{key:"createAnnotation",value:function(e,t,n,r,o,i){this.errorCode=y.gb;try{this.checkApiCallValidity(y.Be,r,e)}catch(e){return void i(e,this.errorCode)}var a={description:{type:"reply"},file_version:{id:t,type:"file_version"},status:"open",type:"annotation"};this.post({id:e,data:{data:fo()(a,n)},errorCallback:i,successCallback:o,url:this.getUrl()})}},{key:"updateAnnotation",value:function(e,t,n,r,o,i){this.errorCode=y.vb;try{this.checkApiCallValidity(y.Ee,n,e)}catch(e){return void i(e,this.errorCode)}var a={data:{description:{message:r}}};this.put({id:e,data:a,errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}},{key:"deleteAnnotation",value:function(e,t,n,r,o){this.errorCode=y.nb;try{this.checkApiCallValidity(y.Ce,n,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}},{key:"getAnnotation",value:function(e,t,n,r,o){this.errorCode=y.zb;try{this.checkApiCallValidity(y.Je,n,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}},{key:"getAnnotations",value:function(e,t,n,r,o,i,a){this.errorCode=y.Ab;try{this.checkApiCallValidity(y.Je,n,e)}catch(e){return void o(e,this.errorCode)}this.markerGet({id:e,errorCallback:o,limit:i,requestData:{file_id:e,file_version_id:t},shouldFetchAll:a,successCallback:r})}}])&&ho(n.prototype,r),o&&ho(n,o),t}(jn);function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eo(e){return(Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function So(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oo(e,t){return(Oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Co=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==go(t)&&"function"!=typeof t?So(e):t}(this,(e=Eo(t)).call.apply(e,[this].concat(o))),ko(So(n),"permissions",{}),ko(So(n),"mapAppActivityItem",(function(e){var t=e.activity_template,r=e.app,o=e.created_by,i=e.id,a=e.occurred_at,s=e.rendered_text,l=e.type;return{activity_template:t,app:r,created_at:a,created_by:o,id:i,permissions:{can_delete:n.permissions.can_delete},rendered_text:s,type:l}})),ko(So(n),"successHandler",(function(e){var t=e.entries,r=void 0===t?[]:t;if(!n.isDestroyed()&&"function"==typeof n.successCallback){var o=r.map(n.mapAppActivityItem);n.successCallback({entries:o,total_count:o.length})}})),ko(So(n),"errorHandler",(function(e){if(!n.isDestroyed()||"function"==typeof n.errorCallback){var t=e.response;t.status===y.Wd?n.successHandler({entries:[],total_count:0}):n.errorCallback(e,t.status)}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/app_activities")}},{key:"getDeleteUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getUrl(),"/").concat(e)}},{key:"getAppActivity",value:function(e,t,n,r){var o={item_id:e,item_type:"file",fields:je.a.toString()};this.permissions=t,this.markerGet({id:e,successCallback:n,errorCallback:r,requestData:o})}},{key:"deleteAppActivity",value:function(e){var t=e.id,n=e.appActivityId,r=e.successCallback,o=e.errorCallback;this.errorCode=y.ob,this.delete({id:t,url:this.getDeleteUrl(n),successCallback:r,errorCallback:o})}}])&&wo(n.prototype,r),o&&wo(n,o),t}(jn);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _o(e){return function(e){if(Array.isArray(e))return e}(e)||Ao(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Po(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Ao(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ao(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function To(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach((function(t){Fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Do(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ro(e,t,n){return(Ro="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=No(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function No(e){return(No=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mo(e,t){return(Mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo=y.Cf,Bo="task",Ho=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?Lo(e):t}(this,No(t).call(this,e)),Fo(Lo(n),"updateAnnotation",(function(e,t,r,o,i,a){if(!e.id)throw Object(De.a)();n.annotationsAPI=new vo(n.options),n.file=e,n.errorCallback=a,n.updateFeedItem({message:r,isPending:!0},t),n.annotationsAPI.updateAnnotation(n.file.id,t,o,r,(function(e){n.updateFeedItem(jo({},e,{isPending:!1}),t),n.isDestroyed()||i(e)}),(function(e,r){n.updateCommentErrorCallback(e,r,t)}))})),Fo(Lo(n),"updateCommentErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(lo.a.commentUpdateErrorMessage),r),n.feedErrorCallback(!0,e,t)})),Fo(Lo(n),"deleteAnnotation",(function(e,t,r,o,i){if(n.annotationsAPI=new vo(n.options),!e.id)throw Object(De.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.annotationsAPI.deleteAnnotation(n.file.id,t,r,n.deleteFeedItem.bind(Lo(n),t,o),(function(e,r){n.deleteCommentErrorCallback(e,r,t)}))})),Fo(Lo(n),"updateTaskCollaborator",(function(e,t,r,o,i,a){if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=a,n.updateFeedItem({isPending:!0},t);var s=new an(n.options);n.taskCollaboratorsAPI.push(s);var l={id:r,status:o},u=function(e,r){var i;switch(o){case y.zf:i=lo.a.taskApproveErrorMessage;break;case y.Af:i=lo.a.taskCompleteErrorMessage;break;case y.Df:i=lo.a.taskRejectErrorMessage;break;default:i=lo.a.taskCompleteErrorMessage}n.updateFeedItem(n.createFeedError(i,lo.a.taskActionErrorTitle),t),n.feedErrorCallback(!0,e,r)};s.updateTaskCollaborator({file:e,taskCollaborator:l,successCallback:function(r){n.updateTaskCollaboratorSuccessCallback(t,e,r,i,u)},errorCallback:u})})),Fo(Lo(n),"updateTaskCollaboratorSuccessCallback",(function(e,t,r,o,i){n.tasksNewAPI=new Xt(n.options),n.tasksNewAPI.getTask({id:e,file:t,successCallback:function(t){n.updateFeedItem(jo({},t,{isPending:!1}),e),o(r)},errorCallback:i})})),Fo(Lo(n),"updateTaskNew",function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var o,a,s,l,u,c,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=f.length>2&&void 0!==f[2]?f[2]:i.a,a=f.length>3&&void 0!==f[3]?f[3]:i.a,t.id){e.next=4;break}throw Object(De.a)();case 4:return n.file=t,n.errorCallback=a,n.tasksNewAPI=new Xt(n.options),n.updateFeedItem({isPending:!0},r.id),e.prev=8,s=r.addedAssignees.filter((function(e){return e.item&&"group"===e.item.type})).map((function(e){return e.id})).map((function(e){return new nr(n.options).getGroupCount({file:t,group:{id:e}})})),e.next=12,Promise.all(s);case 12:if(l=e.sent,u=l.some((function(e){return e.total_count>y.yf})),c={code:y.Tb,type:"warning"},!u){e.next=18;break}return n.feedErrorCallback(!1,c,y.Tb),e.abrupt("return");case 18:return e.next=20,new Promise((function(e,o){n.tasksNewAPI.updateTaskWithDeps({file:t,task:r,successCallback:e,errorCallback:o})}));case 20:return e.next=22,new Promise((function(e,o){n.tasksNewAPI.getTask({file:t,id:r.id,successCallback:function(t){n.updateFeedItem(jo({},t,{isPending:!1}),r.id),e()},errorCallback:function(e){n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e,y.ic),o()}})}));case 22:n.isDestroyed()||o(),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(8),n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e.t0,y.ic);case 29:case"end":return e.stop()}}),e,null,[[8,25]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){To(i,r,o,a,s,"next",e)}function s(e){To(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}()),Fo(Lo(n),"deleteComment",(function(e,t,r,o,i){if(n.commentsAPI=new Pt(n.options),!e.id)throw Object(De.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:n.deleteFeedItem.bind(Lo(n),t,o),errorCallback:function(e,r){n.deleteCommentErrorCallback(e,r,t)}})})),Fo(Lo(n),"deleteCommentErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(lo.a.commentDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),Fo(Lo(n),"createTaskNew",(function(e,t,r,o,i,a,s,l,u){if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=u;var c,f=hr()("task_");a&&(c=new Date(a).toISOString());var d={created_by:{type:"task_collaborator",target:t,id:hr()(),role:"CREATOR",status:Uo},completion_rule:s,created_at:(new Date).toISOString(),due_at:c,id:f,description:r,type:Bo,assigned_to:{entries:o.map((function(e){return{id:hr()(),target:jo({},e,{avatar_url:"",type:"user"}),status:Uo,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}})),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:hr()(),type:"task_link",target:jo({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:y.Cf},p={description:r,due_at:c,task_type:i,completion_rule:s},h=o.filter((function(e){return"group"===(e.item&&e.item.type)})).map((function(e){return e.id})).map((function(t){return new nr(n.options).getGroupCount({file:e,group:{id:t}})}));Promise.all(h).then((function(r){var i=r.some((function(e){return e.total_count>y.yf})),a={code:y.Tb,type:"warning"};i?n.feedErrorCallback(!1,a,y.Tb):(n.tasksNewAPI=new Xt(n.options),n.tasksNewAPI.createTaskWithDeps({file:e,task:p,assignees:o,successCallback:function(e){n.addPendingItem(n.file.id,t,d),n.updateFeedItem(jo({},e,{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),f),l(e)},errorCallback:function(e,t){n.feedErrorCallback(!1,e,t)}}))})).catch((function(e){n.feedErrorCallback(!1,e,y.kb)}))})),Fo(Lo(n),"deleteTaskNew",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.a;if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=o,n.tasksNewAPI=new Xt(n.options),n.updateFeedItem({isPending:!0},t.id),n.tasksNewAPI.deleteTask({file:e,task:t,successCallback:n.deleteFeedItem.bind(Lo(n),t.id,r),errorCallback:function(e,r){n.updateFeedItem(n.createFeedError(lo.a.taskDeleteErrorMessage),t.id),n.feedErrorCallback(!0,e,r)}})})),Fo(Lo(n),"deleteFeedItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,r=n.getCachedItems(n.file.id);if(r){var o=r.items.filter((function(t){return t.id!==e}));n.setCachedItems(n.file.id,o),n.isDestroyed()||t(e)}})),Fo(Lo(n),"feedErrorCallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;e&&n.errors.push(jo({},t,{code:r})),!n.isDestroyed()&&n.errorCallback&&n.errorCallback(t,r,Fo({error:t},y.ce,e)),console.error(t)})),Fo(Lo(n),"addPendingItem",(function(e,t,r){if(!t)throw Object(De.c)();var o=(new Date).toISOString(),i=jo({created_at:o,created_by:t,modified_at:o,isPending:!0},r),a=n.getCachedItems(n.file.id),s=a?a.items:[],l=[].concat(Po(s),[i]);return n.setCachedItems(e,l),i})),Fo(Lo(n),"createCommentSuccessCallback",(function(e,t,r){var o=e.message,i=void 0===o?"":o,a=e.tagged_message,s=void 0===a?"":a;e.tagged_message=s||i,n.updateFeedItem(jo({},e,{isPending:!1}),t),n.isDestroyed()||r(e)})),Fo(Lo(n),"createCommentErrorCallback",(function(e,t,r){var o=e.status===y.Sd?lo.a.commentCreateConflictMessage:lo.a.commentCreateErrorMessage;n.updateFeedItem(n.createFeedError(o),r),n.feedErrorCallback(!1,e,t)})),Fo(Lo(n),"updateFeedItem",(function(e,t){if(!n.file.id)throw Object(De.a)();var r=n.getCachedItems(n.file.id);if(r){var o=r.items.map((function(n){return n.id===t?jo({},n,{},e):n}));return n.setCachedItems(n.file.id,o),o}return null})),Fo(Lo(n),"createComment",(function(e,t,r,o,i,a){var s=hr()("comment_"),l={id:s,tagged_message:r,type:"comment"};if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=a,n.addPendingItem(n.file.id,t,l);var u={};o?u.taggedMessage=r:u.message=r,n.commentsAPI=new Pt(n.options),n.commentsAPI.createComment(jo({file:e},u,{successCallback:function(e){n.createCommentSuccessCallback(e,s,i)},errorCallback:function(e,t){n.createCommentErrorCallback(e,t,s)}}))})),Fo(Lo(n),"updateComment",(function(e,t,r,o,i,a,s){var l={tagged_message:r};if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=s,n.updateFeedItem(jo({},l,{isPending:!0}),t);var u={};o?u.tagged_message=r:u.message=r,n.commentsAPI=new Pt(n.options),n.commentsAPI.updateComment(jo({file:e,commentId:t,permissions:i},u,{successCallback:function(e){n.updateFeedItem(jo({},u,{isPending:!1}),t),n.isDestroyed()||a(e)},errorCallback:function(e,r){n.updateCommentErrorCallback(e,r,t)}}))})),Fo(Lo(n),"deleteAppActivity",(function(e,t,r,o){var i=e.id;if(!i)throw Object(De.a)();n.appActivityAPI=new Co(n.options),n.file=e,n.errorCallback=o,n.updateFeedItem({isPending:!0},t),n.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:n.deleteFeedItem.bind(Lo(n),t,r),errorCallback:function(e,r){n.deleteAppActivityErrorCallback(e,r,t)}})})),Fo(Lo(n),"deleteAppActivityErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(lo.a.appActivityDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),n.taskCollaboratorsAPI=[],n.taskLinksAPI=[],n.errors=[],n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mo(e,t)}(t,e),n=t,(r=[{key:"addAnnotation",value:function(e,t,n,r,o){if(!e.id)throw Object(De.a)();if(this.file=e,o){var i=jo({},n,{created_by:t,id:r,type:"annotation"});this.addPendingItem(this.file.id,t,i)}else this.updateFeedItem(jo({},n,{isPending:!1}),r)}},{key:"getCacheKey",value:function(e){return"".concat(y.Gf).concat(e)}},{key:"getCachedItems",value:function(e){var t=this.getCache(),n=this.getCacheKey(e);return t.get(n)}},{key:"setCachedItems",value:function(e,t){var n=this.getCache(),r=this.getCacheKey(e);n.set(r,{errors:this.errors,items:t})}},{key:"feedItems",value:function(e){function t(t,n,r,o,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,n,r,o){var i=this,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=a.shouldShowAnnotations,l=void 0!==s&&s,u=a.shouldShowAppActivity,c=void 0!==u&&u,f=e.id,d=e.permissions,p=void 0===d?{}:d,h=this.getCachedItems(f);if(h){var b=h.errors,m=h.items;if(b.length?r(m,b):n(m),!t)return}this.file=e,this.errors=[],this.errorCallback=o;var y=l?this.fetchAnnotations(p):Promise.resolve(),v=this.fetchVersions(),g=this.fetchCurrentVersion(),w=this.fetchComments(p),E=this.fetchTasksNew(),S=c?this.fetchAppActivity(p):Promise.resolve();Promise.all([v,g,w,E,S,y]).then((function(e){var t=_o(e),o=t[0],a=t[1],s=t.slice(2),l=i.versionsAPI.addCurrentVersion(a,o,i.file),u=uo.apply(void 0,[l].concat(Po(s)));i.isDestroyed()||(i.setCachedItems(f,u),i.errors.length?r(u,i.errors):n(u))}))}))},{key:"fetchAnnotations",value:function(e){var t=this;return this.annotationsAPI=new vo(this.options),new Promise((function(n){t.annotationsAPI.getAnnotations(t.file.id,void 0,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchComments",value:function(e){var t=this;return this.commentsAPI=new Pt(this.options),new Promise((function(n){t.commentsAPI.getComments(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchVersions",value:function(){var e=this;return this.versionsAPI=new gt(this.options),new Promise((function(t){e.versionsAPI.getVersions(e.file.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchCurrentVersion",value:function(){var e=this;return this.versionsAPI=new gt(this.options),new Promise((function(t){var n=e.file.file_version,r=void 0===n?{}:n;e.versionsAPI.getVersion(e.file.id,r.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchTasksNew",value:function(){var e=this;return this.tasksNewAPI=new Xt(this.options),new Promise((function(t){e.tasksNewAPI.getTasksForFile({file:{id:e.file.id},successCallback:t,errorCallback:function(n,r){return e.fetchFeedItemErrorCallback(t,n,r)}})}))}},{key:"fetchFeedItemErrorCallback",value:function(e,t,n){var r=t.status,o=Object(De.d)(r);this.feedErrorCallback(o,t,n),e()}},{key:"createTaskCollaboratorsforGroup",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(o,i){var a=new an(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaboratorsforGroup({file:e,task:t,group:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(o,i){var a=new an(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaborator({file:e,task:t,user:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"deleteTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file.id=e.id,new Promise((function(o,i){var a=new an(r.options);r.taskCollaboratorsAPI.push(a),a.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:n.id},successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskLink",value:function(e,t){var n=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(r,o){var i=new bn(n.options);n.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:o})}))}},{key:"createFeedError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:so.a.errorOccured;return{error:{message:e,title:t}}}},{key:"destroyTaskCollaborators",value:function(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((function(e){return e.destroy()})),this.taskCollaboratorsAPI=[])}},{key:"destroyTaskLinks",value:function(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((function(e){return e.destroy()})),this.taskLinksAPI=[])}},{key:"fetchAppActivity",value:function(e){var t=this;return this.appActivityAPI=new Co(this.options),new Promise((function(n){t.appActivityAPI.getAppActivity(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"destroy",value:function(){Ro(No(t.prototype),"destroy",this).call(this),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}}])&&Do(n.prototype,r),o&&Do(n,o),t}(O.a);function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wo(e,t){return!t||"object"!==zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qo(e){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Go(e,t){return(Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ko=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Wo(this,qo(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Go(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing app integration id!");return"".concat(this.getBaseApiUrl(),"/app_integrations/").concat(e)}},{key:"execute",value:function(e,t,n,r){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode=y.wb;var o="".concat(this.getUrl(e),"/execute"),i={data:{item:{id:t,type:y.Jf}}};this.post({id:t,url:o,data:i,successCallback:n,errorCallback:r})}}])&&Vo(n.prototype,r),o&&Vo(n,o),t}(O.a);function Xo(e){return(Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yo(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $o(e,t){return!t||"object"!==Xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qo(e){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zo(e,t){return(Zo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ei=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$o(this,Qo(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/open_with_integrations")}},{key:"getOpenWithIntegrations",value:function(e,t,n){var r=this;this.errorCode=y.Ib,this.get({id:e,successCallback:function(e){var n=r.formatOpenWithData(e),o=r.consolidateBoxEditIntegrations(n);t(o)},errorCallback:n})}},{key:"consolidateBoxEditIntegrations",value:function(e){var t=Yo(e);return e.some((function(e){return e.appIntegrationId===y.f}))&&(t=e.filter((function(e){return e.appIntegrationId!==y.g}))),t}},{key:"formatOpenWithData",value:function(e){var t=e.items,n=e.default_app_integration;return t.map((function(e){var t=e.app_integration,r=e.disabled_reasons,o=e.display_name,i=e.display_description,a=e.display_order,s=e.is_disabled,l=e.should_show_consent_popup,u=t.id,c=t.type;return{appIntegrationId:u,displayDescription:i,disabledReasons:r||[],displayOrder:a,isDefault:!!n&&u===n.id,isDisabled:s,displayName:o,requiresConsent:l,type:c}})).sort((function(e,t){return e.displayOrder-t.displayOrder}))}}])&&Jo(n.prototype,r),o&&Jo(n,o),t}(O.a);function ti(e){return(ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ii(e,t){return(ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ai=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==ti(t)&&"function"!=typeof t?oi(e):t}(this,(e=ri(t)).call.apply(e,[this].concat(s))),r=oi(n),i=function(e){var t=e.data;n.getCache().set(n.key,t),n.finish()},(o="queryMetadataSuccessHandler")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ii(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(y.k).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_queries/execute_read")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache().get(this.key);this.successCallback(e)}}},{key:"queryMetadataRequest",value:function(e){this.isDestroyed()||(this.errorCode=y.Xb,this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}},{key:"queryMetadata",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){var o=r.context,i=void 0===o?{}:o;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=n,r.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}}}])&&ni(n.prototype,r),o&&ni(n,o),t}(O.a);function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var li={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},ui=[{key:"userAgent",subString:li.EDGE,identity:li.EDGE},{key:"userAgent",subString:li.CHROME,identity:li.CHROME},{key:"userAgent",subString:"criOS",identity:li.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:li.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:li.FIREFOX,identity:li.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],ci=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:li.MAC,identity:li.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function fi(e,t){for(var n,r=null,o=null,i="",a=0,s=t.length;a<s;a+=1)if(n=e[t[a].key],i=t[a].versionSearch||t[a].identity,n&&-1!==n.indexOf(t[a].subString)){r=t[a].identity,o=t[a].device;break}return{identity:r,device:o,versionSearchString:i}}function di(e,t){var n=e.indexOf(t);if(-1===n)return"";var r=e.substring(n+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return r&&r.length?r[0]:""}var pi=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=window.navigator,n=fi(t,ui),r=fi(t,ci);this.browser=n.identity||"unknown",this.version=di(t.userAgent,n.versionSearchString)||di(t.appVersion,n.versionSearchString)||"unknown",this.OS=r.identity||"unknown",this.device=r.device||"unknown"}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.browser}},{key:"getVersion",value:function(){return this.version}},{key:"isMinBrowser",value:function(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}},{key:"isSafari",value:function(){return this.browser===li.SAFARI}},{key:"isFirefox",value:function(){return this.browser===li.FIREFOX}},{key:"isChrome",value:function(){return this.browser===li.CHROME}},{key:"isIE",value:function(){return this.browser===li.IE}},{key:"isEdge",value:function(){return this.browser===li.EDGE}},{key:"isIEAndSpecificBrowserPluginSupported",value:function(e){return this.isIE()&&function(e){var t=e||"htmlfile",n=!1;try{"ActiveXObject"in window&&(n=!!new(0,window.ActiveXObject)(t))}catch(e){n=!1}return n}(e)}}])&&si(t.prototype,n),r&&si(t,r),e}());var hi=function(e){var t,n=[],r=0;return new Promise((function(o,i){e.forEach((function(a,s){a.then(o).catch(function(o){return function(a){n[o]=a,(r+=1)===e.length&&(t=new Error("no promises resolved"),i(t))}}(s))}))}))},bi={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vi=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yi(this,"buildNextRequestID",(function(){return"".concat(bi.REQUEST_ID_PRE).concat(n.window.performance.now())})),yi(this,"buildDetailsObj",(function(e,t,r){var o=r.toString(),i={data:void 0,operation:e,properties:{application:n.appName,timeout:o},req_id:n.buildNextRequestID()};if(e!==bi.OPERATION_STATUS){if(!t)throw new TypeError("Data cannot be undefined for ".concat(e));i.data=t}return i})),this.appName=t,this.window=window}var t,n,r;return t=e,(n=[{key:"sendCommand",value:function(e,t,n){return Promise.resolve("TODO")}},{key:"sendRequest",value:function(e,t,n){return Promise.resolve("TODO")}},{key:"getComServerStatus",value:function(e,t){return Promise.resolve("TODO")}},{key:"destroy",value:function(){}}])&&mi(t.prototype,n),r&&mi(t,r),e}();function gi(e){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(e){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Si(e,t){return(Si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ki=2,Ci=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==gi(t)&&"function"!=typeof t?Ei(e):t}(this,wi(t).call(this,e)),Oi(Ei(r),"executeOperation",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=r.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:bi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),n);r.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),r.executeActiveXEvent({detail:s})}))})),Oi(Ei(r),"repairActiveXConnection",(function(e){pi.isIEAndSpecificBrowserPluginSupported(bi.BOX_TOOLS_PLUGIN_NAME)&&(r.retryAttempt>=ki||(r.retryAttempt+=1,setTimeout((function(){r.executeActiveXEvent(e)}),100)))})),Oi(Ei(r),"executeActiveXEvent",(function(e){var t=r.createActiveXObjectJSRef(),n="ExecuteSync"in t;try{r.isSynchronous&&n?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){r.repairActiveXConnection(e)}})),Oi(Ei(r),"createActiveXObjectJSRef",(function(){return new(0,r.window.ActiveXObject)(bi.BOX_TOOLS_PLUGIN_NAME)})),Oi(Ei(r),"setupActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached||(r.document.addEventListener(bi.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!0)})),Oi(Ei(r),"tearDownActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached&&(r.document.removeEventListener(bi.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!1)})),Oi(Ei(r),"appExtensionEventResponseHandler",(function(e){r.retryAttempt>0&&(r.retryAttempt=0);var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(r.reqIdToPromiseMap.has(t.req_id)){var n=r.reqIdToPromiseMap.get(t.req_id);if(n){clearTimeout(n.rejectTimeout),r.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;n.resolve(o)}}})),Oi(Ei(r),"getComServerStatus",(function(e,t){return r.executeOperation(bi.OPERATION_STATUS,null,e,t)})),Oi(Ei(r),"sendRequest",(function(e,t,n){return r.executeOperation(bi.OPERATION_REQUEST,e,t,n)})),Oi(Ei(r),"sendCommand",(function(e,t,n){return r.executeOperation(bi.OPERATION_COMMAND,e,t,n)})),Oi(Ei(r),"destroy",(function(){r.tearDownActiveXCommunication()})),r.isSynchronous=n,r.channelName=bi.ACTIVEX_CHANNEL_NAME,r.reqIdToPromiseMap=new Map,r.isActiveXExtensionListenerAttached=!1,r.retryAttempt=0,r.document=document,r.window=window,r.setupActiveXCommunication(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Si(e,t)}(t,e),t}(vi),xi=n(101);function _i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=window.document,a=new Date,s=[];void 0===n&&(n=a.getTime()+5184e6),a.setTime(n),s.push("".concat(e,"=").concat(encodeURIComponent(t))),0!==n&&s.push("; expires=".concat(a.toUTCString())),s.push("; path=".concat(r)),o&&s.push("; domain=".concat(o)),s.push("; secure"),i.cookie=s.join("")}function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ai(e){return(Ai=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ii(e,t){return(Ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Di="GET",Li="POST",Ri=31536e6,Ni=17223,Mi=17224,Fi="Content-Type",Ui="text/plain; charset=UTF-8",Bi="notrunning",Hi=new xi.a;function zi(){return Hi.getItem("comUseFallback")?{primary:Mi,fallback:Ni}:{primary:Ni,fallback:Mi}}var Vi=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==Pi(t)&&"function"!=typeof t?Ti(e):t}(this,Ai(t).call(this,e)),ji(Ti(o),"createCORSRequest",(function(e,t){var n;try{return(n=new(0,o.window.XMLHttpRequest)).open(e,t,!0),n}catch(n){if(o.retryCounter<3)return o.retryCounter+=1,o.createCORSRequest(e,t);throw new Error("could not create xhr")}})),ji(Ti(o),"getComServerStatusInstallationPromise",(function(e){var t,n,r=new Promise((function(e,r){t=e,n=r})),i=function(e,n){o.currentPort=e,e===Ni?Hi.removeItem("comUseFallback"):Hi.setItem("comUseFallback",1),o.comServerInstallationPromiseRejected=!1,t(n)},a=zi(),s=a.primary,l=a.fallback;return o.checkInstallStatus(s,e).then(i.bind(Ti(o),s)).catch((function(t){if(t===Bi)return o.comServerInstallationPromiseRejected=!0,void n();o.checkInstallStatus(l,e).then(i.bind(Ti(o),l)).catch((function(){o.comServerInstallationPromiseRejected=!0,n()}))})),r})),ji(Ti(o),"sendComServerRequest",(function(e,t,n,r){return new Promise((function(i,a){try{var s=o.createCORSRequest(e,t);s.setRequestHeader(Fi,Ui),s.onload=function(){i(s)},s.onerror=function(){a(s)},r>0&&(s.timeout=r,s.ontimeout=function(){a(s)}),setTimeout((function(){s.send(n)}),0)}catch(e){a()}}))})),ji(Ti(o),"checkInstallStatus",(function(e,t){return o.sendComServerRequest(Di,"".concat(o.url).concat(e,"/status"),null,t).then((function(e){var t=JSON.parse(e.responseText);if(t.running)return t;throw o.comServerInstallationPromiseRejected=!0,new Error(Bi)}))})),ji(Ti(o),"getComChannel",(function(e){return function(e){var t,n,r=window.document.cookie.split("; "),o=r.length;for(n=0;n<o;n+=1)if((t=r[n].split("="))[0]===e)return t[1]?decodeURIComponent(t[1]):"";return""}("".concat(e,"-bgp-id"))})),ji(Ti(o),"setComChannel",(function(e){var t=o.getComChannel(e)||o.generateId(),n="bgp-".concat(t),r=(new Date).getTime()+Ri;return _i("".concat(e,"-bgp-id"),t,r),_i("bgp-".concat(t),"generic",r),n})),ji(Ti(o),"getComServerStatus",(function(e){return!o.comServerInstallationPromise||o.comServerInstallationPromiseRejected?(o.comServerInstallationPromise=null,o.comServerInstallationPromise=o.getComServerStatusInstallationPromise(e),o.comServerInstallationPromise):o.comServerInstallationPromise})),ji(Ti(o),"sendRequest",(function(e,t,n){var r="".concat(o.url).concat(o.currentPort,"/application_request?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(n);return o.sendComServerRequest(Li,r,e,t).then((function(e){var t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error("Communication error: ".concat(t.message));return t}))})),ji(Ti(o),"sendCommand",(function(e,t,n){var r="".concat(o.url).concat(o.currentPort,"/application_command?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(n);return o.sendComServerRequest(Li,r,e,t).then((function(e){return JSON.parse(e.responseText)}))})),ji(Ti(o),"generateId",(function(){var e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(function(){return Math.floor((e+16*Math.random())%16).toString(16)}))})),o.url=n,o.comChannelName=o.setComChannel(e),o.channelName=r,o.comServerInstallationPromise=null,o.comServerInstallationPromiseRejected=!1,o.retryCounter=0,o.sendCount=0,o.currentPort=zi().primary,o.window=window,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ii(e,t)}(t,e),t}(vi);function Wi(e){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ki(e,t){return(Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yi="box_extension_input",Ji="box_extension_output",$i=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Wi(t)&&"function"!=typeof t?Gi(e):t}(this,qi(t).call(this,e)),Xi(Gi(n),"executeOperation",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=n.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:bi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);n.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),n.createAndDispatchAppExtensionEvent({detail:s})}))})),Xi(Gi(n),"setupSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached||(n.isAppExtensionListenerAttached=!0,n.document.addEventListener(Ji,n.appExtensionEventResponseHandler))})),Xi(Gi(n),"tearDownSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached&&(n.isAppExtensionListenerAttached=!1,n.document.removeEventListener(Ji,n.appExtensionEventResponseHandler))})),Xi(Gi(n),"appExtensionEventResponseHandler",(function(e){var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(n.reqIdToPromiseMap.has(t.req_id)){var r=n.reqIdToPromiseMap.get(t.req_id);if(r){clearTimeout(r.rejectTimeout),n.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;r.resolve(o)}}})),Xi(Gi(n),"createAndDispatchAppExtensionEvent",(function(e){var t=new(0,n.window.CustomEvent)(Yi,e);n.document.dispatchEvent(t)})),Xi(Gi(n),"getComServerStatus",(function(e,t){return n.executeOperation(bi.OPERATION_STATUS,null,e,t)})),Xi(Gi(n),"sendRequest",(function(e,t,r){return n.executeOperation(bi.OPERATION_REQUEST,e,t,r)})),Xi(Gi(n),"sendCommand",(function(e,t,r){return n.executeOperation(bi.OPERATION_COMMAND,e,t,r)})),Xi(Gi(n),"destroy",(function(){n.tearDownSafariExtensionCommunication()})),n.reqIdToPromiseMap=new Map,n.channelName=bi.SAFARI_CHANNEL_NAME,n.window=window,n.document=document,n.setupSafariExtensionCommunication(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ki(e,t)}(t,e),t}(vi);function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Zi,ea=55,ta="16.16299",na="17.17134",ra=5e3;function oa(e){var t=bi.BOX_UNSECURE_LOCAL_BASE_URL,n=bi.CREATED_STATUS,r=bi.HTTP_CHANNEL_NAME;return Zi.http_channel_status=n,new Vi(e,t,r)}function ia(e){var t=bi.CREATED_STATUS;return Zi.safari_channel_status=t,new $i(e)}function aa(e){var t=bi.CREATED_STATUS;return Zi.activex_channel_status=t,new Ci(e,!0)}function sa(){var e=li.EDGE;return pi.isMinBrowser(e,na)||pi.isMinBrowser(e,ta)&&pi.getVersion().startsWith("16.")}function la(){return pi.isEdge()&&!sa()}function ua(){var e=li.CHROME,t=li.FIREFOX;return pi.isMinBrowser(e,53)||pi.isMinBrowser(t,ea)||sa()}function ca(){return pi.isMinBrowser(li.SAFARI,10)}function fa(){return pi.isMinBrowser(li.IE,11)}function da(e){var t=bi.BOX_EDIT_NOT_SUPPORTED_ERROR,n=bi.BOX_EDIT_SAFARI_ERROR,r=bi.BOX_EDIT_UNINSTALLED_ERROR,o=bi.BOX_EDIT_UPGRADE_BROWSER_ERROR,i=t;return ua()?i=r:fa()?i=r:pi.isFirefox()||pi.isChrome()||pi.isSafari()&&!ca()||la()?i=o:ca()&&(i=n),Zi.error_message=i,e(new Error(i))}function pa(e){var t=ra;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function ha(e){var t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}var ba=function(){function e(t){var n,r,o,i,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=!1,(r="isInitialized")in(n=this)?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.channels=[],this.isInitialized=!0,i=pi.getName(),a=pi.getVersion(),s=bi.UNCREATED_STATUS,Zi={box_tools_version:null,browser_name:i,browser_version:a,error_message:null,installation_type:null,http_channel_status:s,https_channel_status:s,activex_channel_status:s,safari_channel_status:s},ua()?this.channels.push(oa(t)):ca()?this.channels.push(ia(t)):fa()&&pi.isIEAndSpecificBrowserPluginSupported(bi.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){var t=bi.CREATED_STATUS;return Zi.activex_channel_status=t,new Ci(e,!1)}(t)):pi.isFirefox()&&!pi.isMinBrowser(li.FIREFOX,ea)||la()||(this.channels=this.channels.concat([oa(t),ia(t),aa(t)]))}var t,n,r;return t=e,(n=[{key:"getComServerStatus",value:function(e){var t=this,n=bi.ACTIVE_STATUS,r=pa(e),o=ha(r),i=la();return new Promise((function(e,a){return i?da.call(null,a):t.channels.length?hi(t.channels.map((function(i){return i.getComServerStatus(r,o).then((function(r){return t.activeChannel=i,r&&(Zi.installation_type=r.installation_type,Zi.box_tools_version=r.version),Zi["".concat(i.channelName,"_status")]=n,e(r)}))}))).catch(da.bind(null,a)):da.call(null,a)}))}},{key:"sendRequest",value:function(e,t,n){var r=this,o=pa(n),i=ha(o);return this.activeChannel?this.activeChannel.sendRequest(e,o,i):this.getComServerStatus().then((function(){return r.activeChannel.sendRequest(e,o,i)}))}},{key:"sendCommand",value:function(e,t){var n=this,r=pa(t),o=ha(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,o):this.getComServerStatus().then((function(){return n.activeChannel.sendCommand(e,r,o)}))}}])&&Qi(t.prototype,n),r&&Qi(t,r),e}();function ma(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ya(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function va(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ya(i,r,o,a,s,"next",e)}function s(e){ya(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var wa;var Ea=null,Sa=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ea instanceof e||(Ea=this),this.extensionRequestQueue=new Map,Ea}var t,n,r,o;return t=e,(n=[{key:"queueGetNativeAppNameFromLocal",value:function(e){if(this.extensionRequestQueue.has(e)){var t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}var n={},r=new Promise((function(e,t){n.resolve=e,n.reject=t}));return n.promise=r,this.extensionRequestQueue.set(e,n),r}},{key:"checkBoxEditAvailability",value:function(){return this.getBoxEditAvailability()}},{key:"getBoxEditAvailability",value:function(){return this.client=new ba(bi.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}},{key:"canOpenWithBoxEdit",value:(o=va(regeneratorRuntime.mark((function e(t){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(){var e=va(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.getAppForExtension(t);case 3:return n=e.sent,r=[t,n],e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(0),i=[t,""],e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()));case 2:return n=e.sent,r=new Map,n.forEach((function(e){return r.set.apply(r,ma(e))})),e.abrupt("return",Promise.resolve(r));case 6:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"openFile",value:function(e,t){var n=function(e,t,n,r){return JSON.stringify({auth_code:n,auth_token:t,browser_type:pi.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:r})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(n,5e3)}},{key:"getAppForExtension",value:function(e){var t=this;try{if(function(e){var t=bi.EXTENSION_BLACKLIST,n=e.toUpperCase();return"."===n.charAt(0)&&(n=n.substr(1)),n in t}(e))throw new Error("blacklisted");var n=this.queueGetNativeAppNameFromLocal(e);return wa||(wa=setTimeout((function(){t.processExtensionRequestQueue()}),100)),n}catch(e){return Promise.reject()}}},{key:"processExtensionRequestQueue",value:function(){var e=new Map,t=[];this.extensionRequestQueue.forEach((function(n,r){e.set(r,n),t.push(r)})),this.extensionRequestQueue.clear(),wa=null;var n=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(n).then((function(n){if(n&&n.default_application_name){var r=n.default_application_name;"[object Object]"===Object.prototype.toString.call(r)&&(r=[r]),r.forEach((function(t){var n=Object.keys(t)[0],r=decodeURIComponent(t[n]);if(r){var o=e.get(n);o&&(o.resolve(r),e.delete(n))}}))}t.forEach((function(t){var n=e.get(t);n&&n.reject()}))}))}}])&&ga(t.prototype,n),r&&ga(t,r),e}();function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){ka(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{apiHost:t.apiHost||y.L,uploadHost:t.uploadHost||y.O,cache:t.cache||new r.a,language:t.language})}var t,n,o;return t=e,(n=[{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),e&&(this.options.cache=new r.a)}},{key:"getCache",value:function(){return this.options.cache}},{key:"getAPI",value:function(e){var t;switch(e){case y.Kf:t=this.getFolderAPI();break;case y.Jf:t=this.getFileAPI();break;case y.Lf:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}},{key:"getFileAPI",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&this.destroy(),this.fileAPI=new Ae.a(this.options),this.fileAPI}},{key:"getWebLinkAPI",value:function(){return this.destroy(),this.weblinkAPI=new Te.a(this.options),this.weblinkAPI}},{key:"getPlainUploadAPI",value:function(){return this.destroy(),this.plainUploadAPI=new _e(this.options),this.plainUploadAPI}},{key:"getChunkedUploadAPI",value:function(){return this.destroy(),this.chunkedUploadAPI=new ye(this.options),this.chunkedUploadAPI}},{key:"getFolderAPI",value:function(){return this.destroy(),this.folderAPI=new Pe.a(this.options),this.folderAPI}},{key:"getSearchAPI",value:function(){return this.destroy(),this.searchAPI=new ze(this.options),this.searchAPI}},{key:"getRecentsAPI",value:function(){return this.destroy(),this.recentsAPI=new Je(this.options),this.recentsAPI}},{key:"getMetadataAPI",value:function(e){return e&&this.destroy(),this.metadataAPI=new kr(this.options),this.metadataAPI}},{key:"getVersionsAPI",value:function(e){return e&&this.destroy(),this.versionsAPI=new gt(this.options),this.versionsAPI}},{key:"getCommentsAPI",value:function(e){return e&&this.destroy(),this.commentsAPI=new Pt(this.options),this.commentsAPI}},{key:"getTasksNewAPI",value:function(e){return e&&this.destroy(),this.tasksNewAPI=new Xt(this.options),this.tasksNewAPI}},{key:"getTaskCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new an(this.options),this.taskCollaboratorsAPI}},{key:"getTaskLinksAPI",value:function(e){return e&&this.destroy(),this.taskLinksAPI=new bn(this.options),this.taskLinksAPI}},{key:"getFileAccessStatsAPI",value:function(e){return e&&this.destroy(),this.fileAccessStatsAPI=new En(this.options),this.fileAccessStatsAPI}},{key:"getFileCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new jr(this.options),this.fileCollaboratorsAPI}},{key:"getFileCollaborationsAPI",value:function(e){return e&&this.destroy(),this.fileCollaborationsAPI=new qr(this.options),this.fileCollaborationsAPI}},{key:"getFolderCollaborationsAPI",value:function(e){return e&&this.destroy(),this.folderCollaborationsAPI=new $r(this.options),this.folderCollaborationsAPI}},{key:"getCollaborationsAPI",value:function(e){return e&&this.destroy(),this.collaborationsAPI=new ao(this.options),this.collaborationsAPI}},{key:"getMarkerBasedGroupsAPI",value:function(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Hn(this.options),this.markerBasedGroupsAPI}},{key:"getMarkerBasedUsersAPI",value:function(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Jn(this.options),this.markerBasedUsersAPI}},{key:"getGroupsAPI",value:function(e){return e&&this.destroy(),this.groupsAPI=new nr(this.options),this.groupsAPI}},{key:"getUsersAPI",value:function(e){return e&&this.destroy(),this.usersAPI=new dr(this.options),this.usersAPI}},{key:"getFeedAPI",value:function(e){return e&&this.destroy(),this.feedItemsAPI=new Ho(this.options),this.feedItemsAPI}},{key:"getOpenWithAPI",value:function(e){return e&&this.destroy(),this.openWithAPI=new ei(this.options),this.openWithAPI}},{key:"getAppIntegrationsAPI",value:function(e){return e&&this.destroy(),this.appIntegrationsAPI=new Ko(this.options),this.appIntegrationsAPI}},{key:"getMetadataQueryAPI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.destroy(),this.metadataQueryAPI=new ai(this.options),this.metadataQueryAPI}},{key:"getBoxEditAPI",value:function(){return this.boxEditAPI=new Sa,this.boxEditAPI}},{key:"getAnnotationsAPI",value:function(e){return e&&this.destroy(),this.annotationsAPI=new vo(this.options),this.annotationsAPI}}])&&Ca(t.prototype,n),o&&Ca(t,o),e}();t.a=xa},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(12),s=n.n(a),l=n(48),u=n(3),c=n.n(u),f=n(334),d=n.n(f);n(657);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=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 b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t}(this,y(t).call(this,e)),w(v(n),"state",{shouldShowTopScrollShadow:!1,shouldShowBottomScrollShadow:!1}),w(v(n),"componentDidMount",(function(){var e=n.getScrollShadowState();n.setState(e),n.scrollRef&&(n.scrollRef.addEventListener("transitionend",n.throttledOnContentScroll),n.scrollRef&&n.observer.observe(n.scrollRef,{attributes:!0,childlist:!0,subtree:!0}))})),w(v(n),"onContentScroll",(function(){var e=n.getScrollShadowState();n.setState(e)})),w(v(n),"getScrollShadowState",(function(){var e=n.scrollRef||{},t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight,i={};return t>0&&t<r-o&&(i.shouldShowTopScrollShadow=!0,i.shouldShowBottomScrollShadow=!0),0===t&&(i.shouldShowTopScrollShadow=!1),t<r-o&&(i.shouldShowBottomScrollShadow=!0),t===r-o&&(i.shouldShowBottomScrollShadow=!1),i})),w(v(n),"scrollRef",null),w(v(n),"throttledOnContentScroll",d()(n.onContentScroll,100)),n.observer=new MutationObserver(n.throttledOnContentScroll),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.scrollRef&&this.scrollRef.removeEventListener("transitionend",this.throttledOnContentScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=void 0===o?"":o,s=t.scrollRefFn,l=t.shadowSize,u=b(t,["children","className","scrollRefFn","shadowSize"]),c=this.state,f=c.shouldShowTopScrollShadow,d=c.shouldShowBottomScrollShadow,p=i()("scroll-container",a,{"is-showing-top-shadow":f,"is-showing-bottom-shadow":d});return r.createElement("div",h({className:p},u),r.createElement("div",{className:i()("scroll-wrap-container","style--".concat(l)),onScroll:this.throttledOnContentScroll,ref:function(t){e.scrollRef=t,s(t)}},n))}}])&&m(n.prototype,o),a&&m(n,a),t}(r.Component);w(E,"defaultProps",{scrollRefFn:c.a,shadowSize:"cover"});var S=E,O=n(1);n(658);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){e.preventDefault(),e.stopPropagation()}var I=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?_(e):t}(this,x(t).call(this,e)),A(_(n),"setActiveItem",(function(e){n.setState({activeItemIndex:e}),-1===e&&n.setActiveItemID(null)})),A(_(n),"setActiveItemID",(function(e){var t=n.props.scrollBoundarySelector,r=e?document.getElementById(e):null,o={block:"nearest"};void 0!==t&&(o.boundary=document.querySelector(t)),n.setState({activeItemID:e},(function(){Object(l.e)(r,o)}))})),A(_(n),"haveChildrenChanged",(function(e){var t=n.props.children,o=r.Children.count(t);if(o!==r.Children.count(e))return!0;if(0===o)return!1;var i=r.Children.map(t,(function(e){return e.key})),a=r.Children.map(e,(function(e){return e.key}));return i.some((function(e,t){return e!==a[t]}))})),A(_(n),"resetActiveItem",(function(){n.setState({activeItemID:null,activeItemIndex:-1})})),A(_(n),"handleFocus",(function(){n.openDropdown()})),A(_(n),"handleDocumentClick",(function(e){var t=n.selectorDropdownRef.current;t&&e.target instanceof Node&&t.contains(e.target)||t===e.target||n.closeDropdown()})),A(_(n),"handleInput",(function(){n.openDropdown()})),A(_(n),"handleKeyDown",(function(e){var t=n.props,o=t.children,i=t.isAlwaysOpen,a=t.onEnter,s=n.state.activeItemIndex,l=r.Children.count(o);switch(e.key){case"ArrowDown":if(n.isDropdownOpen()){l&&T(e);var u=s===l-1?-1:s+1;n.setActiveItem(u)}else n.openDropdown();break;case"ArrowUp":if(n.isDropdownOpen()){l&&T(e);var c=-1===s?l-1:s-1;n.setActiveItem(c)}else n.openDropdown();break;case"Enter":-1!==s&&n.isDropdownOpen()?(T(e),n.selectItem(s,e)):a&&a(e);break;case"Tab":n.isDropdownOpen()&&(n.closeDropdown(),n.resetActiveItem());break;case"Escape":!i&&n.isDropdownOpen()&&(T(e),n.closeDropdown(),n.resetActiveItem());break;default:n.handleInput()}})),A(_(n),"isDropdownOpen",(function(){var e=n.props,t=e.children,o=e.isAlwaysOpen,i=n.state.shouldOpen;return r.Children.count(t)>0&&(!!o||i)})),A(_(n),"openDropdown",(function(){n.state.shouldOpen||(n.props.shouldSetActiveItemOnOpen&&n.setActiveItem(0),n.setState({shouldOpen:!0}),document.addEventListener("click",n.handleDocumentClick,!0))})),A(_(n),"closeDropdown",(function(){n.setState({shouldOpen:!1}),document.removeEventListener("click",n.handleDocumentClick,!0)})),A(_(n),"selectItem",(function(e,t){var r=n.props.onSelect;r&&r(e,t),n.closeDropdown()})),n.listboxID=s()("listbox"),n.state={activeItemID:null,activeItemIndex:-1,shouldOpen:!1},n.selectorDropdownRef=r.createRef(),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=e.shouldSetActiveItemOnOpen,n=e.children;this.haveChildrenChanged(n)&&(t?this.setActiveItem(0):this.resetActiveItem())}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"render",value:function(){var e=this.listboxID,t=this.selectItem,n=this.setActiveItem,o=this.setActiveItemID,a=this.closeDropdown,s=this.props,l=s.dividerIndex,u=s.overlayTitle,c=s.children,f=s.className,d=s.title,p=s.selector,h=s.shouldScroll,b=this.state,m=b.activeItemID,y=b.activeItemIndex,v=this.isDropdownOpen(),g={"aria-activedescendant":m,"aria-autocomplete":"list","aria-expanded":v,role:"combobox"};v&&(g["aria-owns"]=e);var w=r.createElement("ul",{className:i()("overlay",u?u.toLowerCase():""),id:e,role:"listbox"},u&&r.createElement("h5",{className:"SelectorDropdown-title"},u),r.Children.map(c,(function(e,i){var s={onClick:function(e){t(i,e)},onMouseDown:function(e){e.preventDefault()},onMouseEnter:function(){n(i)},closeDropdown:function(){a()},setActiveItemID:o};i===y&&(s.isActive=!0);var u=i===l;return r.createElement(r.Fragment,null,u&&r.createElement("hr",{className:"SelectorDropdown-divider"}),r.cloneElement(e,s))})));return(r.createElement("div",{className:i()("SelectorDropdown",f),onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onPaste:this.handleInput,ref:this.selectorDropdownRef},r.cloneElement(p,{inputProps:g}),v&&r.createElement("div",{className:"".concat(O.ze," is-visible")},d,h?r.createElement(S,null,w):w)))}}])&&C(n.prototype,o),a&&C(n,a),t}(r.Component);n.d(t,"a",(function(){return I}))},,function(e,t,n){"use strict";var r=n(0),o=n(207),i=n.n(o),a=n(4),s=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=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 c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(o))),b(p(n),"focusFirstElement",(function(){if(n.el){var e=i()(n.el);e.length>3?e[1].focus():n.trapEl&&n.trapEl.focus()}})),b(p(n),"focusLastElement",(function(){if(n.el){var e=i()(n.el);e.length>3?e[e.length-3].focus():n.trapEl&&n.trapEl.focus()}})),b(p(n),"handleElKeyDown",(function(e){var t=n.props.handleOverlayKeyDown;n.el===document.activeElement&&"Tab"===e.key&&(n.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)})),b(p(n),"handleTrapElKeyDown",(function(e){"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this;this.props.shouldDefaultFocus?setTimeout((function(){e.previousFocusEl=document.activeElement,e.focusFirstElement()}),0):setTimeout((function(){e.el&&e.el.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=this;setTimeout((function(){e.previousFocusEl&&e.previousFocusEl.focus()}),0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.getRef,a=(t.handleOverlayKeyDown,t.shouldDefaultFocus,t.shouldOutlineFocus),l=c(t,["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"]);return r.createElement("div",u({ref:function(t){e.el=t,i&&i(t)},className:s()(o,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},l),r.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:"0"}),n,r.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:"0"}),r.createElement("i",{ref:function(t){e.trapEl=t},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:"0"}))}}])&&f(n.prototype,o),a&&f(n,a),t}(r.Component);n.d(t,"a",(function(){return m}))},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n.n(o),a=n(4),s=n.n(a),l=n(88),u=n(119),c=n(110),f=n(17),d=Object(l.defineMessages)({checkboxTooltipIconInfoText:{id:"boxui.checkboxTooltip.iconInfoText",defaultMessage:"Info"}}),p=function(e){var t=e.tooltip;return r.createElement("div",{className:"checkbox-tooltip-wrapper"},r.createElement(f.c,{text:t},r.createElement("div",{className:"info-tooltip"},r.createElement(c.a,{height:16,title:r.createElement(u.a,d.checkboxTooltipIconInfoText),width:16}))))};n(551);function h(){return(h=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 b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var m=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.fieldLabel,l=e.hideLabel,u=e.id,c=e.isChecked,f=e.isDisabled,d=e.label,m=e.name,y=e.onChange,v=e.subsection,g=e.tooltip,w=b(e,["className","description","fieldLabel","hideLabel","id","isChecked","isDisabled","label","name","onChange","subsection","tooltip"]),E=r.useRef(i()("checkbox")).current,S=u||E,O=r.createElement("span",{className:"checkbox-label"},r.createElement("input",h({"aria-describedby":o?"description_".concat(S):"",checked:c,disabled:f,id:S,name:m,onChange:y,type:"checkbox"},w)),r.createElement("span",{className:"checkbox-pointer-target"}),r.createElement("span",{className:s()("bdl-Checkbox-labelTooltipWrapper",{"accessibility-hidden":l})},d&&r.createElement("label",{htmlFor:S},d),g&&r.createElement(p,{tooltip:g})));return r.createElement("div",{className:s()("checkbox-container",n,{"is-disabled bdl-is-disabled":f})},a&&r.createElement("div",{className:"label"},a),O,o?r.createElement("div",{id:"description_".concat(S),className:"checkbox-description"},o):null,v?r.createElement("div",{className:"checkbox-subsection"},v):null)};n.d(t,"a",(function(){return m}))},,function(e,t){e.exports=function(e,t){t=t||{};var n,r,o,i=e.ownerDocument||e,a=[],s=[],l=function(e){var t=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!function n(r,o){if(r===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===r)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(r)).display?s=!0:r.parentNode&&(s=n(r.parentNode)),t.push([r,s]),s}(n,r)||"hidden"===r.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(u.join(","));if(t.includeContainer){var f=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some((function(t){return f.call(e,t)}))&&(c=Array.prototype.slice.apply(c)).unshift(e)}for(var d=0,p=c.length;d<p;d++)n=c[d],r=parseInt(n.getAttribute("tabindex"),10),(o=isNaN(r)?n.tabIndex:r)<0||"INPUT"===n.tagName&&"hidden"===n.type||n.disabled||l(n,i)||(0===o?a.push(n):s.push({index:d,tabIndex:o,node:n}));var h=s.sort((function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex})).map((function(e){return e.node}));return Array.prototype.push.apply(h,a),h}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},,,function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(32),i=n(138),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";var r=n(0),o=n(88),i=n(119),a=n(51),s=n(4),l=n.n(s),u=n(3),c=n.n(u),f=n(197),d=n.n(f),p=n(12),h=n.n(p),b=n(150),m=n(2),y=n(9);function v(){return(v=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)}var g=function(e){return r.createElement(y.a,v({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:m.j,fillRule:"evenodd",d:"M8 1a7 7 0 110 14A7 7 0 018 1zm0 10a1 1 0 100 2 1 1 0 000-2zm0-8a1 1 0 00-1 1v5a1 1 0 002 0V4a1 1 0 00-1-1z"}))};function w(){return(w=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)}var E=function(e){return r.createElement(y.a,w({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("g",{fill:m.j,fillRule:"evenodd"},r.createElement("path",{d:"M13.436 0c.892 0 1.215.093 1.54.267.327.174.583.43.757.756.174.326.267.65.267 1.54v10.873c0 .892-.093 1.215-.267 1.54-.174.327-.43.583-.756.757-.326.174-.65.267-1.54.267H2.563c-.892 0-1.215-.093-1.54-.267a1.817 1.817 0 01-.757-.756C.093 14.65 0 14.327 0 13.437V2.563c0-.892.093-1.215.267-1.54.174-.327.43-.583.756-.757C1.35.093 1.673 0 2.563 0h10.873zM13 4H3a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1V5a1 1 0 00-1-1z"}),r.createElement("g",{transform:"translate(3 5.5)"},r.createElement("rect",{width:1.5,height:1.5,x:2.833,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:5.667,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:8.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:2.83,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:5.67,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:8.5,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,y:5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:2.83,y:5,rx:.5}))))},S=n(267),O=n(531);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t,n){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?x(e):t}(this,P(t).call(this,e)),T(x(n),"handleBlur",(function(){n.hide()})),T(x(n),"handleClickOutside",(function(e){if(!(n.isVisible()&&n.datePickerButtonEl&&n.datePickerButtonEl.contains(e.target))&&n.isVisible()&&!n.el.contains(e.target)){n.hide();var t=document.activeElement;n.accessibleFieldEl&&t&&t.tabIndex<0&&n.accessibleFieldEl.focus()}})),n.accessibleFieldEl=e.accessibleFieldEl,n.datePickerButtonEl=e.datePickerButtonEl,n.accessibleFieldEl&&(n.el.classList.add("is-bound"),document.body.appendChild(n.el),n.accessibleFieldEl.addEventListener("blur",n.handleBlur),n.hide()),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(t,e),n=t,(r=[{key:"show",value:function(){_(P(t.prototype),"show",this).call(this),this.accessibleFieldEl&&(document.addEventListener("click",this.handleClickOutside,!0),this.adjustPosition())}},{key:"hide",value:function(){_(P(t.prototype),"hide",this).call(this),this.accessibleFieldEl&&document.removeEventListener("click",this.handleClickOutside)}},{key:"destroy",value:function(){_(P(t.prototype),"destroy",this).call(this),this.accessibleFieldEl&&(this.accessibleFieldEl.removeEventListener("blur",this.handleBlur),document.removeEventListener("click",this.handleClickOutside))}}])&&C(n.prototype,r),o&&C(n,o),t}(n.n(O).a),j=n(26),D=n(129),L=n(18),R=n(17),N=n(30);n(656);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(){return(U=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 B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q,G=Object(o.defineMessages)({previousMonth:{id:"boxui.base.previousMonth",defaultMessage:"Previous Month"},nextMonth:{id:"boxui.base.nextMonth",defaultMessage:"Next Month"},iconAlertText:{id:"boxui.datePicker.iconAlertText",defaultMessage:"Invalid Date"},dateClearButton:{id:"boxui.datePicker.dateClearButton",defaultMessage:"Clear Date"},chooseDate:{id:"boxui.datePicker.chooseDate",defaultMessage:"Choose Date"},dateInputRangeError:{id:"boxui.datePicker.dateInputRangeError",defaultMessage:"Please enter a date between {minLocaleDate} and {maxLocaleDate}"},dateInputMaxError:{id:"boxui.datePicker.dateInputMaxError",defaultMessage:"Please enter a date before {maxLocaleDate}"},dateInputMinError:{id:"boxui.datePicker.dateInputMinError",defaultMessage:"Please enter a date after {minLocaleDate}"}}),K=300,X="Enter",Y="Escape",J="Tab",$=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/;function Q(e,t){if(!e)return"";switch(t){case q.ISO_STRING_DATE_FORMAT:return e.toISOString();case q.LOCALE_DATE_STRING_DATE_FORMAT:return e.toLocaleDateString();case q.UTC_TIME_DATE_FORMAT:return Object(N.b)(e);case q.UTC_ISO_STRING_DATE_FORMAT:return new Date(Object(N.b)(e)).toISOString();default:return e.getTime()}}!function(e){e.ISO_STRING_DATE_FORMAT="isoString",e.LOCALE_DATE_STRING_DATE_FORMAT="localeDateString",e.UTC_TIME_DATE_FORMAT="utcTime",e.UNIX_TIME_DATE_FORMAT="unixTime",e.UTC_ISO_STRING_DATE_FORMAT="utcISOString"}(q||(q={}));var Z=["en-US","en-CA","jp-JP"],ee=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=function(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?z(e):t}(this,(e=H(t)).call.apply(e,[this].concat(i))),W(z(n),"state",{isDateInputInvalid:!1,showDateInputError:!1}),W(z(n),"errorMessageID",h()("errorMessage")),W(z(n),"descriptionID",h()("description")),W(z(n),"onSelectHandler",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=n.props,r=t.onChange,o=t.isAccessible,i=n.state.isDateInputInvalid;if(r){var a=n.formatValue(e);r(e,a)}o&&(n.dateInputEl&&n.datePicker&&(n.dateInputEl.value=n.datePicker.toString()),n.datePicker&&n.datePicker.isVisible()&&(n.datePicker.hide(),n.focusDatePicker())),i&&n.setState({isDateInputInvalid:!1,showDateInputError:!1})})),W(z(n),"datePicker",null),W(z(n),"canUseDateInputType",!0),W(z(n),"shouldStayClosed",!1),W(z(n),"focusDatePicker",(function(){n.dateInputEl&&n.dateInputEl.focus()})),W(z(n),"getDateInputError",(function(){var e=n.props,t=e.intl,r=e.maxDate,o=void 0===r?null:r,i=e.minDate,a=void 0===i?null:i,s=n.state.showDateInputError,l=t.formatMessage;if(!s)return"";var u="",c=Q(o,q.LOCALE_DATE_STRING_DATE_FORMAT),f=Q(a,q.LOCALE_DATE_STRING_DATE_FORMAT);return c&&f?u=l(G.dateInputRangeError,{maxLocaleDate:c,minLocaleDate:f}):c?u=l(G.dateInputMaxError,{maxLocaleDate:c}):f&&(u=l(G.dateInputMinError,{minLocaleDate:f})),u})),W(z(n),"handleInputKeyDown",(function(e){var t=n.props,r=t.isKeyboardInputAllowed,o=t.isTextInputAllowed,i=t.isAccessible;!r&&n.datePicker&&n.datePicker.isVisible()&&e.stopPropagation(),o||i||e.key===J||e.preventDefault(),(o||i&&!n.canUseDateInputType)&&e.key===X&&e.preventDefault(),!i||e.key!==X&&" "!==e.key||e.preventDefault(),e.key!==X&&e.key!==Y&&" "!==e.key||n.datePicker&&n.datePicker.isVisible()&&n.datePicker.hide()})),W(z(n),"handleOnChange",(function(e){var t=n.props,r=t.isAccessible,o=t.maxDate,i=t.minDate,a=t.onChange,s=n.state.isDateInputInvalid;if(r&&n.canUseDateInputType){n.datePicker&&n.datePicker.isVisible()&&e.stopPropagation();var l=e.target.value;if(n.datePicker&&l){var u=n.parseDisplayDateType(l);if(u){if(i&&u<i||o&&u>o)return n.datePicker.setDate(null),void n.setState({isDateInputInvalid:!0});s&&n.setState({isDateInputInvalid:!1,showDateInputError:!1})}else n.setState({isDateInputInvalid:!0});if(n.datePicker.setDate(u,!0),a)a(u,n.formatValue(u))}else s&&n.setState({isDateInputInvalid:!1,showDateInputError:!1})}})),W(z(n),"handleInputBlur",(function(e){var t=n.props,r=t.isAccessible,o=t.isTextInputAllowed,i=t.onBlur,a=n.state.isDateInputInvalid,s=e.relatedTarget||document.activeElement;n.datePicker&&n.datePicker.isVisible()&&s&&s===n.datePickerButtonEl&&(n.shouldStayClosed=!0,setTimeout((function(){n.shouldStayClosed=!1}),K)),i&&i(e);var l=null;if(n.dateInputEl){var u=null;r&&!n.canUseDateInputType&&(u=n.parseDisplayDateType(n.dateInputEl.value)),l=new Date(u||n.dateInputEl.value)}(o||r&&!n.canUseDateInputType)&&l&&l.getDate()&&n.onSelectHandler(l),r&&a&&n.setState({showDateInputError:!0})})),W(z(n),"handleButtonClick",(function(e){e.preventDefault(),e.stopPropagation();var t=n.props,r=t.isAccessible,o=t.isDisabled;if(r){if(o||!n.datePicker)return;n.datePicker.isVisible()?(n.datePicker.hide(),n.focusDatePicker()):n.datePicker.show()}else n.shouldStayClosed||n.focusDatePicker()})),W(z(n),"handleOnClick",(function(e){n.props.isAccessible&&(e.preventDefault(),e.stopPropagation())})),W(z(n),"formatDisplay",(function(e){var t=n.props,r=t.displayFormat,o=t.intl;return e?o.formatDate(e,r):""})),W(z(n),"formatDisplayDateType",(function(e){return e?Q(e,q.UTC_ISO_STRING_DATE_FORMAT).slice(0,10):""})),W(z(n),"parseDisplayDateType",(function(e){return e&&$.test(e)?new Date("".concat(e,"T00:00:00")):null})),W(z(n),"formatValue",(function(e){var t=n.props.dateFormat;return t?Q(e,t):""})),W(z(n),"clearDate",(function(e){e.preventDefault();var t=n.props.isAccessible;n.datePicker&&n.datePicker.setDate(null),n.onSelectHandler(null),t&&n.focusDatePicker()})),W(z(n),"shouldUseAccessibleFallback",(function(){var e=document.createElement("input");try{e.type="date"}catch(e){}return"text"===e.type})),W(z(n),"renderCalendarButton",(function(){var e=n.props,t=e.intl,o=e.isAccessible,i=e.isAlwaysVisible,a=e.isDisabled,s=t.formatMessage;if(i)return null;var l=o?{"aria-hidden":!0,tabIndex:-1}:{};return r.createElement(L.a,U({"aria-label":s(G.chooseDate),className:"date-picker-open-btn",getDOMRef:function(e){n.datePickerButtonEl=e},isDisabled:a,onClick:n.handleButtonClick,type:j.a.BUTTON},l),r.createElement(E,null))})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e,t=this.props,n=t.customInput,r=t.dateFormat,o=t.displayFormat,i=t.intl,a=t.isAccessible,s=t.isAlwaysVisible,l=t.isTextInputAllowed,u=t.maxDate,f=t.minDate,p=t.onChange,h=t.value,b=t.yearRange,m=i.formatDate,y=i.formatMessage,v=G.nextMonth,g=G.previousMonth,w=h;a&&this.shouldUseAccessibleFallback()&&(this.canUseDateInputType=!1),r===q.UTC_TIME_DATE_FORMAT&&h&&(e=h.toUTCString().slice(0,-4),w=new Date(e),p&&p(w,this.formatValue(w)));var E=(new Date).getFullYear(),S=(o||{}).timeZone,O={previousMonth:y(g),nextMonth:y(v),months:d()(12).map((function(e){return m(new Date(E,e,15),{month:"long",timeZone:S})})),weekdays:d()(1,8).map((function(e){return m(new Date(2016,4,e),{weekday:"long",timeZone:S})})),weekdaysShort:d()(1,8).map((function(e){return m(new Date(2016,4,e),{weekday:"narrow",timeZone:S})}))},k={bound:!n,blurFieldOnSelect:!1,setDefaultDate:!0,defaultDate:null===w?void 0:w,field:this.dateInputEl,firstDay:Z.includes(i.locale)?0:1,maxDate:u,minDate:f,position:"bottom left",i18n:O,showDaysInNextAndPreviousMonths:!0,onSelect:this.onSelectHandler,yearRange:b,toString:this.formatDisplay};a&&(this.canUseDateInputType&&(delete k.field,k.trigger=this.dateInputEl,k.accessibleFieldEl=this.dateInputEl,k.datePickerButtonEl=this.datePickerButtonEl),k.parse=this.parseDisplayDateType,k.toString=this.formatDisplayDateType,k.keyboardInput=!1),this.datePicker=new I(k),l&&this.updateDateInputValue(this.formatDisplay(w)),s&&(this.datePicker.show(),this.datePicker.hide=c.a)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(this.datePicker){var t=e.value,n=void 0===t?null:t,r=e.minDate,o=void 0===r?null:r,i=e.maxDate,a=void 0===i?null:i,s=this.props,l=s.value,u=s.minDate,c=s.maxDate,f=s.isTextInputAllowed,d=this.datePicker&&this.datePicker.getDate();(n&&!l||!n&&l||n&&l&&n.getTime()!==l.getTime())&&this.datePicker.setDate(n),f&&this.updateDateInputValue(this.formatDisplay(n)),(o&&!u||o&&u||o&&u&&o.getTime()!==u.getTime())&&(this.datePicker.setMinDate(o),d&&d<o&&this.datePicker.gotoDate(o)),(a&&!c||!a&&c||a&&c&&a.getTime()!==c.getTime())&&(this.datePicker.setMaxDate(a),d&&a&&d>a&&this.datePicker.gotoDate(a))}}},{key:"componentWillUnmount",value:function(){this.datePicker&&this.datePicker.destroy()}},{key:"updateDateInputValue",value:function(e){this.dateInputEl&&(this.dateInputEl.value=e)}},{key:"render",value:function(){var e,t,n,o=this,a=this.props,s=a.className,u=a.customInput,f=a.description,d=a.error,p=a.errorTooltipPosition,h=a.hideLabel,m=a.hideOptionalLabel,y=a.inputProps,v=a.intl,w=a.isAccessible,E=a.isClearable,O=a.isDisabled,k=a.isRequired,C=a.isTextInputAllowed,x=a.label,_=a.maxDate,P=a.minDate,A=a.name,T=a.onFocus,I=a.placeholder,N=a.resinTarget,M=a.value,B=this.state.isDateInputInvalid,H=v.formatMessage,z=d||this.getDateInputError(),V=!!z||B,q=!!M||B,K=l()(s,"date-picker-wrapper",{"show-clear-btn":E&&q&&!O,"show-error":V}),X={"aria-invalid":V,"aria-required":k,"aria-errormessage":this.errorMessageID,"aria-describedby":f?this.descriptionID:void 0},Y=N?W({},b.a,N):{};return e=w?{defaultValue:this.formatDisplayDateType(M)}:C?{defaultValue:this.formatDisplay(M)}:{value:this.formatDisplay(M)},t=w&&this.canUseDateInputType?{onChange:this.handleOnChange}:C||w&&!this.canUseDateInputType?{}:{onChange:c.a},n=w&&this.canUseDateInputType?{max:this.formatDisplayDateType(_)||"9999-12-31",min:this.formatDisplayDateType(P)||"0001-01-01"}:w&&!this.canUseDateInputType?{name:A,pattern:$.source,title:"YYYY-MM-DD"}:{},r.createElement("div",{className:K},r.createElement("span",{className:"date-picker-icon-holder"},r.createElement(D.a,{hideLabel:h,showOptionalText:!m&&!k,text:x},r.createElement(r.Fragment,null,!!f&&r.createElement("div",{id:this.descriptionID,className:"date-picker-description"},f),r.createElement(R.c,{className:"date-picker-error-tooltip",isShown:!!z,position:p,text:z||"",theme:R.b.ERROR},u?r.cloneElement(u,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disabled:O,ref:function(e){o.dateInputEl=e},required:k},Y,{},X)):r.createElement("input",U({ref:function(e){o.dateInputEl=e},className:"date-picker-input",disabled:O,onBlur:this.handleInputBlur,onClick:this.handleOnClick,placeholder:I||H(G.chooseDate),required:k,type:w&&this.canUseDateInputType?"date":"text"},t,{onFocus:T,onKeyDown:this.handleInputKeyDown},Y,X,y,e,n))),r.createElement("span",{id:this.errorMessageID,className:"accessibility-hidden",role:"alert"},z))),E&&q&&!O?r.createElement(L.a,{"aria-label":H(G.dateClearButton),className:"date-picker-clear-btn",onClick:this.clearDate,type:j.a.BUTTON},r.createElement(S.a,null)):null,V?r.createElement(g,{className:"date-picker-icon-alert",title:r.createElement(i.a,G.iconAlertText)}):null,this.renderCalendarButton(),r.createElement("input",{className:"date-picker-unix-time-input",name:A,readOnly:!0,type:"hidden",value:M?this.formatValue(M):""})))}}])&&B(n.prototype,o),a&&B(n,a),t}(r.Component);W(ee,"defaultProps",{className:"",dateFormat:q.UNIX_TIME_DATE_FORMAT,displayFormat:{},error:"",errorTooltipPosition:R.a.BOTTOM_LEFT,inputProps:{},isClearable:!0,isKeyboardInputAllowed:!1,isTextInputAllowed:!1,yearRange:10});t.a=Object(a.c)(ee)},,function(e,t,n){"use strict";var r=n(0);function o(){return(o=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 i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t,n,a,s=e.children,l=e.href,u=void 0===l?"#":l,c=e.linkRef,f=e.target,d=e.rel,p=e.component,h=e.refProp,b=i(e,["children","href","linkRef","target","rel","component","refProp"]),m="_blank"!==f||d?d:"noopener",y=p||"a",v=(a=c,(n=h||"ref")in(t={})?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t);return r.createElement(y,o({href:u,rel:m,target:f},v,b),s)}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(43))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(70),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(392),o=n(114),i=n(32),a=n(123),s=n(136),l=n(164),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],b=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,b))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(40),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(90)(e))},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(176),o=n(177),i=n(175),a=n(221),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(176),o=n(32);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(223),o=n(222),i=n(137);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(178);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(261),o=n(177),i=n(149);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(58),o=n(177),i=n(44),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){var r=n(424),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},function(e,t,n){var r=n(425),o=n(427)(r);e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(29);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},function(e,t,n){"use strict";var r=n(29),o=n(447),i=n(448),a=n(231),s=n(449),l=n(452),u=n(453),c=n(234),f=n(139),d=n(140);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,b=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete b["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";b.Authorization="Basic "+btoa(g+":"+w)}var E=s(e.baseURL,e.url);function S(){if(v){var r="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(n(c("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(c("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var O=(e.withCredentials||u(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;O&&(b[e.xsrfHeaderName]=O)}"setRequestHeader"in v&&r.forEach(b,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete b[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),m&&"json"!==m&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(n(!e||e&&e.type?new d("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),v.send(h)}))}},function(e,t,n){"use strict";var r=n(232);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},function(e,t){e.exports={version:"0.25.0"}},function(e,t,n){var r=n(462),o=n(463),i=n(466),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t,n){var r=n(171),o=n(113);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){},,,,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);function a(){return(a=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(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,l=e.title,u=e.type,c=void 0===u?"warning":u,f=s(e,["children","className","title","type"]);return r.createElement("div",a({className:i()(o,"inline-alert","inline-alert-visible","inline-alert-".concat(c))},f),l?r.createElement("strong",null,l):null,r.createElement("div",null,t))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,o){var i,a,s,l;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(n));if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function d(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,e))}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):m(o,o.length)}function b(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return c(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=m(l,u);for(n=0;n<u;++n)a(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,o,i,a,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));if(void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},l.prototype.listenerCount=b,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){var r=n(238)((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}));e.exports=r},function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
32
|
+
*/function r(){return(r=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)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(r({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,l=s(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(o){r=o(n);for(var f=0;f<r.length;f++)a.call(n,r[f])&&(l[r[f]]=n[r[f]])}}return l}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(527),s=n.n(a);function l(){return(l=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 u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var c=function(e){var t=e.Component,n=e.className,o=u(e,["Component","className"]);return r.createElement(t,l({className:i()("bdl-LabelPill-iconContent",n),width:12,height:12},o))};function f(){return(f=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 d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var p,h,b=function(e){var t=e.children,n=e.className,o=d(e,["children","className"]);return r.createElement("span",f({className:i()("bdl-LabelPill-textContent",n)},o),t)};n(636);function m(){return(m=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 y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}!function(e){e.DEFAULT="default",e.INFO="info",e.FTUX="ftux",e.HIGHLIGHT="highlight",e.SUCCESS="success",e.WARNING="warning",e.ALERT="alert",e.ERROR="error"}(p||(p={})),function(e){e.REGULAR="regular",e.LARGE="large"}(h||(h={}));var v=r.forwardRef((function(e,t){var n=e.children,o=e.type,a=void 0===o?p.DEFAULT:o,l=e.size,u=void 0===l?h.REGULAR:l,c=e.className,f=y(e,["children","type","size","className"]),d=i()("bdl-LabelPill","bdl-LabelPill--".concat(a),"bdl-LabelPill--size".concat(s()(u)),c);return r.createElement("span",m({ref:t,className:d},f),n)}));v.displayName="LabelPill";var g={Pill:v,Text:b,Icon:c};n.d(t,"a",(function(){return g}))},function(e,t,n){"use strict";var r=n(201);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";(function(e){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r,o=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var o,i,a;return o=t,a=[{key:"getUserAgent",value:function(){return e.navigator.userAgent}},{key:"isMobile",value:function(){var e=t.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}},{key:"isIE",value:function(){return/Trident/i.test(t.getUserAgent())}},{key:"isFirefox",value:function(){var e=t.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}},{key:"isSafari",value:function(){var e=t.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}},{key:"isMobileSafari",value:function(){return t.isMobile()&&t.isSafari()&&!t.isMobileChromeOniOS()}},{key:"isMobileChromeOniOS",value:function(){var e=t.getUserAgent();return t.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}},{key:"canPlayDash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(void 0===r||t){var n=e.MediaSource;r=!!n&&"function"==typeof n.isTypeSupported&&n.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return r}},{key:"canWriteToClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.writeText)}},{key:"canReadFromClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.readText)}}],(i=null)&&n(o.prototype,i),a&&n(o,a),t}();t.a=o}).call(this,n(43))},function(e,t,n){var r=n(89),o=n(373),i=n(374),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(22),s=n.n(a),l=n(146);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(s))),r=p(n),i=function(e){var t=n.props,r=t.isDisabled,o=t.onClick;if(r)return e.stopPropagation(),void e.preventDefault();o&&o(e)},(o="onClickHandler")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.isDisabled,a=e.isSelectItem,u=e.isSelected,f=e.showRadar,d=c(e,["children","className","isDisabled","isSelectItem","isSelected","showRadar"]),p=s()(d,["role","tabIndex","onClick"]);p.className=i()("menu-item",n,{"is-select-item":a,"is-selected":u}),p.role=a?"menuitemradio":"menuitem",p.tabIndex=-1,p.onClick=this.onClickHandler,a&&(p["aria-checked"]=u),o&&(p["aria-disabled"]="true");var h=r.createElement("li",p,t);return f&&(h=r.createElement(l.a,null,h)),h}}])&&f(n.prototype,o),a&&f(n,a),t}(r.Component);t.a=b},function(e,t,n){"use strict";var r=n(79),o=n(1),i=n(19);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var n,r,a,d,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(o.n).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/web_links").concat(t)}},{key:"getWeblink",value:(d=regeneratorRuntime.mark((function e(t,n,r){var a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=p.length>3&&void 0!==p[3]?p[3]:{},s=a.fields,!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(l=this.getCache(),u=this.getCacheKey(t),this.errorCode=o.Rb,this.successCallback=n,this.errorCallback=r,!l.has(u)){e.next=13;break}if(0!==Object(i.j)(l.get(u),s).length){e.next=13;break}return n(l.get(u)),e.abrupt("return");case 13:return c={url:this.getUrl(t)},s&&(c.params={fields:s.toString()}),e.prev=15,e.next=18,this.xhr.get(c);case 18:if(f=e.sent,d=f.data,!this.isDestroyed()){e.next=22;break}return e.abrupt("return");case 22:l.has(u)?l.merge(u,d):l.set(u,d),this.successHandler(l.get(u)),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(15),this.errorHandler(e.t0);case 29:case"end":return e.stop()}}),e,this,[[15,26]])})),p=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=d.apply(e,t);function i(e){s(o,n,r,i,a,"next",e)}function a(e){s(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e,t,n){return p.apply(this,arguments)})}])&&l(n.prototype,r),a&&l(n,a),t}(r.a);t.a=d},,function(e,t,n){"use strict";var r=n(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function."),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i,u,c,f,d,p;return t=e,n=null,i=[{key:"getToken",value:(p=a(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==n||"string"==typeof n||"function"==typeof n)&&(t.startsWith(r.If)||t.startsWith(r.Hf))){e.next=2;break}throw l;case 2:if(n&&"string"!=typeof n){e.next=4;break}return e.abrupt("return",n);case 4:return e.next=6,n(t);case 6:if((i=e.sent)&&"string"!=typeof i&&("object"!==o(i)||!i.read&&!i.write)){e.next=9;break}return e.abrupt("return",i);case 9:throw l;case 10:case"end":return e.stop()}}),e)}))),function(e,t){return p.apply(this,arguments)})},{key:"getReadToken",value:(d=a(regeneratorRuntime.mark((function t(n,r){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(n,r);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return d.apply(this,arguments)})},{key:"getReadTokens",value:(f=a(regeneratorRuntime.mark((function t(n,r){var o,i,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Array.isArray(n)?n:[n],i=o.map((function(t){return e.getReadToken(t,r)})),t.next=4,Promise.all(i);case 4:return a=t.sent,s={},a.forEach((function(e,t){s[o[t]]=e})),t.abrupt("return",Promise.resolve(s));case 8:case"end":return t.stop()}}),t)}))),function(e,t){return f.apply(this,arguments)})},{key:"getWriteToken",value:(c=a(regeneratorRuntime.mark((function t(n,r){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(n,r);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.write||i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return c.apply(this,arguments)})},{key:"cacheTokens",value:(u=a(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==n||"string"==typeof n||"function"==typeof n)&&t.every((function(e){return e.startsWith(r.If)||e.startsWith(r.Hf)}))){e.next=2;break}throw l;case 2:if("function"!=typeof n){e.next=5;break}return e.next=5,n(t);case 5:return e.abrupt("return",Promise.resolve());case 6:case"end":return e.stop()}}),e)}))),function(e,t){return u.apply(this,arguments)})}],n&&s(t.prototype,n),i&&s(t,i),e}();t.a=u},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(477),i=n(54),a=n(478);function s(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:a(i),n(a(r),i,o)})),Object.keys(o).sort().reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===r(t)?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):o}t.extract=l,t.parse=u,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[s(t,e),"[",r,"]"].join(""):[s(t,e),"[",s(r,e),"]=",s(n,e)].join("")};case"bracket":return function(t,n){return null===n?s(t,e):[s(t,e),"[]=",s(n,e)].join("")};default:return function(t,n){return null===n?s(t,e):[s(t,e),"=",s(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return s(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return s(r,t)+"="+s(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:u(l(e),t)}}},function(e,t,n){"use strict";e.exports=n(652)},,,,,,function(e,t,n){var r=n(372),o=n(377);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(109),o=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.cache[e]=t}},{key:"merge",value:function(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,o()({},this.get(e),t))}},{key:"unset",value:function(e){delete this.cache[e]}},{key:"unsetAll",value:function(e){var t=this;Object.keys(this.cache).forEach((function(n){n.startsWith(e)&&delete t.cache[n]}))}},{key:"has",value:function(e){return{}.hasOwnProperty.call(this.cache,e)}},{key:"get",value:function(e){if(this.has(e))return this.cache[e]}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=a},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(78),a=n(19),s=n(8),l=n(79),u=n(50),c=n(60),f=n(1);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(n),"folderSuccessHandler",(function(e){var r=e.data;if(!n.isDestroyed()){var o=r.item_collection;if(!o)throw Object(s.a)();var a=o.entries,l=o.total_count,f=o.limit,d=o.offset;if(!Array.isArray(a)||"number"!=typeof l||"number"!=typeof f||"number"!=typeof d)throw Object(s.a)();var p=Object(i.a)(a,new t(n.options),new u.a(n.options),new c.a(n.options));n.itemCache=(n.itemCache||[]).concat(p),n.getCache().set(n.key,h({},r,{item_collection:h({},o,{entries:n.itemCache})})),n.finish()}})),g(y(n),"folderDetailsSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=h({},n.getCache().get(n.key),{},t);n.getCache().set(n.key,r),n.successCallback(r)}})),g(y(n),"createSuccessHandler",(function(e){var t=e.data,r=t.id;if(!n.isDestroyed()&&r){var o=n.getCacheKey(r),i=n.getCache(),a=i.get(n.key);if(a){var l=a.item_collection;if(!l)throw Object(s.a)();var u=l.total_count,c=l.entries;if(!Array.isArray(c)||"number"!=typeof u)throw Object(s.a)();i.set(o,t),l.entries=[o].concat(c),l.total_count=u+1,n.successCallback(t)}else n.successCallback(t)}})),n}var n,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(f.i).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/folders").concat(t)}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key),n=t.id,r=t.name,o=t.permissions,i=t.path_collection,a=t.item_collection;if(!a||!i)throw Object(s.a)();var l=a.entries,u=a.offset,c=a.total_count;if(!Array.isArray(l)||"number"!=typeof c)throw Object(s.a)();var f={id:n,name:r,offset:u,percentLoaded:100,permissions:o,boxItem:t,breadcrumbs:i.entries,items:l.map((function(t){return e.get(t)})),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(f)}}},{key:"folderRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fields,n=e.noPagination,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.folderSuccessHandler;if(this.isDestroyed())return Promise.reject();var o=t||a.f;this.errorCode=f.Hb;var i={fields:o.toString()};return n||(i=h({},i,{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:o.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i,headers:o.includes(f.fd)?{"X-Rep-Hints":f.fg}:{}}).then(r).catch(this.errorHandler)}},{key:"getFolderFields",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=n,this.folderRequest(h({},r,{noPagination:!0}),this.folderDetailsSuccessHandler))}},{key:"getFolder",value:function(e,t,n,r,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=n,this.sortBy=r,this.sortDirection=o,this.successCallback=i,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}},{key:"folderCreateRequest",value:function(e){if(this.isDestroyed())return Promise.reject();this.errorCode=f.ib;var t="".concat(this.getUrl(),"?fields=").concat(a.f.toString());return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}},{key:"create",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=n,this.errorCallback=r,this.folderCreateRequest(t))}}])&&b(n.prototype,r),l&&b(n,l),t}(l.a);t.a=w},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0,i=n;return new Promise((function(n,a){function s(l){setTimeout((function(){o+=1,new Promise((function(t,n){e(t,n,a)})).then(n).catch((function(e){o<t?s(i*=r):a(e)}))}),l)}s(i)}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n(119),i=n(2),a=n(9);function s(){return(s=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)}var l=function(e){return r.createElement(a.a,s({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:i.j,d:"M8 1a7 7 0 110 14A7 7 0 018 1zm.5 6H7a.5.5 0 000 1h.5v3H7a.5.5 0 100 1h2.5a.5.5 0 100-1H9V7.75a.783.783 0 00-.012-.139A.502.502 0 008.5 7zM8 4a1 1 0 100 2 1 1 0 000-2z"}))},u=n(17),c=function(e){var t=e.className,n=void 0===t?"":t,o=e.iconProps,i=e.tooltipText;return r.createElement("span",{key:"infoIcon",className:"".concat(n," tooltip-icon-container")},r.createElement(u.c,{position:u.a.TOP_CENTER,text:i},r.createElement("span",{className:"info-icon-container"},r.createElement(l,o))))},f=n(4),d=n.n(f);function p(){return(p=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 h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var b=function(e){var t=e.children,n=e.className,o=e.labelContent,i=h(e,["children","className","labelContent"]);return r.createElement("label",null,r.createElement("span",p({className:d()("label bdl-Label",n)},i),o),t)},m=function(e){var t=e.children,n=e.labelContent,o=e.tooltip,i=r.createElement(b,{labelContent:n},t);return o?r.createElement(u.c,{position:u.a.TOP_RIGHT,text:o},i):i},y=function(e){var t=e.children,n=e.labelContent;return r.createElement(b,{className:"accessibility-hidden",labelContent:n},t)},v=n(33);n(639);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){return r.createElement("span",{className:"label-optional bdl-Label-optional"},"(",r.createElement(o.a,v.a.optional),")")};t.a=function(e){var t=e.text,n=e.tooltip,o=e.infoTooltip,i=e.infoIconProps,a=e.showOptionalText,s=e.hideLabel,l=e.children,u=[r.createElement("span",{key:"labelText"},t),a?r.createElement(S,{key:"optionalMessage"}):null];return o&&u.push(r.createElement(c,{key:"infoTooltip",iconProps:w({className:"tooltip-icon"},i),tooltipText:o})),s?r.createElement(y,{labelContent:u},l):r.createElement(m,{labelContent:u,tooltip:n},l)}},function(e,t,n){var r=n(440);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},,function(e,t,n){var r=n(170),o=n(171);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},function(e,t,n){"use strict";var r=n(8),o=n(1);t.a=function(e,t,n,i){var a=[];return e.forEach((function(e){var s,l=e.id,u=e.type;if(!l||!u)throw Object(r.a)();switch(u){case o.Kf:s=t;break;case o.Jf:s=n;break;case o.Lf:s=i;break;default:throw new Error("Unknown Type!")}var c=s.getCache(),f=s.getCacheKey(l);c.has(f)?c.merge(f,e):c.set(f,e),a.push(f)})),a}},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(75),a=n.n(i),s=n(8),l=n(19),u=n(14),c=n(1);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(){return(h=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 b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(n),"deleteSuccessHandler",(function(){if(!n.isDestroyed()){var e=n.getParentCacheKey(n.parentId),t=n.getCache().get(e);if(t){var r=t.item_collection;if(r){var o=r.entries,i=r.total_count;if(!Array.isArray(o)||"number"!=typeof i)throw Object(s.a)();var a=n.getCacheKey(n.id),l=o.length,u=o.filter((function(e){return e!==a})),c=u.length,f=n.merge(e,"item_collection",h(r,{entries:u,total_count:i-(l-c)}));n.successCallback(f),n.postDeleteCleanup()}else n.postDeleteCleanup()}else n.postDeleteCleanup()}})),g(y(n),"renameSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){n.getCache().unsetAll(c.m);var r=n.merge(n.getCacheKey(n.id),"name",t.name);n.successCallback(r)}})),g(y(n),"shareSuccessHandler",(function(e,t){if(!n.isDestroyed()){var r=t?Object(l.i)(e,t):e,o=n.getCache(),i=n.getCacheKey(n.id);o.has(i)?o.merge(i,r):o.set(i,r),n.successCallback(o.get(i))}})),n}var n,r,i,u,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(r=[{key:"getParentCacheKey",value:function(e){return"".concat(c.i).concat(e)}},{key:"getCacheKey",value:function(e){return"getCacheKey(".concat(e,") should be overriden")}},{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overriden")}},{key:"merge",value:function(e,t,n){var r=this.getCache();return r.merge(e,a()({},t,n)),r.get(e)}},{key:"postDeleteCleanup",value:function(){this.isDestroyed()||(this.getCache().unsetAll(c.m),this.successCallback())}},{key:"deleteItem",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.qb;var i=e.id,a=e.permissions,l=e.parent,u=e.type;if(!(i&&a&&l&&u))return r(Object(s.a)(),this.errorCode),Promise.reject();var f=l.id,d=a.can_delete;if(!d||!f)return r(Object(s.b)(),this.errorCode),Promise.reject();this.id=i,this.parentId=f,this.successCallback=t,this.errorCallback=r;var p="".concat(this.getUrl(i)).concat(u===c.Kf?"?recursive=true":"");return this.xhr.delete({url:p}).then(this.deleteSuccessHandler).catch((function(e){n.errorHandler(e)}))}},{key:"rename",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Zb;var a=e.id,l=e.permissions;if(!a||!l)return i(Object(s.a)(),this.errorCode),Promise.reject();var u=l.can_rename;return u?(this.id=a,this.successCallback=n,this.errorCallback=i,this.xhr.put({url:"".concat(this.getUrl(a)),data:{name:t}}).then(this.renameSuccessHandler).catch((function(e){r.errorHandler(e)}))):(i(Object(s.b)(),this.errorCode),Promise.reject())}},{key:"validateRequest",value:function(e,t){if(!e||!t)throw this.errorCode=c.cc,Object(s.a)();var n=t.can_share,r=t.can_set_share_access;if(!n||!r)throw this.errorCode=c.cc,Object(s.b)()}},{key:"share",value:(d=p(regeneratorRuntime.mark((function e(t,n,r){var i,a,s,l,u,f,d,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=h.length>3&&void 0!==h[3]?h[3]:o.a,a=h.length>4&&void 0!==h[4]?h[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=r,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,f={url:this.getUrl(this.id),data:{shared_link:n===c.c?null:{access:n}}},u&&(f.params={fields:u.toString()}),e.next=15,this.xhr.put(f);case 15:return d=e.sent,p=d.data,e.abrupt("return",this.shareSuccessHandler(p,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,n){return d.apply(this,arguments)})},{key:"updateSharedLink",value:(u=p(regeneratorRuntime.mark((function e(t,n,r){var i,a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=p.length>3&&void 0!==p[3]?p[3]:o.a,a=p.length>4&&void 0!==p[4]?p[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=r,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,c={url:this.getUrl(this.id),data:{shared_link:n}},u&&(c.params={fields:u.toString()}),e.next=15,this.xhr.put(c);case 15:return f=e.sent,d=f.data,e.abrupt("return",this.shareSuccessHandler(d,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,n){return u.apply(this,arguments)})}])&&b(n.prototype,r),i&&b(n,i),t}(u.a);t.a=w},,function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},function(e,t,n){e.exports=n(441)},function(e,t,n){var r=n(169),o=n(172);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}},function(e,t,n){var r=n(40).Symbol;e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,function(e,t,n){"use strict";var r=n(47);n.d(t,"a",(function(){return r.a}))},,function(e,t,n){var r=n(418);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(138),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(38),o=n(497),i=n(262),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,f,d,p,h,b=0,m=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError(a);function g(t){var n=u,r=c;return u=c=void 0,b=t,d=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||y&&e-b>=f}function E(){var e=o();if(w(e))return S(e);p=setTimeout(E,function(e){var n=t-(e-h);return y?l(n,f-(e-b)):n}(e))}function S(e){return p=void 0,v&&u?g(e):(u=c=void 0,d)}function O(){var e=o(),n=w(e);if(u=arguments,c=this,h=e,n){if(void 0===p)return function(e){return b=e,p=setTimeout(E,t),m?g(e):d}(h);if(y)return clearTimeout(p),p=setTimeout(E,t),g(h)}return void 0===p&&(p=setTimeout(E,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,f=(y="maxWait"in n)?s(i(n.maxWait)||0,t):f,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),b=0,u=h=c=p=void 0},O.flush=function(){return void 0===p?d:S(o())},O}},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(9);function a(){return(a=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)}t.a=function(e){return r.createElement(i.a,a({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:o.j,fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"}))}},function(e,t,n){"use strict";var r=n(71);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.memoryStore=new r.a;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}var t,n,i;return t=e,(n=[{key:"buildKey",value:function(e){return"".concat("localStore","/").concat("0","/").concat(e)}},{key:"canUseLocalStorage",value:function(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}},{key:"setItem",value:function(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}},{key:"getItem",value:function(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{var t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}},{key:"removeItem",value:function(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}}])&&o(t.prototype,n),i&&o(t,i),e}();t.a=i},,function(e,t,n){var r=n(331);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(32),o=n(211),i=n(415),a=n(97);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},,function(e,t,n){"use strict";var r=n(126);n.d(t,"b",(function(){return r.a}));var o=n(144);n.d(t,"a",(function(){return o.a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h}));var r=n(0),o=n(260),i=n(11),a=n(142);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(){return(l=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 u(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=l({timeZone:t},e[r]),n}),{})}function c(e,t){return Object.keys(l(l({},e),t)).reduce((function(n,r){return n[r]=l(l({},e[r]||{}),t[r]||{}),n}),{})}function f(e,t){if(!t)return e;var n=a.a.formats;return l(l(l({},n),e),{date:c(u(n.date,t),u(e.date||{},t)),time:c(u(n.time,t),u(e.time||{},t))})}var d=function(e){return r.createElement.apply(r,[r.Fragment,null].concat(s(e)))};function p(e,t){var n=e.locale,r=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=e.onError,c=e.timeZone,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},b=p.id,m=p.defaultMessage;Object(o.a)(!!b,"[React Intl] An `id` must be provided to format a message.");var y=a&&a[String(b)];r=f(r,c),l=f(l,c);var v=[];if(y)try{v=t.getMessageFormat(y,n,r,{formatters:t}).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting message: "'.concat(b,'" for locale: "').concat(n,'"')+(m?", using default message as fallback.":""),e))}else(!m||n&&n.toLowerCase()!==s.toLowerCase())&&u(Object(i.b)('Missing message: "'.concat(b,'" for locale: "').concat(n,'"')+(m?", using default message as fallback.":"")));if(!v.length&&m)try{v=t.getMessageFormat(m,s,l).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting the default message for: "'.concat(b,'"'),e))}return v.length?1===v.length&&"string"==typeof v[0]?v[0]||m||String(b):d(v):(u(Object(i.b)('Cannot format message: "'.concat(b,'", ')+"using message ".concat(y||m?"source":"id"," as fallback."))),"string"==typeof y?y||m||String(b):m||String(b))}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(e,t,n,Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?Object(i.e)(n):n,e}),{}))}},function(e,t,n){var r=n(218),o=n(300),i=n(83);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(470),o=n(475)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,u=e.title,c=e.width,f=void 0===c?24:c;return r.createElement(o.a,{className:"icon-info ".concat(n),height:l,title:u,viewBox:"-603 389 16 16",width:f},r.createElement("path",{className:"fill-color",d:"M-595 403c5.5 0 8-7.1 3.9-10.6-4.2-3.6-10.8.3-9.8 5.7.5 2.8 3 4.9 5.9 4.9zm.9-6.7v3.7h-1.4v-3.7h1.4zm.1-2.2c0 1-1.7 1.1-1.7 0 .1-1.1 1.7-1.1 1.7 0z",fill:a,fillRule:"evenodd"}))}},,function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(393),o=n(44),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},,function(e,t,n){var r=n(479);e.exports=function(e){return r(e)&&e!=+e}},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(22),s=n.n(a),l=n(12),u=n.n(l);n(651);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(e){var n,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?b(e):t}(this,h(t).call(this,e)),r=b(n),i=function(){var e=n.props.setActiveItemID;e&&e(n.id)},(o="setActiveItemID")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n.id=u()("datalistitem"),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.props.isActive&&this.setActiveItemID()}},{key:"componentDidUpdate",value:function(e){this.props.isActive&&!e.isActive&&this.setActiveItemID()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.isActive,a=e.isSelected,l=d(e,["children","className","isActive","isSelected"]),u=i()("datalist-item",{"is-active":o},n),c=s()(l,["closeDropdown","setActiveItemID"]);return r.createElement("li",f({},c,{className:u,id:this.id,role:"option","aria-selected":a}),t)}}])&&p(n.prototype,o),a&&p(n,a),t}(r.Component);n.d(t,"a",(function(){return y}))},function(e,t,n){"use strict";var r=n(0),o=n(51),i=n(107),a=n(11),s=n(81);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=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)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=n.n(s).a||s,y=function(e,t){return Object(i.b)(h(h({},a.a),{locale:"en"}),Object(a.c)(),e,t)},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,d(t).apply(this,arguments))}var n,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(i=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.values,r=b(t,["values"]),o=e.values,i=b(e,["values"]);return!m(o,n)||!m(r,i)}},{key:"render",value:function(){var e=this;return r.createElement(o.a.Consumer,null,(function(t){e.props.defaultMessage||Object(a.h)(t);var n=t||{},o=n.formatMessage,i=void 0===o?y:o,s=n.textComponent,l=void 0===s?r.Fragment:s,c=e.props,f=c.id,d=c.description,p=c.defaultMessage,h=c.values,b=c.children,m=c.tagName,v=void 0===m?l:m,g=i({id:f,description:d,defaultMessage:p},h);return Array.isArray(g)||(g=[g]),"function"==typeof b?b.apply(void 0,u(g)):v?r.createElement.apply(r,[v,null].concat(u(g))):g}))}}])&&c(n.prototype,i),s&&c(n,s),t}(r.Component);v.displayName="FormattedMessage",v.defaultProps={values:{}},t.a=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c}));var r="file",o="web_link",i="add",a="remove",s="replace",l="test",u="enum",c="multiSelect"},,,function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(40),i=n(394),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=(l?l.isBuffer:void 0)||i;e.exports=u}).call(this,n(90)(e))},function(e,t,n){var r=n(403),o=n(168),i=n(404),a=n(340),s=n(324),l=n(58),u=n(216),c=u(r),f=u(o),d=u(i),p=u(a),h=u(s),b=l;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=b},,function(e,t,n){"use strict";var r=n(0),o=n(49),i=n.n(o),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(1);n(498);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?h(e):t}(this,(e=p(t)).call.apply(e,[this].concat(o))),m(h(n),"menuID",s()("menu")),m(h(n),"menuButtonID",s()("menubutton")),m(h(n),"state",{initialFocusIndex:null,isOpen:!1}),m(h(n),"openMenuAndSetFocusIndex",(function(e){n.setState({initialFocusIndex:e,isOpen:!0})})),m(h(n),"closeMenu",(function(e){var t=n.props.onMenuClose,r=void 0===t?u.a:t;n.setState({isOpen:!1},(function(){return r(e)}))})),m(h(n),"focusButton",(function(){var e=document.getElementById(n.menuButtonID);e&&e.focus()})),m(h(n),"handleButtonClick",(function(e){var t=n.state.isOpen;e.stopPropagation(),e.preventDefault(),t?n.closeMenu(e):n.openMenuAndSetFocusIndex(null)})),m(h(n),"handleButtonKeyDown",(function(e){var t=n.state.isOpen;switch(e.key){case c.de.space:case c.de.enter:case c.de.arrowDown:e.stopPropagation(),e.preventDefault(),n.openMenuAndSetFocusIndex(0);break;case c.de.arrowUp:e.stopPropagation(),e.preventDefault(),n.openMenuAndSetFocusIndex(-1);break;case c.de.escape:t&&e.stopPropagation(),e.preventDefault(),n.closeMenu(e)}})),m(h(n),"handleMenuClose",(function(e,t){n.closeMenu(t),n.focusButton()})),m(h(n),"handleDocumentClick",(function(e){var t=document.getElementById(n.menuID),r=document.getElementById(n.menuButtonID);t&&r&&e.target instanceof Node&&!t.contains(e.target)&&!r.contains(e.target)&&n.closeMenu(e)})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e,t){var n=this.props.useBubble;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!n),document.addEventListener("contextmenu",this.handleDocumentClick,!n);var r=this.props.onMenuOpen;r&&r()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!n),document.removeEventListener("click",this.handleDocumentClick,!n))}},{key:"componentWillUnmount",value:function(){var e=this.props.useBubble;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}},{key:"render",value:function(){var e=this.props,t=e.bodyElement,n=e.children,o=e.isRightAligned,a=e.constrainToScrollParent,s=e.constrainToWindow,l=e.className,u=this.state,c=u.isOpen,f=u.initialFocusIndex,d=r.Children.toArray(n);if(2!==d.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");var p=d[0],h=d[1],b={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-expanded":c?"true":"false"};void 0===p.props["aria-haspopup"]&&(b["aria-haspopup"]="true"),c&&(b["aria-controls"]=this.menuID);var m={id:this.menuID,key:this.menuID,initialFocusIndex:f,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID},y="top left",v="bottom left";o&&(y="top right",v="bottom right");var g=[];a&&g.push({to:"scrollParent",attachment:"together"}),s&&g.push({to:"window",attachment:"together"});var w=t instanceof HTMLElement?t:document.body;return r.createElement(i.a,{attachment:y,bodyElement:w,className:l,classPrefix:"dropdown-menu",constraints:g,enabled:c,targetAttachment:v},r.cloneElement(p,b),c?r.cloneElement(h,m):null)}}])&&d(n.prototype,o),a&&d(n,a),t}(r.Component);m(y,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isRightAligned:!1}),t.a=y},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n.n(o),a=n(4),s=n.n(a);n(499);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=".menu-item:not([aria-disabled])",m="ul:not(.submenu) > ".concat(b,", ul:not(.submenu) > li > ").concat(b,", ul:not(.submenu) > span > ").concat(b),y="ul.submenu > ".concat(b,", ul.submenu > li > ").concat(b,", ul.submenu > span > ").concat(b);function v(e){e.stopPropagation(),e.preventDefault()}var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e)),h(d(n),"setInitialFocusIndex",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props,t=e.initialFocusIndex,r=e.isHidden;r||void 0===t||("number"==typeof t?setTimeout((function(){n.setFocus(t)}),0):null===t&&setTimeout((function(){n.menuEl&&n.menuEl.focus()}),0))})),h(d(n),"setMenuItemEls",(function(){var e=n.props,t=e.isSubmenu,r=e.menuItemSelector||(t?y:m);n.menuItemEls=n.menuEl?[].slice.call(n.menuEl.querySelectorAll(r)):[]})),h(d(n),"getMenuItemElFromEventTarget",(function(e){for(var t=null,r=-1,o=0;o<n.menuItemEls.length;o+=1)if(n.menuItemEls[o].contains(e)){t=n.menuItemEls[o],r=o;break}return{menuItemEl:t,menuIndex:r}})),h(d(n),"setFocus",(function(e){if(n.menuItemEls.length){var t=n.menuItemEls.length;n.focusIndex=e>=t?0:e<0?t-1:e,n.menuItemEls[n.focusIndex].focus()}})),h(d(n),"focusFirstItem",(function(){n.setFocus(0)})),h(d(n),"focusLastItem",(function(){n.setFocus(-1)})),h(d(n),"focusNextItem",(function(){n.setFocus(n.focusIndex+1)})),h(d(n),"focusPreviousItem",(function(){n.setFocus(n.focusIndex-1)})),h(d(n),"fireOnCloseHandler",(function(e,t){var r=n.props.onClose;r&&r(e,t)})),h(d(n),"handleClick",(function(e){(e.target instanceof Node?n.getMenuItemElFromEventTarget(e.target):{}).menuItemEl&&n.fireOnCloseHandler(!1,e)})),h(d(n),"handleKeyDown",(function(e){var t=n.props,r=t.isSubmenu,o=t.initialFocusIndex;switch(e.key){case"ArrowDown":v(e),null!==o||n.keyboardPressed?n.focusNextItem():n.focusFirstItem();break;case"ArrowUp":v(e),n.focusPreviousItem();break;case"ArrowLeft":if(!r)return;v(e),n.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":v(e),n.focusFirstItem();break;case"End":case"PageDown":v(e),n.focusLastItem();break;case"Escape":v(e),n.fireOnCloseHandler(!0,e);break;case"Tab":n.fireOnCloseHandler(!0,e);break;case" ":case"Enter":v(e),e.target instanceof HTMLElement&&e.target.click()}n.keyboardPressed=!0})),n.focusIndex=0,n.menuEl=null,n.menuItemEls=[],n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.setMenuItemEls(),this.setInitialFocusIndex()}},{key:"componentDidUpdate",value:function(e){var t=e.isHidden,n=e.children,o=this.props,i=o.children,a=o.isHidden;if(o.isSubmenu&&t&&!a&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),r.Children.toArray(n).length!==r.Children.toArray(i).length){var s=this.menuItemEls[this.focusIndex];this.setMenuItemEls();var l=this.getMenuItemElFromEventTarget(s).menuIndex;this.setFocus(l)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=t.isHidden,l=t.setRef,c=t.shouldOutlineFocus,f=u(t,["children","className","isHidden","setRef","shouldOutlineFocus"]),d=i()(f,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return d.className=s()("aria-menu",o,{"is-hidden":a,"should-outline-focus":c}),d.ref=function(t){e.menuEl=t,l&&l(t)},void 0===d.role&&(d.role="menu"),d.tabIndex=-1,d.onClick=this.handleClick,d.onKeyDown=this.handleKeyDown,r.createElement("ul",d,n)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);h(g,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1}),t.a=g},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(189);t.a=function(e){var t=e.language,n=e.messages,a=e.children;return!!t&&!!n?o.a.createElement(i.a,{locale:t,messages:n},a):r.Children.only(a)}},function(e,t,n){"use strict";var r=n(74);n.d(t,"a",(function(){return r.a}))},,,function(e,t,n){var r=n(362),o=n(363),i=n(364),a=n(365),s=n(366);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(113);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(70)(Object,"create");e.exports=r},function(e,t,n){var r=n(386);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=n(e);return!!(t=null==t?r:t)&&("number"==i||"symbol"!=i&&o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(218),o=n(398),i=n(83);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(58),i=n(44),a="[object Symbol]";e.exports=function(e){return"symbol"==r(e)||i(e)&&o(e)==a}},function(e,t,n){"use strict";(function(t){var r=n(29),o=n(446),i=n(232),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?l=n(233):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(l=n(233)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(179))},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(12),s=n.n(a),l=n(316),u=n(129),c=n(52),f=n(17);n(648);function d(){return(d=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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var h=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.error,h=e.errorPosition,b=e.hideLabel,m=e.hideOptionalLabel,y=e.icon,v=e.inputRef,g=e.isLoading,w=e.isRequired,E=e.isValid,S=e.label,O=e.labelTooltip,k=e.tooltipTetherClassName,C=p(e,["className","description","error","errorPosition","hideLabel","hideOptionalLabel","icon","inputRef","isLoading","isRequired","isValid","label","labelTooltip","tooltipTetherClassName"]),x=!!a,_=i()(n,"text-input-container",{"show-error":x}),P=r.useRef(s()("description")).current,A={"aria-invalid":x,"aria-required":w,"aria-describedby":o?P:void 0};return r.createElement("div",{className:_},r.createElement(u.a,{hideLabel:b,showOptionalText:!m&&!w,text:S,tooltip:O},!!o&&r.createElement("div",{id:P,className:"text-input-description"},o),r.createElement(f.c,{isShown:x,position:h||"middle-right",tetherElementClassName:k,text:a||"",theme:"error"},r.createElement("input",d({ref:v,required:w},A,C))),g&&!E&&r.createElement(c.b,{className:"text-input-loading"}),E&&!g&&r.createElement(l.a,{className:"text-input-verified"}),g||E||!y?null:y))};h.displayName="TextInput",t.a=h},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;function i(e){return e.type===o.literal}function a(e){return e.type===o.argument}function s(e){return e.type===o.number}function l(e){return e.type===o.date}function u(e){return e.type===o.time}function c(e){return e.type===o.select}function f(e){return e.type===o.plural}function d(e){return e.type===o.pound}function p(e){return!(!e||"object"!==r(e)||0!==e.type)}function h(e){return!(!e||"object"!==r(e)||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(o||(o={}));var b,m=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e){function t(n,r,o,i){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return m(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((a=t)?'"'+r(a)+'"':"end of input")+" found.";var a},t}(Error);var g=function(e,t){t=void 0!==t?t:{};var n,r={},i={start:ct},a=ct,s=function(e){return e.join("")},l=function(e){return y({type:o.literal,value:e},Dt())},u="#",c=rt("#",!1),f=function(){return y({type:o.pound},Dt())},d=it("argumentElement"),p="{",h=rt("{",!1),b="}",m=rt("}",!1),g=function(e){return y({type:o.argument,value:e},Dt())},w=it("numberSkeletonId"),E=/^['\/{}]/,S=ot(["'","/","{","}"],!1,!1),O={type:"any"},k=it("numberSkeletonTokenOption"),C="/",x=rt("/",!1),_=function(e){return e},P=it("numberSkeletonToken"),A=function(e,t){return{stem:e,options:t}},T=function(e){return y({type:0,tokens:e},Dt())},I="::",j=rt("::",!1),D=function(e){return e},L=function(){return It.push("numberArgStyle"),!0},R=function(e){return It.pop(),e.replace(/\s*$/,"")},N=",",M=rt(",",!1),F="number",U=rt("number",!1),B=function(e,t,n){return y({type:"number"===t?o.number:"date"===t?o.date:o.time,style:n&&n[2],value:e},Dt())},H="'",z=rt("'",!1),V=/^[^']/,W=ot(["'"],!0,!1),q=/^[^a-zA-Z'{}]/,G=ot([["a","z"],["A","Z"],"'","{","}"],!0,!1),K=/^[a-zA-Z]/,X=ot([["a","z"],["A","Z"]],!1,!1),Y=function(e){return y({type:1,pattern:e},Dt())},J=function(){return It.push("dateOrTimeArgStyle"),!0},$="date",Q=rt("date",!1),Z="time",ee=rt("time",!1),te="plural",ne=rt("plural",!1),re="selectordinal",oe=rt("selectordinal",!1),ie="offset:",ae=rt("offset:",!1),se=function(e,t,n,r){return y({type:o.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&nt('Duplicate option "'+n+'" in plural element: "'+et()+'"',tt()),e[n]={value:r,location:o},e}),{})},Dt())},le="select",ue=rt("select",!1),ce=function(e,t){return y({type:o.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&nt('Duplicate option "'+n+'" in select element: "'+et()+'"',tt()),e[n]={value:r,location:o},e}),{})},Dt())},fe="=",de=rt("=",!1),pe=function(e){return It.push("select"),!0},he=function(e,t){return It.pop(),y({id:e,value:t},Dt())},be=function(e){return It.push("plural"),!0},me=function(e,t){return It.pop(),y({id:e,value:t},Dt())},ye=it("whitespace"),ve=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ge=ot([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),we=it("syntax pattern"),Ee=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Se=ot([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Oe=it("optional whitespace"),ke=it("number"),Ce="-",xe=rt("-",!1),_e=function(e,t){return t?e?-t:t:0},Pe=(it("apostrophe"),it("double apostrophes")),Ae="''",Te=rt("''",!1),Ie=function(){return"'"},je=function(e,t){return e+t.replace("''","'")},De=function(e){return!("{"===e||jt()&&"#"===e||It.length>1&&"}"===e)},Le="\n",Re=rt("\n",!1),Ne=function(e){return"{"===e||"}"===e||jt()&&"#"===e},Me=it("argNameOrNumber"),Fe=it("argNumber"),Ue="0",Be=rt("0",!1),He=function(){return 0},ze=/^[1-9]/,Ve=ot([["1","9"]],!1,!1),We=/^[0-9]/,qe=ot([["0","9"]],!1,!1),Ge=function(e){return parseInt(e.join(""),10)},Ke=it("argName"),Xe=0,Ye=0,Je=[{line:1,column:1}],$e=0,Qe=[],Ze=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function et(){return e.substring(Ye,Xe)}function tt(){return st(Ye,Xe)}function nt(e,t){throw function(e,t){return new v(e,[],"",t)}(e,t=void 0!==t?t:st(Ye,Xe))}function rt(e,t){return{type:"literal",text:e,ignoreCase:t}}function ot(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function it(e){return{type:"other",description:e}}function at(t){var n,r=Je[t];if(r)return r;for(n=t-1;!Je[n];)n--;for(r={line:(r=Je[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Je[t]=r,r}function st(e,t){var n=at(e),r=at(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function lt(e){Xe<$e||(Xe>$e&&($e=Xe,Qe=[]),Qe.push(e))}function ut(e,t,n){return new v(v.buildMessage(e,t),e,t,n)}function ct(){return ft()}function ft(){var e,t;for(e=[],t=dt();t!==r;)e.push(t),t=dt();return e}function dt(){var t;return(t=function(){var e,t;e=Xe,(t=pt())!==r&&(Ye=e,t=l(t));return e=t}())===r&&(t=function(){var t,n,o,i;Ze++,t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(125===e.charCodeAt(Xe)?(i=b,Xe++):(i=r,0===Ze&<(m)),i!==r?(Ye=t,n=g(o),t=n):(Xe=t,t=r)):(Xe=t,t=r);Ze--,t===r&&(n=r,0===Ze&<(d));return t}())===r&&(t=function(){var t;(t=function(){var t,n,o,i,a,s,l,u,c;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r&&Ot()!==r?(e.substr(Xe,6)===F?(a=F,Xe+=6):(a=r,0===Ze&<(U)),a!==r&&Ot()!==r?(s=Xe,44===e.charCodeAt(Xe)?(l=N,Xe++):(l=r,0===Ze&<(M)),l!==r&&(u=Ot())!==r&&(c=function(){var t,n,o;t=Xe,e.substr(Xe,2)===I?(n=I,Xe+=2):(n=r,0===Ze&<(j));n!==r&&(o=function(){var e,t,n;if(e=Xe,t=[],(n=mt())!==r)for(;n!==r;)t.push(n),n=mt();else t=r;t!==r&&(Ye=e,t=T(t));return e=t}())!==r?(Ye=t,n=D(o),t=n):(Xe=t,t=r);t===r&&(t=Xe,Ye=Xe,(n=(n=L())?void 0:r)!==r&&(o=pt())!==r?(Ye=t,n=R(o),t=n):(Xe=t,t=r));return t}())!==r?s=l=[l,u,c]:(Xe=s,s=r),s===r&&(s=null),s!==r&&(l=Ot())!==r?(125===e.charCodeAt(Xe)?(u=b,Xe++):(u=r,0===Ze&<(m)),u!==r?(Ye=t,n=B(o,a,s),t=n):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r);return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r&&Ot()!==r?(e.substr(Xe,4)===$?(a=$,Xe+=4):(a=r,0===Ze&<(Q)),a===r&&(e.substr(Xe,4)===Z?(a=Z,Xe+=4):(a=r,0===Ze&<(ee))),a!==r&&Ot()!==r?(s=Xe,44===e.charCodeAt(Xe)?(l=N,Xe++):(l=r,0===Ze&<(M)),l!==r&&(u=Ot())!==r&&(c=function(){var t,n,o;t=Xe,e.substr(Xe,2)===I?(n=I,Xe+=2):(n=r,0===Ze&<(j));n!==r&&(o=function(){var t,n,o,i;t=Xe,n=Xe,o=[],(i=yt())===r&&(i=vt());if(i!==r)for(;i!==r;)o.push(i),(i=yt())===r&&(i=vt());else o=r;n=o!==r?e.substring(n,Xe):o;n!==r&&(Ye=t,n=Y(n));return t=n}())!==r?(Ye=t,n=D(o),t=n):(Xe=t,t=r);t===r&&(t=Xe,Ye=Xe,(n=(n=J())?void 0:r)!==r&&(o=pt())!==r?(Ye=t,n=R(o),t=n):(Xe=t,t=r));return t}())!==r?s=l=[l,u,c]:(Xe=s,s=r),s===r&&(s=null),s!==r&&(l=Ot())!==r?(125===e.charCodeAt(Xe)?(u=b,Xe++):(u=r,0===Ze&<(m)),u!==r?(Ye=t,n=B(o,a,s),t=n):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c,f,d;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));if(n!==r)if(Ot()!==r)if((o=Pt())!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r)if(Ot()!==r)if(e.substr(Xe,6)===te?(a=te,Xe+=6):(a=r,0===Ze&<(ne)),a===r&&(e.substr(Xe,13)===re?(a=re,Xe+=13):(a=r,0===Ze&<(oe))),a!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(s=N,Xe++):(s=r,0===Ze&<(M)),s!==r)if(Ot()!==r)if(l=Xe,e.substr(Xe,7)===ie?(u=ie,Xe+=7):(u=r,0===Ze&<(ae)),u!==r&&(c=Ot())!==r&&(f=kt())!==r?l=u=[u,c,f]:(Xe=l,l=r),l===r&&(l=null),l!==r)if((u=Ot())!==r){if(c=[],(f=wt())!==r)for(;f!==r;)c.push(f),f=wt();else c=r;c!==r&&(f=Ot())!==r?(125===e.charCodeAt(Xe)?(d=b,Xe++):(d=r,0===Ze&<(m)),d!==r?(Ye=t,n=se(o,a,l,c),t=n):(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c;t=Xe,123===e.charCodeAt(Xe)?(n=p,Xe++):(n=r,0===Ze&<(h));if(n!==r)if(Ot()!==r)if((o=Pt())!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(i=N,Xe++):(i=r,0===Ze&<(M)),i!==r)if(Ot()!==r)if(e.substr(Xe,6)===le?(a=le,Xe+=6):(a=r,0===Ze&<(ue)),a!==r)if(Ot()!==r)if(44===e.charCodeAt(Xe)?(s=N,Xe++):(s=r,0===Ze&<(M)),s!==r)if(Ot()!==r){if(l=[],(u=gt())!==r)for(;u!==r;)l.push(u),u=gt();else l=r;l!==r&&(u=Ot())!==r?(125===e.charCodeAt(Xe)?(c=b,Xe++):(c=r,0===Ze&<(m)),c!==r?(Ye=t,n=ce(o,l),t=n):(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;else Xe=t,t=r;return t}())===r&&(t=function(){var t,n;t=Xe,35===e.charCodeAt(Xe)?(n=u,Xe++):(n=r,0===Ze&<(c));n!==r&&(Ye=t,n=f());return t=n}()),t}function pt(){var e,t,n;if(e=Xe,t=[],(n=Ct())===r&&(n=xt())===r&&(n=_t()),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(n=xt())===r&&(n=_t());else t=r;return t!==r&&(Ye=e,t=s(t)),e=t}function ht(){var t,n,o,i,a;if(Ze++,t=Xe,n=[],o=Xe,i=Xe,Ze++,(a=Et())===r&&(E.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(S))),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Xe,i=Xe,Ze++,(a=Et())===r&&(E.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(S))),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r);else n=r;return t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(w)),t}function bt(){var t,n,o;return Ze++,t=Xe,47===e.charCodeAt(Xe)?(n=C,Xe++):(n=r,0===Ze&<(x)),n!==r&&(o=ht())!==r?(Ye=t,t=n=_(o)):(Xe=t,t=r),Ze--,t===r&&(n=r,0===Ze&<(k)),t}function mt(){var e,t,n,o;if(Ze++,e=Xe,Ot()!==r)if((t=ht())!==r){for(n=[],o=bt();o!==r;)n.push(o),o=bt();n!==r?(Ye=e,e=A(t,n)):(Xe=e,e=r)}else Xe=e,e=r;else Xe=e,e=r;return Ze--,e===r&&(r,0===Ze&<(P)),e}function yt(){var t,n,o,i;if(t=Xe,39===e.charCodeAt(Xe)?(n=H,Xe++):(n=r,0===Ze&<(z)),n!==r){if(o=[],(i=Ct())===r&&(V.test(e.charAt(Xe))?(i=e.charAt(Xe),Xe++):(i=r,0===Ze&<(W))),i!==r)for(;i!==r;)o.push(i),(i=Ct())===r&&(V.test(e.charAt(Xe))?(i=e.charAt(Xe),Xe++):(i=r,0===Ze&<(W)));else o=r;o!==r?(39===e.charCodeAt(Xe)?(i=H,Xe++):(i=r,0===Ze&<(z)),i!==r?t=n=[n,o,i]:(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;if(t===r)if(t=[],(n=Ct())===r&&(q.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(G))),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(q.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(G)));else t=r;return t}function vt(){var t,n;if(t=[],K.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(X)),n!==r)for(;n!==r;)t.push(n),K.test(e.charAt(Xe))?(n=e.charAt(Xe),Xe++):(n=r,0===Ze&<(X));else t=r;return t}function gt(){var t,n,o,i,a;return t=Xe,Ot()!==r&&(n=Tt())!==r&&Ot()!==r?(123===e.charCodeAt(Xe)?(o=p,Xe++):(o=r,0===Ze&<(h)),o!==r?(Ye=Xe,(pe(n)?void 0:r)!==r&&(i=ft())!==r?(125===e.charCodeAt(Xe)?(a=b,Xe++):(a=r,0===Ze&<(m)),a!==r?(Ye=t,t=he(n,i)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r),t}function wt(){var t,n,o,i,a;return t=Xe,Ot()!==r&&(n=function(){var t,n,o,i;return t=Xe,n=Xe,61===e.charCodeAt(Xe)?(o=fe,Xe++):(o=r,0===Ze&<(de)),o!==r&&(i=kt())!==r?n=o=[o,i]:(Xe=n,n=r),(t=n!==r?e.substring(t,Xe):n)===r&&(t=Tt()),t}())!==r&&Ot()!==r?(123===e.charCodeAt(Xe)?(o=p,Xe++):(o=r,0===Ze&<(h)),o!==r?(Ye=Xe,(be(n)?void 0:r)!==r&&(i=ft())!==r?(125===e.charCodeAt(Xe)?(a=b,Xe++):(a=r,0===Ze&<(m)),a!==r?(Ye=t,t=me(n,i)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r)):(Xe=t,t=r),t}function Et(){var t;return Ze++,ve.test(e.charAt(Xe))?(t=e.charAt(Xe),Xe++):(t=r,0===Ze&<(ge)),Ze--,t===r&&(r,0===Ze&<(ye)),t}function St(){var t;return Ze++,Ee.test(e.charAt(Xe))?(t=e.charAt(Xe),Xe++):(t=r,0===Ze&<(Se)),Ze--,t===r&&(r,0===Ze&<(we)),t}function Ot(){var t,n,o;for(Ze++,t=Xe,n=[],o=Et();o!==r;)n.push(o),o=Et();return t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(Oe)),t}function kt(){var t,n,o;return Ze++,t=Xe,45===e.charCodeAt(Xe)?(n=Ce,Xe++):(n=r,0===Ze&<(xe)),n===r&&(n=null),n!==r&&(o=At())!==r?(Ye=t,t=n=_e(n,o)):(Xe=t,t=r),Ze--,t===r&&(n=r,0===Ze&<(ke)),t}function Ct(){var t,n;return Ze++,t=Xe,e.substr(Xe,2)===Ae?(n=Ae,Xe+=2):(n=r,0===Ze&<(Te)),n!==r&&(Ye=t,n=Ie()),Ze--,(t=n)===r&&(n=r,0===Ze&<(Pe)),t}function xt(){var t,n,o,i,a,s;if(t=Xe,39===e.charCodeAt(Xe)?(n=H,Xe++):(n=r,0===Ze&<(z)),n!==r)if((o=function(){var t,n,o,i;t=Xe,n=Xe,e.length>Xe?(o=e.charAt(Xe),Xe++):(o=r,0===Ze&<(O));o!==r?(Ye=Xe,(i=(i=Ne(o))?void 0:r)!==r?n=o=[o,i]:(Xe=n,n=r)):(Xe=n,n=r);t=n!==r?e.substring(t,Xe):n;return t}())!==r){for(i=Xe,a=[],e.substr(Xe,2)===Ae?(s=Ae,Xe+=2):(s=r,0===Ze&<(Te)),s===r&&(V.test(e.charAt(Xe))?(s=e.charAt(Xe),Xe++):(s=r,0===Ze&<(W)));s!==r;)a.push(s),e.substr(Xe,2)===Ae?(s=Ae,Xe+=2):(s=r,0===Ze&<(Te)),s===r&&(V.test(e.charAt(Xe))?(s=e.charAt(Xe),Xe++):(s=r,0===Ze&<(W)));(i=a!==r?e.substring(i,Xe):a)!==r?(39===e.charCodeAt(Xe)?(a=H,Xe++):(a=r,0===Ze&<(z)),a===r&&(a=null),a!==r?(Ye=t,t=n=je(o,i)):(Xe=t,t=r)):(Xe=t,t=r)}else Xe=t,t=r;else Xe=t,t=r;return t}function _t(){var t,n,o,i;return t=Xe,n=Xe,e.length>Xe?(o=e.charAt(Xe),Xe++):(o=r,0===Ze&<(O)),o!==r?(Ye=Xe,(i=(i=De(o))?void 0:r)!==r?n=o=[o,i]:(Xe=n,n=r)):(Xe=n,n=r),n===r&&(10===e.charCodeAt(Xe)?(n=Le,Xe++):(n=r,0===Ze&<(Re))),t=n!==r?e.substring(t,Xe):n}function Pt(){var t,n;return Ze++,t=Xe,(n=At())===r&&(n=Tt()),t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(Me)),t}function At(){var t,n,o,i,a;if(Ze++,t=Xe,48===e.charCodeAt(Xe)?(n=Ue,Xe++):(n=r,0===Ze&<(Be)),n!==r&&(Ye=t,n=He()),(t=n)===r){if(t=Xe,n=Xe,ze.test(e.charAt(Xe))?(o=e.charAt(Xe),Xe++):(o=r,0===Ze&<(Ve)),o!==r){for(i=[],We.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(qe));a!==r;)i.push(a),We.test(e.charAt(Xe))?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(qe));i!==r?n=o=[o,i]:(Xe=n,n=r)}else Xe=n,n=r;n!==r&&(Ye=t,n=Ge(n)),t=n}return Ze--,t===r&&(n=r,0===Ze&<(Fe)),t}function Tt(){var t,n,o,i,a;if(Ze++,t=Xe,n=[],o=Xe,i=Xe,Ze++,(a=Et())===r&&(a=St()),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Xe,i=Xe,Ze++,(a=Et())===r&&(a=St()),Ze--,a===r?i=void 0:(Xe=i,i=r),i!==r?(e.length>Xe?(a=e.charAt(Xe),Xe++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Xe=o,o=r)):(Xe=o,o=r);else n=r;return t=n!==r?e.substring(t,Xe):n,Ze--,t===r&&(n=r,0===Ze&<(Ke)),t}var It=["root"];function jt(){return"plural"===It[It.length-1]}function Dt(){return t&&t.captureLocation?{location:tt()}:{}}if((n=a())!==r&&Xe===e.length)return n;throw n!==r&&Xe<e.length&<({type:"end"}),ut(Qe,$e<e.length?e.charAt($e):null,$e<e.length?st($e,$e+1):st($e,$e))},w=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},E=/(^|[^\\])#/g;function S(e,t){var n=g(e,t);return t&&!1===t.normalizeHashtagInPlural||function e(t){t.forEach((function(t){(f(t)||c(t))&&Object.keys(t.options).forEach((function(n){for(var r,o=t.options[n],a=-1,s=void 0,l=0;l<o.value.length;l++){var u=o.value[l];if(i(u)&&E.test(u.value)){a=l,s=u;break}}if(s){var c=s.value.replace(E,"$1{"+t.value+", number}"),f=g(c);(r=o.value).splice.apply(r,w([a,1],f))}e(o.value)}))}))}(n),n}var O=n(46),k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},C=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function x(e){var t={};return e.replace(C,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var _=/^\.(?:(0+)(\+|#+)?)?$/g,P=/^(@+)?(\+|#+)?$/g;function A(e){var t={};return e.replace(P,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function T(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function I(e){var t=T(e);return t||{}}function j(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return k(k({},e),I(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return k(k({},e),I(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(_.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=k(k({},t),A(o.options[0])))}else if(P.test(o.stem))t=k(k({},t),A(o.stem));else{var i=T(o.stem);i&&(t=k(k({},t),i))}}return t}var D,L=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},N=function(e){function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return L(t,e),t}(Error);function M(e,t,n,r,o,b,m){if(1===e.length&&i(e[0]))return[{type:0,value:e[0].value}];for(var y,v=[],g=0,w=e;g<w.length;g++){var E=w[g];if(i(E))v.push({type:0,value:E.value});else if(d(E))"number"==typeof b&&v.push({type:0,value:n.getNumberFormat(t).format(b)});else{var S=E.value;if(!(o&&S in o))throw new N('The intl string context variable "'+S+'" was not provided to the string "'+m+'"');var O=o[S];if(a(E))O&&"string"!=typeof O&&"number"!=typeof O||(O="string"==typeof O||"number"==typeof O?String(O):""),v.push({type:1,value:O});else if(l(E)){var k="string"==typeof E.style?r.date[E.style]:void 0;v.push({type:0,value:n.getDateTimeFormat(t,k).format(O)})}else if(u(E)){k="string"==typeof E.style?r.time[E.style]:h(E.style)?x(E.style.pattern):void 0;v.push({type:0,value:n.getDateTimeFormat(t,k).format(O)})}else if(s(E)){k="string"==typeof E.style?r.number[E.style]:p(E.style)?j(E.style.tokens):void 0;v.push({type:0,value:n.getNumberFormat(t,k).format(O)})}else if(c(E)){if(!(C=E.options[O]||E.options.other))throw new RangeError('Invalid values for "'+E.value+'": "'+O+'". Options are "'+Object.keys(E.options).join('", "')+'"');v.push.apply(v,M(C.value,t,n,r,o))}else if(f(E)){var C;if(!(C=E.options["="+O])){if(!Intl.PluralRules)throw new N('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var _=n.getPluralRules(t,{type:E.pluralType}).select(O-(E.offset||0));C=E.options[_]||E.options.other}if(!C)throw new RangeError('Invalid values for "'+E.value+'": "'+O+'". Options are "'+Object.keys(E.options).join('", "')+'"');v.push.apply(v,M(C.value,t,n,r,o,O-(E.offset||0)))}else;}}return(y=v).length<2?y:y.reduce((function(e,t){var n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e}),[])}var F="@@",U=/@@(\d+_\d+)@@/g,B=0;function H(e,t){return e.split(U).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var z=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,V=Date.now()+"@@",W=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function q(e,t,n,r,o,i){var a=M(e,t,n,r,o,void 0,i),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++B;return s[n]=t.value,e+""+F+n+F}),"");if(!z.test(l))return H(l,s);if(!o)throw new N("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new N("Cannot format XML message without DOMParser");D||(D=new DOMParser);var u=D.parseFromString('<formatted-message id="'+V+'">'+l+"</formatted-message>","text/html").getElementById(V);if(!u)throw new N("Malformed HTML message "+l);var c=Object.keys(o).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!c.length)return H(l,s);var f=c.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new N("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(function e(t,n,r){var o=t.tagName,i=t.outerHTML,a=t.textContent,s=t.childNodes;if(!o)return H(a||"",n);o=o.toLowerCase();var l=~W.indexOf(o),u=r[o];if(u&&l)throw new N(o+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[i];var c=Array.prototype.slice.call(s).reduce((function(t,o){return t.concat(e(o,n,r))}),[]);return u?"function"==typeof u?[u.apply(void 0,c)]:[u]:R(["<"+o+">"],c,["</"+o+">"])}(t,s,o))}),[])}var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function K(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?G(G(G({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=G(G({},o[t]),i[t]||{}),e}),{})):o),n}),G({},e)):e}var X=function(){function e(t,n,r,o){var i,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,n,r,o,i){var a=M(e,t,n,r,o,void 0,i);return 1===a.length?a[0].value:a.reduce((function(e,t){return e+t.value}),"")}(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return M(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return q(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=K(e.formats,r),this.locales=n,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(O.a)(Intl.NumberFormat,i.number),getDateTimeFormat:Object(O.a)(Intl.DateTimeFormat,i.dateTime),getPluralRules:Object(O.a)(Intl.PluralRules,i.pluralRules)})}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=S,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();t.a=X},,function(e,t,n){"use strict";var r=n(0),o=n(156);n(501);t.a=function(e){var t=e.children;return r.createElement("span",{className:"menu-toggle"},t,r.createElement(o.a,{className:"toggle-arrow",width:7}))}},,function(e,t,n){"use strict";var r,o,i=n(0),a=n(12),s=n.n(a),l=n(49),u=n.n(l);n(437);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(o||(o={}));var v=(y(r={},o.BOTTOM_CENTER,{attachment:"top center",targetAttachment:"bottom center"}),y(r,o.BOTTOM_LEFT,{attachment:"top left",targetAttachment:"bottom left"}),y(r,o.BOTTOM_RIGHT,{attachment:"top right",targetAttachment:"bottom right"}),y(r,o.MIDDLE_CENTER,{attachment:"middle center",targetAttachment:"middle center"}),y(r,o.MIDDLE_LEFT,{attachment:"middle right",targetAttachment:"middle left"}),y(r,o.MIDDLE_RIGHT,{attachment:"middle left",targetAttachment:"middle right"}),y(r,o.TOP_CENTER,{attachment:"bottom center",targetAttachment:"top center"}),y(r,o.TOP_LEFT,{attachment:"bottom left",targetAttachment:"top left"}),y(r,o.TOP_RIGHT,{attachment:"bottom right",targetAttachment:"top right"}),r),g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?b(e):t}(this,(e=h(t)).call.apply(e,[this].concat(o))),y(b(n),"tetherRef",i.createRef()),y(b(n),"radarAnimationID",s()("radarAnimation")),y(b(n),"position",(function(){var e=n.props.isShown;n.tetherRef.current&&e&&n.tetherRef.current.position()})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=void 0===n?"":n,o=e.constrainToScrollParent,a=e.constrainToWindow,s=e.position,l=e.isShown,c=e.offset,p=e.tetherElementClassName,h=d(e,["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset","tetherElementClassName"]),b=[];o&&b.push({to:"scrollParent",attachment:"together"}),a&&b.push({to:"window",attachment:"together"});var m=v[s],y=m.attachment,g=m.targetAttachment,w=i.Children.only(t),E=i.cloneElement(w,{"aria-describedby":this.radarAnimationID}),S={attachment:y,classPrefix:"radar-animation",constraints:b,targetAttachment:g};return p&&(S.className=p),c&&(S.offset=c),i.createElement(u.a,f({ref:this.tetherRef},S),E,l&&i.createElement("div",f({className:"radar ".concat(r),id:this.radarAnimationID},h),i.createElement("div",{className:"radar-dot"}),i.createElement("div",{className:"radar-circle"})))}}])&&p(n.prototype,r),o&&p(n,o),t}(i.Component);y(g,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:o.MIDDLE_RIGHT});var w=g;n.d(t,"a",(function(){return w}))},,,function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="data-resin-target"},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},,,,,function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000":i,s=e.height,l=void 0===s?6:s,u=e.title,c=e.width,f=void 0===c?10:c;return r.createElement(o.a,{className:"icon-caret-down ".concat(n),height:l,title:u,viewBox:"0 0 10 6",width:f},r.createElement("path",{className:"fill-color",d:"M0 .5l5 5 5-5H0z",fill:a,fillRule:"evenodd"}))}},,function(e,t,n){"use strict";var r=n(245);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(188),o=n(0);n(4),n(214);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c,f,d,p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.className;return o.createElement("div",{className:"link-group ".concat(r)},t?o.createElement("div",{className:"link-group-title"},t):null,o.createElement("ul",null,o.Children.map(n,(function(e,t){return e?o.createElement("li",{key:t},e," "):null}))))}}])&&a(n.prototype,r),i&&a(n,i),t}(o.Component);d={title:"",className:""},(f="defaultProps")in(c=p)?Object.defineProperty(c,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[f]=d;n.d(t,"a",(function(){return r.a}))},function(e,t,n){var r=n(341),o=n(83),i=n(264),a=n(306),s=n(460),l=Math.max;e.exports=function(e,t,n,u){e=o(e)?e:s(e),n=n&&!u?a(n):0;var c=e.length;return n<0&&(n=l(c+n,0)),i(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},function(e,t,n){"use strict";t.a="__clear__"},function(e,t,n){"use strict";var r=n(88),o=Object(r.defineMessages)({clearAll:{id:"boxui.selectField.clearAll",defaultMessage:"Clear All"},searchPlaceholder:{id:"boxui.selectField.searchPlaceholder",defaultMessage:"Search"},noResults:{id:"boxui.selectField.noResults",defaultMessage:"No Results"}});t.a=o},function(e,t,n){var r=n(132),o=n(367),i=n(368),a=n(369),s=n(370),l=n(371);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(395),o=n(173),i=n(174),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){"use strict";var r=n(0),o=n(28);function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=function(t){var n=t.isLoading,a=void 0!==n&&n,s=t.loadingIndicatorProps,l=void 0===s?{}:s,u=i(t,["isLoading","loadingIndicatorProps"]);return a?r.createElement(o.b,l):r.createElement(e,u)};return t.displayName="Loadable".concat(e.displayName||e.name||"Component"),t}},function(e,t,n){"use strict";var r=n(0),o=function(e){var t=e.className,n=void 0===t?"":t,o=e.url,i=e.onError;return r.createElement("img",{alt:"",className:"avatar-image ".concat(n),onError:function(e){"function"==typeof i&&i(e)},src:o})},i=n(2),a=function(e){var t=e.className,n=void 0===t?"":t,o=e.id,a=void 0===o?0:o,s=e.name,l=(parseInt(a,10)||0)%i.a.length;return r.createElement("span",{className:"avatar-initials ".concat(n),"data-bg-idx":l},function(e){var t=e.replace(/[[({<]+.*[\])}>]+/g,"").trim();return(t.slice(0,1)+t.slice(t.lastIndexOf(" ")+1,t.lastIndexOf(" ")+2)).toUpperCase()}(s))},s=n(9),l=function(e){var t=e.className,n=void 0===t?"":t,o=e.height,a=void 0===o?28:o,l=e.title,u=e.width,c=void 0===u?28:u;return r.createElement(s.a,{className:"unknown-user-avatar ".concat(n),height:a,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{fill:i.j,fillRule:"evenodd",d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 9.5c-1.21 0-2.293.413-3.232 1.096-.56.407-.953.817-1.168 1.104a.5.5 0 00.8.6c.035-.047.114-.141.234-.267.205-.214.447-.428.722-.629.78-.567 1.665-.904 2.644-.904.979 0 1.865.337 2.644.904.275.2.517.415.722.63.12.125.199.219.234.266a.5.5 0 00.8-.6c-.215-.287-.607-.697-1.168-1.104C10.293 9.913 9.21 9.5 8 9.5zm0-6a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm0 1a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 018 4.5z"}))},u=n(4),c=n.n(u),f=n(266);function d(){return(d=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)}var p=function(e){return r.createElement(s.a,d({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:i.j,fillRule:"evenodd",d:"M8 0a7.988 7.988 0 00-5.662 2.338A7.992 7.992 0 000 8a7.988 7.988 0 002.338 5.662A7.992 7.992 0 008 16a7.988 7.988 0 005.662-2.338A7.992 7.992 0 0016 8a7.988 7.988 0 00-2.338-5.662A7.992 7.992 0 008 0zm-.862 14.4C4.062 13.908 1.6 11.323 1.6 8c0-.492.123-.984.123-1.477L5.54 10.34v.861c0 .862.738 1.6 1.6 1.6v1.6zm5.539-2.092c-.247-.616-.861-1.108-1.477-1.108h-.862V8.738c0-.368-.246-.738-.738-.738H4.8V6.4h1.6c.492 0 .862-.37.862-.862V4.062h1.6c.861 0 1.6-.739 1.6-1.6v-.37C12.8 3.077 14.4 5.292 14.4 8c0 1.723-.616 3.2-1.723 4.308z"}))};n(637);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m={small:!0,large:!0};var y=function(e){var t,n,i=e.avatarUrl,s=e.className,u=e.name,d=e.id,y=e.isExternal,v=e.shouldShowExternal,g=void 0!==v&&v,w=e.size,E=void 0===w?"":w,S=b(r.useState(!1),2),O=S[0],k=S[1],C=b(r.useState(null),2),x=C[0],_=C[1],P=c()(["avatar",s,(t={},h(t,"avatar--".concat(E),E&&m[E]),h(t,"avatar--isExternal",g&&y),t)]);return i!==x&&(k(!1),_(i)),n=i&&!O?r.createElement(o,{onError:function(){k(!0)},url:i}):u?r.createElement(a,{id:d,name:u}):r.createElement(l,{className:"avatar-icon"}),r.createElement(f.a,{className:P,bottomRight:g&&y?r.createElement(p,{className:"bdl-Avatar-externalBadge"}):void 0},r.createElement("span",null,n))};n.d(t,"a",(function(){return y}))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(70)(n(40),"Map");e.exports=r},function(e,t,n){var r=n(58),o=n(38),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},function(e,t,n){var r=n(171),o=n(113),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(217);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(215),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(this,n(90)(e))},function(e,t,n){var r=n(401),o=n(221),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(219)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(302);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function b(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,u=e.title,c=e.width,f=void 0===c?24:c;return r.createElement(o.a,{className:"icon-check ".concat(n),height:l,title:u,viewBox:"0 0 24 24",width:f},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{className:"fill-color",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:a}))}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(428),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),b=l(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||b&&b[y]||s&&s[y])){var v=d(n,y);try{u(t,y,v)}catch(e){}}}}return t}},function(e,t,n){var r=n(439),o=n(304);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";var r=n(312);n.d(t,"a",(function(){return r.a}));var o=n(313);n.d(t,"b",(function(){return o.a}));n(265)},,,,function(e,t,n){"use strict";var r=n(0),o=n(214);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=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(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d,p,h,b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var n,i,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.className,n=s(e,["className"]);return r.createElement(o.a,a({className:"link ".concat(t)},n))}}])&&l(n.prototype,i),d&&l(n,d),t}(r.Component);h={className:""},(p="defaultProps")in(d=b)?Object.defineProperty(d,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[p]=h,t.a=b},function(e,t,n){"use strict";var r=n(0),o=n(51),i=n(11);var a=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function s(e,t){var n=e.locale,r=e.formats,o=e.onError,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=s.format,u=l&&Object(i.g)(r,"number",l,o)||{};return t(n,Object(i.f)(s,a,u))}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,r).format(n)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return String(n)}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,r).formatToParts(n)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return[]}var c=["numeric","style"];function f(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second"),Intl.RelativeTimeFormat||e.onError(Object(i.b)('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function(e,t){var n=e.locale,r=e.formats,o=e.onError,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a.format,l=!!s&&Object(i.g)(r,"relative",s,o)||{};return t(n,Object(i.f)(a,c,l))}(e,t,o).format(n,r)}catch(t){e.onError(Object(i.b)("Error formatting relative time.",t))}return String(n)}function d(){return(d=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)}var p=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function h(e,t,n){var r=e.locale,o=e.formats,a=e.onError,s=e.timeZone,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.format,c=d(d({},s&&{timeZone:s}),u&&Object(i.g)(o,t,u,a)),f=Object(i.f)(l,p,c);return"time"!==t||f.hour||f.minute||f.second||(f=d(d({},f),{hour:"numeric",minute:"numeric"})),n(r,f)}function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).format(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return String(o)}function m(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).format(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return String(o)}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return[]}function v(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return[]}var g=["localeMatcher","type"];function w(e,t,n){var r=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(Object(i.b)('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var s=Object(i.f)(a,g);try{return t(r,s).select(n)}catch(e){o(Object(i.b)("Error formatting plural.",e))}return"other"}var E=n(107),S=n(81),O=n.n(S);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var C=["localeMatcher","type","style"],x=Date.now();function _(e,t,n){var r=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(Object(i.b)('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=Object(i.f)(a,C);try{var l={},u=n.map((function(e,t){if("object"===k(e)){var n=function(e){return"".concat(x,"_").concat(e,"_").concat(x)}(t);return l[n]=e,n}return String(e)}));return Object.keys(l).length?t(r,s).formatToParts(u).reduce((function(e,t){var n=t.value;return l[n]?e.push(l[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]):t(r,s).format(u)}catch(e){o(Object(i.b)("Error formatting list.",e))}return n}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(){return(D=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)}n.d(t,"a",(function(){return M}));var L=O.a||S;function R(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function N(e,t){var n=Object(i.c)(t),r=D(D({},i.a),e);if(!r.locale||!function(e,t){if("undefined"==typeof Intl)return!1;if(!e)throw new Error("locales must be supplied.");Array.isArray(e)||(e=[e]);var n=t||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(n=n.filter(Boolean)).length||t&&n.length!==t.length)&&n.every((function(t){return t.supportedLocalesOf(e).length===e.length}))}(r.locale)){var o=r.locale,a=r.defaultLocale,s=r.onError;"function"==typeof s&&s(Object(i.b)('Missing locale data for locale: "'.concat(o,'". ')+'Using default locale: "'.concat(a,'" as fallback.'))),r.locale=r.defaultLocale||"en"}return D(D({},r),{formatters:n,formatNumber:l.bind(null,r,n.getNumberFormat),formatNumberToParts:u.bind(null,r,n.getNumberFormat),formatRelativeTime:f.bind(null,r,n.getRelativeTimeFormat),formatDate:b.bind(null,r,n.getDateTimeFormat),formatDateToParts:y.bind(null,r,n.getDateTimeFormat),formatTime:m.bind(null,r,n.getDateTimeFormat),formatTimeToParts:v.bind(null,r,n.getDateTimeFormat),formatPlural:w.bind(null,r,n.getPluralRules),formatMessage:E.b.bind(null,r,n),formatHTMLMessage:E.a.bind(null,r,n),formatList:_.bind(null,r,n.getListFormat)})}var M=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=T(this,I(t).apply(this,arguments))).cache=Object(i.d)(),e.state={cache:e.cache,intl:N(R(e.props),e.cache),prevConfig:R(e.props)},e}var n,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(t,e),n=t,s=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,o=R(e);return L(n,o)?null:{intl:N(o,r),prevConfig:o}}}],(a=[{key:"render",value:function(){return Object(i.h)(this.state.intl),r.createElement(o.b,{value:this.state.intl},this.props.children)}}])&&A(n.prototype,a),s&&A(n,s),t}(r.PureComponent);M.displayName="IntlProvider",M.defaultProps=i.a},function(e,t,n){"use strict";var r=n(0),o=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#F7931D":i,s=e.height,l=void 0===s?26:s,u=e.title,c=e.width,f=void 0===c?26:c;return r.createElement(o.a,{className:"icon-alert-default ".concat(n),title:u,height:l,width:f,viewBox:"0 0 26 26"},r.createElement("defs",null,r.createElement("circle",{id:"b",cx:"8",cy:"8",r:"8"}),r.createElement("filter",{x:"-46.9%",y:"-46.9%",width:"193.8%",height:"193.8%",filterUnits:"objectBoundingBox",id:"a"},r.createElement("feMorphology",{radius:".5",operator:"dilate",in:"SourceAlpha",result:"shadowSpreadOuter1"}),r.createElement("feOffset",{in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),r.createElement("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0.5 0",in:"shadowBlurOuter1"}))),r.createElement("g",{transform:"translate(5 5)",fill:"none",fillRule:"evenodd"},r.createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),r.createElement("use",{fill:a,xlinkHref:"#b"}),r.createElement("path",{d:"M8.047 4.706v4.111",stroke:"#FFF",strokeWidth:"1.412",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("circle",{fill:"#FFF",cx:"8.047",cy:"11.294",r:"1"})))}},,,function(e,t,n){var r=n(378),o=n(385),i=n(387),a=n(388),s=n(389);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(104),o=n(98);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){var r=n(547)();e.exports=r},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},,,function(e,t,n){"use strict";var r=n(71),o=n(3),i=n.n(o),a=n(116),s=n.n(a),l=n(24),u=n(73),c=n(248),f=n.n(c);function d(){return window.crypto||window.msCrypto}function p(e,t){var n=d();return n!==window.msCrypto?n.subtle.digest(e,t):new Promise((function(r,o){if("SHA-1"===e)try{var i=f.a.arrayBuffer(t);r(i)}catch(e){o(e)}else{var a=n.subtle.digest({name:e},t);a.oncomplete=function(e){r(e.target.result)},a.onerror=o}}))}function h(e,t,n){"use asm";var r=new e.Int32Array(n);function o(e,t){e=e|0;t=t|0;var n=0,o=0,i=0,a=0,s=0,l=0,u=0,c=0,f=0,d=0,p=0,h=0,b=0,m=0;i=r[t+320>>2]|0;s=r[t+324>>2]|0;u=r[t+328>>2]|0;f=r[t+332>>2]|0;p=r[t+336>>2]|0;for(n=0;(n|0)<(e|0);n=n+64|0){a=i;l=s;c=u;d=f;h=p;for(o=0;(o|0)<64;o=o+4|0){m=r[n+o>>2]|0;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[e+o>>2]=m}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)+1859775393|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|s&f|u&f)|0)+((m+p|0)-1894007588|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){m=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)-899497514|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}i=i+a|0;s=s+l|0;u=u+c|0;f=f+d|0;p=p+h|0}r[t+320>>2]=i;r[t+324>>2]=s;r[t+328>>2]=u;r[t+332>>2]=f;r[t+336>>2]=p}return{hash:o}}var b=function(){var e=new Blob(["const RushaCore = ".concat(h.toString()),";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){var e=new Rusha;e.resetState();var t=0;self.onmessage=function(n){var r=n.data,o=r.part,i=r.fileSize,a=r.partContents,s=Date.now();try{if(o.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:r.part,duration:Date.now()-s,partContents:a},[a]),t+=o.size,o.offset+o.size===i){var l=e.end();self.postMessage({type:"done",sha1:l})}}catch(e){var u={type:"error",name:e.name,message:e.message,part:o};self.postMessage(u)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),n=new Worker(t);return n.oldTerminate=n.terminate,n.terminate=function(){(window.URL||window.webkitURL).revokeObjectURL(t),n.oldTerminate()},n},m=n(57),y=n(1),v=n(7),g=n.n(v),w=n(249),E=n.n(w);function S(e,t){if(!t)return e;var n=new E.a(e);return Object.keys(t).forEach((function(e){var r=t[e];r&&(n.hasQueryParam(e)?n.replaceQueryParam(e,r):n.addQueryParam(e,r))})),n.toString()}var O=n(14);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=5,j=10,D=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?P(e):t}(this,(e=_(t)).call.apply(e,[this].concat(o))),T(P(n),"retryCount",0),T(P(n),"reachabilityRetryCount",0),T(P(n),"isUploadFallbackLogicEnabled",!1),T(P(n),"makePreflightRequest",(function(){if(!n.isDestroyed()){var e="".concat(n.getBaseApiUrl(),"/files/content");if(n.fileId&&(e=e.replace("content","".concat(n.fileId,"/content"))),n.isUploadFallbackLogicEnabled){var t=n.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+="?unreachable_hosts=".concat(t.join(",")))}var r=n.file,o=r.size,i=r.name,a={name:n.fileName||i,parent:{id:n.folderId},description:n.fileDescription,size:o};n.xhr.options({url:e,data:a,successHandler:function(e){n.isUploadFallbackLogicEnabled?n.preflightSuccessReachabilityHandler(e):n.preflightSuccessHandler(e)},errorHandler:n.preflightErrorHandler})}})),T(P(n),"preflightSuccessReachabilityHandler",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,!n.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(o=r.upload_url){e.next=7;break}return n.preflightSuccessHandler({data:r}),e.abrupt("return");case 7:if((i=n.getUploadHostFromUrl(o))!=="".concat(y.O,"/")&&i!=="".concat(y.P,"/")&&i!=="".concat(y.Q,"/")){e.next=11;break}return n.preflightSuccessHandler({data:r}),e.abrupt("return");case 11:return e.next=13,n.uploadsReachability.isReachable(i);case 13:e.sent?n.preflightSuccessHandler({data:r}):n.reachabilityRetryCount>=j?n.preflightSuccessHandler({data:{}}):(n.reachabilityRetryCount+=1,n.makePreflightRequest());case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){C(i,r,o,a,s,"next",e)}function s(e){C(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),T(P(n),"preflightErrorHandler",(function(e){if(!n.isDestroyed()){n.fileName=n.file?n.file.name:"";var t=e,r=e.response;if(r&&r.data&&(t=r.data),n.retryCount>=I)n.errorCallback(t);else if(t&&409===t.status){if(n.overwrite){var o=t.context_info.conflicts.id;!n.fileId&&o&&(n.fileId=o)}else if(n.conflictCallback)n.fileName=n.conflictCallback(n.fileName);else{var i=n.fileName.substr(n.fileName.lastIndexOf("."))||"";n.fileName="".concat(n.fileName.substr(0,n.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(i)}n.makePreflightRequest(),n.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof n.errorCallback?n.errorCallback(t):(n.retryTimeout=setTimeout(n.makePreflightRequest,Math.pow(2,n.retryCount)*y.me),n.retryCount+=1);else{var a=y.Y;if(t.headers){var s=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(s)||(a=s*y.me)}n.retryTimeout=setTimeout(n.makePreflightRequest,a),n.retryCount+=1}}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(t,e),n=t,(r=[{key:"readFile",value:function(e,t){return new Promise((function(n,r){e.readAsArrayBuffer(t),e.onload=function(){n({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=r}))}},{key:"getUploadHostFromUrl",value:function(e){var t=e.split("/");return"".concat(t[0],"//").concat(t[2],"/")}}])&&x(n.prototype,r),o&&x(n,o),t}(O.a);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},H=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?M(e):t}(this,N(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{shouldRetry:!1}))),U(M(o),"logEvent",(function(e,t){var n={event_type:e};return t&&(n.event_info=t),o.xhr.post({url:o.sessionEndpoints.logEvent,data:n})})),o.config=r||B,o.sessionEndpoints=n,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(t,e),t}(D);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function W(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){V(i,r,o,a,s,"next",e)}function s(e){V(i,r,o,a,s,"throw",e)}a(void 0)}))}}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=0,$=2,Q=3,Z=function(e){function t(e,n,r,o,a,s,c,f,d,p,h,b){var m;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m=function(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?K(e):t}(this,G(t).call(this,e,c,f)),Y(K(m),"toJSON",(function(){return JSON.stringify({index:m.index,offset:m.offset,partSize:m.partSize,state:m.state,uploadedBytes:m.uploadedBytes,numUploadRetriesPerformed:m.numUploadRetriesPerformed,numDigestRetriesPerformed:m.numDigestRetriesPerformed,sha256:m.sha256,timing:m.timing})})),Y(K(m),"getPart",(function(){return m.data.part||{}})),Y(K(m),"upload",(function(){if(!m.isDestroyedOrPaused()){if(!m.sha256)throw new Error("Part SHA-256 unavailable");if(!m.blob)throw new Error("Part blob unavailable");var e={documentHidden:document.hidden,digest_retries:m.numDigestRetriesPerformed,timing:m.timing,parts_uploading:m.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:"sha-256=".concat(m.sha256),"Content-Range":"bytes ".concat(m.offset,"-").concat(m.rangeEnd,"/").concat(m.fileSize),"X-Box-Client-Event-Info":JSON.stringify(e)};m.state=$,m.startTimestamp=Date.now(),m.xhr.uploadFile({url:m.sessionEndpoints.uploadPart,data:m.blob,headers:t,method:y.Qd,successHandler:m.uploadSuccessHandler,errorHandler:m.uploadErrorHandler,progressHandler:m.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:m.config.requestTimeoutMs})}})),Y(K(m),"uploadSuccessHandler",(function(e){var t=e.data;m.isDestroyedOrPaused()||(m.state=Q,m.consoleLog("Upload completed: ".concat(m.toJSON(),".")),m.data=t,m.blob=null,m.timing.uploadTime=Date.now()-m.startTimestamp,m.onSuccess(K(m)),m.uploadedBytes=m.partSize)})),Y(K(m),"uploadProgressHandler",(function(e){if(!m.isDestroyedOrPaused()){var t=parseInt(e.loaded,10),n=m.uploadedBytes;m.uploadedBytes=t,m.onProgress(n,t)}})),Y(K(m),"uploadErrorHandler",function(){var e=W(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:if(n=g()(m.xhr,"xhr.readyState",null),r=g()(m.xhr,"xhr.statusText",""),m.consoleLog("Upload failure ".concat(t.message," for part ").concat(m.toJSON(),". XHR state: ").concat(n,".")),o={message:t.message,part:{uploadedBytes:m.uploadedBytes,id:m.id,index:m.index,offset:m.offset},xhr_ready_state:n,xhr_status_text:r},i=JSON.stringify(o),m.sessionEndpoints.logEvent?Object(u.a)((function(e,t){m.logEvent("part_failure",i).then(e).catch(t)}),m.config.retries,m.config.initialRetryDelayMs).catch((function(e){return m.consoleLog("Failure in logEvent: ".concat(e.message))})):m.consoleLog("logEvent endpoint not found"),!(m.numUploadRetriesPerformed>=m.config.retries)){e.next=11;break}return m.onError(t,i),e.abrupt("return");case 11:a=Object(l.a)(m.config.initialRetryDelayMs,m.config.maxRetryDelayMs,m.numUploadRetriesPerformed),m.numUploadRetriesPerformed+=1,m.consoleLog("Retrying uploading part ".concat(m.toJSON()," in ").concat(a," ms")),m.retryTimeout=setTimeout(m.retryUpload,a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Y(K(m),"retryUpload",W(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,m.listParts(m.index,1);case 5:if(!(t=e.sent)||1!==t.length||t[0].offset!==m.offset||!t[0].part_id){e.next=11;break}return m.consoleLog("Part ".concat(m.toJSON()," is available on server. Not re-uploading.")),m.id=t[0].part_id,m.uploadSuccessHandler({data:{part:t[0]}}),e.abrupt("return");case 11:throw m.consoleLog("Part ".concat(m.toJSON()," is not available on server. Re-uploading.")),new Error("Part not found on the server");case 15:e.prev=15,e.t0=e.catch(2),(n=e.t0.response)&&n.status&&m.consoleLog("Error ".concat(n.status," while listing part ").concat(m.toJSON(),". Re-uploading.")),m.numUploadRetriesPerformed+=1,m.upload();case 21:case"end":return e.stop()}}),e,null,[[2,15]])})))),Y(K(m),"listParts",function(){var e=W(regeneratorRuntime.mark((function e(t,n){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={offset:t,limit:n},o=S(m.sessionEndpoints.listParts,r),e.next=4,m.xhr.get({url:o});case 4:return i=e.sent,e.abrupt("return",i.data.entries);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),m.index=n,m.numDigestRetriesPerformed=0,m.numUploadRetriesPerformed=0,m.offset=r,m.partSize=o,m.fileSize=a,m.state=J,m.timing={},m.uploadedBytes=0,m.data={},m.config=f,m.rangeEnd=r+o-1,m.rangeEnd>a-1&&(m.rangeEnd=a-1),m.isPaused=!1,m.onSuccess=p||i.a,m.onError=b||i.a,m.onProgress=h||i.a,m.getNumPartsUploading=d,m}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(t,e),n=t,(r=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}},{key:"pause",value:function(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}},{key:"unpause",value:function(){this.isPaused=!1,this.state=$,this.retryUpload()}},{key:"reset",value:function(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}},{key:"isDestroyedOrPaused",value:function(){return this.isDestroyed()||this.isPaused}}])&&q(n.prototype,r),o&&q(n,o),t}(H);function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function oe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){re(i,r,o,a,s,"next",e)}function s(e){re(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce="create_session_misc_error",fe="create_session_retries_exceeded",de="part_upload_retries_exceeded",pe="commit_retries_exceeded",he="web_worker_error",be="file_reader_received_not_found_error",me="part_digest_retries_exceeded",ye=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?se(e):t}(this,ae(t).call(this,e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},n)),ue(se(r),"getBaseUploadUrlFromPreflightResponse",(function(e){var t=e.data;if(!t||!t.upload_url)return r.getBaseUploadUrl();var n=t.upload_url.split("/");return r.uploadHost="".concat(n[0],"//").concat(n[2]),r.getBaseUploadUrl()})),ue(se(r),"preflightSuccessHandler",function(){var e=oe(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return n=r.getBaseUploadUrlFromPreflightResponse(t),(o="".concat(n,"/files/upload_sessions")).includes("fupload-ec2")&&(r.config.parallelism=1),i={file_size:r.file.size,file_name:r.fileName},r.fileId?o=o.replace("upload_sessions","".concat(r.fileId,"/upload_sessions")):i.folder_id=r.folderId,e.prev=7,e.next=10,r.xhr.post({url:o,data:i});case 10:a=e.sent,r.createSessionSuccessHandler(a.data),e.next=31;break;case 14:if(e.prev=14,e.t0=e.catch(7),!((s=r.getErrorResponse(e.t0))&&s.status>=500&&s.status<600)){e.next=20;break}return r.createSessionErrorHandler(e.t0),e.abrupt("return");case 20:if(!s||409!==s.status||"session_conflict"!==s.code){e.next=23;break}return r.createSessionSuccessHandler(s.context_info.session),e.abrupt("return");case 23:if(!(s&&s.status===y.Td&&s.code===y.qc||s.status===y.Td&&"access_denied_insufficient_permissions"===s.code)){e.next=26;break}return r.errorCallback(s),e.abrupt("return");case 26:if(!s||409!==s.status){e.next=30;break}return r.resolveConflict(s),r.createSessionRetry(),e.abrupt("return");case 30:r.sessionErrorHandler(e.t0,ce,JSON.stringify(e.t0));case 31:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}()),ue(se(r),"createSessionErrorHandler",(function(e){r.isDestroyed()||(r.createSessionNumRetriesPerformed<r.config.retries?r.createSessionRetry():(r.consoleLog("Too many create session failures, failing upload"),r.sessionErrorHandler(e,fe,JSON.stringify(e))))})),ue(se(r),"getSessionInfo",oe(regeneratorRuntime.mark((function e(){var t,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.getBaseUploadUrl(),n="".concat(t,"/files/upload_sessions/").concat(r.sessionId),e.prev=2,e.next=5,r.xhr.get({url:n});case 5:o=e.sent,r.getSessionSuccessHandler(o.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),r.getSessionErrorHandler(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))),ue(se(r),"partUploadSuccessHandler",(function(e){r.numPartsUploading-=1,r.numPartsUploaded+=1,r.updateProgress(e.uploadedBytes,r.partSize),r.processNextParts()})),ue(se(r),"partUploadErrorHandler",(function(e,t){if(r.sessionErrorHandler(e,de,t),r.isResumableUploadsEnabled)for(var n=r.firstUnuploadedPartIndex;r.numPartsUploading>0;){var o=r.parts[n];o&&o.state===$&&(o.reset(),o.pause(),r.numPartsUploading-=1,r.numPartsDigestReady+=1),n+=1}})),ue(se(r),"updateProgress",(function(e,t){r.isDestroyed()||(r.totalUploadedBytes+=t-e,r.progressCallback({loaded:r.totalUploadedBytes,total:r.file.size}))})),ue(se(r),"processNextParts",(function(){if(!r.failSessionIfFileChangeDetected())if(r.numPartsUploaded===r.parts.length&&r.fileSha1)r.commitSession();else{for(r.updateFirstUnuploadedPartIndex();r.canStartMorePartUploads();)r.uploadNextPart();r.shouldComputeDigestForNextPart()&&r.computeDigestForNextPart()}})),ue(se(r),"onWorkerMessage",(function(e){if(!r.isDestroyed()){var t,n=e.data;if("partDone"===n.type){r.numPartsDigestComputing-=1;var o=n.part;r.parts[o.index].timing.fileDigestTime=n.duration,r.processNextParts()}else"done"===n.type?(r.fileSha1=(t=n.sha1,btoa(String.fromCharCode.apply(null,t.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),r.sha1Worker.terminate(),r.processNextParts()):"error"===n.type&&r.sessionErrorHandler(null,he,JSON.stringify(n))}})),ue(se(r),"sendPartToWorker",(function(e,t){if(!r.isDestroyed()){var n={index:e.index,offset:e.offset,size:e.partSize};r.sha1Worker.postMessage({part:n,fileSize:r.file.size,partContents:t},[t]),r.consoleLog("Part sent to worker: ".concat(JSON.stringify(e),".}"))}})),ue(se(r),"onPartDigestError",(function(e,t){if(r.consoleLog("Error computing digest for part ".concat(JSON.stringify(t),": ").concat(JSON.stringify(e))),"NotFoundError"!==e.name&&"NOT_FOUND_ERR"!==e.name){if(!r.failSessionIfFileChangeDetected())if(t.numDigestRetriesPerformed>=r.config.retries)r.sessionErrorHandler(null,me,JSON.stringify(e));else{var n=Object(l.a)(r.config.initialRetryDelayMs,r.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,r.consoleLog("Retrying digest work for part ".concat(JSON.stringify(t)," in ").concat(n," ms")),setTimeout((function(){r.computeDigestForPart(t)}),n)}}else r.sessionErrorHandler(null,be,JSON.stringify(e))})),ue(se(r),"commitSession",(function(){if(!r.isDestroyed()){var e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:r.parts.map((function(t){return e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()})).sort((function(e,t){return e.offset-t.offset})),attributes:{}},n=Object(l.k)(r.file);n&&(t.attributes.content_modified_at=n),r.fileDescription&&(t.attributes.description=r.fileDescription);var o={avg_part_read_time:Math.round(e.totalPartReadTime/r.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/r.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/r.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/r.parts.length)},i=r.fileSha1,a={Digest:"sha=".concat(i),"X-Box-Client-Event-Info":JSON.stringify(o)};r.xhr.post({url:r.sessionEndpoints.commit,data:t,headers:a}).then(r.commitSessionSuccessHandler).catch(r.commitSessionErrorHandler)}})),ue(se(r),"commitSessionSuccessHandler",(function(e){if(!r.isDestroyed()){var t=e.status,n=e.data;if(202!==t){var o=n.entries;!o&&n.id&&(o=[n]),r.destroy(),r.successCallback&&o&&r.successCallback(o)}else r.commitSessionRetry(e)}})),ue(se(r),"commitSessionErrorHandler",(function(e){if(!r.isDestroyed()){var t=e.response;if(t)return r.commitRetryCount>=r.config.retries?(r.consoleLog("Too many commit failures, failing upload"),void r.sessionErrorHandler(e,pe,JSON.stringify(e))):void r.commitSessionRetry(t);r.consoleError(e)}})),ue(se(r),"getNumPartsUploading",(function(){return r.numPartsUploading})),r.parts=[],r.options=e,r.fileSha1=null,r.totalUploadedBytes=0,r.numPartsNotStarted=0,r.numPartsDigestComputing=0,r.numPartsDigestReady=0,r.numPartsUploading=0,r.numPartsUploaded=0,r.firstUnuploadedPartIndex=0,r.createSessionNumRetriesPerformed=0,r.partSize=0,r.commitRetryCount=0,r.clientId=null,r.isResumableUploadsEnabled=!1,r.numResumeRetries=0,r}var n,r,o,a,c,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(t,e),n=t,(r=[{key:"reset",value:function(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}},{key:"setFileInfo",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.file=t,this.fileName=this.file.name,this.folderId=n,this.errorCallback=r||i.a,this.progressCallback=o||i.a,this.successCallback=a||i.a,this.overwrite=l,this.conflictCallback=u,this.fileId=c}},{key:"upload",value:function(e){var t=e.file,n=e.fileDescription,r=e.folderId,o=e.errorCallback,a=e.progressCallback,s=e.successCallback,u=e.overwrite,c=void 0===u||u,f=e.conflictCallback,d=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=Object(l.k)(this.file),this.folderId=r,this.errorCallback=o||i.a,this.progressCallback=a||i.a,this.successCallback=s||i.a,this.sha1Worker=b(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=f,this.overwrite=c,this.fileId=d,this.fileDescription=n,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog("Retrying create session in ".concat(e," ms")),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}},{key:"createSessionSuccessHandler",value:function(e){if(!this.isDestroyed()){var t=e.id,n=e.part_size,r=e.session_endpoints;this.sessionId=t,this.partSize=n,this.sessionEndpoints=ne({},this.sessionEndpoints,{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.populateParts(),this.processNextParts()}}},{key:"resume",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,i=e.sessionId,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.setFileInfo({file:t,folderId:n,errorCallback:r,progressCallback:o,successCallback:a,conflictCallback:u,overwrite:l,fileId:c}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=b()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}},{key:"getSessionSuccessHandler",value:function(e){var t=e.part_size,n=e.session_endpoints;this.partSize=t,this.sessionEndpoints=ne({},this.sessionEndpoints,{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.processNextParts()}},{key:"getSessionErrorHandler",value:function(e){if(!this.isDestroyed()){var t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){var n=y.Y;if(t.headers){var r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);s()(r)||(n=r*y.me)}this.retryTimeout=setTimeout(this.getSessionInfo,n),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((function(e){e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();var o={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(o)}else this.retryTimeout=setTimeout(this.getSessionInfo,Math.pow(2,this.numResumeRetries)*y.me),this.numResumeRetries+=1}}},{key:"sessionErrorHandler",value:(f=oe(regeneratorRuntime.mark((function e(t,n,r){var o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isResumableUploadsEnabled||this.destroy(),o=this.getErrorResponse(t),this.errorCallback(o),e.prev=3,this.sessionEndpoints.logEvent){e.next=6;break}throw new Error("logEvent endpoint not found");case 6:return e.next=8,Object(u.a)((function(e,t){i.logEvent(n,r).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs);case 8:this.isResumableUploadsEnabled||this.abortSession(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),this.isResumableUploadsEnabled||this.abortSession();case 14:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e,t,n){return f.apply(this,arguments)})},{key:"abortSession",value:function(){var e=this;this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((function(){e.sessionId=""}))}},{key:"shouldComputeDigestForNextPart",value:function(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}},{key:"computeDigestForNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(t.state===J)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}},{key:"computeDigestForPart",value:(c=oe(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.file.slice(t.offset,t.offset+this.partSize),r=new window.FileReader,o=Date.now(),e.prev=3,e.next=6,this.readFile(r,n);case 6:return i=e.sent,a=i.buffer,s=i.readCompleteTimestamp,e.next=11,p("SHA-256",a);case 11:l=e.sent,u=btoa([].reduce.call(new Uint8Array(l),(function(e,t){return e+String.fromCharCode(t)}),"")),this.sendPartToWorker(t,a),t.sha256=u,t.state=1,t.blob=n,this.numPartsDigestReady+=1,c=Date.now(),t.timing={partDigestTime:c-o,readTime:s-o,subtleCryptoTime:c-s},this.processNextParts(),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),this.onPartDigestError(e.t0,t);case 26:case"end":return e.stop()}}),e,this,[[3,23]])}))),function(e){return c.apply(this,arguments)})},{key:"commitSessionRetry",value:function(e){var t=e.status,n=e.headers,r=y.Y;if(n){var o=parseInt(n["retry-after"],10);Number.isNaN(o)||(r=1e3*o)}var i=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);var a=r||i;this.consoleLog("Retrying commit in ".concat(a," ms")),this.commitSessionTimeout=setTimeout(this.commitSession,a)}},{key:"uploadNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}},{key:"canStartMorePartUploads",value:function(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&e.state===Q;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}},{key:"populateParts",value:function(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(var e=0;e<this.numPartsNotStarted;e+=1){var t=e*this.partSize,n=Math.min(t+this.partSize,this.file.size)-t,r=new Z(this.options,e,t,n,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(r)}}},{key:"failSessionIfFileChangeDetected",value:function(){var e=this.file.size,t=Object(l.k)(this.file);if(e!==this.initialFileSize||t!==this.initialFileLastModified){var n=JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t});return m.a.isIE()?(this.sessionErrorHandler(null,"file_changed_during_upload",n),!0):(this.consoleLog("file properties changed during upload: ".concat(n)),!1)}return!1}},{key:"cancel",value:function(){this.isDestroyed()||(this.parts.forEach((function(e){e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}},{key:"resolveConflict",value:(a=oe(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.overwrite||!t.context_info){e.next=3;break}return this.fileId=t.context_info.conflicts.id,e.abrupt("return");case 3:if(!this.conflictCallback){e.next=6;break}return this.fileName=this.conflictCallback(this.fileName),e.abrupt("return");case 6:n=this.fileName.substr(this.fileName.lastIndexOf("."))||"",this.fileName="".concat(this.fileName.substr(0,this.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(n);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getErrorResponse",value:function(e){if(!e)return{};var t=e.response;return t?401===t.status?t:t.data:{}}}])&&ie(n.prototype,r),o&&ie(n,o),t}(H);function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function we(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ge(i,r,o,a,s,"next",e)}function s(e){ge(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe="Content-MD5",_e=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ve(t)&&"function"!=typeof t?Oe(e):t}(this,(e=Se(t)).call.apply(e,[this].concat(o))),Ce(Oe(n),"uploadSuccessHandler",(function(e){var t=e.data.entries;n.isDestroyed()||"function"==typeof n.successCallback&&n.successCallback(t)})),Ce(Oe(n),"uploadProgressHandler",(function(e){n.isDestroyed()||"function"==typeof n.progressCallback&&n.progressCallback(e)})),Ce(Oe(n),"preflightSuccessHandler",function(){var e=we(regeneratorRuntime.mark((function e(t){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,!n.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return(o=r.upload_url)||(o="".concat(n.getBaseUploadUrl(),"/files/content"),n.fileId&&(o=o.replace("content","".concat(n.fileId,"/content")))),i=JSON.stringify({name:n.fileName,parent:{id:n.folderId},description:n.fileDescription,content_modified_at:Object(l.k)(n.file)}),a={url:o,data:{attributes:i,file:n.file},headers:{},successHandler:n.uploadSuccessHandler,errorHandler:n.preflightErrorHandler,progressHandler:n.uploadProgressHandler},e.next=9,n.computeSHA1(n.file);case 9:(s=e.sent)&&(a.headers=Ce({},xe,s)),n.xhr.uploadFile(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n}var n,r,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(t,e),n=t,(r=[{key:"upload",value:function(e){var t=e.folderId,n=e.fileId,r=e.file,o=e.fileDescription,a=e.successCallback,s=void 0===a?i.a:a,l=e.errorCallback,u=void 0===l?i.a:l,c=e.progressCallback,f=void 0===c?i.a:c,d=e.conflictCallback,p=e.overwrite,h=void 0===p||p;this.isDestroyed()||(this.folderId=t,this.fileId=n,this.file=r,this.fileDescription=o,this.fileName=this.file.name,this.successCallback=s,this.errorCallback=u,this.progressCallback=f,this.overwrite=h,this.conflictCallback=d,this.makePreflightRequest())}},{key:"cancel",value:function(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}},{key:"computeSHA1",value:(a=we(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="",e.prev=1,r=new window.FileReader,e.next=5,this.readFile(r,t);case 5:return o=e.sent,i=o.buffer,e.next=9,p("SHA-1",i);case 9:a=e.sent,s=Array.from(new Uint8Array(a)),n=s.map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(1);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[1,14]])}))),function(e){return a.apply(this,arguments)})}])&&Ee(n.prototype,r),o&&Ee(n,o),t}(D),Pe=n(72),Ae=n(50),Te=n(60),Ie=n(78),je=n(19),De=n(8);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Ue(e):t}(this,(e=Fe(t)).call.apply(e,[this].concat(o))),He(Ue(n),"searchSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=t.entries,o=t.total_count,i=t.limit,a=t.offset;if(!Array.isArray(r)||"number"!=typeof o||"number"!=typeof i||"number"!=typeof a)throw Object(De.a)();var s=Object(Ie.a)(r,new Pe.a(n.options),new Ae.a(n.options),new Te.a(n.options));n.itemCache=(n.itemCache||[]).concat(s),n.getCache().set(n.key,{item_collection:Ne({},t,{entries:n.itemCache})}),n.finish()}})),He(Ue(n),"searchErrorHandler",(function(e){n.isDestroyed()||n.errorCallback(e,n.errorCode)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(t,e),n=t,(r=[{key:"getEncodedQuery",value:function(e){return encodeURIComponent(e)}},{key:"getCacheKey",value:function(e,t){return"".concat(y.m).concat(e,"|").concat(t)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/search")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(De.a)();var n=t.entries,r=t.total_count;if(!Array.isArray(n)||"number"!=typeof r)throw Object(De.a)();var o={id:this.id,items:n.map((function(t){return e.get(t)})),offset:this.offset,percentLoaded:100,sortBy:y.dd,sortDirection:y.mf,totalCount:r};this.successCallback(o)}}},{key:"searchRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||je.f;return this.errorCode=y.bc,this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:n.toString()},headers:n.includes(y.fd)?{"X-Rep-Hints":y.fg}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}},{key:"search",value:function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};this.isDestroyed()||(this.limit=n,this.offset=r,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=o,this.errorCallback=i,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}}])&&Me(n.prototype,r),o&&Me(n,o),t}(O.a);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(){return(We=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 qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?Ke(e):t}(this,(e=Ge(t)).call.apply(e,[this].concat(o))),Ye(Ke(n),"recentsSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=t.entries,o=t.order,i=o.by,a=o.direction,s=[];r.forEach((function(e){var t=e.item,r=e.interacted_at,o=t.path_collection;(n.id===y.Z||!!o&&-1!==o.entries.findIndex((function(e){return e.id===n.id})))&&s.push(We(t,{interacted_at:r}))}));var l=Object(Ie.a)(s,new Pe.a(n.options),new Ae.a(n.options),new Te.a(n.options));n.getCache().set(n.key,{item_collection:{entries:l,order:[{by:i,direction:a}]}}),n.finish()}})),Ye(Ke(n),"recentsErrorHandler",(function(e){n.isDestroyed()||n.errorCallback(e,n.errorCode)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(y.l).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/recent_items")}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(De.a)();var n=t.entries;if(!Array.isArray(n))throw Object(De.a)();var r={id:this.id,items:n.map((function(t){return e.get(t)})),percentLoaded:100,sortBy:y.Cc,sortDirection:y.mf};this.successCallback(r)}}},{key:"recentsRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||je.f;return this.errorCode=y.Lb,this.xhr.get({url:this.getUrl(),params:{fields:n.toString()},headers:n.includes(y.fd)?{"X-Rep-Hints":y.fg}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}},{key:"recents",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){this.id=e,this.successCallback=t,this.errorCallback=n;var o=this.getCache();this.key=this.getCacheKey(this.id),r.forceFetch&&o.unset(this.key),o.has(this.key)?this.finish():this.recentsRequest(r)}}}])&&qe(n.prototype,r),o&&qe(n,o),t}(O.a),$e=n(21);function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function rt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){nt(i,r,o,a,s,"next",e)}function s(e){nt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function it(e,t){return!t||"object"!==Qe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),it(this,at(t).apply(this,arguments))}var n,r,o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(t,e),n=t,(r=[{key:"getQueryParameters",value:function(e,t,n){var r={offset:e,limit:t};return n&&n.length>0&&(r.fields=n.toString()),r}},{key:"hasMoreItems",value:function(e,t){return void 0===t||e<t}},{key:"offsetGetRequest",value:(a=rt(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a=this.getQueryParameters(n,r,i),s=this.getUrl(t),e.next=7,this.xhr.get({url:s,id:Object($e.b)(t),params:a});case 7:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=et({},u,{entries:c.concat(u.entries)}),f=u.total_count,d=n+r,!o||!this.hasMoreItems(d,f)){e.next=16;break}return this.offsetGetRequest(t,d,r,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[2,19]])}))),function(e,t,n,r,o){return a.apply(this,arguments)})},{key:"offsetGet",value:(i=rt(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=l.length>3&&void 0!==l[3]?l[3]:y.K,i=l.length>4&&void 0!==l[4]?l[4]:y.J,a=l.length>5?l[5]:void 0,s=!(l.length>6&&void 0!==l[6])||l[6],this.successCallback=n,this.errorCallback=r,e.abrupt("return",this.offsetGetRequest(t,o,i,s,a));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})}])&&ot(n.prototype,r),o&&ot(n,o),t}(O.a);function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e,t){return(yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ut(t)&&"function"!=typeof t?mt(e):t}(this,(e=bt(t)).call.apply(e,[this].concat(o))),vt(mt(n),"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yt(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/versions")}},{key:"getVersionUrl",value:function(e,t){if(!t)throw new Error("Missing version id!");return"".concat(this.getUrl(e),"/").concat(t)}},{key:"addPermissions",value:function(e,t){if(!e)return e;var n=e.entries,r=e.total_count,o=g()(t,["permissions",y.Ie],!1);return{entries:n.map((function(e){var t=e.permissions;return dt({},pt(e,["permissions"]),{permissions:dt({can_upload:o},t)})})),total_count:r}}},{key:"deleteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=y.ub;try{this.checkApiCallValidity(y.Ce,r,n)}catch(e){return void t(e,this.errorCode)}this.delete({id:n,url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}},{key:"getVersions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y.K,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.J,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:je.d,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];this.errorCode=y.Qb,this.offsetGet(e,t,n,r,o,i,a)}},{key:"getVersion",value:function(e,t,n,r){this.errorCode=y.Pb,this.get({id:e,successCallback:n,errorCallback:r,url:this.getVersionUrl(e,t),requestData:{params:{fields:je.d.toString()}}})}},{key:"addCurrentVersion",value:function(e,t,n){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};var r=g()(n,"restored_from.id"),o=t.entries.find((function(e){return e.id===r}));return o&&(e.version_promoted=o.version_number),{entries:[].concat(ct(t.entries),[e]),total_count:t.total_count+1}}},{key:"promoteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=y.Yb;try{this.checkApiCallValidity(y.Ie,r,n)}catch(e){return void t(e,this.errorCode)}this.post({id:n,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(n,"current"),successCallback:o,errorCallback:t})}},{key:"restoreVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=y.ac;try{this.checkApiCallValidity(y.Ce,r,n)}catch(e){return void t(e,this.errorCode)}this.put({id:n,data:{data:{trashed_at:null}},url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}}])&&ht(n.prototype,r),o&&ht(n,o),t}(lt);function wt(e){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?Ct(e):t}(this,(e=kt(t)).call.apply(e,[this].concat(o))),_t(Ct(n),"successHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.successCallback)if(e)if(e.entries){var t=e.entries.map(n.format);n.successCallback(St({},e,{entries:t}))}else n.successCallback(n.format(e));else n.successCallback()})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/comments")}},{key:"commentsUrl",value:function(e){var t="".concat(this.getBaseApiUrl(),"/comments");return e?"".concat(t,"/").concat(e):t}},{key:"format",value:function(e){return St({},e,{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}},{key:"createComment",value:function(e){var t=e.file,n=e.message,r=e.taggedMessage,o=e.successCallback,i=e.errorCallback;this.errorCode=y.hb;var a=t.id,s=void 0===a?"":a,l=t.permissions;try{this.checkApiCallValidity(y.Ae,l,s)}catch(e){return void i(e,this.errorCode)}var u={data:{item:{id:s,type:"file"},message:n,tagged_message:r},params:{fields:je.b.toString()}};this.post({id:s,url:this.commentsUrl(),data:u,successCallback:o,errorCallback:i})}},{key:"updateComment",value:function(e){var t=e.file,n=e.commentId,r=e.message,o=e.tagged_message,i=e.permissions,a=e.successCallback,s=e.errorCallback;this.errorCode=y.fc;var l=t.id,u=void 0===l?"":l;try{this.checkApiCallValidity(y.Ee,i,u)}catch(e){return void s(e,this.errorCode)}var c={data:{message:r,tagged_message:o}};this.put({id:u,url:this.commentsUrl(n),data:c,successCallback:a,errorCallback:s})}},{key:"deleteComment",value:function(e){var t=e.file,n=e.commentId,r=e.permissions,o=e.successCallback,i=e.errorCallback;this.errorCode=y.pb;var a=t.id,s=void 0===a?"":a;try{this.checkApiCallValidity(y.Ce,r,s)}catch(e){return void i(e,this.errorCode)}this.delete({id:s,url:this.commentsUrl(n),successCallback:o,errorCallback:i})}},{key:"getComments",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:je.b,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;this.errorCode=y.Bb;try{this.checkApiCallValidity(y.Ae,t,e)}catch(e){return void r(e,this.errorCode)}this.offsetGet(e,n,r,i,a,o,s)}}])&&Ot(n.prototype,r),o&&Ot(n,o),t}(lt);function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function Dt(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lt(e){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rt(e,t){return(Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nt=[y.Yd,y.Vd,y.Xd,y.Rd,y.Zd,y.Ud],Mt=function(e){function t(e){var n=e.retryableStatusCodes,r=void 0===n?Nt:n,o=jt(e,["retryableStatusCodes"]);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(this,Lt(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o,{retryableStatusCodes:r})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}(t,e),t}(O.a);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Vt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kt(e,t){return(Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qt(this,Gt(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kt(e,t)}(t,e),n=t,(r=[{key:"getUrlForFileTasks",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/files/").concat(e,"/linked_tasks?limit=").concat(y.e)}},{key:"getUrlForTaskCreateWithDeps",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/with_dependencies")}},{key:"getUrlForTask",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e)}},{key:"getUrlForTaskWithDeps",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/with_dependencies")}},{key:"updateTaskWithDeps",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.ic;var i=o.addedAssignees.map((function(e){return{op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}})),a=o.removedAssignees.map((function(e){return{op:"delete_task_collaborator",id:e.id}})),s=(o.id,o.addedAssignees,o.removedAssignees,Vt(o,["id","addedAssignees","removedAssignees"]));this.put({id:n.id,url:this.getUrlForTaskWithDeps(o.id),data:{data:[{op:"update_task",payload:Bt({},s)}].concat(zt(i),zt(a))},successCallback:r,errorCallback:t})}},{key:"deleteTask",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.sb,this.delete({id:n.id,url:this.getUrlForTask(o.id),successCallback:r,errorCallback:t})}},{key:"getTasksForFile",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback;this.errorCode=y.Nb,this.get({id:n.id,url:this.getUrlForFileTasks(n.id),successCallback:r,errorCallback:t})}},{key:"getTask",value:function(e){var t=e.errorCallback,n=e.file,r=e.id,o=e.successCallback;this.errorCode=y.Nb,this.get({id:n.id,url:this.getUrlForTask(r),successCallback:o,errorCallback:t})}},{key:"createTaskWithDeps",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.assignees;this.errorCode=y.kb;var a=i.map((function(e){return{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}})),s=[{target:{id:n.id,type:"file"}}],l={task:Bt({},o),assigned_to:a,task_links:s};this.post({id:n.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:Bt({},l)},successCallback:r,errorCallback:t})}}])&&Wt(n.prototype,r),o&&Wt(n,o),t}(Mt),Yt=n(22),Jt=n.n(Yt);function $t(e){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nn(e,t){return!t||"object"!==$t(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function on(e,t){return(on=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var an=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nn(this,rn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&on(e,t)}(t,e),n=t,(r=[{key:"getUrlForTaskCollaborators",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/task_collaborators?role=ASSIGNEE&limit=").concat(y.e)}},{key:"getUrlForTaskCollaboratorCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators")}},{key:"getUrlForTaskCollaborator",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/").concat(e)}},{key:"getUrlForTaskGroupCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/expand_group")}},{key:"createTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.user;this.errorCode=y.lb;var a={data:{task:{type:"task",id:o.id},target:{type:"user",id:i.id}}};this.post({id:n.id,url:this.getUrlForTaskCollaboratorCreate(),data:Zt({},a),successCallback:r,errorCallback:t})}},{key:"createTaskCollaboratorsforGroup",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.group;this.errorCode=y.lb;var a={data:{task:{type:"task",id:o.id},target:{type:"group",id:i.id}}};this.post({id:n.id,url:this.getUrlForTaskGroupCreate(),data:Zt({},a),successCallback:r,errorCallback:t})}},{key:"getTaskCollaborators",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.Ob;var i=this.getUrlForTaskCollaborators(o.id);this.get({id:n.id,successCallback:r,errorCallback:t,url:i})}},{key:"updateTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.taskCollaborator;this.errorCode=y.jc;var i={data:Jt()(o,"id")};this.put({id:n.id,url:this.getUrlForTaskCollaborator(o.id),data:Zt({},i),successCallback:r,errorCallback:t})}},{key:"deleteTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.taskCollaborator;this.errorCode=y.tb,this.delete({id:n.id,url:this.getUrlForTaskCollaborator(o.id),successCallback:r,errorCallback:t})}}])&&tn(n.prototype,r),o&&tn(n,o),t}(Mt);function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t){return!t||"object"!==sn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hn(e,t){return(hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dn(this,pn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hn(e,t)}(t,e),n=t,(r=[{key:"getUrlForTaskLinkCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_links")}},{key:"createTaskLink",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=y.mb;var i={data:{target:{id:n.id,type:"file"},task:{id:o.id,type:"task"}}};this.post({id:n.id,url:this.getUrlForTaskLinkCreate(),data:un({},i),successCallback:r,errorCallback:t})}}])&&fn(n.prototype,r),o&&fn(n,o),t}(Mt);function mn(e){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return!t||"object"!==mn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gn(e){return(gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var En=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vn(this,gn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/file_access_stats/").concat(e)}},{key:"getFileAccessStats",value:function(e,t,n){this.errorCode=y.xb,this.get({id:e,successCallback:t,errorCallback:n})}}])&&yn(n.prototype,r),o&&yn(n,o),t}(O.a);function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function _n(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xn(i,r,o,a,s,"next",e)}function s(e){xn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return!t||"object"!==Sn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function In(e,t){return(In=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),An(this,Tn(t).apply(this,arguments))}var n,r,o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&In(e,t)}(t,e),n=t,(r=[{key:"hasMoreItems",value:function(e){return null!==e&&""!==e}},{key:"markerGetRequest",value:(a=_n(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=d.length>4&&void 0!==d[4]?d[4]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,a=this.getUrl(t),s=kn({},i,{marker:n,limit:r}),e.next=8,this.xhr.get({url:a,id:Object($e.b)(t),params:s});case 8:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=kn({},u,{entries:c.concat(u.entries)}),f=u.next_marker,!o||!this.hasMoreItems(f)){e.next=16;break}return this.markerGetRequest(t,f,r,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(3),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[3,19]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"markerGet",value:(i=_n(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.successCallback,o=t.errorCallback,i=t.marker,a=void 0===i?"":i,s=t.limit,l=void 0===s?1e3:s,u=t.requestData,c=t.shouldFetchAll,f=void 0===c||c,this.successCallback=r,this.errorCallback=o,e.abrupt("return",this.markerGetRequest(n,a,l,f,u));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&Pn(n.prototype,r),o&&Pn(n,o),t}(O.a);function Dn(e){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){Nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(e,t){return!t||"object"!==Dn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e,t){return(Bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Hn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fn(this,Un(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/groups")}},{key:"getGroupsInEnterprise",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.T;this.errorCode=y.Db,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:Rn({usemarker:!0},r),shouldFetchAll:!1})}}])&&Mn(n.prototype,r),o&&Mn(n,o),t}(jn);function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kn(e,t){return!t||"object"!==zn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e,t){return(Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Kn(this,Xn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users")}},{key:"getUsersInEnterprise",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.T;this.errorCode=y.Eb,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:Wn({usemarker:!0},r),shouldFetchAll:!1})}}])&&Gn(n.prototype,r),o&&Gn(n,o),t}(jn);function $n(e){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zn(e,t){return!t||"object"!==$n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zn(this,er(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tr(e,t)}(t,e),n=t,(r=[{key:"getUrlForGroupCount",value:function(e){return"".concat(this.getBaseApiUrl(),"/groups/").concat(e,"/memberships")}},{key:"getGroupCount",value:function(e){var t=this,n=e.errorCallback,r=void 0===n?i.a:n,o=e.successCallback,a=void 0===o?i.a:o,s=e.group,l=e.file;return new Promise((function(e,n){return t.get({id:l.id,url:t.getUrlForGroupCount(s.id),successCallback:function(){a.apply(void 0,arguments),e.apply(void 0,arguments)},errorCallback:function(){r.apply(void 0,arguments),n()},requestData:{params:{limit:1}}})}))}}])&&Qn(n.prototype,r),o&&Qn(n,o),t}(O.a),rr=n(63),or=n.n(rr),ir=n(62);function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ur(e,t){return!t||"object"!==ar(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cr(e){return(cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fr(e,t){return(fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var dr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ur(this,cr(t).apply(this,arguments))}var n,r,o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users/me")}},{key:"getAvatarUrl",value:function(e){if(!e)throw new Error("Missing user id");return"".concat(this.getBaseApiUrl(),"/users/").concat(e,"/avatar")}},{key:"getAvatarUrlWithAccessToken",value:(i=regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:if(!(r=this.getCache()).has(t)){e.next=5;break}return e.abrupt("return",r.get(t));case 5:return e.next=7,ir.a.getReadToken(Object($e.b)(n),this.options.token);case 7:if("string"!=typeof(o=e.sent)){e.next=14;break}return i={access_token:o,pic_type:"large"},a=or.a.stringify(i),s="".concat(this.getAvatarUrl(t),"?").concat(a),r.set(t,s),e.abrupt("return",s);case 14:return e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){sr(o,n,r,a,s,"next",e)}function s(e){sr(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t){return a.apply(this,arguments)})},{key:"getUser",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.errorCode=y.Cb,this.get({id:e,successCallback:t,errorCallback:n,requestData:r})}}])&&lr(n.prototype,r),o&&lr(n,o),t}(O.a),pr=n(12),hr=n.n(pr);function br(e){return(br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function vr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function gr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){vr(i,r,o,a,s,"next",e)}function s(e){vr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return!t||"object"!==br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sr(e){return(Sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Er(this,Sr(t).apply(this,arguments))}var n,r,o,i,a,s,l,u,c,f,d,p,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}(t,e),n=t,(r=[{key:"getMetadataCacheKey",value:function(e){return"".concat(y.j).concat(e)}},{key:"getSkillsCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_skills")}},{key:"getClassificationCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_classification")}},{key:"getMetadataUrl",value:function(e,t,n){var r="".concat(this.getUrl(e),"/metadata");return t&&n?"".concat(r,"/").concat(t,"/").concat(n):r}},{key:"getMetadataTemplateUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_templates")}},{key:"getMetadataTemplateUrlForInstance",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"?metadata_instance_id=").concat(e)}},{key:"getMetadataTemplateSchemaUrl",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/enterprise/").concat(e,"/schema")}},{key:"getMetadataTemplateUrlForScope",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/").concat(e)}},{key:"getCustomPropertiesTemplate",value:function(){return{id:hr()("metadata_template_"),scope:y.fe,templateKey:y.ie,hidden:!1}}},{key:"createEditor",value:function(e,t,n){var r={};return Object.keys(e).forEach((function(t){t.startsWith("$")||(r[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&n,data:r}}}},{key:"getTemplates",value:(h=gr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=y.Kb,o={},i=r?this.getMetadataTemplateUrlForInstance(r):this.getMetadataTemplateUrlForScope(n),e.prev=3,e.next=6,this.xhr.get({url:i,id:Object($e.b)(t),params:{limit:y.he}});case 6:o=e.sent,e.next=14;break;case 9:if(e.prev=9,e.t0=e.catch(3),a=e.t0.status,!Object(De.d)(a)){e.next=14;break}throw e.t0;case 14:return e.abrupt("return",g()(o,"data.entries",[]));case 15:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(e,t,n){return h.apply(this,arguments)})},{key:"getSchemaByTemplateKey",value:function(e){var t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}},{key:"getInstances",value:(p=gr(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=y.Jb,n={},e.prev=2,e.next=5,this.xhr.get({url:this.getMetadataUrl(t),id:Object($e.b)(t)});case 5:n=e.sent,e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(2),r=e.t0.status,!Object(De.d)(r)){e.next=13;break}throw e.t0;case 13:return e.abrupt("return",g()(n,"data.entries",[]));case 14:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return p.apply(this,arguments)})},{key:"getUserAddableTemplates",value:function(e,t,n,r){var o=[];return n&&(o=r?[e]:[e].concat(t)),o.filter((function(e){return!e.hidden&&e.templateKey!==y.ge}))}},{key:"extractClassification",value:function(e,t){var n=t.find((function(e){return e.$template===y.ge}));if(n){t.splice(t.indexOf(n),1);var r=this.getCache(),o=this.getClassificationCacheKey(e);r.set(o,n)}return t}},{key:"getTemplateForInstance",value:(d=gr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.$id,i=n.$template,a=n.$scope,(s=r.find((function(e){return e.templateKey===i&&e.scope===a})))||!a.startsWith(y.ee)){e.next=9;break}return e.next=7,this.getTemplates(t,a,o);case 7:l=e.sent,s=l[0];case 9:return e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"getEditors",value:(f=gr(regeneratorRuntime.mark((function e(t,n,r,o,i,a){var s,l,u,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=[r].concat(o,i),l=this.extractClassification(t,n),u=[],e.next=5,Promise.all(l.map(function(){var e=gr(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getTemplateForInstance(t,n,s);case 2:(r=e.sent)&&u.push(c.createEditor(n,r,a));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return e.abrupt("return",u);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,o,i){return f.apply(this,arguments)})},{key:"getMetadata",value:(c=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d,p,h,b,m,v,g,w=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=w.length>4&&void 0!==w[4]?w[4]:{},a=t.id,s=t.permissions,l=t.is_externally_owned,this.errorCode=y.Jb,this.successCallback=n,this.errorCallback=r,a&&s){e.next=8;break}return this.errorHandler(Object(De.a)()),e.abrupt("return");case 8:if(u=this.getCache(),c=this.getMetadataCacheKey(a),i.forceFetch&&u.unset(c),!u.has(c)){e.next=15;break}if(this.successHandler(u.get(c)),i.refreshCache){e.next=15;break}return e.abrupt("return");case 15:return e.prev=15,f=this.getCustomPropertiesTemplate(),e.next=19,Promise.all([this.getInstances(a),this.getTemplates(a,y.fe),o?this.getTemplates(a,y.ee):Promise.resolve([])]);case 19:return d=e.sent,p=yr(d,3),h=p[0],b=p[1],m=p[2],e.next=26,this.getEditors(a,h,f,m,b,!!s.can_upload);case 26:v=e.sent,g={editors:v,templates:this.getUserAddableTemplates(f,m,o,l)},u.set(c,g),this.isDestroyed()||this.successHandler(g),e.next=35;break;case 32:e.prev=32,e.t0=e.catch(15),this.errorHandler(e.t0);case 35:case"end":return e.stop()}}),e,this,[[15,32]])}))),function(e,t,n,r){return c.apply(this,arguments)})},{key:"getSkills",value:(u=gr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]&&c[3],this.errorCode=y.Mb,i=t.id){e.next=6;break}return r(Object(De.a)(),this.errorCode),e.abrupt("return");case 6:if(a=this.getCache(),s=this.getSkillsCacheKey(i),this.successCallback=n,this.errorCallback=r,o&&a.unset(s),!a.has(s)){e.next=14;break}return this.successHandler(a.get(s)),e.abrupt("return");case 14:if(l={data:g()(t,y.Tc)},e.prev=15,l.data){e.next=20;break}return e.next=19,this.xhr.get({url:this.getMetadataUrl(i,y.fe,y.je),id:Object($e.b)(i)});case 19:l=e.sent;case 20:this.isDestroyed()||(u=l.data.cards||[],a.set(s,u),this.successHandler(u)),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(15),this.errorHandler(e.t0);case 26:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(e,t,n){return u.apply(this,arguments)})},{key:"updateSkills",value:(l=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.hc,i=t.id,a=t.permissions,i&&a){e.next=5;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 5:if(a.can_upload){e.next=8;break}return o(Object(De.b)(),this.errorCode),e.abrupt("return");case 8:return this.successCallback=r,this.errorCallback=o,e.prev=10,e.next=13,this.xhr.put({url:this.getMetadataUrl(i,y.fe,y.je),headers:mr({},y.Kd,"application/json-patch+json"),id:Object($e.b)(i),data:n});case 13:s=e.sent,this.isDestroyed()||(l=s.data.cards||[],this.merge(this.getCacheKey(i),y.Tc,s.data),this.getCache().set(this.getSkillsCacheKey(i),l),this.successHandler(l)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),this.errorHandler(e.t0);case 20:case"end":return e.stop()}}),e,this,[[10,17]])}))),function(e,t,n,r){return l.apply(this,arguments)})},{key:"updateMetadata",value:(s=gr(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.gc,this.successCallback=o,this.errorCallback=i,a=t.id,s=t.permissions,a&&s){e.next=7;break}return this.errorHandler(Object(De.a)()),e.abrupt("return");case 7:if(l=!!s.can_upload){e.next=11;break}return this.errorHandler(Object(De.b)()),e.abrupt("return");case 11:return e.prev=11,e.next=14,this.xhr.put({url:this.getMetadataUrl(a,n.scope,n.templateKey),headers:mr({},y.Kd,"application/json-patch+json"),id:Object($e.b)(a),data:r});case 14:u=e.sent,this.isDestroyed()||(c=this.getCache(),f=this.getMetadataCacheKey(a),d=c.get(f),p=this.createEditor(u.data,n,l),d&&d.editors&&d.editors.splice(d.editors.findIndex((function(e){return e.instance.id===p.instance.id})),1,p),this.successHandler(p)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(11),this.errorHandler(e.t0);case 21:case"end":return e.stop()}}),e,this,[[11,18]])}))),function(e,t,n,r,o){return s.apply(this,arguments)})},{key:"createMetadata",value:(a=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d,p,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.jb,t&&n){e.next=4;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 4:if(i=t.id,a=t.permissions,s=t.is_externally_owned,i&&a){e.next=8;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 8:if(l=!!a.can_upload,u=n.templateKey===y.ie&&n.scope===y.fe,l&&(!s||u)){e.next=13;break}return o(Object(De.b)(),this.errorCode),e.abrupt("return");case 13:return this.successCallback=r,this.errorCallback=o,e.prev=15,e.next=18,this.xhr.post({url:this.getMetadataUrl(i,n.scope,n.templateKey),id:Object($e.b)(i),data:{}});case 18:c=e.sent,this.isDestroyed()||(f=this.getCache(),d=this.getMetadataCacheKey(i),p=f.get(d),h=this.createEditor(c.data,n,l),p.editors.push(h),this.successHandler(h)),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),this.errorHandler(e.t0);case 25:case"end":return e.stop()}}),e,this,[[15,22]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"deleteMetadata",value:(i=gr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=y.rb,t&&n){e.next=4;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 4:if(i=n.scope,a=n.templateKey,s=t.id,l=t.permissions,s&&l){e.next=9;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 9:if(l.can_upload){e.next=12;break}return o(Object(De.b)(),this.errorCode),e.abrupt("return");case 12:return this.successCallback=r,this.errorCallback=o,e.prev=14,e.next=17,this.xhr.delete({url:this.getMetadataUrl(s,i,a),id:Object($e.b)(s)});case 17:this.isDestroyed()||(u=this.getCache(),c=this.getMetadataCacheKey(s),(f=u.get(c)).editors.splice(f.editors.findIndex((function(e){return e.template.scope===i&&e.template.templateKey===a})),1),this.successHandler()),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(14),this.errorHandler(e.t0);case 23:case"end":return e.stop()}}),e,this,[[14,20]])}))),function(e,t,n,r){return i.apply(this,arguments)})}])&&wr(n.prototype,r),o&&wr(n,o),t}(Ae.a);function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e,t){return(Tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jr=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?Ar(e):t}(this,(e=Pr(t)).call.apply(e,[this].concat(o))),Ir(Ar(n),"successHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.successCallback){var t=e.entries.map((function(e){var t;return"group"===e.type?t=e:(t=e).email=t.login,{id:e.id,name:e.name,item:t}}));n.successCallback(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){Ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{entries:t}))}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}},{key:"getFileCollaborators",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.S;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:r})}}])&&_r(n.prototype,r),o&&_r(n,o),t}(jn);function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rr(e){return(Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mr(e,t){return(Mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?Nr(e):t}(this,(e=Rr(t)).call.apply(e,[this].concat(o))),Fr(Nr(n),"getCollaborations",(function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.S;n.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:o})})),Fr(Nr(n),"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overridden")}}])&&Lr(n.prototype,r),o&&Lr(n,o),t}(jn);function Br(e){return(Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vr(e){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wr(e,t){return(Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zr(this,Vr(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file ID!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborations")}}])&&Hr(n.prototype,r),o&&Hr(n,o),t}(Ur);function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return!t||"object"!==Gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yr(e){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(e,t){return(Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xr(this,Yr(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing folder ID!");return"".concat(this.getBaseApiUrl(),"/folders/").concat(e,"/collaborations")}}])&&Kr(n.prototype,r),o&&Kr(n,o),t}(Ur);function Qr(e){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function no(e){return(no=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oo(e,t){return(oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ao=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Qr(t)&&"function"!=typeof t?ro(e):t}(this,(e=no(t)).call.apply(e,[this].concat(o))),io(ro(n),"addCollaboration",(function(e,t,r,o){var i=e.id;n.post({id:i,data:{data:eo({item:e},t)},errorCallback:o,successCallback:r,url:n.getUrl()})})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/collaborations")}}])&&to(n.prototype,r),o&&to(n,o),t}(O.a),so=n(5),lo=n(31);function uo(){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?e.concat(t.entries):e}),[]).sort((function(e,t){return Date.parse(e.created_at)-Date.parse(t.created_at)}))}var co=n(109),fo=n.n(co);function po(e){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bo(e,t){return!t||"object"!==po(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mo(e){return(mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yo(e,t){return(yo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bo(this,mo(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}},{key:"getUrlForId",value:function(e){return"".concat(this.getUrl(),"/").concat(e)}},{key:"createAnnotation",value:function(e,t,n,r,o,i){this.errorCode=y.gb;try{this.checkApiCallValidity(y.Be,r,e)}catch(e){return void i(e,this.errorCode)}var a={description:{type:"reply"},file_version:{id:t,type:"file_version"},status:"open",type:"annotation"};this.post({id:e,data:{data:fo()(a,n)},errorCallback:i,successCallback:o,url:this.getUrl()})}},{key:"updateAnnotation",value:function(e,t,n,r,o,i){this.errorCode=y.vb;try{this.checkApiCallValidity(y.Ee,n,e)}catch(e){return void i(e,this.errorCode)}var a={data:{description:{message:r}}};this.put({id:e,data:a,errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}},{key:"deleteAnnotation",value:function(e,t,n,r,o){this.errorCode=y.nb;try{this.checkApiCallValidity(y.Ce,n,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}},{key:"getAnnotation",value:function(e,t,n,r,o){this.errorCode=y.zb;try{this.checkApiCallValidity(y.Je,n,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}},{key:"getAnnotations",value:function(e,t,n,r,o,i,a){this.errorCode=y.Ab;try{this.checkApiCallValidity(y.Je,n,e)}catch(e){return void o(e,this.errorCode)}this.markerGet({id:e,errorCallback:o,limit:i,requestData:{file_id:e,file_version_id:t},shouldFetchAll:a,successCallback:r})}}])&&ho(n.prototype,r),o&&ho(n,o),t}(jn);function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eo(e){return(Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function So(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oo(e,t){return(Oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Co=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==go(t)&&"function"!=typeof t?So(e):t}(this,(e=Eo(t)).call.apply(e,[this].concat(o))),ko(So(n),"permissions",{}),ko(So(n),"mapAppActivityItem",(function(e){var t=e.activity_template,r=e.app,o=e.created_by,i=e.id,a=e.occurred_at,s=e.rendered_text,l=e.type;return{activity_template:t,app:r,created_at:a,created_by:o,id:i,permissions:{can_delete:n.permissions.can_delete},rendered_text:s,type:l}})),ko(So(n),"successHandler",(function(e){var t=e.entries,r=void 0===t?[]:t;if(!n.isDestroyed()&&"function"==typeof n.successCallback){var o=r.map(n.mapAppActivityItem);n.successCallback({entries:o,total_count:o.length})}})),ko(So(n),"errorHandler",(function(e){if(!n.isDestroyed()||"function"==typeof n.errorCallback){var t=e.response;t.status===y.Wd?n.successHandler({entries:[],total_count:0}):n.errorCallback(e,t.status)}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/app_activities")}},{key:"getDeleteUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getUrl(),"/").concat(e)}},{key:"getAppActivity",value:function(e,t,n,r){var o={item_id:e,item_type:"file",fields:je.a.toString()};this.permissions=t,this.markerGet({id:e,successCallback:n,errorCallback:r,requestData:o})}},{key:"deleteAppActivity",value:function(e){var t=e.id,n=e.appActivityId,r=e.successCallback,o=e.errorCallback;this.errorCode=y.ob,this.delete({id:t,url:this.getDeleteUrl(n),successCallback:r,errorCallback:o})}}])&&wo(n.prototype,r),o&&wo(n,o),t}(jn);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _o(e){return function(e){if(Array.isArray(e))return e}(e)||Ao(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Po(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Ao(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ao(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function To(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach((function(t){Fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Do(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ro(e,t,n){return(Ro="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=No(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function No(e){return(No=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mo(e,t){return(Mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo=y.Cf,Bo="task",Ho=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?Lo(e):t}(this,No(t).call(this,e)),Fo(Lo(n),"updateAnnotation",(function(e,t,r,o,i,a){if(!e.id)throw Object(De.a)();n.annotationsAPI=new vo(n.options),n.file=e,n.errorCallback=a,n.updateFeedItem({message:r,isPending:!0},t),n.annotationsAPI.updateAnnotation(n.file.id,t,o,r,(function(e){n.updateFeedItem(jo({},e,{isPending:!1}),t),n.isDestroyed()||i(e)}),(function(e,r){n.updateCommentErrorCallback(e,r,t)}))})),Fo(Lo(n),"updateCommentErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(lo.a.commentUpdateErrorMessage),r),n.feedErrorCallback(!0,e,t)})),Fo(Lo(n),"deleteAnnotation",(function(e,t,r,o,i){if(n.annotationsAPI=new vo(n.options),!e.id)throw Object(De.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.annotationsAPI.deleteAnnotation(n.file.id,t,r,n.deleteFeedItem.bind(Lo(n),t,o),(function(e,r){n.deleteCommentErrorCallback(e,r,t)}))})),Fo(Lo(n),"updateTaskCollaborator",(function(e,t,r,o,i,a){if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=a,n.updateFeedItem({isPending:!0},t);var s=new an(n.options);n.taskCollaboratorsAPI.push(s);var l={id:r,status:o},u=function(e,r){var i;switch(o){case y.zf:i=lo.a.taskApproveErrorMessage;break;case y.Af:i=lo.a.taskCompleteErrorMessage;break;case y.Df:i=lo.a.taskRejectErrorMessage;break;default:i=lo.a.taskCompleteErrorMessage}n.updateFeedItem(n.createFeedError(i,lo.a.taskActionErrorTitle),t),n.feedErrorCallback(!0,e,r)};s.updateTaskCollaborator({file:e,taskCollaborator:l,successCallback:function(r){n.updateTaskCollaboratorSuccessCallback(t,e,r,i,u)},errorCallback:u})})),Fo(Lo(n),"updateTaskCollaboratorSuccessCallback",(function(e,t,r,o,i){n.tasksNewAPI=new Xt(n.options),n.tasksNewAPI.getTask({id:e,file:t,successCallback:function(t){n.updateFeedItem(jo({},t,{isPending:!1}),e),o(r)},errorCallback:i})})),Fo(Lo(n),"updateTaskNew",function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var o,a,s,l,u,c,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=f.length>2&&void 0!==f[2]?f[2]:i.a,a=f.length>3&&void 0!==f[3]?f[3]:i.a,t.id){e.next=4;break}throw Object(De.a)();case 4:return n.file=t,n.errorCallback=a,n.tasksNewAPI=new Xt(n.options),n.updateFeedItem({isPending:!0},r.id),e.prev=8,s=r.addedAssignees.filter((function(e){return e.item&&"group"===e.item.type})).map((function(e){return e.id})).map((function(e){return new nr(n.options).getGroupCount({file:t,group:{id:e}})})),e.next=12,Promise.all(s);case 12:if(l=e.sent,u=l.some((function(e){return e.total_count>y.yf})),c={code:y.Tb,type:"warning"},!u){e.next=18;break}return n.feedErrorCallback(!1,c,y.Tb),e.abrupt("return");case 18:return e.next=20,new Promise((function(e,o){n.tasksNewAPI.updateTaskWithDeps({file:t,task:r,successCallback:e,errorCallback:o})}));case 20:return e.next=22,new Promise((function(e,o){n.tasksNewAPI.getTask({file:t,id:r.id,successCallback:function(t){n.updateFeedItem(jo({},t,{isPending:!1}),r.id),e()},errorCallback:function(e){n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e,y.ic),o()}})}));case 22:n.isDestroyed()||o(),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(8),n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e.t0,y.ic);case 29:case"end":return e.stop()}}),e,null,[[8,25]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){To(i,r,o,a,s,"next",e)}function s(e){To(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}()),Fo(Lo(n),"deleteComment",(function(e,t,r,o,i){if(n.commentsAPI=new Pt(n.options),!e.id)throw Object(De.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:n.deleteFeedItem.bind(Lo(n),t,o),errorCallback:function(e,r){n.deleteCommentErrorCallback(e,r,t)}})})),Fo(Lo(n),"deleteCommentErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(lo.a.commentDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),Fo(Lo(n),"createTaskNew",(function(e,t,r,o,i,a,s,l,u){if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=u;var c,f=hr()("task_");a&&(c=new Date(a).toISOString());var d={created_by:{type:"task_collaborator",target:t,id:hr()(),role:"CREATOR",status:Uo},completion_rule:s,created_at:(new Date).toISOString(),due_at:c,id:f,description:r,type:Bo,assigned_to:{entries:o.map((function(e){return{id:hr()(),target:jo({},e,{avatar_url:"",type:"user"}),status:Uo,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}})),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:hr()(),type:"task_link",target:jo({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:y.Cf},p={description:r,due_at:c,task_type:i,completion_rule:s},h=o.filter((function(e){return"group"===(e.item&&e.item.type)})).map((function(e){return e.id})).map((function(t){return new nr(n.options).getGroupCount({file:e,group:{id:t}})}));Promise.all(h).then((function(r){var i=r.some((function(e){return e.total_count>y.yf})),a={code:y.Tb,type:"warning"};i?n.feedErrorCallback(!1,a,y.Tb):(n.tasksNewAPI=new Xt(n.options),n.tasksNewAPI.createTaskWithDeps({file:e,task:p,assignees:o,successCallback:function(e){n.addPendingItem(n.file.id,t,d),n.updateFeedItem(jo({},e,{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),f),l(e)},errorCallback:function(e,t){n.feedErrorCallback(!1,e,t)}}))})).catch((function(e){n.feedErrorCallback(!1,e,y.kb)}))})),Fo(Lo(n),"deleteTaskNew",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.a;if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=o,n.tasksNewAPI=new Xt(n.options),n.updateFeedItem({isPending:!0},t.id),n.tasksNewAPI.deleteTask({file:e,task:t,successCallback:n.deleteFeedItem.bind(Lo(n),t.id,r),errorCallback:function(e,r){n.updateFeedItem(n.createFeedError(lo.a.taskDeleteErrorMessage),t.id),n.feedErrorCallback(!0,e,r)}})})),Fo(Lo(n),"deleteFeedItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,r=n.getCachedItems(n.file.id);if(r){var o=r.items.filter((function(t){return t.id!==e}));n.setCachedItems(n.file.id,o),n.isDestroyed()||t(e)}})),Fo(Lo(n),"feedErrorCallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;e&&n.errors.push(jo({},t,{code:r})),!n.isDestroyed()&&n.errorCallback&&n.errorCallback(t,r,Fo({error:t},y.ce,e)),console.error(t)})),Fo(Lo(n),"addPendingItem",(function(e,t,r){if(!t)throw Object(De.c)();var o=(new Date).toISOString(),i=jo({created_at:o,created_by:t,modified_at:o,isPending:!0},r),a=n.getCachedItems(n.file.id),s=a?a.items:[],l=[].concat(Po(s),[i]);return n.setCachedItems(e,l),i})),Fo(Lo(n),"createCommentSuccessCallback",(function(e,t,r){var o=e.message,i=void 0===o?"":o,a=e.tagged_message,s=void 0===a?"":a;e.tagged_message=s||i,n.updateFeedItem(jo({},e,{isPending:!1}),t),n.isDestroyed()||r(e)})),Fo(Lo(n),"createCommentErrorCallback",(function(e,t,r){var o=e.status===y.Sd?lo.a.commentCreateConflictMessage:lo.a.commentCreateErrorMessage;n.updateFeedItem(n.createFeedError(o),r),n.feedErrorCallback(!1,e,t)})),Fo(Lo(n),"updateFeedItem",(function(e,t){if(!n.file.id)throw Object(De.a)();var r=n.getCachedItems(n.file.id);if(r){var o=r.items.map((function(n){return n.id===t?jo({},n,{},e):n}));return n.setCachedItems(n.file.id,o),o}return null})),Fo(Lo(n),"createComment",(function(e,t,r,o,i,a){var s=hr()("comment_"),l={id:s,tagged_message:r,type:"comment"};if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=a,n.addPendingItem(n.file.id,t,l);var u={};o?u.taggedMessage=r:u.message=r,n.commentsAPI=new Pt(n.options),n.commentsAPI.createComment(jo({file:e},u,{successCallback:function(e){n.createCommentSuccessCallback(e,s,i)},errorCallback:function(e,t){n.createCommentErrorCallback(e,t,s)}}))})),Fo(Lo(n),"updateComment",(function(e,t,r,o,i,a,s){var l={tagged_message:r};if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=s,n.updateFeedItem(jo({},l,{isPending:!0}),t);var u={};o?u.tagged_message=r:u.message=r,n.commentsAPI=new Pt(n.options),n.commentsAPI.updateComment(jo({file:e,commentId:t,permissions:i},u,{successCallback:function(e){n.updateFeedItem(jo({},u,{isPending:!1}),t),n.isDestroyed()||a(e)},errorCallback:function(e,r){n.updateCommentErrorCallback(e,r,t)}}))})),Fo(Lo(n),"deleteAppActivity",(function(e,t,r,o){var i=e.id;if(!i)throw Object(De.a)();n.appActivityAPI=new Co(n.options),n.file=e,n.errorCallback=o,n.updateFeedItem({isPending:!0},t),n.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:n.deleteFeedItem.bind(Lo(n),t,r),errorCallback:function(e,r){n.deleteAppActivityErrorCallback(e,r,t)}})})),Fo(Lo(n),"deleteAppActivityErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(lo.a.appActivityDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),n.taskCollaboratorsAPI=[],n.taskLinksAPI=[],n.errors=[],n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mo(e,t)}(t,e),n=t,(r=[{key:"addAnnotation",value:function(e,t,n,r,o){if(!e.id)throw Object(De.a)();if(this.file=e,o){var i=jo({},n,{created_by:t,id:r,type:"annotation"});this.addPendingItem(this.file.id,t,i)}else this.updateFeedItem(jo({},n,{isPending:!1}),r)}},{key:"getCacheKey",value:function(e){return"".concat(y.Gf).concat(e)}},{key:"getCachedItems",value:function(e){var t=this.getCache(),n=this.getCacheKey(e);return t.get(n)}},{key:"setCachedItems",value:function(e,t){var n=this.getCache(),r=this.getCacheKey(e);n.set(r,{errors:this.errors,items:t})}},{key:"feedItems",value:function(e){function t(t,n,r,o,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,n,r,o){var i=this,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=a.shouldShowAnnotations,l=void 0!==s&&s,u=a.shouldShowAppActivity,c=void 0!==u&&u,f=e.id,d=e.permissions,p=void 0===d?{}:d,h=this.getCachedItems(f);if(h){var b=h.errors,m=h.items;if(b.length?r(m,b):n(m),!t)return}this.file=e,this.errors=[],this.errorCallback=o;var y=l?this.fetchAnnotations(p):Promise.resolve(),v=this.fetchVersions(),g=this.fetchCurrentVersion(),w=this.fetchComments(p),E=this.fetchTasksNew(),S=c?this.fetchAppActivity(p):Promise.resolve();Promise.all([v,g,w,E,S,y]).then((function(e){var t=_o(e),o=t[0],a=t[1],s=t.slice(2),l=i.versionsAPI.addCurrentVersion(a,o,i.file),u=uo.apply(void 0,[l].concat(Po(s)));i.isDestroyed()||(i.setCachedItems(f,u),i.errors.length?r(u,i.errors):n(u))}))}))},{key:"fetchAnnotations",value:function(e){var t=this;return this.annotationsAPI=new vo(this.options),new Promise((function(n){t.annotationsAPI.getAnnotations(t.file.id,void 0,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchComments",value:function(e){var t=this;return this.commentsAPI=new Pt(this.options),new Promise((function(n){t.commentsAPI.getComments(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchVersions",value:function(){var e=this;return this.versionsAPI=new gt(this.options),new Promise((function(t){e.versionsAPI.getVersions(e.file.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchCurrentVersion",value:function(){var e=this;return this.versionsAPI=new gt(this.options),new Promise((function(t){var n=e.file.file_version,r=void 0===n?{}:n;e.versionsAPI.getVersion(e.file.id,r.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchTasksNew",value:function(){var e=this;return this.tasksNewAPI=new Xt(this.options),new Promise((function(t){e.tasksNewAPI.getTasksForFile({file:{id:e.file.id},successCallback:t,errorCallback:function(n,r){return e.fetchFeedItemErrorCallback(t,n,r)}})}))}},{key:"fetchFeedItemErrorCallback",value:function(e,t,n){var r=t.status,o=Object(De.d)(r);this.feedErrorCallback(o,t,n),e()}},{key:"createTaskCollaboratorsforGroup",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(o,i){var a=new an(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaboratorsforGroup({file:e,task:t,group:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(o,i){var a=new an(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaborator({file:e,task:t,user:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"deleteTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file.id=e.id,new Promise((function(o,i){var a=new an(r.options);r.taskCollaboratorsAPI.push(a),a.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:n.id},successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskLink",value:function(e,t){var n=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(r,o){var i=new bn(n.options);n.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:o})}))}},{key:"createFeedError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:so.a.errorOccured;return{error:{message:e,title:t}}}},{key:"destroyTaskCollaborators",value:function(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((function(e){return e.destroy()})),this.taskCollaboratorsAPI=[])}},{key:"destroyTaskLinks",value:function(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((function(e){return e.destroy()})),this.taskLinksAPI=[])}},{key:"fetchAppActivity",value:function(e){var t=this;return this.appActivityAPI=new Co(this.options),new Promise((function(n){t.appActivityAPI.getAppActivity(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"destroy",value:function(){Ro(No(t.prototype),"destroy",this).call(this),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}}])&&Do(n.prototype,r),o&&Do(n,o),t}(O.a);function zo(e){return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wo(e,t){return!t||"object"!==zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qo(e){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Go(e,t){return(Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ko=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Wo(this,qo(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Go(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing app integration id!");return"".concat(this.getBaseApiUrl(),"/app_integrations/").concat(e)}},{key:"execute",value:function(e,t,n,r){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode=y.wb;var o="".concat(this.getUrl(e),"/execute"),i={data:{item:{id:t,type:y.Jf}}};this.post({id:t,url:o,data:i,successCallback:n,errorCallback:r})}}])&&Vo(n.prototype,r),o&&Vo(n,o),t}(O.a);function Xo(e){return(Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yo(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $o(e,t){return!t||"object"!==Xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qo(e){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zo(e,t){return(Zo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ei=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$o(this,Qo(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/open_with_integrations")}},{key:"getOpenWithIntegrations",value:function(e,t,n){var r=this;this.errorCode=y.Ib,this.get({id:e,successCallback:function(e){var n=r.formatOpenWithData(e),o=r.consolidateBoxEditIntegrations(n);t(o)},errorCallback:n})}},{key:"consolidateBoxEditIntegrations",value:function(e){var t=Yo(e);return e.some((function(e){return e.appIntegrationId===y.f}))&&(t=e.filter((function(e){return e.appIntegrationId!==y.g}))),t}},{key:"formatOpenWithData",value:function(e){var t=e.items,n=e.default_app_integration;return t.map((function(e){var t=e.app_integration,r=e.disabled_reasons,o=e.display_name,i=e.display_description,a=e.display_order,s=e.is_disabled,l=e.should_show_consent_popup,u=t.id,c=t.type;return{appIntegrationId:u,displayDescription:i,disabledReasons:r||[],displayOrder:a,isDefault:!!n&&u===n.id,isDisabled:s,displayName:o,requiresConsent:l,type:c}})).sort((function(e,t){return e.displayOrder-t.displayOrder}))}}])&&Jo(n.prototype,r),o&&Jo(n,o),t}(O.a);function ti(e){return(ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ii(e,t){return(ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ai=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==ti(t)&&"function"!=typeof t?oi(e):t}(this,(e=ri(t)).call.apply(e,[this].concat(s))),r=oi(n),i=function(e){var t=e.data;n.getCache().set(n.key,t),n.finish()},(o="queryMetadataSuccessHandler")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ii(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(y.k).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_queries/execute_read")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache().get(this.key);this.successCallback(e)}}},{key:"queryMetadataRequest",value:function(e){this.isDestroyed()||(this.errorCode=y.Xb,this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}},{key:"queryMetadata",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){var o=r.context,i=void 0===o?{}:o;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=n,r.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}}}])&&ni(n.prototype,r),o&&ni(n,o),t}(O.a);function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var li={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},ui=[{key:"userAgent",subString:li.EDGE,identity:li.EDGE},{key:"userAgent",subString:li.CHROME,identity:li.CHROME},{key:"userAgent",subString:"criOS",identity:li.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:li.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:li.FIREFOX,identity:li.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],ci=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:li.MAC,identity:li.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function fi(e,t){for(var n,r=null,o=null,i="",a=0,s=t.length;a<s;a+=1)if(n=e[t[a].key],i=t[a].versionSearch||t[a].identity,n&&-1!==n.indexOf(t[a].subString)){r=t[a].identity,o=t[a].device;break}return{identity:r,device:o,versionSearchString:i}}function di(e,t){var n=e.indexOf(t);if(-1===n)return"";var r=e.substring(n+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return r&&r.length?r[0]:""}var pi=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=window.navigator,n=fi(t,ui),r=fi(t,ci);this.browser=n.identity||"unknown",this.version=di(t.userAgent,n.versionSearchString)||di(t.appVersion,n.versionSearchString)||"unknown",this.OS=r.identity||"unknown",this.device=r.device||"unknown"}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.browser}},{key:"getVersion",value:function(){return this.version}},{key:"isMinBrowser",value:function(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}},{key:"isSafari",value:function(){return this.browser===li.SAFARI}},{key:"isFirefox",value:function(){return this.browser===li.FIREFOX}},{key:"isChrome",value:function(){return this.browser===li.CHROME}},{key:"isIE",value:function(){return this.browser===li.IE}},{key:"isEdge",value:function(){return this.browser===li.EDGE}},{key:"isIEAndSpecificBrowserPluginSupported",value:function(e){return this.isIE()&&function(e){var t=e||"htmlfile",n=!1;try{"ActiveXObject"in window&&(n=!!new(0,window.ActiveXObject)(t))}catch(e){n=!1}return n}(e)}}])&&si(t.prototype,n),r&&si(t,r),e}());var hi=function(e){var t,n=[],r=0;return new Promise((function(o,i){e.forEach((function(a,s){a.then(o).catch(function(o){return function(a){n[o]=a,(r+=1)===e.length&&(t=new Error("no promises resolved"),i(t))}}(s))}))}))},bi={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vi=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yi(this,"buildNextRequestID",(function(){return"".concat(bi.REQUEST_ID_PRE).concat(n.window.performance.now())})),yi(this,"buildDetailsObj",(function(e,t,r){var o=r.toString(),i={data:void 0,operation:e,properties:{application:n.appName,timeout:o},req_id:n.buildNextRequestID()};if(e!==bi.OPERATION_STATUS){if(!t)throw new TypeError("Data cannot be undefined for ".concat(e));i.data=t}return i})),this.appName=t,this.window=window}var t,n,r;return t=e,(n=[{key:"sendCommand",value:function(e,t,n){return Promise.resolve("TODO")}},{key:"sendRequest",value:function(e,t,n){return Promise.resolve("TODO")}},{key:"getComServerStatus",value:function(e,t){return Promise.resolve("TODO")}},{key:"destroy",value:function(){}}])&&mi(t.prototype,n),r&&mi(t,r),e}();function gi(e){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(e){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Si(e,t){return(Si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ki=2,Ci=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==gi(t)&&"function"!=typeof t?Ei(e):t}(this,wi(t).call(this,e)),Oi(Ei(r),"executeOperation",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=r.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:bi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),n);r.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),r.executeActiveXEvent({detail:s})}))})),Oi(Ei(r),"repairActiveXConnection",(function(e){pi.isIEAndSpecificBrowserPluginSupported(bi.BOX_TOOLS_PLUGIN_NAME)&&(r.retryAttempt>=ki||(r.retryAttempt+=1,setTimeout((function(){r.executeActiveXEvent(e)}),100)))})),Oi(Ei(r),"executeActiveXEvent",(function(e){var t=r.createActiveXObjectJSRef(),n="ExecuteSync"in t;try{r.isSynchronous&&n?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){r.repairActiveXConnection(e)}})),Oi(Ei(r),"createActiveXObjectJSRef",(function(){return new(0,r.window.ActiveXObject)(bi.BOX_TOOLS_PLUGIN_NAME)})),Oi(Ei(r),"setupActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached||(r.document.addEventListener(bi.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!0)})),Oi(Ei(r),"tearDownActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached&&(r.document.removeEventListener(bi.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!1)})),Oi(Ei(r),"appExtensionEventResponseHandler",(function(e){r.retryAttempt>0&&(r.retryAttempt=0);var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(r.reqIdToPromiseMap.has(t.req_id)){var n=r.reqIdToPromiseMap.get(t.req_id);if(n){clearTimeout(n.rejectTimeout),r.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;n.resolve(o)}}})),Oi(Ei(r),"getComServerStatus",(function(e,t){return r.executeOperation(bi.OPERATION_STATUS,null,e,t)})),Oi(Ei(r),"sendRequest",(function(e,t,n){return r.executeOperation(bi.OPERATION_REQUEST,e,t,n)})),Oi(Ei(r),"sendCommand",(function(e,t,n){return r.executeOperation(bi.OPERATION_COMMAND,e,t,n)})),Oi(Ei(r),"destroy",(function(){r.tearDownActiveXCommunication()})),r.isSynchronous=n,r.channelName=bi.ACTIVEX_CHANNEL_NAME,r.reqIdToPromiseMap=new Map,r.isActiveXExtensionListenerAttached=!1,r.retryAttempt=0,r.document=document,r.window=window,r.setupActiveXCommunication(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Si(e,t)}(t,e),t}(vi),xi=n(101);function _i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=window.document,a=new Date,s=[];void 0===n&&(n=a.getTime()+5184e6),a.setTime(n),s.push("".concat(e,"=").concat(encodeURIComponent(t))),0!==n&&s.push("; expires=".concat(a.toUTCString())),s.push("; path=".concat(r)),o&&s.push("; domain=".concat(o)),s.push("; secure"),i.cookie=s.join("")}function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ai(e){return(Ai=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ii(e,t){return(Ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Di="GET",Li="POST",Ri=31536e6,Ni=17223,Mi=17224,Fi="Content-Type",Ui="text/plain; charset=UTF-8",Bi="notrunning",Hi=new xi.a;function zi(){return Hi.getItem("comUseFallback")?{primary:Mi,fallback:Ni}:{primary:Ni,fallback:Mi}}var Vi=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==Pi(t)&&"function"!=typeof t?Ti(e):t}(this,Ai(t).call(this,e)),ji(Ti(o),"createCORSRequest",(function(e,t){var n;try{return(n=new(0,o.window.XMLHttpRequest)).open(e,t,!0),n}catch(n){if(o.retryCounter<3)return o.retryCounter+=1,o.createCORSRequest(e,t);throw new Error("could not create xhr")}})),ji(Ti(o),"getComServerStatusInstallationPromise",(function(e){var t,n,r=new Promise((function(e,r){t=e,n=r})),i=function(e,n){o.currentPort=e,e===Ni?Hi.removeItem("comUseFallback"):Hi.setItem("comUseFallback",1),o.comServerInstallationPromiseRejected=!1,t(n)},a=zi(),s=a.primary,l=a.fallback;return o.checkInstallStatus(s,e).then(i.bind(Ti(o),s)).catch((function(t){if(t===Bi)return o.comServerInstallationPromiseRejected=!0,void n();o.checkInstallStatus(l,e).then(i.bind(Ti(o),l)).catch((function(){o.comServerInstallationPromiseRejected=!0,n()}))})),r})),ji(Ti(o),"sendComServerRequest",(function(e,t,n,r){return new Promise((function(i,a){try{var s=o.createCORSRequest(e,t);s.setRequestHeader(Fi,Ui),s.onload=function(){i(s)},s.onerror=function(){a(s)},r>0&&(s.timeout=r,s.ontimeout=function(){a(s)}),setTimeout((function(){s.send(n)}),0)}catch(e){a()}}))})),ji(Ti(o),"checkInstallStatus",(function(e,t){return o.sendComServerRequest(Di,"".concat(o.url).concat(e,"/status"),null,t).then((function(e){var t=JSON.parse(e.responseText);if(t.running)return t;throw o.comServerInstallationPromiseRejected=!0,new Error(Bi)}))})),ji(Ti(o),"getComChannel",(function(e){return function(e){var t,n,r=window.document.cookie.split("; "),o=r.length;for(n=0;n<o;n+=1)if((t=r[n].split("="))[0]===e)return t[1]?decodeURIComponent(t[1]):"";return""}("".concat(e,"-bgp-id"))})),ji(Ti(o),"setComChannel",(function(e){var t=o.getComChannel(e)||o.generateId(),n="bgp-".concat(t),r=(new Date).getTime()+Ri;return _i("".concat(e,"-bgp-id"),t,r),_i("bgp-".concat(t),"generic",r),n})),ji(Ti(o),"getComServerStatus",(function(e){return!o.comServerInstallationPromise||o.comServerInstallationPromiseRejected?(o.comServerInstallationPromise=null,o.comServerInstallationPromise=o.getComServerStatusInstallationPromise(e),o.comServerInstallationPromise):o.comServerInstallationPromise})),ji(Ti(o),"sendRequest",(function(e,t,n){var r="".concat(o.url).concat(o.currentPort,"/application_request?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(n);return o.sendComServerRequest(Li,r,e,t).then((function(e){var t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error("Communication error: ".concat(t.message));return t}))})),ji(Ti(o),"sendCommand",(function(e,t,n){var r="".concat(o.url).concat(o.currentPort,"/application_command?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(n);return o.sendComServerRequest(Li,r,e,t).then((function(e){return JSON.parse(e.responseText)}))})),ji(Ti(o),"generateId",(function(){var e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(function(){return Math.floor((e+16*Math.random())%16).toString(16)}))})),o.url=n,o.comChannelName=o.setComChannel(e),o.channelName=r,o.comServerInstallationPromise=null,o.comServerInstallationPromiseRejected=!1,o.retryCounter=0,o.sendCount=0,o.currentPort=zi().primary,o.window=window,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ii(e,t)}(t,e),t}(vi);function Wi(e){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ki(e,t){return(Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yi="box_extension_input",Ji="box_extension_output",$i=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Wi(t)&&"function"!=typeof t?Gi(e):t}(this,qi(t).call(this,e)),Xi(Gi(n),"executeOperation",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=n.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:bi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);n.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),n.createAndDispatchAppExtensionEvent({detail:s})}))})),Xi(Gi(n),"setupSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached||(n.isAppExtensionListenerAttached=!0,n.document.addEventListener(Ji,n.appExtensionEventResponseHandler))})),Xi(Gi(n),"tearDownSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached&&(n.isAppExtensionListenerAttached=!1,n.document.removeEventListener(Ji,n.appExtensionEventResponseHandler))})),Xi(Gi(n),"appExtensionEventResponseHandler",(function(e){var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(n.reqIdToPromiseMap.has(t.req_id)){var r=n.reqIdToPromiseMap.get(t.req_id);if(r){clearTimeout(r.rejectTimeout),n.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;r.resolve(o)}}})),Xi(Gi(n),"createAndDispatchAppExtensionEvent",(function(e){var t=new(0,n.window.CustomEvent)(Yi,e);n.document.dispatchEvent(t)})),Xi(Gi(n),"getComServerStatus",(function(e,t){return n.executeOperation(bi.OPERATION_STATUS,null,e,t)})),Xi(Gi(n),"sendRequest",(function(e,t,r){return n.executeOperation(bi.OPERATION_REQUEST,e,t,r)})),Xi(Gi(n),"sendCommand",(function(e,t,r){return n.executeOperation(bi.OPERATION_COMMAND,e,t,r)})),Xi(Gi(n),"destroy",(function(){n.tearDownSafariExtensionCommunication()})),n.reqIdToPromiseMap=new Map,n.channelName=bi.SAFARI_CHANNEL_NAME,n.window=window,n.document=document,n.setupSafariExtensionCommunication(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ki(e,t)}(t,e),t}(vi);function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Zi,ea=55,ta="16.16299",na="17.17134",ra=5e3;function oa(e){var t=bi.BOX_UNSECURE_LOCAL_BASE_URL,n=bi.CREATED_STATUS,r=bi.HTTP_CHANNEL_NAME;return Zi.http_channel_status=n,new Vi(e,t,r)}function ia(e){var t=bi.CREATED_STATUS;return Zi.safari_channel_status=t,new $i(e)}function aa(e){var t=bi.CREATED_STATUS;return Zi.activex_channel_status=t,new Ci(e,!0)}function sa(){var e=li.EDGE;return pi.isMinBrowser(e,na)||pi.isMinBrowser(e,ta)&&pi.getVersion().startsWith("16.")}function la(){return pi.isEdge()&&!sa()}function ua(){var e=li.CHROME,t=li.FIREFOX;return pi.isMinBrowser(e,53)||pi.isMinBrowser(t,ea)||sa()}function ca(){return pi.isMinBrowser(li.SAFARI,10)}function fa(){return pi.isMinBrowser(li.IE,11)}function da(e){var t=bi.BOX_EDIT_NOT_SUPPORTED_ERROR,n=bi.BOX_EDIT_SAFARI_ERROR,r=bi.BOX_EDIT_UNINSTALLED_ERROR,o=bi.BOX_EDIT_UPGRADE_BROWSER_ERROR,i=t;return ua()?i=r:fa()?i=r:pi.isFirefox()||pi.isChrome()||pi.isSafari()&&!ca()||la()?i=o:ca()&&(i=n),Zi.error_message=i,e(new Error(i))}function pa(e){var t=ra;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function ha(e){var t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}var ba=function(){function e(t){var n,r,o,i,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=!1,(r="isInitialized")in(n=this)?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.channels=[],this.isInitialized=!0,i=pi.getName(),a=pi.getVersion(),s=bi.UNCREATED_STATUS,Zi={box_tools_version:null,browser_name:i,browser_version:a,error_message:null,installation_type:null,http_channel_status:s,https_channel_status:s,activex_channel_status:s,safari_channel_status:s},ua()?this.channels.push(oa(t)):ca()?this.channels.push(ia(t)):fa()&&pi.isIEAndSpecificBrowserPluginSupported(bi.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){var t=bi.CREATED_STATUS;return Zi.activex_channel_status=t,new Ci(e,!1)}(t)):pi.isFirefox()&&!pi.isMinBrowser(li.FIREFOX,ea)||la()||(this.channels=this.channels.concat([oa(t),ia(t),aa(t)]))}var t,n,r;return t=e,(n=[{key:"getComServerStatus",value:function(e){var t=this,n=bi.ACTIVE_STATUS,r=pa(e),o=ha(r),i=la();return new Promise((function(e,a){return i?da.call(null,a):t.channels.length?hi(t.channels.map((function(i){return i.getComServerStatus(r,o).then((function(r){return t.activeChannel=i,r&&(Zi.installation_type=r.installation_type,Zi.box_tools_version=r.version),Zi["".concat(i.channelName,"_status")]=n,e(r)}))}))).catch(da.bind(null,a)):da.call(null,a)}))}},{key:"sendRequest",value:function(e,t,n){var r=this,o=pa(n),i=ha(o);return this.activeChannel?this.activeChannel.sendRequest(e,o,i):this.getComServerStatus().then((function(){return r.activeChannel.sendRequest(e,o,i)}))}},{key:"sendCommand",value:function(e,t){var n=this,r=pa(t),o=ha(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,o):this.getComServerStatus().then((function(){return n.activeChannel.sendCommand(e,r,o)}))}}])&&Qi(t.prototype,n),r&&Qi(t,r),e}();function ma(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ya(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function va(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ya(i,r,o,a,s,"next",e)}function s(e){ya(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var wa;var Ea=null,Sa=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ea instanceof e||(Ea=this),this.extensionRequestQueue=new Map,Ea}var t,n,r,o;return t=e,(n=[{key:"queueGetNativeAppNameFromLocal",value:function(e){if(this.extensionRequestQueue.has(e)){var t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}var n={},r=new Promise((function(e,t){n.resolve=e,n.reject=t}));return n.promise=r,this.extensionRequestQueue.set(e,n),r}},{key:"checkBoxEditAvailability",value:function(){return this.getBoxEditAvailability()}},{key:"getBoxEditAvailability",value:function(){return this.client=new ba(bi.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}},{key:"canOpenWithBoxEdit",value:(o=va(regeneratorRuntime.mark((function e(t){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(){var e=va(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.getAppForExtension(t);case 3:return n=e.sent,r=[t,n],e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(0),i=[t,""],e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()));case 2:return n=e.sent,r=new Map,n.forEach((function(e){return r.set.apply(r,ma(e))})),e.abrupt("return",Promise.resolve(r));case 6:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"openFile",value:function(e,t){var n=function(e,t,n,r){return JSON.stringify({auth_code:n,auth_token:t,browser_type:pi.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:r})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(n,5e3)}},{key:"getAppForExtension",value:function(e){var t=this;try{if(function(e){var t=bi.EXTENSION_BLACKLIST,n=e.toUpperCase();return"."===n.charAt(0)&&(n=n.substr(1)),n in t}(e))throw new Error("blacklisted");var n=this.queueGetNativeAppNameFromLocal(e);return wa||(wa=setTimeout((function(){t.processExtensionRequestQueue()}),100)),n}catch(e){return Promise.reject()}}},{key:"processExtensionRequestQueue",value:function(){var e=new Map,t=[];this.extensionRequestQueue.forEach((function(n,r){e.set(r,n),t.push(r)})),this.extensionRequestQueue.clear(),wa=null;var n=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(n).then((function(n){if(n&&n.default_application_name){var r=n.default_application_name;"[object Object]"===Object.prototype.toString.call(r)&&(r=[r]),r.forEach((function(t){var n=Object.keys(t)[0],r=decodeURIComponent(t[n]);if(r){var o=e.get(n);o&&(o.resolve(r),e.delete(n))}}))}t.forEach((function(t){var n=e.get(t);n&&n.reject()}))}))}}])&&ga(t.prototype,n),r&&ga(t,r),e}();function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){ka(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{apiHost:t.apiHost||y.L,uploadHost:t.uploadHost||y.O,cache:t.cache||new r.a,language:t.language})}var t,n,o;return t=e,(n=[{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),e&&(this.options.cache=new r.a)}},{key:"getCache",value:function(){return this.options.cache}},{key:"getAPI",value:function(e){var t;switch(e){case y.Kf:t=this.getFolderAPI();break;case y.Jf:t=this.getFileAPI();break;case y.Lf:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}},{key:"getFileAPI",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&this.destroy(),this.fileAPI=new Ae.a(this.options),this.fileAPI}},{key:"getWebLinkAPI",value:function(){return this.destroy(),this.weblinkAPI=new Te.a(this.options),this.weblinkAPI}},{key:"getPlainUploadAPI",value:function(){return this.destroy(),this.plainUploadAPI=new _e(this.options),this.plainUploadAPI}},{key:"getChunkedUploadAPI",value:function(){return this.destroy(),this.chunkedUploadAPI=new ye(this.options),this.chunkedUploadAPI}},{key:"getFolderAPI",value:function(){return this.destroy(),this.folderAPI=new Pe.a(this.options),this.folderAPI}},{key:"getSearchAPI",value:function(){return this.destroy(),this.searchAPI=new ze(this.options),this.searchAPI}},{key:"getRecentsAPI",value:function(){return this.destroy(),this.recentsAPI=new Je(this.options),this.recentsAPI}},{key:"getMetadataAPI",value:function(e){return e&&this.destroy(),this.metadataAPI=new kr(this.options),this.metadataAPI}},{key:"getVersionsAPI",value:function(e){return e&&this.destroy(),this.versionsAPI=new gt(this.options),this.versionsAPI}},{key:"getCommentsAPI",value:function(e){return e&&this.destroy(),this.commentsAPI=new Pt(this.options),this.commentsAPI}},{key:"getTasksNewAPI",value:function(e){return e&&this.destroy(),this.tasksNewAPI=new Xt(this.options),this.tasksNewAPI}},{key:"getTaskCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new an(this.options),this.taskCollaboratorsAPI}},{key:"getTaskLinksAPI",value:function(e){return e&&this.destroy(),this.taskLinksAPI=new bn(this.options),this.taskLinksAPI}},{key:"getFileAccessStatsAPI",value:function(e){return e&&this.destroy(),this.fileAccessStatsAPI=new En(this.options),this.fileAccessStatsAPI}},{key:"getFileCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new jr(this.options),this.fileCollaboratorsAPI}},{key:"getFileCollaborationsAPI",value:function(e){return e&&this.destroy(),this.fileCollaborationsAPI=new qr(this.options),this.fileCollaborationsAPI}},{key:"getFolderCollaborationsAPI",value:function(e){return e&&this.destroy(),this.folderCollaborationsAPI=new $r(this.options),this.folderCollaborationsAPI}},{key:"getCollaborationsAPI",value:function(e){return e&&this.destroy(),this.collaborationsAPI=new ao(this.options),this.collaborationsAPI}},{key:"getMarkerBasedGroupsAPI",value:function(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Hn(this.options),this.markerBasedGroupsAPI}},{key:"getMarkerBasedUsersAPI",value:function(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Jn(this.options),this.markerBasedUsersAPI}},{key:"getGroupsAPI",value:function(e){return e&&this.destroy(),this.groupsAPI=new nr(this.options),this.groupsAPI}},{key:"getUsersAPI",value:function(e){return e&&this.destroy(),this.usersAPI=new dr(this.options),this.usersAPI}},{key:"getFeedAPI",value:function(e){return e&&this.destroy(),this.feedItemsAPI=new Ho(this.options),this.feedItemsAPI}},{key:"getOpenWithAPI",value:function(e){return e&&this.destroy(),this.openWithAPI=new ei(this.options),this.openWithAPI}},{key:"getAppIntegrationsAPI",value:function(e){return e&&this.destroy(),this.appIntegrationsAPI=new Ko(this.options),this.appIntegrationsAPI}},{key:"getMetadataQueryAPI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.destroy(),this.metadataQueryAPI=new ai(this.options),this.metadataQueryAPI}},{key:"getBoxEditAPI",value:function(){return this.boxEditAPI=new Sa,this.boxEditAPI}},{key:"getAnnotationsAPI",value:function(e){return e&&this.destroy(),this.annotationsAPI=new vo(this.options),this.annotationsAPI}}])&&Ca(t.prototype,n),o&&Ca(t,o),e}();t.a=xa},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(12),s=n.n(a),l=n(48),u=n(3),c=n.n(u),f=n(334),d=n.n(f);n(657);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=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 b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t}(this,y(t).call(this,e)),w(v(n),"state",{shouldShowTopScrollShadow:!1,shouldShowBottomScrollShadow:!1}),w(v(n),"componentDidMount",(function(){var e=n.getScrollShadowState();n.setState(e),n.scrollRef&&(n.scrollRef.addEventListener("transitionend",n.throttledOnContentScroll),n.scrollRef&&n.observer.observe(n.scrollRef,{attributes:!0,childlist:!0,subtree:!0}))})),w(v(n),"onContentScroll",(function(){var e=n.getScrollShadowState();n.setState(e)})),w(v(n),"getScrollShadowState",(function(){var e=n.scrollRef||{},t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight,i={};return t>0&&t<r-o&&(i.shouldShowTopScrollShadow=!0,i.shouldShowBottomScrollShadow=!0),0===t&&(i.shouldShowTopScrollShadow=!1),t<r-o&&(i.shouldShowBottomScrollShadow=!0),t===r-o&&(i.shouldShowBottomScrollShadow=!1),i})),w(v(n),"scrollRef",null),w(v(n),"throttledOnContentScroll",d()(n.onContentScroll,100)),n.observer=new MutationObserver(n.throttledOnContentScroll),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.scrollRef&&this.scrollRef.removeEventListener("transitionend",this.throttledOnContentScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=void 0===o?"":o,s=t.scrollRefFn,l=t.shadowSize,u=b(t,["children","className","scrollRefFn","shadowSize"]),c=this.state,f=c.shouldShowTopScrollShadow,d=c.shouldShowBottomScrollShadow,p=i()("scroll-container",a,{"is-showing-top-shadow":f,"is-showing-bottom-shadow":d});return r.createElement("div",h({className:p},u),r.createElement("div",{className:i()("scroll-wrap-container","style--".concat(l)),onScroll:this.throttledOnContentScroll,ref:function(t){e.scrollRef=t,s(t)}},n))}}])&&m(n.prototype,o),a&&m(n,a),t}(r.Component);w(E,"defaultProps",{scrollRefFn:c.a,shadowSize:"cover"});var S=E,O=n(1);n(658);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){e.preventDefault(),e.stopPropagation()}var I=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?_(e):t}(this,x(t).call(this,e)),A(_(n),"setActiveItem",(function(e){n.setState({activeItemIndex:e}),-1===e&&n.setActiveItemID(null)})),A(_(n),"setActiveItemID",(function(e){var t=n.props.scrollBoundarySelector,r=e?document.getElementById(e):null,o={block:"nearest"};void 0!==t&&(o.boundary=document.querySelector(t)),n.setState({activeItemID:e},(function(){Object(l.e)(r,o)}))})),A(_(n),"haveChildrenChanged",(function(e){var t=n.props.children,o=r.Children.count(t);if(o!==r.Children.count(e))return!0;if(0===o)return!1;var i=r.Children.map(t,(function(e){return e.key})),a=r.Children.map(e,(function(e){return e.key}));return i.some((function(e,t){return e!==a[t]}))})),A(_(n),"resetActiveItem",(function(){n.setState({activeItemID:null,activeItemIndex:-1})})),A(_(n),"handleFocus",(function(){n.openDropdown()})),A(_(n),"handleDocumentClick",(function(e){var t=n.selectorDropdownRef.current;t&&e.target instanceof Node&&t.contains(e.target)||t===e.target||n.closeDropdown()})),A(_(n),"handleInput",(function(){n.openDropdown()})),A(_(n),"handleKeyDown",(function(e){var t=n.props,o=t.children,i=t.isAlwaysOpen,a=t.onEnter,s=n.state.activeItemIndex,l=r.Children.count(o);switch(e.key){case"ArrowDown":if(n.isDropdownOpen()){l&&T(e);var u=s===l-1?-1:s+1;n.setActiveItem(u)}else n.openDropdown();break;case"ArrowUp":if(n.isDropdownOpen()){l&&T(e);var c=-1===s?l-1:s-1;n.setActiveItem(c)}else n.openDropdown();break;case"Enter":-1!==s&&n.isDropdownOpen()?(T(e),n.selectItem(s,e)):a&&a(e);break;case"Tab":n.isDropdownOpen()&&(n.closeDropdown(),n.resetActiveItem());break;case"Escape":!i&&n.isDropdownOpen()&&(T(e),n.closeDropdown(),n.resetActiveItem());break;default:n.handleInput()}})),A(_(n),"isDropdownOpen",(function(){var e=n.props,t=e.children,o=e.isAlwaysOpen,i=n.state.shouldOpen;return r.Children.count(t)>0&&(!!o||i)})),A(_(n),"openDropdown",(function(){n.state.shouldOpen||(n.props.shouldSetActiveItemOnOpen&&n.setActiveItem(0),n.setState({shouldOpen:!0}),document.addEventListener("click",n.handleDocumentClick,!0))})),A(_(n),"closeDropdown",(function(){n.setState({shouldOpen:!1}),document.removeEventListener("click",n.handleDocumentClick,!0)})),A(_(n),"selectItem",(function(e,t){var r=n.props.onSelect;r&&r(e,t),n.closeDropdown()})),n.listboxID=s()("listbox"),n.state={activeItemID:null,activeItemIndex:-1,shouldOpen:!1},n.selectorDropdownRef=r.createRef(),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=e.shouldSetActiveItemOnOpen,n=e.children;this.haveChildrenChanged(n)&&(t?this.setActiveItem(0):this.resetActiveItem())}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"render",value:function(){var e=this.listboxID,t=this.selectItem,n=this.setActiveItem,o=this.setActiveItemID,a=this.closeDropdown,s=this.props,l=s.dividerIndex,u=s.overlayTitle,c=s.children,f=s.className,d=s.title,p=s.selector,h=s.shouldScroll,b=this.state,m=b.activeItemID,y=b.activeItemIndex,v=this.isDropdownOpen(),g={"aria-activedescendant":m,"aria-autocomplete":"list","aria-expanded":v,role:"combobox"};v&&(g["aria-owns"]=e);var w=r.createElement("ul",{className:i()("overlay",u?u.toLowerCase():""),id:e,role:"listbox"},u&&r.createElement("h5",{className:"SelectorDropdown-title"},u),r.Children.map(c,(function(e,i){var s={onClick:function(e){t(i,e)},onMouseDown:function(e){e.preventDefault()},onMouseEnter:function(){n(i)},closeDropdown:function(){a()},setActiveItemID:o};i===y&&(s.isActive=!0);var u=i===l;return r.createElement(r.Fragment,null,u&&r.createElement("hr",{className:"SelectorDropdown-divider"}),r.cloneElement(e,s))})));return(r.createElement("div",{className:i()("SelectorDropdown",f),onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onPaste:this.handleInput,ref:this.selectorDropdownRef},r.cloneElement(p,{inputProps:g}),v&&r.createElement("div",{className:"".concat(O.ze," is-visible")},d,h?r.createElement(S,null,w):w)))}}])&&C(n.prototype,o),a&&C(n,a),t}(r.Component);n.d(t,"a",(function(){return I}))},,function(e,t,n){"use strict";var r=n(0),o=n(207),i=n.n(o),a=n(4),s=n.n(a);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=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 c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(o))),b(p(n),"focusFirstElement",(function(){if(n.el){var e=i()(n.el);e.length>3?e[1].focus():n.trapEl&&n.trapEl.focus()}})),b(p(n),"focusLastElement",(function(){if(n.el){var e=i()(n.el);e.length>3?e[e.length-3].focus():n.trapEl&&n.trapEl.focus()}})),b(p(n),"handleElKeyDown",(function(e){var t=n.props.handleOverlayKeyDown;n.el===document.activeElement&&"Tab"===e.key&&(n.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)})),b(p(n),"handleTrapElKeyDown",(function(e){"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this;this.props.shouldDefaultFocus?setTimeout((function(){e.previousFocusEl=document.activeElement,e.focusFirstElement()}),0):setTimeout((function(){e.el&&e.el.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=this;setTimeout((function(){e.previousFocusEl&&e.previousFocusEl.focus()}),0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.getRef,a=(t.handleOverlayKeyDown,t.shouldDefaultFocus,t.shouldOutlineFocus),l=c(t,["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"]);return r.createElement("div",u({ref:function(t){e.el=t,i&&i(t)},className:s()(o,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},l),r.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:"0"}),n,r.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:"0"}),r.createElement("i",{ref:function(t){e.trapEl=t},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:"0"}))}}])&&f(n.prototype,o),a&&f(n,a),t}(r.Component);n.d(t,"a",(function(){return m}))},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n.n(o),a=n(4),s=n.n(a),l=n(88),u=n(119),c=n(110),f=n(17),d=Object(l.defineMessages)({checkboxTooltipIconInfoText:{id:"boxui.checkboxTooltip.iconInfoText",defaultMessage:"Info"}}),p=function(e){var t=e.tooltip;return r.createElement("div",{className:"checkbox-tooltip-wrapper"},r.createElement(f.c,{text:t},r.createElement("div",{className:"info-tooltip"},r.createElement(c.a,{height:16,title:r.createElement(u.a,d.checkboxTooltipIconInfoText),width:16}))))};n(551);function h(){return(h=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 b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var m=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.fieldLabel,l=e.hideLabel,u=e.id,c=e.isChecked,f=e.isDisabled,d=e.label,m=e.name,y=e.onChange,v=e.subsection,g=e.tooltip,w=b(e,["className","description","fieldLabel","hideLabel","id","isChecked","isDisabled","label","name","onChange","subsection","tooltip"]),E=r.useRef(i()("checkbox")).current,S=u||E,O=r.createElement("span",{className:"checkbox-label"},r.createElement("input",h({"aria-describedby":o?"description_".concat(S):"",checked:c,disabled:f,id:S,name:m,onChange:y,type:"checkbox"},w)),r.createElement("span",{className:"checkbox-pointer-target"}),r.createElement("span",{className:s()("bdl-Checkbox-labelTooltipWrapper",{"accessibility-hidden":l})},d&&r.createElement("label",{htmlFor:S},d),g&&r.createElement(p,{tooltip:g})));return r.createElement("div",{className:s()("checkbox-container",n,{"is-disabled bdl-is-disabled":f})},a&&r.createElement("div",{className:"label"},a),O,o?r.createElement("div",{id:"description_".concat(S),className:"checkbox-description"},o):null,v?r.createElement("div",{className:"checkbox-subsection"},v):null)};n.d(t,"a",(function(){return m}))},,function(e,t){e.exports=function(e,t){t=t||{};var n,r,o,i=e.ownerDocument||e,a=[],s=[],l=function(e){var t=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!function n(r,o){if(r===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===r)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(r)).display?s=!0:r.parentNode&&(s=n(r.parentNode)),t.push([r,s]),s}(n,r)||"hidden"===r.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(u.join(","));if(t.includeContainer){var f=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some((function(t){return f.call(e,t)}))&&(c=Array.prototype.slice.apply(c)).unshift(e)}for(var d=0,p=c.length;d<p;d++)n=c[d],r=parseInt(n.getAttribute("tabindex"),10),(o=isNaN(r)?n.tabIndex:r)<0||"INPUT"===n.tagName&&"hidden"===n.type||n.disabled||l(n,i)||(0===o?a.push(n):s.push({index:d,tabIndex:o,node:n}));var h=s.sort((function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex})).map((function(e){return e.node}));return Array.prototype.push.apply(h,a),h}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},,,function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(32),i=n(138),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";var r=n(0),o=n(88),i=n(119),a=n(51),s=n(4),l=n.n(s),u=n(3),c=n.n(u),f=n(197),d=n.n(f),p=n(12),h=n.n(p),b=n(150),m=n(2),y=n(9);function v(){return(v=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)}var g=function(e){return r.createElement(y.a,v({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:m.j,fillRule:"evenodd",d:"M8 1a7 7 0 110 14A7 7 0 018 1zm0 10a1 1 0 100 2 1 1 0 000-2zm0-8a1 1 0 00-1 1v5a1 1 0 002 0V4a1 1 0 00-1-1z"}))};function w(){return(w=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)}var E=function(e){return r.createElement(y.a,w({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("g",{fill:m.j,fillRule:"evenodd"},r.createElement("path",{d:"M13.436 0c.892 0 1.215.093 1.54.267.327.174.583.43.757.756.174.326.267.65.267 1.54v10.873c0 .892-.093 1.215-.267 1.54-.174.327-.43.583-.756.757-.326.174-.65.267-1.54.267H2.563c-.892 0-1.215-.093-1.54-.267a1.817 1.817 0 01-.757-.756C.093 14.65 0 14.327 0 13.437V2.563c0-.892.093-1.215.267-1.54.174-.327.43-.583.756-.757C1.35.093 1.673 0 2.563 0h10.873zM13 4H3a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1V5a1 1 0 00-1-1z"}),r.createElement("g",{transform:"translate(3 5.5)"},r.createElement("rect",{width:1.5,height:1.5,x:2.833,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:5.667,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:8.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:2.83,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:5.67,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:8.5,y:2.5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,y:5,rx:.5}),r.createElement("rect",{width:1.5,height:1.5,x:2.83,y:5,rx:.5}))))},S=n(267),O=n(531);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t,n){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?x(e):t}(this,P(t).call(this,e)),T(x(n),"handleBlur",(function(){n.hide()})),T(x(n),"handleClickOutside",(function(e){if(!(n.isVisible()&&n.datePickerButtonEl&&n.datePickerButtonEl.contains(e.target))&&n.isVisible()&&!n.el.contains(e.target)){n.hide();var t=document.activeElement;n.accessibleFieldEl&&t&&t.tabIndex<0&&n.accessibleFieldEl.focus()}})),n.accessibleFieldEl=e.accessibleFieldEl,n.datePickerButtonEl=e.datePickerButtonEl,n.accessibleFieldEl&&(n.el.classList.add("is-bound"),document.body.appendChild(n.el),n.accessibleFieldEl.addEventListener("blur",n.handleBlur),n.hide()),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(t,e),n=t,(r=[{key:"show",value:function(){_(P(t.prototype),"show",this).call(this),this.accessibleFieldEl&&(document.addEventListener("click",this.handleClickOutside,!0),this.adjustPosition())}},{key:"hide",value:function(){_(P(t.prototype),"hide",this).call(this),this.accessibleFieldEl&&document.removeEventListener("click",this.handleClickOutside)}},{key:"destroy",value:function(){_(P(t.prototype),"destroy",this).call(this),this.accessibleFieldEl&&(this.accessibleFieldEl.removeEventListener("blur",this.handleBlur),document.removeEventListener("click",this.handleClickOutside))}}])&&C(n.prototype,r),o&&C(n,o),t}(n.n(O).a),j=n(26),D=n(129),L=n(18),R=n(17),N=n(30);n(656);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(){return(U=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 B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q,G=Object(o.defineMessages)({previousMonth:{id:"boxui.base.previousMonth",defaultMessage:"Previous Month"},nextMonth:{id:"boxui.base.nextMonth",defaultMessage:"Next Month"},iconAlertText:{id:"boxui.datePicker.iconAlertText",defaultMessage:"Invalid Date"},dateClearButton:{id:"boxui.datePicker.dateClearButton",defaultMessage:"Clear Date"},chooseDate:{id:"boxui.datePicker.chooseDate",defaultMessage:"Choose Date"},dateInputRangeError:{id:"boxui.datePicker.dateInputRangeError",defaultMessage:"Please enter a date between {minLocaleDate} and {maxLocaleDate}"},dateInputMaxError:{id:"boxui.datePicker.dateInputMaxError",defaultMessage:"Please enter a date before {maxLocaleDate}"},dateInputMinError:{id:"boxui.datePicker.dateInputMinError",defaultMessage:"Please enter a date after {minLocaleDate}"}}),K=300,X="Enter",Y="Escape",J="Tab",$=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/;function Q(e,t){if(!e)return"";switch(t){case q.ISO_STRING_DATE_FORMAT:return e.toISOString();case q.LOCALE_DATE_STRING_DATE_FORMAT:return e.toLocaleDateString();case q.UTC_TIME_DATE_FORMAT:return Object(N.b)(e);case q.UTC_ISO_STRING_DATE_FORMAT:return new Date(Object(N.b)(e)).toISOString();default:return e.getTime()}}!function(e){e.ISO_STRING_DATE_FORMAT="isoString",e.LOCALE_DATE_STRING_DATE_FORMAT="localeDateString",e.UTC_TIME_DATE_FORMAT="utcTime",e.UNIX_TIME_DATE_FORMAT="unixTime",e.UTC_ISO_STRING_DATE_FORMAT="utcISOString"}(q||(q={}));var Z=["en-US","en-CA","jp-JP"],ee=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=function(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?z(e):t}(this,(e=H(t)).call.apply(e,[this].concat(i))),W(z(n),"state",{isDateInputInvalid:!1,showDateInputError:!1}),W(z(n),"errorMessageID",h()("errorMessage")),W(z(n),"descriptionID",h()("description")),W(z(n),"onSelectHandler",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=n.props,r=t.onChange,o=t.isAccessible,i=n.state.isDateInputInvalid;if(r){var a=n.formatValue(e);r(e,a)}o&&(n.dateInputEl&&n.datePicker&&(n.dateInputEl.value=n.datePicker.toString()),n.datePicker&&n.datePicker.isVisible()&&(n.datePicker.hide(),n.focusDatePicker())),i&&n.setState({isDateInputInvalid:!1,showDateInputError:!1})})),W(z(n),"datePicker",null),W(z(n),"canUseDateInputType",!0),W(z(n),"shouldStayClosed",!1),W(z(n),"focusDatePicker",(function(){n.dateInputEl&&n.dateInputEl.focus()})),W(z(n),"getDateInputError",(function(){var e=n.props,t=e.intl,r=e.maxDate,o=void 0===r?null:r,i=e.minDate,a=void 0===i?null:i,s=n.state.showDateInputError,l=t.formatMessage;if(!s)return"";var u="",c=Q(o,q.LOCALE_DATE_STRING_DATE_FORMAT),f=Q(a,q.LOCALE_DATE_STRING_DATE_FORMAT);return c&&f?u=l(G.dateInputRangeError,{maxLocaleDate:c,minLocaleDate:f}):c?u=l(G.dateInputMaxError,{maxLocaleDate:c}):f&&(u=l(G.dateInputMinError,{minLocaleDate:f})),u})),W(z(n),"handleInputKeyDown",(function(e){var t=n.props,r=t.isKeyboardInputAllowed,o=t.isTextInputAllowed,i=t.isAccessible;!r&&n.datePicker&&n.datePicker.isVisible()&&e.stopPropagation(),o||i||e.key===J||e.preventDefault(),(o||i&&!n.canUseDateInputType)&&e.key===X&&e.preventDefault(),!i||e.key!==X&&" "!==e.key||e.preventDefault(),e.key!==X&&e.key!==Y&&" "!==e.key||n.datePicker&&n.datePicker.isVisible()&&n.datePicker.hide()})),W(z(n),"handleOnChange",(function(e){var t=n.props,r=t.isAccessible,o=t.maxDate,i=t.minDate,a=t.onChange,s=n.state.isDateInputInvalid;if(r&&n.canUseDateInputType){n.datePicker&&n.datePicker.isVisible()&&e.stopPropagation();var l=e.target.value;if(n.datePicker&&l){var u=n.parseDisplayDateType(l);if(u){if(i&&u<i||o&&u>o)return n.datePicker.setDate(null),void n.setState({isDateInputInvalid:!0});s&&n.setState({isDateInputInvalid:!1,showDateInputError:!1})}else n.setState({isDateInputInvalid:!0});if(n.datePicker.setDate(u,!0),a)a(u,n.formatValue(u))}else s&&n.setState({isDateInputInvalid:!1,showDateInputError:!1})}})),W(z(n),"handleInputBlur",(function(e){var t=n.props,r=t.isAccessible,o=t.isTextInputAllowed,i=t.onBlur,a=n.state.isDateInputInvalid,s=e.relatedTarget||document.activeElement;n.datePicker&&n.datePicker.isVisible()&&s&&s===n.datePickerButtonEl&&(n.shouldStayClosed=!0,setTimeout((function(){n.shouldStayClosed=!1}),K)),i&&i(e);var l=null;if(n.dateInputEl){var u=null;r&&!n.canUseDateInputType&&(u=n.parseDisplayDateType(n.dateInputEl.value)),l=new Date(u||n.dateInputEl.value)}(o||r&&!n.canUseDateInputType)&&l&&l.getDate()&&n.onSelectHandler(l),r&&a&&n.setState({showDateInputError:!0})})),W(z(n),"handleButtonClick",(function(e){e.preventDefault(),e.stopPropagation();var t=n.props,r=t.isAccessible,o=t.isDisabled;if(r){if(o||!n.datePicker)return;n.datePicker.isVisible()?(n.datePicker.hide(),n.focusDatePicker()):n.datePicker.show()}else n.shouldStayClosed||n.focusDatePicker()})),W(z(n),"handleOnClick",(function(e){n.props.isAccessible&&(e.preventDefault(),e.stopPropagation())})),W(z(n),"formatDisplay",(function(e){var t=n.props,r=t.displayFormat,o=t.intl;return e?o.formatDate(e,r):""})),W(z(n),"formatDisplayDateType",(function(e){return e?Q(e,q.UTC_ISO_STRING_DATE_FORMAT).slice(0,10):""})),W(z(n),"parseDisplayDateType",(function(e){return e&&$.test(e)?new Date("".concat(e,"T00:00:00")):null})),W(z(n),"formatValue",(function(e){var t=n.props.dateFormat;return t?Q(e,t):""})),W(z(n),"clearDate",(function(e){e.preventDefault();var t=n.props.isAccessible;n.datePicker&&n.datePicker.setDate(null),n.onSelectHandler(null),t&&n.focusDatePicker()})),W(z(n),"shouldUseAccessibleFallback",(function(){var e=document.createElement("input");try{e.type="date"}catch(e){}return"text"===e.type})),W(z(n),"renderCalendarButton",(function(){var e=n.props,t=e.intl,o=e.isAccessible,i=e.isAlwaysVisible,a=e.isDisabled,s=t.formatMessage;if(i)return null;var l=o?{"aria-hidden":!0,tabIndex:-1}:{};return r.createElement(L.a,U({"aria-label":s(G.chooseDate),className:"date-picker-open-btn",getDOMRef:function(e){n.datePickerButtonEl=e},isDisabled:a,onClick:n.handleButtonClick,type:j.a.BUTTON},l),r.createElement(E,null))})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e,t=this.props,n=t.customInput,r=t.dateFormat,o=t.displayFormat,i=t.intl,a=t.isAccessible,s=t.isAlwaysVisible,l=t.isTextInputAllowed,u=t.maxDate,f=t.minDate,p=t.onChange,h=t.value,b=t.yearRange,m=i.formatDate,y=i.formatMessage,v=G.nextMonth,g=G.previousMonth,w=h;a&&this.shouldUseAccessibleFallback()&&(this.canUseDateInputType=!1),r===q.UTC_TIME_DATE_FORMAT&&h&&(e=h.toUTCString().slice(0,-4),w=new Date(e),p&&p(w,this.formatValue(w)));var E=(new Date).getFullYear(),S=(o||{}).timeZone,O={previousMonth:y(g),nextMonth:y(v),months:d()(12).map((function(e){return m(new Date(E,e,15),{month:"long",timeZone:S})})),weekdays:d()(1,8).map((function(e){return m(new Date(2016,4,e),{weekday:"long",timeZone:S})})),weekdaysShort:d()(1,8).map((function(e){return m(new Date(2016,4,e),{weekday:"narrow",timeZone:S})}))},k={bound:!n,blurFieldOnSelect:!1,setDefaultDate:!0,defaultDate:null===w?void 0:w,field:this.dateInputEl,firstDay:Z.includes(i.locale)?0:1,maxDate:u,minDate:f,position:"bottom left",i18n:O,showDaysInNextAndPreviousMonths:!0,onSelect:this.onSelectHandler,yearRange:b,toString:this.formatDisplay};a&&(this.canUseDateInputType&&(delete k.field,k.trigger=this.dateInputEl,k.accessibleFieldEl=this.dateInputEl,k.datePickerButtonEl=this.datePickerButtonEl),k.parse=this.parseDisplayDateType,k.toString=this.formatDisplayDateType,k.keyboardInput=!1),this.datePicker=new I(k),l&&this.updateDateInputValue(this.formatDisplay(w)),s&&(this.datePicker.show(),this.datePicker.hide=c.a)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(this.datePicker){var t=e.value,n=void 0===t?null:t,r=e.minDate,o=void 0===r?null:r,i=e.maxDate,a=void 0===i?null:i,s=this.props,l=s.value,u=s.minDate,c=s.maxDate,f=s.isTextInputAllowed,d=this.datePicker&&this.datePicker.getDate();(n&&!l||!n&&l||n&&l&&n.getTime()!==l.getTime())&&this.datePicker.setDate(n),f&&this.updateDateInputValue(this.formatDisplay(n)),(o&&!u||o&&u||o&&u&&o.getTime()!==u.getTime())&&(this.datePicker.setMinDate(o),d&&d<o&&this.datePicker.gotoDate(o)),(a&&!c||!a&&c||a&&c&&a.getTime()!==c.getTime())&&(this.datePicker.setMaxDate(a),d&&a&&d>a&&this.datePicker.gotoDate(a))}}},{key:"componentWillUnmount",value:function(){this.datePicker&&this.datePicker.destroy()}},{key:"updateDateInputValue",value:function(e){this.dateInputEl&&(this.dateInputEl.value=e)}},{key:"render",value:function(){var e,t,n,o=this,a=this.props,s=a.className,u=a.customInput,f=a.description,d=a.error,p=a.errorTooltipPosition,h=a.hideLabel,m=a.hideOptionalLabel,y=a.inputProps,v=a.intl,w=a.isAccessible,E=a.isClearable,O=a.isDisabled,k=a.isRequired,C=a.isTextInputAllowed,x=a.label,_=a.maxDate,P=a.minDate,A=a.name,T=a.onFocus,I=a.placeholder,N=a.resinTarget,M=a.value,B=this.state.isDateInputInvalid,H=v.formatMessage,z=d||this.getDateInputError(),V=!!z||B,q=!!M||B,K=l()(s,"date-picker-wrapper",{"show-clear-btn":E&&q&&!O,"show-error":V}),X={"aria-invalid":V,"aria-required":k,"aria-errormessage":this.errorMessageID,"aria-describedby":f?this.descriptionID:void 0},Y=N?W({},b.a,N):{};return e=w?{defaultValue:this.formatDisplayDateType(M)}:C?{defaultValue:this.formatDisplay(M)}:{value:this.formatDisplay(M)},t=w&&this.canUseDateInputType?{onChange:this.handleOnChange}:C||w&&!this.canUseDateInputType?{}:{onChange:c.a},n=w&&this.canUseDateInputType?{max:this.formatDisplayDateType(_)||"9999-12-31",min:this.formatDisplayDateType(P)||"0001-01-01"}:w&&!this.canUseDateInputType?{name:A,pattern:$.source,title:"YYYY-MM-DD"}:{},r.createElement("div",{className:K},r.createElement("span",{className:"date-picker-icon-holder"},r.createElement(D.a,{hideLabel:h,showOptionalText:!m&&!k,text:x},r.createElement(r.Fragment,null,!!f&&r.createElement("div",{id:this.descriptionID,className:"date-picker-description"},f),r.createElement(R.c,{className:"date-picker-error-tooltip",isShown:!!z,position:p,text:z||"",theme:R.b.ERROR},u?r.cloneElement(u,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disabled:O,ref:function(e){o.dateInputEl=e},required:k},Y,{},X)):r.createElement("input",U({ref:function(e){o.dateInputEl=e},className:"date-picker-input",disabled:O,onBlur:this.handleInputBlur,onClick:this.handleOnClick,placeholder:I||H(G.chooseDate),required:k,type:w&&this.canUseDateInputType?"date":"text"},t,{onFocus:T,onKeyDown:this.handleInputKeyDown},Y,X,y,e,n))),r.createElement("span",{id:this.errorMessageID,className:"accessibility-hidden",role:"alert"},z))),E&&q&&!O?r.createElement(L.a,{"aria-label":H(G.dateClearButton),className:"date-picker-clear-btn",onClick:this.clearDate,type:j.a.BUTTON},r.createElement(S.a,null)):null,V?r.createElement(g,{className:"date-picker-icon-alert",title:r.createElement(i.a,G.iconAlertText)}):null,this.renderCalendarButton(),r.createElement("input",{className:"date-picker-unix-time-input",name:A,readOnly:!0,type:"hidden",value:M?this.formatValue(M):""})))}}])&&B(n.prototype,o),a&&B(n,a),t}(r.Component);W(ee,"defaultProps",{className:"",dateFormat:q.UNIX_TIME_DATE_FORMAT,displayFormat:{},error:"",errorTooltipPosition:R.a.BOTTOM_LEFT,inputProps:{},isClearable:!0,isKeyboardInputAllowed:!1,isTextInputAllowed:!1,yearRange:10});t.a=Object(a.c)(ee)},,function(e,t,n){"use strict";var r=n(0);function o(){return(o=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 i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t,n,a,s=e.children,l=e.href,u=void 0===l?"#":l,c=e.linkRef,f=e.target,d=e.rel,p=e.component,h=e.refProp,b=i(e,["children","href","linkRef","target","rel","component","refProp"]),m="_blank"!==f||d?d:"noopener",y=p||"a",v=(a=c,(n=h||"ref")in(t={})?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t);return r.createElement(y,o({href:u,rel:m,target:f},v,b),s)}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(43))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(70),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(392),o=n(114),i=n(32),a=n(123),s=n(136),l=n(164),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],b=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,b))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(40),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(90)(e))},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(176),o=n(177),i=n(175),a=n(221),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(176),o=n(32);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(223),o=n(222),i=n(137);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(178);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(261),o=n(177),i=n(149);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(58),o=n(177),i=n(44),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){var r=n(424),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},function(e,t,n){var r=n(425),o=n(427)(r);e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(29);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},function(e,t,n){"use strict";var r=n(29),o=n(447),i=n(448),a=n(231),s=n(449),l=n(452),u=n(453),c=n(234),f=n(139),d=n(140);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,b=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete b["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";b.Authorization="Basic "+btoa(g+":"+w)}var E=s(e.baseURL,e.url);function S(){if(v){var r="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(n(c("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(c("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var O=(e.withCredentials||u(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;O&&(b[e.xsrfHeaderName]=O)}"setRequestHeader"in v&&r.forEach(b,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete b[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),m&&"json"!==m&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(n(!e||e&&e.type?new d("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),v.send(h)}))}},function(e,t,n){"use strict";var r=n(232);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},function(e,t){e.exports={version:"0.25.0"}},function(e,t,n){var r=n(462),o=n(463),i=n(466),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t,n){var r=n(171),o=n(113);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){},,,,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);function a(){return(a=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(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,l=e.title,u=e.type,c=void 0===u?"warning":u,f=s(e,["children","className","title","type"]);return r.createElement("div",a({className:i()(o,"inline-alert","inline-alert-visible","inline-alert-".concat(c))},f),l?r.createElement("strong",null,l):null,r.createElement("div",null,t))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,o){var i,a,s,l;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(n));if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function d(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,e))}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):m(o,o.length)}function b(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return c(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=m(l,u);for(n=0;n<u;++n)a(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,o,i,a,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));if(void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},l.prototype.listenerCount=b,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){var r=n(238)((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}));e.exports=r},function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
33
33
|
/*
|
|
34
34
|
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
|
35
35
|
*
|
|
@@ -49,7 +49,7 @@ object-assign
|
|
|
49
49
|
* http://blog.stevenlevithan.com/archives/parseuri
|
|
50
50
|
* Copyright 2007, Steven Levithan
|
|
51
51
|
* Released under the MIT license.
|
|
52
|
-
*/!function(o){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(i.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,n,r,o,s,l,u,c=[];if(null==e||""===e)return c;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,u=(n=e.toString().split(i.query_separator)).length;t<u;t++)0!==(o=(r=n[t]).indexOf("="))&&(s=a(r.substring(0,o)),l=a(r.substring(o+1)),c.push(-1===o?[r,null]:[s,l]));return c}function l(e){this.uriParts=function(e){var t=i.uri_parser.exec(e||""),n={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,r){n[e]=t[r]||""})),n}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r<i;){var a;r in o&&(a=o[r],e.call(n,a,r,o)),r++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,n,r,o="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,r=this.queryPairs.length;t<r;t++)n=this.queryPairs[t],o.length>0&&(o+="&"),null===n[1]?o+=n[0]:(o+=n[0],o+="=",void 0!==n[1]&&(o+=encodeURIComponent(n[1])));return o.length>0?"?"+o:o},l.prototype.getQueryParamValue=function(e){var t,n,r;for(n=0,r=this.queryPairs.length;n<r;n++)if(e===(t=this.queryPairs[n])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,n,r,o=[];for(t=0,r=this.queryPairs.length;t<r;t++)e===(n=this.queryPairs[t])[0]&&o.push(n[1]);return o},l.prototype.deleteQueryParam=function(e,t){var n,r,o,i,s,l=[];for(n=0,s=this.queryPairs.length;n<s;n++)o=a((r=this.queryPairs[n])[0])===a(e),i=r[1]===t,(1!==arguments.length||o)&&(2!==arguments.length||o&&i)||l.push(r);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,n=this.queryPairs.length;for(t=0;t<n;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,n){var r,o,i=-1,s=this.queryPairs.length;if(3===arguments.length){for(r=0;r<s;r++)if(a((o=this.queryPairs[r])[0])===a(e)&&decodeURIComponent(o[1])===a(n)){i=r;break}i>=0&&this.deleteQueryParam(e,a(n)).addQueryParam(e,t,i)}else{for(r=0;r<s;r++)if(a((o=this.queryPairs[r])[0])===a(e)){i=r;break}this.deleteQueryParam(e),this.addQueryParam(e,t,i)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),i.ends_with_slashes.test(t)||i.starts_with_slashes.test(e)?(t&&t.replace(i.ends_with_slashes,"/"),e=e.replace(i.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},,function(e,t,n){"use strict";var r=n(246),o=n.n(r),i=n(39),a=n.n(i);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={language:"en-US",messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collapse":"Collapse","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarDetailsTitle":"Details","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.accessError":"You don't have access to versioning","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentExplorer.bookmark":"Bookmark","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.collaboratedFolder":"Collaborated Folder","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.externalFolder":"External Folder","boxui.contentExplorer.file":"File","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.personalFolder":"Personal Folder","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud into the dark cloud.","boxui.securityCloudGame.success":"Success!","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for '{itemName}'","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortAllRestrictions":"Sharing, download and app restrictions apply","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"Invitations cannot be sent to {count, plural, one {{count} person} other {{count} people}} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove {count, plural, one {the person} other {{count} people}} and continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification to invite {count, plural, one {{count} person} other {{count} people}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove {count, plural, one {the person} other {{count} people}} and continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove people to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove people to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.settingsButtonLabel":"Open shared link settings popup","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"})},c=n(1);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?p(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),y(p(n),"language",u.language),y(p(n),"messages",u.messages),y(p(n),"setComponent",(function(e){n.component=e})),y(p(n),"onInteraction",(function(e){n.emit("interaction",e)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(r=[{key:"show",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.id=e,this.token=t,this.options=n,this.options.version="0.0.0-semantically-released",this.emit=this.emit.bind(this);var r=n.container||c.I;this.container=r instanceof HTMLElement?r:document.querySelector(r),this.render()}},{key:"hide",value:function(){this.removeAllListeners(),a.a.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}},{key:"render",value:function(){throw new Error("Unimplemented!")}},{key:"getComponent",value:function(){return this.component}},{key:"clearCache",value:function(){var e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}},{key:"emit",value:function(e,n){try{return h(b(t.prototype),"emit",this).call(this,e,n)}catch(e){}return!1}}])&&d(n.prototype,r),o&&d(n,o),t}(o.a);t.a=v},,,,,,,function(e,t,n){var r=n(305),o=n(537),i=n(306),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(6),a=n(119),s=n(30),l=n(74),u=n(28),c=n(18),f=n(17),d=n(4),p=n.n(d),h=n(10),b=n(2),m=function(e){var t=e.className,n=void 0===t?"":t,o=e.height,i=void 0===o?12:o,a=e.color,s=void 0===a?b.g:a,l=e.title,u=e.width,c=void 0===u?12:u,f=p()("bdl-IconSecurityClassification",n);return r.createElement(h.a,{className:f,height:i,title:l,viewBox:"0 0 12 12",width:c},r.createElement("path",{d:"M6 0l4.875 2.438v2.856c0 2.645-2.309 5.792-4.79 6.366L6 11.68l-.084-.02c-2.482-.574-4.791-3.721-4.791-6.366V2.438L6 0zm0 .839L1.875 2.9v2.393c0 2.276 2.026 5.068 4.125 5.614 2.1-.546 4.125-3.338 4.125-5.614V2.901L6 .839zm2.25 2.58c.207 0 .375.168.375.375v3c0 .207-.168.375-.375.375s-.375-.168-.375-.375v-3c0-.207.168-.375.375-.375z",fill:s,fillRule:"evenodd"}))},y=n(190);n(640);function v(){return(v=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 g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var w=function(e){var t=e.className,n=e.color,o=e.icon,i=e.message,a=g(e,["className","color","icon","message"]);return r.createElement("h1",v({className:p()("bdl-SecurityBadge",t),style:{backgroundColor:n}},a),o,r.createElement("span",{className:"bdl-SecurityBadge-name"},i))};w.defaultProps={icon:r.createElement(y.a,{color:b.x,height:22,width:22,strokeWidth:3})};var E=w,S=(n(641),function(e){var t=e.color,n=e.name,o=e.onClick,i=e.tooltipPosition,a=void 0===i?"bottom-center":i,s=e.tooltipText,l="function"==typeof o,u=!s,d=r.createElement(E,{className:"bdl-ClassifiedBadge",color:t,icon:r.createElement(m,{height:12,width:12}),message:n});return r.createElement(f.c,{isDisabled:u,isTabbable:!1,position:a,text:s},l?r.createElement(c.a,{className:"bdl-ClassifiedBadge-editButton",onClick:o,type:"button"},d):d)});S.defaultProps={color:b.x};var O,k,C,x=S,_=n(15),P=n(7),A=n.n(P),T=n(321),I=n.n(T),j=n(486),D=n(188),L=n(88),R=Object(L.defineMessages)({securityControlsLabel:{id:"boxui.securityControls.securityControlsLabel",defaultMessage:"Restrictions"},shortSharing:{id:"boxui.securityControls.shortSharing",defaultMessage:"Sharing restriction applies"},shortDownload:{id:"boxui.securityControls.shortDownload",defaultMessage:"Download restrictions apply"},shortApp:{id:"boxui.securityControls.shortApp",defaultMessage:"Application restrictions apply"},shortWatermarking:{id:"boxui.securityControls.shortWatermarking",defaultMessage:"Watermarking applies"},shortSharingDownload:{id:"boxui.securityControls.shortSharingDownload",defaultMessage:"Sharing and download restrictions apply"},shortSharingApp:{id:"boxui.securityControls.shortSharingApp",defaultMessage:"Sharing and app restrictions apply"},shortDownloadApp:{id:"boxui.securityControls.shortDownloadApp",defaultMessage:"Download and app restrictions apply"},shortAllRestrictions:{id:"boxui.securityControls.shortAllRestrictions",defaultMessage:"Sharing, download and app restrictions apply"},sharingCollabOnly:{id:"boxui.securityControls.sharingCollabOnly",defaultMessage:"Shared links allowed for collaborators only."},sharingCollabAndCompanyOnly:{id:"boxui.securityControls.sharingCollabAndCompanyOnly",defaultMessage:"Shared links cannot be made publicly accessible."},externalCollabBlock:{id:"boxui.securityControls.externalCollabBlock",defaultMessage:"External collaboration restricted."},externalCollabDomainList:{id:"boxui.securityControls.externalCollabDomainList",defaultMessage:"External collaboration limited to approved domains."},appDownloadRestricted:{id:"boxui.securityControls.appDownloadRestricted",defaultMessage:"Download restricted for some applications."},appDownloadBlacklist:{id:"boxui.securityControls.appDownloadBlacklist",defaultMessage:"Download restricted for some applications: {appNames}"},appDownloadBlacklistOverflow:{id:"boxui.securityControls.appDownloadBlacklistOverflow",defaultMessage:"Download restricted for some applications: {appNames} +{remainingAppCount} more"},appDownloadWhitelist:{id:"boxui.securityControls.appDownloadWhitelist",defaultMessage:"Only select applications are allowed: {appNames}"},appDownloadWhitelistOverflow:{id:"boxui.securityControls.appDownloadWhitelistOverflow",defaultMessage:"Only select applications are allowed: {appNames} +{remainingAppCount} more"},allAppNames:{id:"boxui.securityControls.allAppNames",defaultMessage:"All applications: {appsList}"},webDownloadOwners:{id:"boxui.securityControls.webDownloadOwners",defaultMessage:"Download restricted on web, except Owners/Co-Owners."},webDownloadOwnersEditors:{id:"boxui.securityControls.webDownloadOwnersEditors",defaultMessage:"Download restricted on web, except Owners/Co-Owners/Editors."},webDownloadExternalOwners:{id:"boxui.securityControls.webDownloadExternalOwners",defaultMessage:"Download restricted on web, except Owners/Co-Owners. Also restricted for external users."},webDownloadExternalOwnersEditors:{id:"boxui.securityControls.webDownloadExternalOwnersEditors",defaultMessage:"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users."},webDownloadExternal:{id:"boxui.securityControls.webDownloadExternal",defaultMessage:"Download restricted on web for external users."},mobileDownloadOwners:{id:"boxui.securityControls.mobileDownloadOwners",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners."},mobileDownloadOwnersEditors:{id:"boxui.securityControls.mobileDownloadOwnersEditors",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners/Editors."},mobileDownloadExternalOwners:{id:"boxui.securityControls.mobileDownloadExternalOwners",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users."},mobileDownloadExternalOwnersEditors:{id:"boxui.securityControls.mobileDownloadExternalOwnersEditors",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users."},mobileDownloadExternal:{id:"boxui.securityControls.mobileDownloadExternal",defaultMessage:"Download restricted on mobile for external users."},desktopDownloadOwners:{id:"boxui.securityControls.desktopDownloadOwners",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners."},desktopDownloadOwnersEditors:{id:"boxui.securityControls.desktopDownloadOwnersEditors",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners/Editors."},desktopDownloadExternalOwners:{id:"boxui.securityControls.desktopDownloadExternalOwners",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users."},desktopDownloadExternalOwnersEditors:{id:"boxui.securityControls.desktopDownloadExternalOwnersEditors",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users."},desktopDownloadExternal:{id:"boxui.securityControls.downloadExternal",defaultMessage:"Download restricted on Box Drive for external users."},viewAll:{id:"boxui.securityControls.viewAll",defaultMessage:"View All"},modalTitle:{id:"boxui.securityControls.modalTitle",defaultMessage:"View Classification for '{itemName}'"},modalDescription:{id:"boxui.securityControls.modalDescription",defaultMessage:"Classification labels defined by your administrator can be used to label content and apply security policies."}});function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M,F,U,B,H,z,V,W=_.n.BLACKLIST,q=_.n.WHITELIST,G=_.b.DEFAULT,K=_.b.WITH_APP_LIST,X=_.b.WITH_OVERFLOWN_APP_LIST,Y=(N(C={},W,(N(O={},G,R.appDownloadRestricted),N(O,K,R.appDownloadBlacklist),N(O,X,R.appDownloadBlacklistOverflow),O)),N(C,q,(N(k={},G,R.appDownloadRestricted),N(k,K,R.appDownloadWhitelist),N(k,X,R.appDownloadWhitelistOverflow),k)),C);function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=_.m.DESKTOP,Q=_.m.MOBILE,Z=_.m.WEB,ee=_.o.OWNERS_AND_COOWNERS,te=_.o.OWNERS_COOWNERS_AND_EDITORS,ne=(J(V={},$,{externalAllowed:(M={},J(M,ee,R.desktopDownloadOwners),J(M,te,R.desktopDownloadOwnersEditors),M),externalRestricted:(F={},J(F,ee,R.desktopDownloadExternalOwners),J(F,te,R.desktopDownloadExternalOwnersEditors),J(F,"default",R.desktopDownloadExternal),F)}),J(V,Q,{externalAllowed:(U={},J(U,ee,R.mobileDownloadOwners),J(U,te,R.mobileDownloadOwnersEditors),U),externalRestricted:(B={},J(B,ee,R.mobileDownloadExternalOwners),J(B,te,R.mobileDownloadExternalOwnersEditors),J(B,"default",R.mobileDownloadExternal),B)}),J(V,Z,{externalAllowed:(H={},J(H,ee,R.webDownloadOwners),J(H,te,R.webDownloadOwnersEditors),H),externalRestricted:(z={},J(z,ee,R.webDownloadExternalOwners),J(z,te,R.webDownloadExternalOwnersEditors),J(z,"default",R.webDownloadExternal),z)}),V);function re(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=_.a.SHARED_LINK,le=_.a.DOWNLOAD,ue=_.a.EXTERNAL_COLLAB,ce=_.a.APP,fe=_.a.WATERMARK,de=_.b.DEFAULT,pe=_.b.WITH_APP_LIST,he=_.b.WITH_OVERFLOWN_APP_LIST,be=_.m.DESKTOP,me=_.m.MOBILE,ye=_.m.WEB,ve=_.n.BLOCK,ge=_.n.WHITELIST,we=_.n.BLACKLIST,Ee=_.q.COLLAB_ONLY,Se=_.q.COLLAB_AND_COMPANY_ONLY,Oe=_.q.PUBLIC,ke=function(e,t){return[].concat(re(function(e){var t=[];switch(A()(e,"".concat(se,".accessLevel"))){case Ee:t.push({message:R.sharingCollabOnly});break;case Se:t.push({message:R.sharingCollabAndCompanyOnly})}return t}(e)),re(function(e){var t=[];switch(A()(e,"".concat(ue,".accessLevel"))){case ve:t.push({message:R.externalCollabBlock});break;case ge:case we:t.push({message:R.externalCollabDomainList})}return t}(e)),re(function(e){var t,n=[],r=A()(e,le,{}),o=r.web,i=r.mobile,a=r.desktop,s=(ae(t={},ye,{platform:ye,restrictions:o}),ae(t,me,{platform:me,restrictions:i}),ae(t,be,{platform:be,restrictions:a}),t);return Object.keys(s).forEach((function(e){var t=s[e],r=t.platform,o=t.restrictions;if(o){var i=o.restrictExternalUsers,a=o.restrictManagedUsers;a&&i?n.push({message:ne[r].externalRestricted[a]}):a?n.push({message:ne[r].externalAllowed[a]}):i&&n.push({message:ne[r].externalRestricted.default})}})),n}(e)),re(function(e,t){var n=[],r=A()(e,"".concat(ce,".accessLevel"));switch(r){case ve:n.push({message:R.appDownloadRestricted});break;case ge:case we:var o=A()(e,"".concat(ce,".apps"),[]);t=I()(t)?o.length:t;var i=o.slice(0,t),a=o.slice(t).length,s=i.map((function(e){return e.displayText})).join(", ");if(a){var l=o.map((function(e){return e.displayText})).join(", ");n.push({message:ie({},Y[r][he],{values:{appNames:s,remainingAppCount:a}}),tooltipMessage:ie({},R.allAppNames,{values:{appsList:l}})})}else{var u=o.length?pe:de;n.push({message:ie({},Y[r][u],{values:{appNames:s}})})}}return n}(e,t)),re(function(e){var t=[];if(A()(e,"".concat(fe,".enabled"),!1)){var n=r.createElement(j.a,{id:"boxui.securityControls.watermarkingAppliedWithLink",description:"Bullet point that summarizes watermarking applied to classification"},"Watermarking will be applied, click"," ",r.createElement(D.a,{className:"support-link",href:"https://support.box.com/hc/en-us/articles/360044195253",target:"_blank"},"here")," ","more details on Watermarking");t.push({message:n})}return t}(e)))},Ce=n(110),xe=(n(643),function(e){var t=e.message,n=e.tooltipMessage;return r.createElement("li",{className:"bdl-SecurityControlsItem"},r.isValidElement(t)?t:r.createElement(a.a,t),n&&r.createElement(f.c,{className:"bdl-SecurityControlsItem-tooltip",text:r.createElement(a.a,n),position:"middle-right",isTabbable:!1},r.createElement("span",{className:"bdl-SecurityControlsItem-tooltipIcon"},r.createElement(Ce.a,{color:b.b,width:13,height:13}))))}),_e=n(184),Pe=n(33),Ae=n(26),Te=Object(L.defineMessages)({add:{id:"boxui.classification.add",defaultMessage:"Add"},classification:{id:"boxui.classification.classification",defaultMessage:"Classification"},definition:{id:"boxui.classification.definition",defaultMessage:"Definition"},edit:{id:"boxui.classification.edit",defaultMessage:"Edit"},missing:{id:"boxui.classification.missing",defaultMessage:"Not classified"},modifiedByLabel:{id:"boxui.classification.modifiedByLabel",defaultMessage:"Classification Label"},importedBy:{id:"boxui.classification.importedBy",defaultMessage:"Imported from {modifiedBy} on {modifiedAt}"},modifiedBy:{id:"boxui.classification.modifiedBy",defaultMessage:"Applied by {modifiedBy} on {modifiedAt}"},classificationYellow:{id:"boxui.classification.classificationYellow",defaultMessage:"Yellow"},classificationOrange:{id:"boxui.classification.classificationOrange",defaultMessage:"Orange"},classificationRed:{id:"boxui.classification.classificationRed",defaultMessage:"Red"},classificationPurple:{id:"boxui.classification.classificationPurple",defaultMessage:"Purple"},classificationLightBlue:{id:"boxui.classification.classificationLightBlue",defaultMessage:"Light Blue"},classificationDarkBlue:{id:"boxui.classification.classificationDarkBlue",defaultMessage:"Dark Blue"},classificationGreen:{id:"boxui.classification.classificationGreen",defaultMessage:"Green"},classificationGrey:{id:"boxui.classification.classificationGrey",defaultMessage:"Grey"}});n(645);function Ie(){return(Ie=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)}var je=function(e){var t=e.closeModal,n=e.definition,o=e.classificationColor,i=e.classificationName,s=e.isSecurityControlsModalOpen,u=e.itemName,c=e.modalItems;if(!u||!i||!n)return null;var f=r.createElement(a.a,Ie({},R.modalTitle,{values:{itemName:u}}));return r.createElement(_e.a,{className:"bdl-SecurityControlsModal",title:f,onRequestClose:t,isOpen:s},r.createElement("p",null,r.createElement(a.a,R.modalDescription)),r.createElement(x,{color:o,name:i}),r.createElement(l.a,{text:r.createElement(a.a,Te.definition)},r.createElement("p",{className:"bdl-SecurityControlsModal-definition"},n)),r.createElement("ul",{className:"bdl-SecurityControlsModal-controlsItemList"},c.map((function(e,t){var n=e.message,o=e.tooltipMessage;return r.createElement(xe,{key:t,message:n,tooltipMessage:o})}))),r.createElement(_e.b,null,r.createElement(Ae.b,{onClick:t,type:"button"},r.createElement(a.a,Pe.a.close))))};je.defaultProps={isSecurityControlsModalOpen:!1,modalItems:[]};var De=je;n(646);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=_.p.FULL,He=_.p.SHORT,ze=_.p.SHORT_WITH_BTN,Ve=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Me(e):t}(this,(e=Ne(t)).call.apply(e,[this].concat(o))),Ue(Me(n),"state",{isSecurityControlsModalOpen:!1}),Ue(Me(n),"openModal",(function(){return n.setState({isSecurityControlsModalOpen:!0})})),Ue(Me(n),"closeModal",(function(){return n.setState({isSecurityControlsModalOpen:!1})})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.props,n=t.classificationColor,o=t.classificationName,i=t.controls,s=t.controlsFormat,u=t.definition,f=t.itemName,d=t.maxAppCount,p=t.shouldRenderLabel,h=[];if(s===Be?h=ke(i,d):(h=function(e){var t=[],n=e.sharedLink,r=e.download,o=e.externalCollab,i=e.app,a=e.watermark,s=n&&n.accessLevel!==Oe||o;return s&&r&&i?t.push({message:R.shortAllRestrictions}):s&&r?t.push({message:R.shortSharingDownload}):s&&i?t.push({message:R.shortSharingApp}):r&&i?t.push({message:R.shortDownloadApp}):s?t.push({message:R.shortSharing}):r?t.push({message:R.shortDownload}):i&&t.push({message:R.shortApp}),a&&t.push({message:R.shortWatermarking}),t}(i)).length&&s===ze&&(e=ke(i,d)),!h.length)return null;var b=this.state.isSecurityControlsModalOpen,m=s===ze&&!!f&&!!o&&!!u,y=r.createElement("ul",{className:"bdl-SecurityControls"},h.map((function(e,t){var n=e.message,o=e.tooltipMessage;return r.createElement(xe,{key:t,message:n,tooltipMessage:o})})));return p&&(y=r.createElement(l.a,{text:r.createElement(a.a,R.securityControlsLabel)},y)),r.createElement(r.Fragment,null,y,m&&r.createElement(r.Fragment,null,r.createElement(c.a,{className:"lnk",onClick:this.openModal,type:"button"},r.createElement(a.a,R.viewAll)),r.createElement(De,{classificationColor:n,classificationName:o,closeModal:this.closeModal,definition:u,itemName:f,isSecurityControlsModalOpen:b,modalItems:e})))}}])&&Re(n.prototype,o),i&&Re(n,i),t}(r.Component);Ue(Ve,"defaultProps",{classificationName:"",definition:"",itemName:"",controls:{},controlsFormat:He,maxAppCount:_.l,shouldRenderLabel:!1});var We=Ve;n(647);function qe(){return(qe=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)}var Ge=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,c=e.controls,f=e.controlsFormat,d=e.definition,p=e.isImportedClassification,h=void 0!==p&&p,b=e.isLoadingControls,m=e.itemName,y=void 0===m?"":m,v=e.maxAppCount,g=e.messageStyle,w=e.modifiedAt,E=e.modifiedBy,S=e.name,O=e.onClick,k=!!S,C=!!d,_=!!w,P=!!E,A=k&&C&&"tooltip"===g,T=k&&C&&"inline"===g,I=!k&&"inline"===g,j=k&&b&&"inline"===g,D=k&&!b&&!!c&&"inline"===g,L=new Date(w||0),R=k&&_&&Object(s.j)(L)&&P&&"inline"===g,N=R&&r.createElement(i.a,{value:L,month:"long",year:"numeric",day:"numeric"}),M=h?Te.importedBy:Te.modifiedBy;return r.createElement("article",{className:"bdl-Classification ".concat(n)},k&&r.createElement(x,{color:o,name:S,onClick:O,tooltipText:A?d:void 0}),T&&r.createElement(l.a,{text:r.createElement(a.a,Te.definition)},r.createElement("p",{className:"bdl-Classification-definition"},d)),I&&r.createElement("span",{className:"bdl-Classification-missingMessage"},r.createElement(a.a,Te.missing)),R&&r.createElement(l.a,{text:r.createElement(a.a,Te.modifiedByLabel)},r.createElement("p",{className:"bdl-Classification-modifiedBy","data-testid":"classification-modifiedby"},r.createElement(a.a,qe({},M,{values:{modifiedAt:N,modifiedBy:E}})))),D&&r.createElement(We,{classificationColor:o,classificationName:S,controls:c,controlsFormat:f,definition:d,itemName:y,maxAppCount:v,shouldRenderLabel:!0}),j&&r.createElement(u.b,null))},Ke=n(22);function Xe(){return(Xe=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 Ye(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var Je,$e=function(e){var t=e.className,n=void 0===t?"":t,r=e.isEditing,i=e.onEdit,s=Ye(e,["className","isEditing","onEdit"]),l=r?Te.edit:Te.add;return o.a.createElement(Ke.a,Xe({className:"bdl-EditClassificationButton ".concat(n),onClick:i,type:"button"},s),o.a.createElement(a.a,l))};function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=(Qe(Je={},_.c,{name:Te.classificationYellow,color:b.x,tinycon:b.w}),Qe(Je,_.d,{name:Te.classificationOrange,color:b.r,tinycon:b.q}),Qe(Je,_.e,{name:Te.classificationRed,color:b.v,tinycon:b.u}),Qe(Je,_.f,{name:Te.classificationPurple,color:b.t,tinycon:b.s}),Qe(Je,_.g,{name:Te.classificationLightBlue,color:b.p,tinycon:b.o}),Qe(Je,_.h,{name:Te.classificationDarkBlue,color:b.f,tinycon:b.e}),Qe(Je,_.i,{name:Te.classificationGreen,color:b.n,tinycon:b.m}),Qe(Je,_.j,{name:Te.classificationGrey,color:b.i,tinycon:b.k}),Je);function et(e){var t=A()(e,"colorID",_.k);return(Ze[t]||Ze[_.k]).color}n.d(t,"c",(function(){return Ge})),n.d(t,"b",(function(){return Te})),n.d(t,"a",(function(){return $e})),n.d(t,"d",(function(){return et}))},function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(38),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(38),o=n(138),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);n(500);t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,a=e.topLeft,s=void 0===a?null:a,l=e.topRight,u=void 0===l?null:l,c=e.bottomLeft,f=void 0===c?null:c,d=e.bottomRight,p=void 0===d?null:d;return r.createElement("div",{className:i()("badgeable-container",o)},t,r.createElement("div",{className:"badges"},s&&r.createElement("div",{className:"top-left-badge"},s),u&&r.createElement("div",{className:"top-right-badge"},u),f&&r.createElement("div",{className:"bottom-left-badge"},f),p&&r.createElement("div",{className:"bottom-right-badge"},p)))}},function(e,t,n){var r=n(58),o=n(32),i=n(44),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(23),s=n.n(a),l=n(12),u=n.n(l),c=n(88),f=n(51),d=n(100);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function b(){return(b=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 m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=Object(c.defineMessages)({closeModalText:{id:"boxui.modalDialog.closeModalText",defaultMessage:"Close Modal"}}),S=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t}(this,(e=y(t)).call.apply(e,[this].concat(o))),w(v(n),"onCloseButtonClick",(function(e){var t=n.props.onRequestClose;t&&t(e)})),w(v(n),"modalID",u()("modal")),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(o=[{key:"renderCloseButton",value:function(){var e=this.props,t=e.closeButtonProps,n=e.onRequestClose,o=e.intl.formatMessage;return n?r.createElement("button",b({},t,{"aria-label":o(E.closeModalText),className:"modal-close-button",onClick:this.onCloseButtonClick}),r.createElement(d.a,{color:"#909090",height:18,width:18})):null}},{key:"renderContent",value:function(){var e=this.props,t=e.children;if("alert"!==e.type)return r.createElement("div",{className:"modal-content"},t);var n=r.Children.toArray(t);if(2!==n.length)throw new Error("Alert modal must have exactly two children: A message and <ModalActions>");return r.createElement("div",{className:"modal-content"},r.createElement("p",{id:"".concat(this.modalID,"-desc")},n[0]),n[1])}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.modalRef,o=e.title,a=e.type,l=h(e,["className","modalRef","title","type"]),u="alert"===a,c=s()(l,["children","closeButtonProps","onRequestClose","intl"]);return c.role=u?"alertdialog":"dialog",c["aria-labelledby"]="".concat(this.modalID,"-label"),u&&(c["aria-describedby"]="".concat(this.modalID,"-desc")),r.createElement("div",b({ref:n,className:i()("modal-dialog",t)},c),r.createElement("div",{className:"modal-header"},r.createElement("h2",{className:"modal-title",id:"".concat(this.modalID,"-label")},o)),this.renderCloseButton(),this.renderContent())}}])&&m(n.prototype,o),a&&m(n,a),t}(r.Component);w(S,"defaultProps",{type:"dialog",closeButtonProps:{}}),t.a=Object(f.c)(S)},function(e,t,n){"use strict";var r=n(263);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(9);function a(){return(a=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)}t.a=function(e){return r.createElement(i.a,a({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:o.j,fillRule:"evenodd",d:"M7.19 8L4.46 5.27a.572.572 0 01.81-.81L8 7.19l2.73-2.73a.572.572 0 01.81.81L8.81 8l2.73 2.73a.572.572 0 01-.81.81L8 8.81l-2.73 2.73a.572.572 0 01-.81-.81L7.19 8zm5.76 4.95a7 7 0 10-9.9-9.9 7 7 0 009.9 9.9z"}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"DURATION_SHORT",(function(){return r})),n.d(t,"DURATION_LONG",(function(){return o})),n.d(t,"TYPE_DEFAULT",(function(){return i})),n.d(t,"TYPE_INFO",(function(){return a})),n.d(t,"TYPE_WARN",(function(){return s})),n.d(t,"TYPE_ERROR",(function(){return l})),n.d(t,"OVERFLOW_WRAP",(function(){return u})),n.d(t,"OVERFLOW_ELLIPSIS",(function(){return c}));var r="short",o="long",i="default",a="info",s="warn",l="error",u="wrap",c="ellipsis"},function(e,t,n){var r=n(163),o=n(390),i=n(170),a=n(391),s=n(397),l=n(220),u=n(198),c=n(400),f=n(402),d=n(301),p=n(224),h=n(124),b=n(405),m=n(406),y=n(226),v=n(32),g=n(123),w=n(410),E=n(38),S=n(412),O=n(108),k=1,C=2,x=4,_="[object Arguments]",P="[object Function]",A="[object GeneratorFunction]",T="[object Object]",I={};I[_]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[T]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[P]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,j,D,L,R){var N,M=n&k,F=n&C,U=n&x;if(j&&(N=L?j(t,D,L,R):j(t)),void 0!==N)return N;if(!E(t))return t;var B=v(t);if(B){if(N=b(t),!M)return u(t,N)}else{var H=h(t),z=H==P||H==A;if(g(t))return l(t,M);if(H==T||H==_||z&&!L){if(N=F||z?{}:y(t),!M)return F?f(t,s(N,t)):c(t,a(N,t))}else{if(!I[H])return L?t:{};N=m(t,H,M)}}R||(R=new r);var V=R.get(t);if(V)return V;R.set(t,N),S(t)?t.forEach((function(r){N.add(e(r,n,j,r,t,R))})):w(t)&&t.forEach((function(r,o){N.set(o,e(r,n,j,o,t,R))}));var W=U?F?p:d:F?keysIn:O,q=B?void 0:W(t);return o(q||t,(function(r,o){q&&(r=t[o=r]),i(N,o,e(r,n,j,o,t,R))})),N}},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",b={};function m(){}function y(){}function v(){}var g={};g[a]=function(){return this};var w=Object.getPrototypeOf,E=w&&w(w(A([])));E&&E!==r&&o.call(E,a)&&(g=E);var S=v.prototype=m.prototype=Object.create(g);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){var n;this._invoke=function(r,i){function a(){return new Promise((function(n,a){!function n(r,i,a,s){var l=c(e[r],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===t(f)&&o.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):Promise.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(r,i,n,a)}))}return n=n?n.then(a,a):a()}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,b;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:n,done:!0}}return y.prototype=S.constructor=v,v.constructor=y,v[l]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},O(k.prototype),k.prototype[s]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,o){var i=new k(u(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(S),S[l]="Generator",S[a]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(90)(e))},function(e,t,n){var r=n(262),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(113),i=n(83),a=n(136),s=n(38);e.exports=function(e,t,n){if(!s(n))return!1;var l=r(t);return!!("number"==l?i(n)&&a(t,n.length):"string"==l&&t in n)&&o(n[t],e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(149),o=n(396),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(223),o=n(175),i=n(108);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(40).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(104),o=n(114),i=n(32),a=n(136),s=n(172),l=n(98);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(271);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},,,,,,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(207),s=n.n(a),l=n(23),u=n.n(l),c=n(204),f=n(52),d=n(319),p=n(265);n(644);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?g(e):t}(this,(e=v(t)).call.apply(e,[this].concat(o))),E(g(n),"onKeyDown",(function(e){var t=n.props,r=t.isOpen,o=t.onRequestClose;r&&o&&"Escape"===e.key&&(e.stopPropagation(),o(e))})),E(g(n),"onBackdropClick",(function(e){var t=n.props,r=t.onRequestClose,o=t.onBackdropClick;o?o(e):r&&r(e)})),E(g(n),"onModalOpen",(function(){setTimeout((function(){var e=n.props.focusElementSelector,t=e&&e.trim();t?n.focusElement(t):n.focusFirstUsefulElement()}),0)})),E(g(n),"focusFirstUsefulElement",(function(){if(n.dialog){var e=s()(n.dialog);e.length>1?e[1].focus():e.length>0&&e[0].focus()}})),E(g(n),"focusElement",(function(e){if(n.dialog){var t=n.dialog.querySelector(e);if(!t)throw new Error("Could not find element matching selector ".concat(e," to focus on."));t.focus()}})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.props.isOpen&&this.onModalOpen()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isLoading,r=t.isOpen;e.isOpen&&!e.isLoading||!r||n||this.onModalOpen()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.isLoading,a=t.isOpen,s=t.onRequestClose,l=t.shouldNotUsePortal,h=t.style,y=m(t,["className","isLoading","isOpen","onRequestClose","shouldNotUsePortal","style"]);if(!a)return null;var v=u()(y,["onBackdropClick","focusElementSelector"]),g=l?"div":d.a;return r.createElement(g,{className:i()("modal",n),onKeyDown:this.onKeyDown,tabIndex:"-1"},r.createElement("div",{className:"modal-backdrop",onClick:this.onBackdropClick,style:h.backdrop}),r.createElement(c.a,{className:"modal-dialog-container"},o?r.createElement(f.b,{size:"large"}):r.createElement(p.a,b({modalRef:function(t){e.dialog=t},onRequestClose:s,style:h.dialog},v))),r.createElement("style",{type:"text/css"},"\n body {\n overflow:hidden;\n }\n "))}}])&&y(n.prototype,o),a&&y(n,a),t}(r.Component);E(S,"defaultProps",{style:{backdrop:{},dialog:{}}}),t.a=S},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),a=n.n(i);function s(){return(s=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.className,n=l(e,["className"]);return o.a.createElement("div",s({className:a()("modal-actions",t)},n))}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);n(649);function a(){return(a=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(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var l=r.forwardRef((function(e,t){var n=e.className,o=void 0===n?"":n,l=e.description,u=e.isDisabled,c=e.isOn,f=e.isToggleRightAligned,d=void 0!==f&&f,p=e.label,h=e.name,b=e.onBlur,m=e.onChange,y=s(e,["className","description","isDisabled","isOn","isToggleRightAligned","label","name","onBlur","onChange"]),v=i()("toggle-container",o,{"is-toggle-right-aligned":d}),g=[r.createElement("div",{key:"toggle-simple-switch",className:"toggle-simple-switch"}),r.createElement("div",{key:"toggle-simple-label",className:"toggle-simple-label"},p)];return d&&(g=g.reverse()),r.createElement("div",{className:v},r.createElement("label",{className:"toggle-simple"},r.createElement("input",a({checked:c,className:"toggle-simple-input",disabled:u,ref:t,name:h,onBlur:b,onChange:m,type:"checkbox"},y)),g),l?r.createElement("div",{className:"toggle-simple-description"},l):null)}));l.displayName="Toggle",t.a=l},,function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,a=e.color,s=void 0===a?o.m:a,l=e.height,u=void 0===l?14:l,c=e.opacity,f=void 0===c?1:c,d=e.title,p=e.width,h=void 0===p?14:p;return r.createElement(i.a,{className:"icon-verified ".concat(n),height:u,opacity:f,title:d,viewBox:"0 0 14 14",width:h},r.createElement("path",{d:"M7 14c-3.865993 0-7-3.134007-7-7s3.134007-7 7-7 7 3.134007 7 7-3.134007 7-7 7zM5.31288 9.303048l1.44555 1.21296 4.499514-5.36231-1.44555-1.21296-4.499514 5.36231zM3 7.36231L5.31288 9.30305l1.21296-1.44555L4.21296 5.91676 3 7.36231z",fill:s,fillRule:"evenodd"}))}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(12),s=n.n(a),l=n(258),u=n.n(l),c=n(119),f=n(51),d=n(48),p=n(180),h=n(17);n(650);function b(){return(b=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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var y=r.forwardRef((function(e,t){var n=e.children,o=e.className,a=void 0===o?"":o,s=e.error,l=e.isDisabled,u=void 0!==l&&l,c=m(e,["children","className","error","isDisabled"]);return r.createElement(h.c,{isShown:!!s,position:"middle-right",text:s,theme:"error"},r.createElement("button",b({className:i()(a,"select-button","bdl-SelectButton",{"is-invalid":!!s}),disabled:u,ref:t,type:"button"},c),n))})),v=n(118),g=n(36),w=n.n(g),E=n(181),S=n.n(E),O=n(37),k=n.n(O),C=n(64),x=n(338),_=n.n(x),P=_()(),A=_()(),T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,k()(w()(t),"referenceNode",void 0),k()(w()(t),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}S()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return C.createElement(P.Provider,{value:this.referenceNode},C.createElement(A.Provider,{value:this.setReferenceNode},this.props.children))},t}(C.Component),I=n(151),j=n.n(I),D=n(332),L=n.n(D),R=function(e){return Array.isArray(e)?e[0]:e},N=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},M=function(e,t){if("function"==typeof e)return N(e,t);null!=e&&(e.current=t)},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,k()(w()(t),"refHandler",(function(e){M(t.props.innerRef,e),N(t.props.setReferenceNode,e)})),t}S()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){M(this.props.innerRef,null)},n.render=function(){return L()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),R(this.props.children)({ref:this.refHandler})},t}(C.Component);function U(e){return C.createElement(A.Consumer,null,(function(t){return C.createElement(F,j()({setReferenceNode:t},e))}))}var B=n(529),H=n.n(B),z=n(339),V={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},W={},q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,k()(w()(t),"state",{data:void 0,placement:void 0}),k()(w()(t),"popperInstance",void 0),k()(w()(t),"popperNode",null),k()(w()(t),"arrowNode",null),k()(w()(t),"setPopperNode",(function(e){e&&t.popperNode!==e&&(M(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),k()(w()(t),"setArrowNode",(function(e){t.arrowNode=e})),k()(w()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),k()(w()(t),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:j()({},t.props.modifiers,{arrow:j()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),k()(w()(t),"getPopperStyle",(function(){return t.popperNode&&t.state.data?j()({position:t.state.data.offsets.popper.position},t.state.data.styles):V})),k()(w()(t),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),k()(w()(t),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:W})),k()(w()(t),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),k()(w()(t),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),k()(w()(t),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=w()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new z.a(n,e,t.getOptions()))})),k()(w()(t),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}S()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed||this.props.modifiers!==e.modifiers?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){M(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return R(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(C.Component);k()(q,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});z.a.placements;function G(e){var t=e.referenceElement,n=H()(e,["referenceElement"]);return C.createElement(P.Consumer,null,(function(e){return C.createElement(q,j()({referenceElement:void 0!==t?t:e},n))}))}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var $=function(e){var t=e.children,n=e.isOpen,o=e.modifiers,i=e.placement,a=r.Children.toArray(t);if(2!==a.length)throw new Error("PopperComponent must have exactly two children: A reference component and the Popper content");var s=J(a,2),l=s[0],u=s[1];return r.createElement(T,null,r.createElement(U,null,(function(e){var t=e.ref;return r.cloneElement(l,{ref:t})})),n&&r.createElement(G,{placement:i,modifiers:o},(function(e){var t=e.ref,n=e.style,o=e.placement,i=e.scheduleUpdate,a=u.props.style;return r.cloneElement(u,{ref:t,style:X({},a,{},n),placement:o,scheduleUpdate:i})})))};$.defaultProps={placement:"auto"};var Q=$;function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(){return(ee=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 te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ie=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ne(this,re(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=e.selectedValues,n=this.props,r=n.multiple,o=n.scheduleUpdate,i=n.selectedValues;r&&o&&t!==i&&o()}},{key:"render",value:function(){var e,t,n,o=this.props,a=o.children,s=o.innerRef,l=o.style,u=o.placement,c=o.isScrollable,f=o.multiple,d=o.selectFieldID,p={};return f&&(p["aria-multiselectable"]=!0),r.createElement("ul",ee({ref:s,style:l,"data-placement":u,className:i()("bdl-SelectFieldDropdown","overlay",(e={},t="bdl-SelectField-overlay--scrollable",n=c,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),id:d,role:"listbox",onMouseDown:function(e){return e.preventDefault()}},p),a)}}])&&te(n.prototype,o),a&&te(n,a),t}(r.Component),ae=r.forwardRef((function(e,t){return r.createElement(ie,ee({},e,{innerRef:t}))})),se=n(320),le=n(161),ue="ArrowDown",ce="ArrowUp",fe="Escape",de="Enter",pe=" ",he="Tab",be=n(162);n(655);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(){return(ye=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 ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e){e.preventDefault(),e.stopPropagation()}var xe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?Se(e):t}(this,Ee(t).call(this,e)),ke(Se(n),"updateSearchText",(function(e){var t=n.props.options,r=u()(t,(function(t){return t.displayText.toLowerCase().includes(e.toLowerCase())}));r>=0&&n.setActiveItem(r),n.setState({searchText:e})})),ke(Se(n),"handleDocumentClick",(function(e){var t=n.selectFieldContainerRef.current;t&&e.target instanceof Node&&t.contains(e.target)||t===e.target||n.closeDropdown()})),ke(Se(n),"setActiveItem",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.setState({activeItemIndex:e,shouldScrollIntoView:t}),-1===e&&n.setActiveItemID(null)})),ke(Se(n),"setActiveItemID",(function(e){var t=n.state.shouldScrollIntoView,r=e?document.getElementById(e):null;n.setState({activeItemID:e,shouldScrollIntoView:!1},(function(){t&&Object(d.e)(r,{block:"nearest"})}))})),ke(Se(n),"handleChange",(function(e){var t=n.props.onChange;t&&t(e)})),ke(Se(n),"handleOptionSelect",(function(e){var t=n.props.onOptionSelect;t&&t(e)})),ke(Se(n),"handleButtonClick",(function(){n.state.isOpen?n.closeDropdown():n.openDropdown()})),ke(Se(n),"handleClearClick",(function(){n.handleChange([])})),ke(Se(n),"handleButtonKeyDown",(function(e){var t=n.state.activeItemIndex;e.key!==pe&&e.key!==de||-1===t||e.preventDefault()})),ke(Se(n),"handleBlur",(function(e){var t=n.state.isOpen,r=n.props.blurExceptionClassNames,o=["search-input","select-button"].concat(ge(void 0===r?[]:r));t&&e&&e.relatedTarget&&o.every((function(t){return e&&!e.relatedTarget.classList.contains(t)}))&&n.closeDropdown()})),ke(Se(n),"handleKeyDown",(function(e){var t=e.key,r=n.props,o=r.options,i=r.shouldShowClearOption,a=r.shouldShowSearchInput,s=n.state,l=s.activeItemIndex,c=s.isOpen,f=o.length;switch(t){case ue:if(Ce(e),c){var d=l===f-1?-1:l+1;n.setActiveItem(d)}else n.openDropdown();break;case ce:if(Ce(e),c){var p=-1===l?f-1:l-1;n.setActiveItem(p)}else n.openDropdown();break;case de:case pe:if(a){if(t===pe)break;if(t===de&&-1===l){Ce(e);break}}if(-1!==l&&c)Ce(e),i&&0===l?n.handleClearClick():n.selectOption(l),t===de&&n.closeDropdown();break;case fe:c&&(Ce(e),n.closeDropdown());break;case he:c&&n.closeDropdown();break;default:if(!a){Ce(e);var h=t.toLowerCase(),b=u()(o,(function(e){return 0===e.displayText.toLowerCase().indexOf(h)}));b>=0&&n.setActiveItem(b)}}})),ke(Se(n),"openDropdown",(function(){var e=n.props.shouldShowSearchInput;n.state.isOpen||(n.setState({isOpen:!0},(function(){return e&&n.searchInputRef&&n.searchInputRef.focus()})),document.addEventListener("click",n.handleDocumentClick))})),ke(Se(n),"closeDropdown",(function(){n.state.isOpen&&(n.setState({activeItemID:null,activeItemIndex:-1,isOpen:!1,searchText:""}),document.removeEventListener("click",n.handleDocumentClick))})),ke(Se(n),"selectOption",(function(e){n.props.multiple?n.selectMultiOption(e):(n.selectSingleOption(e),n.closeDropdown())})),ke(Se(n),"getFilteredOptions",(function(){var e=n.props.options,t=n.state.searchText;return e.filter((function(e){var n=e.displayText.toLowerCase().includes(t.toLowerCase()),r=e.value===le.a;return!t||n&&!r}))})),ke(Se(n),"selectMultiOption",(function(e){var t=n.props,r=t.defaultValue,o=t.options,i=t.selectedValues,a=null!=r,s=n.getFilteredOptions()[e];if(a&&r===s.value)n.selectSingleOption(e);else{var l=i.slice(0);if(function(e,t){var n=e.indexOf(t);-1===n?e.push(t):e.splice(n,1)}(l,s.value),a){var c=u()(o,(function(e){return e.value===r}));if(-1!==c){if(0===l.length)return void n.selectSingleOption(c);l.length>1&&l.includes(r)&&l.splice(c,1)}}n.handleChange(o.filter((function(e){return l.includes(e.value)}))),n.handleOptionSelect(s)}})),ke(Se(n),"renderButtonText",(function(){var e=n.props,t=e.options,r=e.placeholder,o=e.selectedValues,i=e.title;return 0===o.length&&r?r:i||t.filter((function(e){return o.includes(e.value)})).map((function(e){return e.displayText})).join(", ")})),ke(Se(n),"renderSearchInput",(function(){var e=n.props.intl,t=n.state.searchText;return r.createElement(se.a,{className:"select-field-search-container",getSearchInput:function(e){n.searchInputRef=e},onChange:n.updateSearchText,placeholder:e.formatMessage(be.a.searchPlaceholder),value:t})})),ke(Se(n),"renderSelectButton",(function(){var e=n.state,t=e.activeItemID,o=e.isOpen,i=n.props,a=i.buttonProps,s=i.isDisabled,l=i.className,u=i.error,c=n.renderButtonText(),f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a,{"aria-activedescendant":t,"aria-autocomplete":"list","aria-expanded":o,"aria-owns":n.selectFieldID,className:l,isDisabled:s,onClick:n.handleButtonClick,onKeyDown:n.handleButtonKeyDown,role:"listbox",title:c});return r.createElement(y,ye({},f,{error:u}),c)})),ke(Se(n),"renderSelectOptions",(function(){var e=n.props,t=e.optionRenderer,o=e.selectedValues,a=e.separatorIndices,s=e.shouldShowClearOption,l=n.state.activeItemIndex,u=n.getFilteredOptions();if(0===u.length)return r.createElement(v.a,{className:"select-option is-disabled"},r.createElement(c.a,be.a.noResults));var f=u.map((function(e,a){var u=e.value,c=o.includes(u),f=s&&u===le.a,d={className:i()("select-option",{"is-clear-option":f}),key:a,onClick:function(e){e.preventDefault(),f?n.handleClearClick():n.selectOption(a)},onMouseEnter:function(){n.setActiveItem(a,!1)},setActiveItemID:n.setActiveItemID};return a===l&&(d.isActive=!0),d.isSelected=c,r.createElement(v.a,d,r.createElement("div",{className:"select-option-check-icon"},c?r.createElement(p.a,{height:16,width:16}):null),t(e))}));return a.forEach((function(e,t){f.splice(e+t,0,r.createElement("li",{key:"separator".concat(e),role:"separator"}))})),f})),n.selectFieldID=s()("selectfield"),n.selectFieldContainerRef=r.createRef(),n.state={activeItemID:null,activeItemIndex:-1,isOpen:!1,searchText:"",shouldScrollIntoView:!1},n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.state.isOpen&&document.removeEventListener("click",this.handleDocumentClick)}},{key:"selectSingleOption",value:function(e){var t=this.props.selectedValues,n=this.getFilteredOptions()[e];t.includes(n.value)||this.handleChange([n]),this.handleOptionSelect(n)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.multiple,o=e.isEscapedWithReference,a=e.isRightAligned,s=e.isScrollable,l=e.selectedValues,u=e.shouldShowSearchInput,c=this.state.isOpen,f=a?"bottom-end":"bottom-start",d=o?{preventOverflow:{escapeWithReference:!0}}:{};return r.createElement("div",{className:i()(t,"bdl-SelectField","select-container"),onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.selectFieldContainerRef},r.createElement(Q,{placement:f,isOpen:c,modifiers:d},this.renderSelectButton(),r.createElement(ae,{isScrollable:s,multiple:n,selectedValues:l,selectFieldID:this.selectFieldID},u&&this.renderSearchInput(),this.renderSelectOptions())))}}])&&we(n.prototype,o),a&&we(n,a),t}(r.Component);ke(xe,"defaultProps",{buttonProps:{},isDisabled:!1,isRightAligned:!1,isScrollable:!1,multiple:!1,optionRenderer:function(e){var t=e.displayText;return r.createElement("span",{className:"bdl-SelectField-optionText",title:t},t)},options:[],selectedValues:[],separatorIndices:[],shouldShowClearOption:!1,shouldShowSearchInput:!1});t.a=Object(f.c)(xe)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),a=n.n(i),s=n(12),l=n.n(s),u=(n(508),n(17)),c=n(1),f=n(3),d=n.n(f),p=n(100),h=n(55),b=n(166);n(638);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return(S=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 O(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var k=function(e){var t=e.onClick,n=O(e,["onClick"]);return o.a.createElement(p.a,S({},n,{"aria-hidden":"true",onClick:t}))},C=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?g(e):t}(this,(e=v(t)).call.apply(e,[this].concat(o))),E(g(n),"state",{avatarUrl:void 0}),E(g(n),"isMounted",!1),E(g(n),"getStyles",(function(){var e=n.props,t=e.className,r=e.isSelected,o=e.isDisabled,i=e.hasWarning,s=e.isValid;return a()("bdl-RoundPill",t,{"bdl-RoundPill--selected":r&&!o,"bdl-RoundPill--disabled":o,"bdl-RoundPill--warning":i,"bdl-RoundPill--error":!s})})),E(g(n),"handleClickRemove",(function(){var e=n.props,t=e.isDisabled,r=e.onRemove;return t?d.a:r()})),E(g(n),"getAvatarUrlHandler",(function(e){n.isMounted&&n.setState({avatarUrl:e})})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,e),n=t,(r=[{key:"getAvatarUrl",value:function(){var e=this.props,t=e.getPillImageUrl,n=e.id;Promise.resolve(t&&n?t({id:n}):void 0).then(this.getAvatarUrlHandler).catch((function(){}))}},{key:"componentDidMount",value:function(){this.isMounted=!0,this.getAvatarUrl()}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.isExternal,r=e.showAvatar,i=e.text,a=this.state.avatarUrl;return o.a.createElement(h.a.Pill,{size:"large",className:this.getStyles()},r?o.a.createElement(h.a.Icon,{Component:b.a,className:"bdl-RoundPill-avatar",avatarUrl:a,id:t,isExternal:n,name:i,size:"small",shouldShowExternal:!0}):null,o.a.createElement(h.a.Text,{className:"bdl-RoundPill-text"},i),o.a.createElement(h.a.Icon,{className:"bdl-RoundPill-closeBtn",Component:k,onClick:this.handleClickRemove}))}}])&&y(n.prototype,r),i&&y(n,i),t}(o.a.PureComponent);E(C,"defaultProps",{isDisabled:!1,isSelected:!1,isValid:!0,hasWarning:!1,showAvatar:!1});var x=C,_=function(e){var t=e.isDisabled,n=void 0!==t&&t,r=e.isSelected,i=void 0!==r&&r,s=e.isValid,l=void 0===s||s,u=e.onRemove,c=e.text,f=a()("bdl-Pill","pill",{"is-selected":i&&!n,"is-invalid":!l,"is-disabled":n,"bdl-is-disabled":n}),p=n?d.a:u;return o.a.createElement("span",{className:f},o.a.createElement("span",{className:"bdl-Pill-text pill-text"},c),o.a.createElement("span",{"aria-hidden":"true",className:"close-btn",onClick:p},"✕"))},P=n(18),A=(n(510),function(e){var t=e.email,n=e.id,r=e.name,i=e.onAdd,a=function(e){e.preventDefault(),i({email:t,id:n,name:r,text:r,type:"user",value:t})};return o.a.createElement(u.c,{position:"bottom-center",text:t},o.a.createElement(P.a,{className:"suggested-pill-invisible-button",onClick:a,onKeyDown:function(e){e.key===c.de.enter&&a(e)},type:"button"},o.a.createElement("span",{className:"bdl-Pill-text pill-text suggested-pill"},r)))}),T=function(e){var t=e.onSuggestedPillAdd,n=void 0===t?d.a:t,r=e.selectedPillsValues,i=void 0===r?[]:r,a=e.suggestedPillsData,s=void 0===a?[]:a,l=e.suggestedPillsFilter,u=void 0===l?"id":l,c=e.title,f=s.filter((function(e){return!i.includes(e[u])}));return 0===f.length?null:o.a.createElement("div",{className:"pill-selector-suggested"},o.a.createElement("span",null,c),f.map((function(e){return o.a.createElement(A,{key:e.id,email:e.email,id:e.id,name:e.name,onAdd:n})})))};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(){return(j=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 D(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){e.preventDefault(),e.stopPropagation()}var B=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?N(e):t}(this,(e=R(t)).call.apply(e,[this].concat(o))),F(N(n),"state",{isFocused:!1,selectedIndex:-1}),F(N(n),"getNumSelected",(function(){var e=n.props.selectedOptions;return"number"==typeof e.size?e.size:e.length})),F(N(n),"getPillsByKey",(function(e){return n.props.selectedOptions.map((function(t){return t[e]}))})),F(N(n),"handleClick",(function(){n.inputEl.focus()})),F(N(n),"handleFocus",(function(){n.setState({isFocused:!0})})),F(N(n),"handleBlur",(function(){n.setState({isFocused:!1})})),F(N(n),"handleKeyDown",(function(e){var t=n.inputEl.value,r=n.getNumSelected(),o=n.state.selectedIndex;switch(e.key){case c.de.backspace:var i=-1;if(o>=0?(i=o,n.resetSelectedIndex(),n.inputEl.focus()):""===t&&(i=r-1),i>=0){var a=n.props,s=a.onRemove,l=a.selectedOptions;s("function"==typeof l.get?l.get(i):l[i],i),U(e)}break;case c.de.arrowLeft:o>=0?(n.setState({selectedIndex:Math.max(o-1,0)}),U(e)):""===t&&r>0&&(n.hiddenEl.focus(),n.setState({selectedIndex:r-1}),U(e));break;case c.de.arrowRight:if(o>=0){var u=o+1;u>=r?(n.resetSelectedIndex(),n.inputEl.focus()):n.setState({selectedIndex:u}),U(e)}}})),F(N(n),"errorMessageID",l()("errorMessage")),F(N(n),"hiddenRef",(function(e){e&&(n.hiddenEl=e)})),F(N(n),"resetSelectedIndex",(function(){-1!==n.state.selectedIndex&&n.setState({selectedIndex:-1})})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.state,n=t.isFocused,o=t.selectedIndex,i=this.props,s=i.allowInvalidPills,l=i.className,c=i.disabled,f=i.error,d=i.getPillClassName,p=i.getPillImageUrl,h=i.inputProps,b=i.onInput,m=i.onRemove,y=i.onSuggestedPillAdd,v=i.placeholder,g=i.selectedOptions,w=i.showAvatars,E=i.showRoundedPills,S=i.suggestedPillsData,O=i.suggestedPillsFilter,k=i.suggestedPillsTitle,C=i.validator,P=D(i,["allowInvalidPills","className","disabled","error","getPillClassName","getPillImageUrl","inputProps","onInput","onRemove","onSuggestedPillAdd","placeholder","selectedOptions","showAvatars","showRoundedPills","suggestedPillsData","suggestedPillsFilter","suggestedPillsTitle","validator"]),A=S&&S.length>0,I=!!f,L=a()("bdl-PillSelector","pill-selector-input-wrapper",{"is-disabled":c,"bdl-is-disabled":c,"is-focused":n,"show-error":I,"pill-selector-suggestions-enabled":A,"bdl-PillSelector--suggestionsEnabled":A}),R={"aria-invalid":I,"aria-errormessage":this.errorMessageID,"aria-describedby":this.errorMessageID};return r.createElement(u.c,{isShown:I,text:f||"",position:"middle-right",theme:"error"},r.createElement("span",{className:L,onBlur:this.handleBlur,onClick:this.handleClick,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown},E?g.map((function(t,n){return r.createElement(x,{className:d?d(t):void 0,getPillImageUrl:p,isValid:!s||C(t),isDisabled:c,isSelected:n===o,key:t.value,onRemove:m.bind(e,t,n),text:t.displayText||t.text,showAvatar:!0,id:t.id,hasWarning:t.hasWarning,isExternal:t.isExternalUser})})):g.map((function(t,n){return r.createElement(_,{isValid:!s||C(t),isDisabled:c,isSelected:n===o,key:t.value,onRemove:m.bind(e,t,n),text:t.displayText||t.text})})),r.createElement("span",{"aria-hidden":"true",className:"accessibility-hidden",onBlur:this.resetSelectedIndex,ref:this.hiddenRef,tabIndex:-1,"data-testid":"pill-selection-helper"}),r.createElement("textarea",j({},R,P,h,{autoComplete:"off",className:a()("bdl-PillSelector-input","pill-selector-input",l,{"bdl-PillSelector-input--showAvatars":w}),disabled:c,onInput:b,placeholder:0===this.getNumSelected()?v:"",ref:function(t){e.inputEl=t}})),r.createElement(T,{onSuggestedPillAdd:y,selectedPillsValues:this.getPillsByKey("value"),suggestedPillsFilter:O,suggestedPillsData:S,title:k}),r.createElement("span",{id:this.errorMessageID,className:"accessibility-hidden",role:"alert"},f)))}}])&&L(n.prototype,o),i&&L(n,i),t}(r.Component);F(B,"defaultProps",{allowInvalidPills:!1,disabled:!1,error:"",inputProps:{},placeholder:"",selectedOptions:[],validator:function(){return!0}});t.a=B},function(e,t,n){"use strict";var r=n(0),o=n(39);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=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(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f,d,p,h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,u(t).call(this,e))).container=n.props.container,n.layer=document.createElement("div"),n.layer.setAttribute("data-portal",""),n.container&&n.layer&&n.container.appendChild(n.layer),n}var n,i,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(i=[{key:"componentWillUnmount",value:function(){this.container&&this.layer&&this.container.removeChild(this.layer),this.layer=null}},{key:"render",value:function(){var e=a({},this.props);return this.layer?Object(o.createPortal)(r.createElement("div",e),this.layer):null}}])&&s(n.prototype,i),f&&s(n,f),t}(r.PureComponent);f=h,d="defaultProps",p={container:document.body},d in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p;var b=h;n.d(t,"a",(function(){return b}))},function(e,t,n){"use strict";var r=n(0),o=n(88),i=n(51),a=n(4),s=n.n(a),l=n(23),u=n.n(l),c=n(267),f=n(2),d=n(9);function p(){return(p=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)}var h=function(e){return r.createElement(d.a,p({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:f.j,fillRule:"evenodd",d:"M6.994 1a5.994 5.994 0 014.906 9.438l2.807 2.807a1 1 0 010 1.415l-.047.047a1 1 0 01-1.415 0L10.438 11.9A5.994 5.994 0 116.994 1zm0 1.998a3.996 3.996 0 100 7.992 3.996 3.996 0 000-7.992z"}))},b=n(165);n(654);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){return(y=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 v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=Object(o.defineMessages)({clearButtonTitle:{id:"boxui.searchForm.clearButtonTitle",defaultMessage:"Clear"},searchButtonTitle:{id:"boxui.searchForm.searchButtonTitle",defaultMessage:"Search"},searchLabel:{id:"boxui.searchForm.searchLabel",defaultMessage:"Search query"}}),C=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?E(e):t}(this,(e=w(t)).call.apply(e,[this].concat(o))),O(E(n),"state",{isEmpty:!0}),O(E(n),"onClearHandler",(function(e){var t=n.props,r=t.onChange;t.shouldPreventClearEventPropagation&&e.stopPropagation(),n.searchInput&&(n.searchInput.value=""),n.setState({isEmpty:!0}),r&&r("")})),O(E(n),"onChangeHandler",(function(e){var t=e.target.value,r=n.props.onChange;n.setState({isEmpty:!t||!t.trim().length}),r&&r(t)})),O(E(n),"onSubmitHandler",(function(e){var t=e.target.elements[0].value,r=n.props.onSubmit;r&&r(t,e)})),O(E(n),"setInputRef",(function(e){n.searchInput=e,n.props.getSearchInput&&n.props.getSearchInput(n.searchInput)})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(t,e),n=t,i=[{key:"getDerivedStateFromProps",value:function(e){var t=e.value;return t&&t.trim()?{isEmpty:!0}:null}}],(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.action,o=t.className,i=t.intl,a=t.isLoading,l=t.method,f=t.name,d=t.queryParams,p=t.onSubmit,m=t.useClearButton,g=v(t,["action","className","intl","isLoading","method","name","queryParams","onSubmit","useClearButton"]),w=this.state.isEmpty,E=u()(g,["getSearchInput","onChange","onSubmit","required","shouldPreventClearEventPropagation"]),S=i.formatMessage,O=s()(o,"search-input-container"),C=s()("search-form",{"is-empty":w,"use-clear-button":m}),x=Object.keys(d).map((function(e,t){return r.createElement("input",{key:t,name:e,type:"hidden",value:d[e]})})),_=Object(b.a)((function(){return r.createElement("div",{className:"action-buttons"},p?r.createElement("button",{type:"button",className:"action-button search-button",title:S(k.searchButtonTitle)},r.createElement(h,null)):r.createElement("div",{className:"action-button search-button"},r.createElement(h,null)),r.createElement("button",{className:"action-button clear-button",onClick:e.onClearHandler,title:S(k.clearButtonTitle),type:"button"},r.createElement(c.a,null)))}));return r.createElement("div",{className:O},r.createElement("form",{action:n,className:C,method:l,onChange:this.onChangeHandler,onSubmit:this.onSubmitHandler,role:"search"},r.createElement("input",y({ref:this.setInputRef,"aria-label":S(k.searchLabel),autoComplete:"off",className:"search-input",name:f,onChange:function(){},type:"search"},E)),r.createElement(_,{isLoading:a,loadingIndicatorProps:{className:"search-form-loading-indicator"}}),x))}}])&&g(n.prototype,o),i&&g(n,i),t}(r.Component);O(C,"defaultProps",{action:void 0,method:"get",name:"search",queryParams:{},useClearButton:!1});t.a=Object(i.c)(C)},function(e,t){e.exports=function(e){return null==e}},,,function(e,t,n){var r=n(70)(n(40),"WeakMap");e.exports=r},function(e,t,n){var r=n(421),o=n(228),i=n(229);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){},,,,,function(e,t,n){var r=n(614),o=n(44);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){"use strict";var r=function(){};e.exports=r},,function(e,t,n){var r=n(99),o=n(38),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},,function(e,t,n){"use strict";var r=n(141);n(0),n(7);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";(function(e){function r(){return e&&Object({NODE_ENV:"production",BABEL_ENV:"production"})&&!1}n.d(t,"a",(function(){return r}))}).call(this,n(179))},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(64)),o=i(n(653));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},function(e,t,n){"use strict";(function(e){
|
|
52
|
+
*/!function(o){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(i.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,n,r,o,s,l,u,c=[];if(null==e||""===e)return c;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,u=(n=e.toString().split(i.query_separator)).length;t<u;t++)0!==(o=(r=n[t]).indexOf("="))&&(s=a(r.substring(0,o)),l=a(r.substring(o+1)),c.push(-1===o?[r,null]:[s,l]));return c}function l(e){this.uriParts=function(e){var t=i.uri_parser.exec(e||""),n={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,r){n[e]=t[r]||""})),n}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r<i;){var a;r in o&&(a=o[r],e.call(n,a,r,o)),r++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,n,r,o="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,r=this.queryPairs.length;t<r;t++)n=this.queryPairs[t],o.length>0&&(o+="&"),null===n[1]?o+=n[0]:(o+=n[0],o+="=",void 0!==n[1]&&(o+=encodeURIComponent(n[1])));return o.length>0?"?"+o:o},l.prototype.getQueryParamValue=function(e){var t,n,r;for(n=0,r=this.queryPairs.length;n<r;n++)if(e===(t=this.queryPairs[n])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,n,r,o=[];for(t=0,r=this.queryPairs.length;t<r;t++)e===(n=this.queryPairs[t])[0]&&o.push(n[1]);return o},l.prototype.deleteQueryParam=function(e,t){var n,r,o,i,s,l=[];for(n=0,s=this.queryPairs.length;n<s;n++)o=a((r=this.queryPairs[n])[0])===a(e),i=r[1]===t,(1!==arguments.length||o)&&(2!==arguments.length||o&&i)||l.push(r);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,n=this.queryPairs.length;for(t=0;t<n;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,n){var r,o,i=-1,s=this.queryPairs.length;if(3===arguments.length){for(r=0;r<s;r++)if(a((o=this.queryPairs[r])[0])===a(e)&&decodeURIComponent(o[1])===a(n)){i=r;break}i>=0&&this.deleteQueryParam(e,a(n)).addQueryParam(e,t,i)}else{for(r=0;r<s;r++)if(a((o=this.queryPairs[r])[0])===a(e)){i=r;break}this.deleteQueryParam(e),this.addQueryParam(e,t,i)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),i.ends_with_slashes.test(t)||i.starts_with_slashes.test(e)?(t&&t.replace(i.ends_with_slashes,"/"),e=e.replace(i.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},,function(e,t,n){"use strict";var r=n(246),o=n.n(r),i=n(39),a=n.n(i);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={language:"en-US",messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collapse":"Collapse","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarDetailsTitle":"Details","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentExplorer.bookmark":"Bookmark","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.collaboratedFolder":"Collaborated Folder","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.externalFolder":"External Folder","boxui.contentExplorer.file":"File","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.personalFolder":"Personal Folder","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud into the dark cloud.","boxui.securityCloudGame.success":"Success!","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for '{itemName}'","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortAllRestrictions":"Sharing, download and app restrictions apply","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"Invitations cannot be sent to {count, plural, one {{count} person} other {{count} people}} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove {count, plural, one {the person} other {{count} people}} and continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification to invite {count, plural, one {{count} person} other {{count} people}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove {count, plural, one {the person} other {{count} people}} and continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove people to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove people to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.settingsButtonLabel":"Open shared link settings popup","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"})},c=n(1);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?p(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),y(p(n),"language",u.language),y(p(n),"messages",u.messages),y(p(n),"setComponent",(function(e){n.component=e})),y(p(n),"onInteraction",(function(e){n.emit("interaction",e)})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(r=[{key:"show",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.id=e,this.token=t,this.options=n,this.options.version="0.0.0-semantically-released",this.emit=this.emit.bind(this);var r=n.container||c.I;this.container=r instanceof HTMLElement?r:document.querySelector(r),this.render()}},{key:"hide",value:function(){this.removeAllListeners(),a.a.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}},{key:"render",value:function(){throw new Error("Unimplemented!")}},{key:"getComponent",value:function(){return this.component}},{key:"clearCache",value:function(){var e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}},{key:"emit",value:function(e,n){try{return h(b(t.prototype),"emit",this).call(this,e,n)}catch(e){}return!1}}])&&d(n.prototype,r),o&&d(n,o),t}(o.a);t.a=v},,,,,,,function(e,t,n){var r=n(305),o=n(537),i=n(306),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(6),a=n(119),s=n(30),l=n(74),u=n(28),c=n(18),f=n(17),d=n(4),p=n.n(d),h=n(10),b=n(2),m=function(e){var t=e.className,n=void 0===t?"":t,o=e.height,i=void 0===o?12:o,a=e.color,s=void 0===a?b.g:a,l=e.title,u=e.width,c=void 0===u?12:u,f=p()("bdl-IconSecurityClassification",n);return r.createElement(h.a,{className:f,height:i,title:l,viewBox:"0 0 12 12",width:c},r.createElement("path",{d:"M6 0l4.875 2.438v2.856c0 2.645-2.309 5.792-4.79 6.366L6 11.68l-.084-.02c-2.482-.574-4.791-3.721-4.791-6.366V2.438L6 0zm0 .839L1.875 2.9v2.393c0 2.276 2.026 5.068 4.125 5.614 2.1-.546 4.125-3.338 4.125-5.614V2.901L6 .839zm2.25 2.58c.207 0 .375.168.375.375v3c0 .207-.168.375-.375.375s-.375-.168-.375-.375v-3c0-.207.168-.375.375-.375z",fill:s,fillRule:"evenodd"}))},y=n(190);n(640);function v(){return(v=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 g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var w=function(e){var t=e.className,n=e.color,o=e.icon,i=e.message,a=g(e,["className","color","icon","message"]);return r.createElement("h1",v({className:p()("bdl-SecurityBadge",t),style:{backgroundColor:n}},a),o,r.createElement("span",{className:"bdl-SecurityBadge-name"},i))};w.defaultProps={icon:r.createElement(y.a,{color:b.x,height:22,width:22,strokeWidth:3})};var E=w,S=(n(641),function(e){var t=e.color,n=e.name,o=e.onClick,i=e.tooltipPosition,a=void 0===i?"bottom-center":i,s=e.tooltipText,l="function"==typeof o,u=!s,d=r.createElement(E,{className:"bdl-ClassifiedBadge",color:t,icon:r.createElement(m,{height:12,width:12}),message:n});return r.createElement(f.c,{isDisabled:u,isTabbable:!1,position:a,text:s},l?r.createElement(c.a,{className:"bdl-ClassifiedBadge-editButton",onClick:o,type:"button"},d):d)});S.defaultProps={color:b.x};var O,k,C,x=S,_=n(15),P=n(7),A=n.n(P),T=n(321),I=n.n(T),j=n(486),D=n(188),L=n(88),R=Object(L.defineMessages)({securityControlsLabel:{id:"boxui.securityControls.securityControlsLabel",defaultMessage:"Restrictions"},shortSharing:{id:"boxui.securityControls.shortSharing",defaultMessage:"Sharing restriction applies"},shortDownload:{id:"boxui.securityControls.shortDownload",defaultMessage:"Download restrictions apply"},shortApp:{id:"boxui.securityControls.shortApp",defaultMessage:"Application restrictions apply"},shortWatermarking:{id:"boxui.securityControls.shortWatermarking",defaultMessage:"Watermarking applies"},shortSharingDownload:{id:"boxui.securityControls.shortSharingDownload",defaultMessage:"Sharing and download restrictions apply"},shortSharingApp:{id:"boxui.securityControls.shortSharingApp",defaultMessage:"Sharing and app restrictions apply"},shortDownloadApp:{id:"boxui.securityControls.shortDownloadApp",defaultMessage:"Download and app restrictions apply"},shortAllRestrictions:{id:"boxui.securityControls.shortAllRestrictions",defaultMessage:"Sharing, download and app restrictions apply"},sharingCollabOnly:{id:"boxui.securityControls.sharingCollabOnly",defaultMessage:"Shared links allowed for collaborators only."},sharingCollabAndCompanyOnly:{id:"boxui.securityControls.sharingCollabAndCompanyOnly",defaultMessage:"Shared links cannot be made publicly accessible."},externalCollabBlock:{id:"boxui.securityControls.externalCollabBlock",defaultMessage:"External collaboration restricted."},externalCollabDomainList:{id:"boxui.securityControls.externalCollabDomainList",defaultMessage:"External collaboration limited to approved domains."},appDownloadRestricted:{id:"boxui.securityControls.appDownloadRestricted",defaultMessage:"Download restricted for some applications."},appDownloadBlacklist:{id:"boxui.securityControls.appDownloadBlacklist",defaultMessage:"Download restricted for some applications: {appNames}"},appDownloadBlacklistOverflow:{id:"boxui.securityControls.appDownloadBlacklistOverflow",defaultMessage:"Download restricted for some applications: {appNames} +{remainingAppCount} more"},appDownloadWhitelist:{id:"boxui.securityControls.appDownloadWhitelist",defaultMessage:"Only select applications are allowed: {appNames}"},appDownloadWhitelistOverflow:{id:"boxui.securityControls.appDownloadWhitelistOverflow",defaultMessage:"Only select applications are allowed: {appNames} +{remainingAppCount} more"},allAppNames:{id:"boxui.securityControls.allAppNames",defaultMessage:"All applications: {appsList}"},webDownloadOwners:{id:"boxui.securityControls.webDownloadOwners",defaultMessage:"Download restricted on web, except Owners/Co-Owners."},webDownloadOwnersEditors:{id:"boxui.securityControls.webDownloadOwnersEditors",defaultMessage:"Download restricted on web, except Owners/Co-Owners/Editors."},webDownloadExternalOwners:{id:"boxui.securityControls.webDownloadExternalOwners",defaultMessage:"Download restricted on web, except Owners/Co-Owners. Also restricted for external users."},webDownloadExternalOwnersEditors:{id:"boxui.securityControls.webDownloadExternalOwnersEditors",defaultMessage:"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users."},webDownloadExternal:{id:"boxui.securityControls.webDownloadExternal",defaultMessage:"Download restricted on web for external users."},mobileDownloadOwners:{id:"boxui.securityControls.mobileDownloadOwners",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners."},mobileDownloadOwnersEditors:{id:"boxui.securityControls.mobileDownloadOwnersEditors",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners/Editors."},mobileDownloadExternalOwners:{id:"boxui.securityControls.mobileDownloadExternalOwners",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users."},mobileDownloadExternalOwnersEditors:{id:"boxui.securityControls.mobileDownloadExternalOwnersEditors",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users."},mobileDownloadExternal:{id:"boxui.securityControls.mobileDownloadExternal",defaultMessage:"Download restricted on mobile for external users."},desktopDownloadOwners:{id:"boxui.securityControls.desktopDownloadOwners",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners."},desktopDownloadOwnersEditors:{id:"boxui.securityControls.desktopDownloadOwnersEditors",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners/Editors."},desktopDownloadExternalOwners:{id:"boxui.securityControls.desktopDownloadExternalOwners",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users."},desktopDownloadExternalOwnersEditors:{id:"boxui.securityControls.desktopDownloadExternalOwnersEditors",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users."},desktopDownloadExternal:{id:"boxui.securityControls.downloadExternal",defaultMessage:"Download restricted on Box Drive for external users."},viewAll:{id:"boxui.securityControls.viewAll",defaultMessage:"View All"},modalTitle:{id:"boxui.securityControls.modalTitle",defaultMessage:"View Classification for '{itemName}'"},modalDescription:{id:"boxui.securityControls.modalDescription",defaultMessage:"Classification labels defined by your administrator can be used to label content and apply security policies."}});function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M,F,U,B,H,z,V,W=_.n.BLACKLIST,q=_.n.WHITELIST,G=_.b.DEFAULT,K=_.b.WITH_APP_LIST,X=_.b.WITH_OVERFLOWN_APP_LIST,Y=(N(C={},W,(N(O={},G,R.appDownloadRestricted),N(O,K,R.appDownloadBlacklist),N(O,X,R.appDownloadBlacklistOverflow),O)),N(C,q,(N(k={},G,R.appDownloadRestricted),N(k,K,R.appDownloadWhitelist),N(k,X,R.appDownloadWhitelistOverflow),k)),C);function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=_.m.DESKTOP,Q=_.m.MOBILE,Z=_.m.WEB,ee=_.o.OWNERS_AND_COOWNERS,te=_.o.OWNERS_COOWNERS_AND_EDITORS,ne=(J(V={},$,{externalAllowed:(M={},J(M,ee,R.desktopDownloadOwners),J(M,te,R.desktopDownloadOwnersEditors),M),externalRestricted:(F={},J(F,ee,R.desktopDownloadExternalOwners),J(F,te,R.desktopDownloadExternalOwnersEditors),J(F,"default",R.desktopDownloadExternal),F)}),J(V,Q,{externalAllowed:(U={},J(U,ee,R.mobileDownloadOwners),J(U,te,R.mobileDownloadOwnersEditors),U),externalRestricted:(B={},J(B,ee,R.mobileDownloadExternalOwners),J(B,te,R.mobileDownloadExternalOwnersEditors),J(B,"default",R.mobileDownloadExternal),B)}),J(V,Z,{externalAllowed:(H={},J(H,ee,R.webDownloadOwners),J(H,te,R.webDownloadOwnersEditors),H),externalRestricted:(z={},J(z,ee,R.webDownloadExternalOwners),J(z,te,R.webDownloadExternalOwnersEditors),J(z,"default",R.webDownloadExternal),z)}),V);function re(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=_.a.SHARED_LINK,le=_.a.DOWNLOAD,ue=_.a.EXTERNAL_COLLAB,ce=_.a.APP,fe=_.a.WATERMARK,de=_.b.DEFAULT,pe=_.b.WITH_APP_LIST,he=_.b.WITH_OVERFLOWN_APP_LIST,be=_.m.DESKTOP,me=_.m.MOBILE,ye=_.m.WEB,ve=_.n.BLOCK,ge=_.n.WHITELIST,we=_.n.BLACKLIST,Ee=_.q.COLLAB_ONLY,Se=_.q.COLLAB_AND_COMPANY_ONLY,Oe=_.q.PUBLIC,ke=function(e,t){return[].concat(re(function(e){var t=[];switch(A()(e,"".concat(se,".accessLevel"))){case Ee:t.push({message:R.sharingCollabOnly});break;case Se:t.push({message:R.sharingCollabAndCompanyOnly})}return t}(e)),re(function(e){var t=[];switch(A()(e,"".concat(ue,".accessLevel"))){case ve:t.push({message:R.externalCollabBlock});break;case ge:case we:t.push({message:R.externalCollabDomainList})}return t}(e)),re(function(e){var t,n=[],r=A()(e,le,{}),o=r.web,i=r.mobile,a=r.desktop,s=(ae(t={},ye,{platform:ye,restrictions:o}),ae(t,me,{platform:me,restrictions:i}),ae(t,be,{platform:be,restrictions:a}),t);return Object.keys(s).forEach((function(e){var t=s[e],r=t.platform,o=t.restrictions;if(o){var i=o.restrictExternalUsers,a=o.restrictManagedUsers;a&&i?n.push({message:ne[r].externalRestricted[a]}):a?n.push({message:ne[r].externalAllowed[a]}):i&&n.push({message:ne[r].externalRestricted.default})}})),n}(e)),re(function(e,t){var n=[],r=A()(e,"".concat(ce,".accessLevel"));switch(r){case ve:n.push({message:R.appDownloadRestricted});break;case ge:case we:var o=A()(e,"".concat(ce,".apps"),[]);t=I()(t)?o.length:t;var i=o.slice(0,t),a=o.slice(t).length,s=i.map((function(e){return e.displayText})).join(", ");if(a){var l=o.map((function(e){return e.displayText})).join(", ");n.push({message:ie({},Y[r][he],{values:{appNames:s,remainingAppCount:a}}),tooltipMessage:ie({},R.allAppNames,{values:{appsList:l}})})}else{var u=o.length?pe:de;n.push({message:ie({},Y[r][u],{values:{appNames:s}})})}}return n}(e,t)),re(function(e){var t=[];if(A()(e,"".concat(fe,".enabled"),!1)){var n=r.createElement(j.a,{id:"boxui.securityControls.watermarkingAppliedWithLink",description:"Bullet point that summarizes watermarking applied to classification"},"Watermarking will be applied, click"," ",r.createElement(D.a,{className:"support-link",href:"https://support.box.com/hc/en-us/articles/360044195253",target:"_blank"},"here")," ","more details on Watermarking");t.push({message:n})}return t}(e)))},Ce=n(110),xe=(n(643),function(e){var t=e.message,n=e.tooltipMessage;return r.createElement("li",{className:"bdl-SecurityControlsItem"},r.isValidElement(t)?t:r.createElement(a.a,t),n&&r.createElement(f.c,{className:"bdl-SecurityControlsItem-tooltip",text:r.createElement(a.a,n),position:"middle-right",isTabbable:!1},r.createElement("span",{className:"bdl-SecurityControlsItem-tooltipIcon"},r.createElement(Ce.a,{color:b.b,width:13,height:13}))))}),_e=n(184),Pe=n(33),Ae=n(26),Te=Object(L.defineMessages)({add:{id:"boxui.classification.add",defaultMessage:"Add"},classification:{id:"boxui.classification.classification",defaultMessage:"Classification"},definition:{id:"boxui.classification.definition",defaultMessage:"Definition"},edit:{id:"boxui.classification.edit",defaultMessage:"Edit"},missing:{id:"boxui.classification.missing",defaultMessage:"Not classified"},modifiedByLabel:{id:"boxui.classification.modifiedByLabel",defaultMessage:"Classification Label"},importedBy:{id:"boxui.classification.importedBy",defaultMessage:"Imported from {modifiedBy} on {modifiedAt}"},modifiedBy:{id:"boxui.classification.modifiedBy",defaultMessage:"Applied by {modifiedBy} on {modifiedAt}"},classificationYellow:{id:"boxui.classification.classificationYellow",defaultMessage:"Yellow"},classificationOrange:{id:"boxui.classification.classificationOrange",defaultMessage:"Orange"},classificationRed:{id:"boxui.classification.classificationRed",defaultMessage:"Red"},classificationPurple:{id:"boxui.classification.classificationPurple",defaultMessage:"Purple"},classificationLightBlue:{id:"boxui.classification.classificationLightBlue",defaultMessage:"Light Blue"},classificationDarkBlue:{id:"boxui.classification.classificationDarkBlue",defaultMessage:"Dark Blue"},classificationGreen:{id:"boxui.classification.classificationGreen",defaultMessage:"Green"},classificationGrey:{id:"boxui.classification.classificationGrey",defaultMessage:"Grey"}});n(645);function Ie(){return(Ie=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)}var je=function(e){var t=e.closeModal,n=e.definition,o=e.classificationColor,i=e.classificationName,s=e.isSecurityControlsModalOpen,u=e.itemName,c=e.modalItems;if(!u||!i||!n)return null;var f=r.createElement(a.a,Ie({},R.modalTitle,{values:{itemName:u}}));return r.createElement(_e.a,{className:"bdl-SecurityControlsModal",title:f,onRequestClose:t,isOpen:s},r.createElement("p",null,r.createElement(a.a,R.modalDescription)),r.createElement(x,{color:o,name:i}),r.createElement(l.a,{text:r.createElement(a.a,Te.definition)},r.createElement("p",{className:"bdl-SecurityControlsModal-definition"},n)),r.createElement("ul",{className:"bdl-SecurityControlsModal-controlsItemList"},c.map((function(e,t){var n=e.message,o=e.tooltipMessage;return r.createElement(xe,{key:t,message:n,tooltipMessage:o})}))),r.createElement(_e.b,null,r.createElement(Ae.b,{onClick:t,type:"button"},r.createElement(a.a,Pe.a.close))))};je.defaultProps={isSecurityControlsModalOpen:!1,modalItems:[]};var De=je;n(646);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=_.p.FULL,He=_.p.SHORT,ze=_.p.SHORT_WITH_BTN,Ve=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Me(e):t}(this,(e=Ne(t)).call.apply(e,[this].concat(o))),Ue(Me(n),"state",{isSecurityControlsModalOpen:!1}),Ue(Me(n),"openModal",(function(){return n.setState({isSecurityControlsModalOpen:!0})})),Ue(Me(n),"closeModal",(function(){return n.setState({isSecurityControlsModalOpen:!1})})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.props,n=t.classificationColor,o=t.classificationName,i=t.controls,s=t.controlsFormat,u=t.definition,f=t.itemName,d=t.maxAppCount,p=t.shouldRenderLabel,h=[];if(s===Be?h=ke(i,d):(h=function(e){var t=[],n=e.sharedLink,r=e.download,o=e.externalCollab,i=e.app,a=e.watermark,s=n&&n.accessLevel!==Oe||o;return s&&r&&i?t.push({message:R.shortAllRestrictions}):s&&r?t.push({message:R.shortSharingDownload}):s&&i?t.push({message:R.shortSharingApp}):r&&i?t.push({message:R.shortDownloadApp}):s?t.push({message:R.shortSharing}):r?t.push({message:R.shortDownload}):i&&t.push({message:R.shortApp}),a&&t.push({message:R.shortWatermarking}),t}(i)).length&&s===ze&&(e=ke(i,d)),!h.length)return null;var b=this.state.isSecurityControlsModalOpen,m=s===ze&&!!f&&!!o&&!!u,y=r.createElement("ul",{className:"bdl-SecurityControls"},h.map((function(e,t){var n=e.message,o=e.tooltipMessage;return r.createElement(xe,{key:t,message:n,tooltipMessage:o})})));return p&&(y=r.createElement(l.a,{text:r.createElement(a.a,R.securityControlsLabel)},y)),r.createElement(r.Fragment,null,y,m&&r.createElement(r.Fragment,null,r.createElement(c.a,{className:"lnk",onClick:this.openModal,type:"button"},r.createElement(a.a,R.viewAll)),r.createElement(De,{classificationColor:n,classificationName:o,closeModal:this.closeModal,definition:u,itemName:f,isSecurityControlsModalOpen:b,modalItems:e})))}}])&&Re(n.prototype,o),i&&Re(n,i),t}(r.Component);Ue(Ve,"defaultProps",{classificationName:"",definition:"",itemName:"",controls:{},controlsFormat:He,maxAppCount:_.l,shouldRenderLabel:!1});var We=Ve;n(647);function qe(){return(qe=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)}var Ge=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,c=e.controls,f=e.controlsFormat,d=e.definition,p=e.isImportedClassification,h=void 0!==p&&p,b=e.isLoadingControls,m=e.itemName,y=void 0===m?"":m,v=e.maxAppCount,g=e.messageStyle,w=e.modifiedAt,E=e.modifiedBy,S=e.name,O=e.onClick,k=!!S,C=!!d,_=!!w,P=!!E,A=k&&C&&"tooltip"===g,T=k&&C&&"inline"===g,I=!k&&"inline"===g,j=k&&b&&"inline"===g,D=k&&!b&&!!c&&"inline"===g,L=new Date(w||0),R=k&&_&&Object(s.j)(L)&&P&&"inline"===g,N=R&&r.createElement(i.a,{value:L,month:"long",year:"numeric",day:"numeric"}),M=h?Te.importedBy:Te.modifiedBy;return r.createElement("article",{className:"bdl-Classification ".concat(n)},k&&r.createElement(x,{color:o,name:S,onClick:O,tooltipText:A?d:void 0}),T&&r.createElement(l.a,{text:r.createElement(a.a,Te.definition)},r.createElement("p",{className:"bdl-Classification-definition"},d)),I&&r.createElement("span",{className:"bdl-Classification-missingMessage"},r.createElement(a.a,Te.missing)),R&&r.createElement(l.a,{text:r.createElement(a.a,Te.modifiedByLabel)},r.createElement("p",{className:"bdl-Classification-modifiedBy","data-testid":"classification-modifiedby"},r.createElement(a.a,qe({},M,{values:{modifiedAt:N,modifiedBy:E}})))),D&&r.createElement(We,{classificationColor:o,classificationName:S,controls:c,controlsFormat:f,definition:d,itemName:y,maxAppCount:v,shouldRenderLabel:!0}),j&&r.createElement(u.b,null))},Ke=n(23);function Xe(){return(Xe=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 Ye(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var Je,$e=function(e){var t=e.className,n=void 0===t?"":t,r=e.isEditing,i=e.onEdit,s=Ye(e,["className","isEditing","onEdit"]),l=r?Te.edit:Te.add;return o.a.createElement(Ke.a,Xe({className:"bdl-EditClassificationButton ".concat(n),onClick:i,type:"button"},s),o.a.createElement(a.a,l))};function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=(Qe(Je={},_.c,{name:Te.classificationYellow,color:b.x,tinycon:b.w}),Qe(Je,_.d,{name:Te.classificationOrange,color:b.r,tinycon:b.q}),Qe(Je,_.e,{name:Te.classificationRed,color:b.v,tinycon:b.u}),Qe(Je,_.f,{name:Te.classificationPurple,color:b.t,tinycon:b.s}),Qe(Je,_.g,{name:Te.classificationLightBlue,color:b.p,tinycon:b.o}),Qe(Je,_.h,{name:Te.classificationDarkBlue,color:b.f,tinycon:b.e}),Qe(Je,_.i,{name:Te.classificationGreen,color:b.n,tinycon:b.m}),Qe(Je,_.j,{name:Te.classificationGrey,color:b.i,tinycon:b.k}),Je);function et(e){var t=A()(e,"colorID",_.k);return(Ze[t]||Ze[_.k]).color}n.d(t,"c",(function(){return Ge})),n.d(t,"b",(function(){return Te})),n.d(t,"a",(function(){return $e})),n.d(t,"d",(function(){return et}))},function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(38),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(38),o=n(138),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);n(500);t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,a=e.topLeft,s=void 0===a?null:a,l=e.topRight,u=void 0===l?null:l,c=e.bottomLeft,f=void 0===c?null:c,d=e.bottomRight,p=void 0===d?null:d;return r.createElement("div",{className:i()("badgeable-container",o)},t,r.createElement("div",{className:"badges"},s&&r.createElement("div",{className:"top-left-badge"},s),u&&r.createElement("div",{className:"top-right-badge"},u),f&&r.createElement("div",{className:"bottom-left-badge"},f),p&&r.createElement("div",{className:"bottom-right-badge"},p)))}},function(e,t,n){var r=n(58),o=n(32),i=n(44),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(22),s=n.n(a),l=n(12),u=n.n(l),c=n(88),f=n(51),d=n(100);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function b(){return(b=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 m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=Object(c.defineMessages)({closeModalText:{id:"boxui.modalDialog.closeModalText",defaultMessage:"Close Modal"}}),S=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t}(this,(e=y(t)).call.apply(e,[this].concat(o))),w(v(n),"onCloseButtonClick",(function(e){var t=n.props.onRequestClose;t&&t(e)})),w(v(n),"modalID",u()("modal")),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(o=[{key:"renderCloseButton",value:function(){var e=this.props,t=e.closeButtonProps,n=e.onRequestClose,o=e.intl.formatMessage;return n?r.createElement("button",b({},t,{"aria-label":o(E.closeModalText),className:"modal-close-button",onClick:this.onCloseButtonClick}),r.createElement(d.a,{color:"#909090",height:18,width:18})):null}},{key:"renderContent",value:function(){var e=this.props,t=e.children;if("alert"!==e.type)return r.createElement("div",{className:"modal-content"},t);var n=r.Children.toArray(t);if(2!==n.length)throw new Error("Alert modal must have exactly two children: A message and <ModalActions>");return r.createElement("div",{className:"modal-content"},r.createElement("p",{id:"".concat(this.modalID,"-desc")},n[0]),n[1])}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.modalRef,o=e.title,a=e.type,l=h(e,["className","modalRef","title","type"]),u="alert"===a,c=s()(l,["children","closeButtonProps","onRequestClose","intl"]);return c.role=u?"alertdialog":"dialog",c["aria-labelledby"]="".concat(this.modalID,"-label"),u&&(c["aria-describedby"]="".concat(this.modalID,"-desc")),r.createElement("div",b({ref:n,className:i()("modal-dialog",t)},c),r.createElement("div",{className:"modal-header"},r.createElement("h2",{className:"modal-title",id:"".concat(this.modalID,"-label")},o)),this.renderCloseButton(),this.renderContent())}}])&&m(n.prototype,o),a&&m(n,a),t}(r.Component);w(S,"defaultProps",{type:"dialog",closeButtonProps:{}}),t.a=Object(f.c)(S)},function(e,t,n){"use strict";var r=n(263);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(9);function a(){return(a=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)}t.a=function(e){return r.createElement(i.a,a({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:o.j,fillRule:"evenodd",d:"M7.19 8L4.46 5.27a.572.572 0 01.81-.81L8 7.19l2.73-2.73a.572.572 0 01.81.81L8.81 8l2.73 2.73a.572.572 0 01-.81.81L8 8.81l-2.73 2.73a.572.572 0 01-.81-.81L7.19 8zm5.76 4.95a7 7 0 10-9.9-9.9 7 7 0 009.9 9.9z"}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"DURATION_SHORT",(function(){return r})),n.d(t,"DURATION_LONG",(function(){return o})),n.d(t,"TYPE_DEFAULT",(function(){return i})),n.d(t,"TYPE_INFO",(function(){return a})),n.d(t,"TYPE_WARN",(function(){return s})),n.d(t,"TYPE_ERROR",(function(){return l})),n.d(t,"OVERFLOW_WRAP",(function(){return u})),n.d(t,"OVERFLOW_ELLIPSIS",(function(){return c}));var r="short",o="long",i="default",a="info",s="warn",l="error",u="wrap",c="ellipsis"},function(e,t,n){var r=n(163),o=n(390),i=n(170),a=n(391),s=n(397),l=n(220),u=n(198),c=n(400),f=n(402),d=n(301),p=n(224),h=n(124),b=n(405),m=n(406),y=n(226),v=n(32),g=n(123),w=n(410),E=n(38),S=n(412),O=n(108),k=1,C=2,x=4,_="[object Arguments]",P="[object Function]",A="[object GeneratorFunction]",T="[object Object]",I={};I[_]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[T]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[P]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,j,D,L,R){var N,M=n&k,F=n&C,U=n&x;if(j&&(N=L?j(t,D,L,R):j(t)),void 0!==N)return N;if(!E(t))return t;var B=v(t);if(B){if(N=b(t),!M)return u(t,N)}else{var H=h(t),z=H==P||H==A;if(g(t))return l(t,M);if(H==T||H==_||z&&!L){if(N=F||z?{}:y(t),!M)return F?f(t,s(N,t)):c(t,a(N,t))}else{if(!I[H])return L?t:{};N=m(t,H,M)}}R||(R=new r);var V=R.get(t);if(V)return V;R.set(t,N),S(t)?t.forEach((function(r){N.add(e(r,n,j,r,t,R))})):w(t)&&t.forEach((function(r,o){N.set(o,e(r,n,j,o,t,R))}));var W=U?F?p:d:F?keysIn:O,q=B?void 0:W(t);return o(q||t,(function(r,o){q&&(r=t[o=r]),i(N,o,e(r,n,j,o,t,R))})),N}},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",b={};function m(){}function y(){}function v(){}var g={};g[a]=function(){return this};var w=Object.getPrototypeOf,E=w&&w(w(A([])));E&&E!==r&&o.call(E,a)&&(g=E);var S=v.prototype=m.prototype=Object.create(g);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){var n;this._invoke=function(r,i){function a(){return new Promise((function(n,a){!function n(r,i,a,s){var l=c(e[r],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===t(f)&&o.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):Promise.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(r,i,n,a)}))}return n=n?n.then(a,a):a()}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,b;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:n,done:!0}}return y.prototype=S.constructor=v,v.constructor=y,v[l]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},O(k.prototype),k.prototype[s]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,o){var i=new k(u(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(S),S[l]="Generator",S[a]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(90)(e))},function(e,t,n){var r=n(262),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(113),i=n(83),a=n(136),s=n(38);e.exports=function(e,t,n){if(!s(n))return!1;var l=r(t);return!!("number"==l?i(n)&&a(t,n.length):"string"==l&&t in n)&&o(n[t],e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(149),o=n(396),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(223),o=n(175),i=n(108);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(40).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(104),o=n(114),i=n(32),a=n(136),s=n(172),l=n(98);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(271);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},,,,,,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(207),s=n.n(a),l=n(22),u=n.n(l),c=n(204),f=n(52),d=n(319),p=n(265);n(644);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?g(e):t}(this,(e=v(t)).call.apply(e,[this].concat(o))),E(g(n),"onKeyDown",(function(e){var t=n.props,r=t.isOpen,o=t.onRequestClose;r&&o&&"Escape"===e.key&&(e.stopPropagation(),o(e))})),E(g(n),"onBackdropClick",(function(e){var t=n.props,r=t.onRequestClose,o=t.onBackdropClick;o?o(e):r&&r(e)})),E(g(n),"onModalOpen",(function(){setTimeout((function(){var e=n.props.focusElementSelector,t=e&&e.trim();t?n.focusElement(t):n.focusFirstUsefulElement()}),0)})),E(g(n),"focusFirstUsefulElement",(function(){if(n.dialog){var e=s()(n.dialog);e.length>1?e[1].focus():e.length>0&&e[0].focus()}})),E(g(n),"focusElement",(function(e){if(n.dialog){var t=n.dialog.querySelector(e);if(!t)throw new Error("Could not find element matching selector ".concat(e," to focus on."));t.focus()}})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.props.isOpen&&this.onModalOpen()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isLoading,r=t.isOpen;e.isOpen&&!e.isLoading||!r||n||this.onModalOpen()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.isLoading,a=t.isOpen,s=t.onRequestClose,l=t.shouldNotUsePortal,h=t.style,y=m(t,["className","isLoading","isOpen","onRequestClose","shouldNotUsePortal","style"]);if(!a)return null;var v=u()(y,["onBackdropClick","focusElementSelector"]),g=l?"div":d.a;return r.createElement(g,{className:i()("modal",n),onKeyDown:this.onKeyDown,tabIndex:"-1"},r.createElement("div",{className:"modal-backdrop",onClick:this.onBackdropClick,style:h.backdrop}),r.createElement(c.a,{className:"modal-dialog-container"},o?r.createElement(f.b,{size:"large"}):r.createElement(p.a,b({modalRef:function(t){e.dialog=t},onRequestClose:s,style:h.dialog},v))),r.createElement("style",{type:"text/css"},"\n body {\n overflow:hidden;\n }\n "))}}])&&y(n.prototype,o),a&&y(n,a),t}(r.Component);E(S,"defaultProps",{style:{backdrop:{},dialog:{}}}),t.a=S},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),a=n.n(i);function s(){return(s=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.className,n=l(e,["className"]);return o.a.createElement("div",s({className:a()("modal-actions",t)},n))}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);n(649);function a(){return(a=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(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var l=r.forwardRef((function(e,t){var n=e.className,o=void 0===n?"":n,l=e.description,u=e.isDisabled,c=e.isOn,f=e.isToggleRightAligned,d=void 0!==f&&f,p=e.label,h=e.name,b=e.onBlur,m=e.onChange,y=s(e,["className","description","isDisabled","isOn","isToggleRightAligned","label","name","onBlur","onChange"]),v=i()("toggle-container",o,{"is-toggle-right-aligned":d}),g=[r.createElement("div",{key:"toggle-simple-switch",className:"toggle-simple-switch"}),r.createElement("div",{key:"toggle-simple-label",className:"toggle-simple-label"},p)];return d&&(g=g.reverse()),r.createElement("div",{className:v},r.createElement("label",{className:"toggle-simple"},r.createElement("input",a({checked:c,className:"toggle-simple-input",disabled:u,ref:t,name:h,onBlur:b,onChange:m,type:"checkbox"},y)),g),l?r.createElement("div",{className:"toggle-simple-description"},l):null)}));l.displayName="Toggle",t.a=l},,function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(10);t.a=function(e){var t=e.className,n=void 0===t?"":t,a=e.color,s=void 0===a?o.m:a,l=e.height,u=void 0===l?14:l,c=e.opacity,f=void 0===c?1:c,d=e.title,p=e.width,h=void 0===p?14:p;return r.createElement(i.a,{className:"icon-verified ".concat(n),height:u,opacity:f,title:d,viewBox:"0 0 14 14",width:h},r.createElement("path",{d:"M7 14c-3.865993 0-7-3.134007-7-7s3.134007-7 7-7 7 3.134007 7 7-3.134007 7-7 7zM5.31288 9.303048l1.44555 1.21296 4.499514-5.36231-1.44555-1.21296-4.499514 5.36231zM3 7.36231L5.31288 9.30305l1.21296-1.44555L4.21296 5.91676 3 7.36231z",fill:s,fillRule:"evenodd"}))}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(12),s=n.n(a),l=n(258),u=n.n(l),c=n(119),f=n(51),d=n(48),p=n(180),h=n(17);n(650);function b(){return(b=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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var y=r.forwardRef((function(e,t){var n=e.children,o=e.className,a=void 0===o?"":o,s=e.error,l=e.isDisabled,u=void 0!==l&&l,c=m(e,["children","className","error","isDisabled"]);return r.createElement(h.c,{isShown:!!s,position:"middle-right",text:s,theme:"error"},r.createElement("button",b({className:i()(a,"select-button","bdl-SelectButton",{"is-invalid":!!s}),disabled:u,ref:t,type:"button"},c),n))})),v=n(118),g=n(36),w=n.n(g),E=n(181),S=n.n(E),O=n(37),k=n.n(O),C=n(64),x=n(338),_=n.n(x),P=_()(),A=_()(),T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,k()(w()(t),"referenceNode",void 0),k()(w()(t),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}S()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return C.createElement(P.Provider,{value:this.referenceNode},C.createElement(A.Provider,{value:this.setReferenceNode},this.props.children))},t}(C.Component),I=n(151),j=n.n(I),D=n(332),L=n.n(D),R=function(e){return Array.isArray(e)?e[0]:e},N=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},M=function(e,t){if("function"==typeof e)return N(e,t);null!=e&&(e.current=t)},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,k()(w()(t),"refHandler",(function(e){M(t.props.innerRef,e),N(t.props.setReferenceNode,e)})),t}S()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){M(this.props.innerRef,null)},n.render=function(){return L()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),R(this.props.children)({ref:this.refHandler})},t}(C.Component);function U(e){return C.createElement(A.Consumer,null,(function(t){return C.createElement(F,j()({setReferenceNode:t},e))}))}var B=n(529),H=n.n(B),z=n(339),V={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},W={},q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,k()(w()(t),"state",{data:void 0,placement:void 0}),k()(w()(t),"popperInstance",void 0),k()(w()(t),"popperNode",null),k()(w()(t),"arrowNode",null),k()(w()(t),"setPopperNode",(function(e){e&&t.popperNode!==e&&(M(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),k()(w()(t),"setArrowNode",(function(e){t.arrowNode=e})),k()(w()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),k()(w()(t),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:j()({},t.props.modifiers,{arrow:j()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),k()(w()(t),"getPopperStyle",(function(){return t.popperNode&&t.state.data?j()({position:t.state.data.offsets.popper.position},t.state.data.styles):V})),k()(w()(t),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),k()(w()(t),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:W})),k()(w()(t),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),k()(w()(t),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),k()(w()(t),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=w()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new z.a(n,e,t.getOptions()))})),k()(w()(t),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}S()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed||this.props.modifiers!==e.modifiers?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){M(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return R(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(C.Component);k()(q,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});z.a.placements;function G(e){var t=e.referenceElement,n=H()(e,["referenceElement"]);return C.createElement(P.Consumer,null,(function(e){return C.createElement(q,j()({referenceElement:void 0!==t?t:e},n))}))}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var $=function(e){var t=e.children,n=e.isOpen,o=e.modifiers,i=e.placement,a=r.Children.toArray(t);if(2!==a.length)throw new Error("PopperComponent must have exactly two children: A reference component and the Popper content");var s=J(a,2),l=s[0],u=s[1];return r.createElement(T,null,r.createElement(U,null,(function(e){var t=e.ref;return r.cloneElement(l,{ref:t})})),n&&r.createElement(G,{placement:i,modifiers:o},(function(e){var t=e.ref,n=e.style,o=e.placement,i=e.scheduleUpdate,a=u.props.style;return r.cloneElement(u,{ref:t,style:X({},a,{},n),placement:o,scheduleUpdate:i})})))};$.defaultProps={placement:"auto"};var Q=$;function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(){return(ee=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 te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ie=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ne(this,re(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=e.selectedValues,n=this.props,r=n.multiple,o=n.scheduleUpdate,i=n.selectedValues;r&&o&&t!==i&&o()}},{key:"render",value:function(){var e,t,n,o=this.props,a=o.children,s=o.innerRef,l=o.style,u=o.placement,c=o.isScrollable,f=o.multiple,d=o.selectFieldID,p={};return f&&(p["aria-multiselectable"]=!0),r.createElement("ul",ee({ref:s,style:l,"data-placement":u,className:i()("bdl-SelectFieldDropdown","overlay",(e={},t="bdl-SelectField-overlay--scrollable",n=c,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),id:d,role:"listbox",onMouseDown:function(e){return e.preventDefault()}},p),a)}}])&&te(n.prototype,o),a&&te(n,a),t}(r.Component),ae=r.forwardRef((function(e,t){return r.createElement(ie,ee({},e,{innerRef:t}))})),se=n(320),le=n(161),ue="ArrowDown",ce="ArrowUp",fe="Escape",de="Enter",pe=" ",he="Tab",be=n(162);n(655);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(){return(ye=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 ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e){e.preventDefault(),e.stopPropagation()}var xe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?Se(e):t}(this,Ee(t).call(this,e)),ke(Se(n),"updateSearchText",(function(e){var t=n.props.options,r=u()(t,(function(t){return t.displayText.toLowerCase().includes(e.toLowerCase())}));r>=0&&n.setActiveItem(r),n.setState({searchText:e})})),ke(Se(n),"handleDocumentClick",(function(e){var t=n.selectFieldContainerRef.current;t&&e.target instanceof Node&&t.contains(e.target)||t===e.target||n.closeDropdown()})),ke(Se(n),"setActiveItem",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.setState({activeItemIndex:e,shouldScrollIntoView:t}),-1===e&&n.setActiveItemID(null)})),ke(Se(n),"setActiveItemID",(function(e){var t=n.state.shouldScrollIntoView,r=e?document.getElementById(e):null;n.setState({activeItemID:e,shouldScrollIntoView:!1},(function(){t&&Object(d.e)(r,{block:"nearest"})}))})),ke(Se(n),"handleChange",(function(e){var t=n.props.onChange;t&&t(e)})),ke(Se(n),"handleOptionSelect",(function(e){var t=n.props.onOptionSelect;t&&t(e)})),ke(Se(n),"handleButtonClick",(function(){n.state.isOpen?n.closeDropdown():n.openDropdown()})),ke(Se(n),"handleClearClick",(function(){n.handleChange([])})),ke(Se(n),"handleButtonKeyDown",(function(e){var t=n.state.activeItemIndex;e.key!==pe&&e.key!==de||-1===t||e.preventDefault()})),ke(Se(n),"handleBlur",(function(e){var t=n.state.isOpen,r=n.props.blurExceptionClassNames,o=["search-input","select-button"].concat(ge(void 0===r?[]:r));t&&e&&e.relatedTarget&&o.every((function(t){return e&&!e.relatedTarget.classList.contains(t)}))&&n.closeDropdown()})),ke(Se(n),"handleKeyDown",(function(e){var t=e.key,r=n.props,o=r.options,i=r.shouldShowClearOption,a=r.shouldShowSearchInput,s=n.state,l=s.activeItemIndex,c=s.isOpen,f=o.length;switch(t){case ue:if(Ce(e),c){var d=l===f-1?-1:l+1;n.setActiveItem(d)}else n.openDropdown();break;case ce:if(Ce(e),c){var p=-1===l?f-1:l-1;n.setActiveItem(p)}else n.openDropdown();break;case de:case pe:if(a){if(t===pe)break;if(t===de&&-1===l){Ce(e);break}}if(-1!==l&&c)Ce(e),i&&0===l?n.handleClearClick():n.selectOption(l),t===de&&n.closeDropdown();break;case fe:c&&(Ce(e),n.closeDropdown());break;case he:c&&n.closeDropdown();break;default:if(!a){Ce(e);var h=t.toLowerCase(),b=u()(o,(function(e){return 0===e.displayText.toLowerCase().indexOf(h)}));b>=0&&n.setActiveItem(b)}}})),ke(Se(n),"openDropdown",(function(){var e=n.props.shouldShowSearchInput;n.state.isOpen||(n.setState({isOpen:!0},(function(){return e&&n.searchInputRef&&n.searchInputRef.focus()})),document.addEventListener("click",n.handleDocumentClick))})),ke(Se(n),"closeDropdown",(function(){n.state.isOpen&&(n.setState({activeItemID:null,activeItemIndex:-1,isOpen:!1,searchText:""}),document.removeEventListener("click",n.handleDocumentClick))})),ke(Se(n),"selectOption",(function(e){n.props.multiple?n.selectMultiOption(e):(n.selectSingleOption(e),n.closeDropdown())})),ke(Se(n),"getFilteredOptions",(function(){var e=n.props.options,t=n.state.searchText;return e.filter((function(e){var n=e.displayText.toLowerCase().includes(t.toLowerCase()),r=e.value===le.a;return!t||n&&!r}))})),ke(Se(n),"selectMultiOption",(function(e){var t=n.props,r=t.defaultValue,o=t.options,i=t.selectedValues,a=null!=r,s=n.getFilteredOptions()[e];if(a&&r===s.value)n.selectSingleOption(e);else{var l=i.slice(0);if(function(e,t){var n=e.indexOf(t);-1===n?e.push(t):e.splice(n,1)}(l,s.value),a){var c=u()(o,(function(e){return e.value===r}));if(-1!==c){if(0===l.length)return void n.selectSingleOption(c);l.length>1&&l.includes(r)&&l.splice(c,1)}}n.handleChange(o.filter((function(e){return l.includes(e.value)}))),n.handleOptionSelect(s)}})),ke(Se(n),"renderButtonText",(function(){var e=n.props,t=e.options,r=e.placeholder,o=e.selectedValues,i=e.title;return 0===o.length&&r?r:i||t.filter((function(e){return o.includes(e.value)})).map((function(e){return e.displayText})).join(", ")})),ke(Se(n),"renderSearchInput",(function(){var e=n.props.intl,t=n.state.searchText;return r.createElement(se.a,{className:"select-field-search-container",getSearchInput:function(e){n.searchInputRef=e},onChange:n.updateSearchText,placeholder:e.formatMessage(be.a.searchPlaceholder),value:t})})),ke(Se(n),"renderSelectButton",(function(){var e=n.state,t=e.activeItemID,o=e.isOpen,i=n.props,a=i.buttonProps,s=i.isDisabled,l=i.className,u=i.error,c=n.renderButtonText(),f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a,{"aria-activedescendant":t,"aria-autocomplete":"list","aria-expanded":o,"aria-owns":n.selectFieldID,className:l,isDisabled:s,onClick:n.handleButtonClick,onKeyDown:n.handleButtonKeyDown,role:"listbox",title:c});return r.createElement(y,ye({},f,{error:u}),c)})),ke(Se(n),"renderSelectOptions",(function(){var e=n.props,t=e.optionRenderer,o=e.selectedValues,a=e.separatorIndices,s=e.shouldShowClearOption,l=n.state.activeItemIndex,u=n.getFilteredOptions();if(0===u.length)return r.createElement(v.a,{className:"select-option is-disabled"},r.createElement(c.a,be.a.noResults));var f=u.map((function(e,a){var u=e.value,c=o.includes(u),f=s&&u===le.a,d={className:i()("select-option",{"is-clear-option":f}),key:a,onClick:function(e){e.preventDefault(),f?n.handleClearClick():n.selectOption(a)},onMouseEnter:function(){n.setActiveItem(a,!1)},setActiveItemID:n.setActiveItemID};return a===l&&(d.isActive=!0),d.isSelected=c,r.createElement(v.a,d,r.createElement("div",{className:"select-option-check-icon"},c?r.createElement(p.a,{height:16,width:16}):null),t(e))}));return a.forEach((function(e,t){f.splice(e+t,0,r.createElement("li",{key:"separator".concat(e),role:"separator"}))})),f})),n.selectFieldID=s()("selectfield"),n.selectFieldContainerRef=r.createRef(),n.state={activeItemID:null,activeItemIndex:-1,isOpen:!1,searchText:"",shouldScrollIntoView:!1},n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.state.isOpen&&document.removeEventListener("click",this.handleDocumentClick)}},{key:"selectSingleOption",value:function(e){var t=this.props.selectedValues,n=this.getFilteredOptions()[e];t.includes(n.value)||this.handleChange([n]),this.handleOptionSelect(n)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.multiple,o=e.isEscapedWithReference,a=e.isRightAligned,s=e.isScrollable,l=e.selectedValues,u=e.shouldShowSearchInput,c=this.state.isOpen,f=a?"bottom-end":"bottom-start",d=o?{preventOverflow:{escapeWithReference:!0}}:{};return r.createElement("div",{className:i()(t,"bdl-SelectField","select-container"),onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.selectFieldContainerRef},r.createElement(Q,{placement:f,isOpen:c,modifiers:d},this.renderSelectButton(),r.createElement(ae,{isScrollable:s,multiple:n,selectedValues:l,selectFieldID:this.selectFieldID},u&&this.renderSearchInput(),this.renderSelectOptions())))}}])&&we(n.prototype,o),a&&we(n,a),t}(r.Component);ke(xe,"defaultProps",{buttonProps:{},isDisabled:!1,isRightAligned:!1,isScrollable:!1,multiple:!1,optionRenderer:function(e){var t=e.displayText;return r.createElement("span",{className:"bdl-SelectField-optionText",title:t},t)},options:[],selectedValues:[],separatorIndices:[],shouldShowClearOption:!1,shouldShowSearchInput:!1});t.a=Object(f.c)(xe)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),a=n.n(i),s=n(12),l=n.n(s),u=(n(508),n(17)),c=n(1),f=n(3),d=n.n(f),p=n(100),h=n(55),b=n(166);n(638);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return(S=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 O(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var k=function(e){var t=e.onClick,n=O(e,["onClick"]);return o.a.createElement(p.a,S({},n,{"aria-hidden":"true",onClick:t}))},C=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?g(e):t}(this,(e=v(t)).call.apply(e,[this].concat(o))),E(g(n),"state",{avatarUrl:void 0}),E(g(n),"isMounted",!1),E(g(n),"getStyles",(function(){var e=n.props,t=e.className,r=e.isSelected,o=e.isDisabled,i=e.hasWarning,s=e.isValid;return a()("bdl-RoundPill",t,{"bdl-RoundPill--selected":r&&!o,"bdl-RoundPill--disabled":o,"bdl-RoundPill--warning":i,"bdl-RoundPill--error":!s})})),E(g(n),"handleClickRemove",(function(){var e=n.props,t=e.isDisabled,r=e.onRemove;return t?d.a:r()})),E(g(n),"getAvatarUrlHandler",(function(e){n.isMounted&&n.setState({avatarUrl:e})})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,e),n=t,(r=[{key:"getAvatarUrl",value:function(){var e=this.props,t=e.getPillImageUrl,n=e.id;Promise.resolve(t&&n?t({id:n}):void 0).then(this.getAvatarUrlHandler).catch((function(){}))}},{key:"componentDidMount",value:function(){this.isMounted=!0,this.getAvatarUrl()}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.isExternal,r=e.showAvatar,i=e.text,a=this.state.avatarUrl;return o.a.createElement(h.a.Pill,{size:"large",className:this.getStyles()},r?o.a.createElement(h.a.Icon,{Component:b.a,className:"bdl-RoundPill-avatar",avatarUrl:a,id:t,isExternal:n,name:i,size:"small",shouldShowExternal:!0}):null,o.a.createElement(h.a.Text,{className:"bdl-RoundPill-text"},i),o.a.createElement(h.a.Icon,{className:"bdl-RoundPill-closeBtn",Component:k,onClick:this.handleClickRemove}))}}])&&y(n.prototype,r),i&&y(n,i),t}(o.a.PureComponent);E(C,"defaultProps",{isDisabled:!1,isSelected:!1,isValid:!0,hasWarning:!1,showAvatar:!1});var x=C,_=function(e){var t=e.isDisabled,n=void 0!==t&&t,r=e.isSelected,i=void 0!==r&&r,s=e.isValid,l=void 0===s||s,u=e.onRemove,c=e.text,f=a()("bdl-Pill","pill",{"is-selected":i&&!n,"is-invalid":!l,"is-disabled":n,"bdl-is-disabled":n}),p=n?d.a:u;return o.a.createElement("span",{className:f},o.a.createElement("span",{className:"bdl-Pill-text pill-text"},c),o.a.createElement("span",{"aria-hidden":"true",className:"close-btn",onClick:p},"✕"))},P=n(18),A=(n(510),function(e){var t=e.email,n=e.id,r=e.name,i=e.onAdd,a=function(e){e.preventDefault(),i({email:t,id:n,name:r,text:r,type:"user",value:t})};return o.a.createElement(u.c,{position:"bottom-center",text:t},o.a.createElement(P.a,{className:"suggested-pill-invisible-button",onClick:a,onKeyDown:function(e){e.key===c.de.enter&&a(e)},type:"button"},o.a.createElement("span",{className:"bdl-Pill-text pill-text suggested-pill"},r)))}),T=function(e){var t=e.onSuggestedPillAdd,n=void 0===t?d.a:t,r=e.selectedPillsValues,i=void 0===r?[]:r,a=e.suggestedPillsData,s=void 0===a?[]:a,l=e.suggestedPillsFilter,u=void 0===l?"id":l,c=e.title,f=s.filter((function(e){return!i.includes(e[u])}));return 0===f.length?null:o.a.createElement("div",{className:"pill-selector-suggested"},o.a.createElement("span",null,c),f.map((function(e){return o.a.createElement(A,{key:e.id,email:e.email,id:e.id,name:e.name,onAdd:n})})))};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(){return(j=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 D(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){e.preventDefault(),e.stopPropagation()}var B=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?N(e):t}(this,(e=R(t)).call.apply(e,[this].concat(o))),F(N(n),"state",{isFocused:!1,selectedIndex:-1}),F(N(n),"getNumSelected",(function(){var e=n.props.selectedOptions;return"number"==typeof e.size?e.size:e.length})),F(N(n),"getPillsByKey",(function(e){return n.props.selectedOptions.map((function(t){return t[e]}))})),F(N(n),"handleClick",(function(){n.inputEl.focus()})),F(N(n),"handleFocus",(function(){n.setState({isFocused:!0})})),F(N(n),"handleBlur",(function(){n.setState({isFocused:!1})})),F(N(n),"handleKeyDown",(function(e){var t=n.inputEl.value,r=n.getNumSelected(),o=n.state.selectedIndex;switch(e.key){case c.de.backspace:var i=-1;if(o>=0?(i=o,n.resetSelectedIndex(),n.inputEl.focus()):""===t&&(i=r-1),i>=0){var a=n.props,s=a.onRemove,l=a.selectedOptions;s("function"==typeof l.get?l.get(i):l[i],i),U(e)}break;case c.de.arrowLeft:o>=0?(n.setState({selectedIndex:Math.max(o-1,0)}),U(e)):""===t&&r>0&&(n.hiddenEl.focus(),n.setState({selectedIndex:r-1}),U(e));break;case c.de.arrowRight:if(o>=0){var u=o+1;u>=r?(n.resetSelectedIndex(),n.inputEl.focus()):n.setState({selectedIndex:u}),U(e)}}})),F(N(n),"errorMessageID",l()("errorMessage")),F(N(n),"hiddenRef",(function(e){e&&(n.hiddenEl=e)})),F(N(n),"resetSelectedIndex",(function(){-1!==n.state.selectedIndex&&n.setState({selectedIndex:-1})})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.state,n=t.isFocused,o=t.selectedIndex,i=this.props,s=i.allowInvalidPills,l=i.className,c=i.disabled,f=i.error,d=i.getPillClassName,p=i.getPillImageUrl,h=i.inputProps,b=i.onInput,m=i.onRemove,y=i.onSuggestedPillAdd,v=i.placeholder,g=i.selectedOptions,w=i.showAvatars,E=i.showRoundedPills,S=i.suggestedPillsData,O=i.suggestedPillsFilter,k=i.suggestedPillsTitle,C=i.validator,P=D(i,["allowInvalidPills","className","disabled","error","getPillClassName","getPillImageUrl","inputProps","onInput","onRemove","onSuggestedPillAdd","placeholder","selectedOptions","showAvatars","showRoundedPills","suggestedPillsData","suggestedPillsFilter","suggestedPillsTitle","validator"]),A=S&&S.length>0,I=!!f,L=a()("bdl-PillSelector","pill-selector-input-wrapper",{"is-disabled":c,"bdl-is-disabled":c,"is-focused":n,"show-error":I,"pill-selector-suggestions-enabled":A,"bdl-PillSelector--suggestionsEnabled":A}),R={"aria-invalid":I,"aria-errormessage":this.errorMessageID,"aria-describedby":this.errorMessageID};return r.createElement(u.c,{isShown:I,text:f||"",position:"middle-right",theme:"error"},r.createElement("span",{className:L,onBlur:this.handleBlur,onClick:this.handleClick,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown},E?g.map((function(t,n){return r.createElement(x,{className:d?d(t):void 0,getPillImageUrl:p,isValid:!s||C(t),isDisabled:c,isSelected:n===o,key:t.value,onRemove:m.bind(e,t,n),text:t.displayText||t.text,showAvatar:!0,id:t.id,hasWarning:t.hasWarning,isExternal:t.isExternalUser})})):g.map((function(t,n){return r.createElement(_,{isValid:!s||C(t),isDisabled:c,isSelected:n===o,key:t.value,onRemove:m.bind(e,t,n),text:t.displayText||t.text})})),r.createElement("span",{"aria-hidden":"true",className:"accessibility-hidden",onBlur:this.resetSelectedIndex,ref:this.hiddenRef,tabIndex:-1,"data-testid":"pill-selection-helper"}),r.createElement("textarea",j({},R,P,h,{autoComplete:"off",className:a()("bdl-PillSelector-input","pill-selector-input",l,{"bdl-PillSelector-input--showAvatars":w}),disabled:c,onInput:b,placeholder:0===this.getNumSelected()?v:"",ref:function(t){e.inputEl=t}})),r.createElement(T,{onSuggestedPillAdd:y,selectedPillsValues:this.getPillsByKey("value"),suggestedPillsFilter:O,suggestedPillsData:S,title:k}),r.createElement("span",{id:this.errorMessageID,className:"accessibility-hidden",role:"alert"},f)))}}])&&L(n.prototype,o),i&&L(n,i),t}(r.Component);F(B,"defaultProps",{allowInvalidPills:!1,disabled:!1,error:"",inputProps:{},placeholder:"",selectedOptions:[],validator:function(){return!0}});t.a=B},function(e,t,n){"use strict";var r=n(0),o=n(39);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=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(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f,d,p,h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,u(t).call(this,e))).container=n.props.container,n.layer=document.createElement("div"),n.layer.setAttribute("data-portal",""),n.container&&n.layer&&n.container.appendChild(n.layer),n}var n,i,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(i=[{key:"componentWillUnmount",value:function(){this.container&&this.layer&&this.container.removeChild(this.layer),this.layer=null}},{key:"render",value:function(){var e=a({},this.props);return this.layer?Object(o.createPortal)(r.createElement("div",e),this.layer):null}}])&&s(n.prototype,i),f&&s(n,f),t}(r.PureComponent);f=h,d="defaultProps",p={container:document.body},d in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p;var b=h;n.d(t,"a",(function(){return b}))},function(e,t,n){"use strict";var r=n(0),o=n(88),i=n(51),a=n(4),s=n.n(a),l=n(22),u=n.n(l),c=n(267),f=n(2),d=n(9);function p(){return(p=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)}var h=function(e){return r.createElement(d.a,p({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:f.j,fillRule:"evenodd",d:"M6.994 1a5.994 5.994 0 014.906 9.438l2.807 2.807a1 1 0 010 1.415l-.047.047a1 1 0 01-1.415 0L10.438 11.9A5.994 5.994 0 116.994 1zm0 1.998a3.996 3.996 0 100 7.992 3.996 3.996 0 000-7.992z"}))},b=n(165);n(654);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){return(y=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 v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=Object(o.defineMessages)({clearButtonTitle:{id:"boxui.searchForm.clearButtonTitle",defaultMessage:"Clear"},searchButtonTitle:{id:"boxui.searchForm.searchButtonTitle",defaultMessage:"Search"},searchLabel:{id:"boxui.searchForm.searchLabel",defaultMessage:"Search query"}}),C=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?E(e):t}(this,(e=w(t)).call.apply(e,[this].concat(o))),O(E(n),"state",{isEmpty:!0}),O(E(n),"onClearHandler",(function(e){var t=n.props,r=t.onChange;t.shouldPreventClearEventPropagation&&e.stopPropagation(),n.searchInput&&(n.searchInput.value=""),n.setState({isEmpty:!0}),r&&r("")})),O(E(n),"onChangeHandler",(function(e){var t=e.target.value,r=n.props.onChange;n.setState({isEmpty:!t||!t.trim().length}),r&&r(t)})),O(E(n),"onSubmitHandler",(function(e){var t=e.target.elements[0].value,r=n.props.onSubmit;r&&r(t,e)})),O(E(n),"setInputRef",(function(e){n.searchInput=e,n.props.getSearchInput&&n.props.getSearchInput(n.searchInput)})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(t,e),n=t,i=[{key:"getDerivedStateFromProps",value:function(e){var t=e.value;return t&&t.trim()?{isEmpty:!0}:null}}],(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.action,o=t.className,i=t.intl,a=t.isLoading,l=t.method,f=t.name,d=t.queryParams,p=t.onSubmit,m=t.useClearButton,g=v(t,["action","className","intl","isLoading","method","name","queryParams","onSubmit","useClearButton"]),w=this.state.isEmpty,E=u()(g,["getSearchInput","onChange","onSubmit","required","shouldPreventClearEventPropagation"]),S=i.formatMessage,O=s()(o,"search-input-container"),C=s()("search-form",{"is-empty":w,"use-clear-button":m}),x=Object.keys(d).map((function(e,t){return r.createElement("input",{key:t,name:e,type:"hidden",value:d[e]})})),_=Object(b.a)((function(){return r.createElement("div",{className:"action-buttons"},p?r.createElement("button",{type:"button",className:"action-button search-button",title:S(k.searchButtonTitle)},r.createElement(h,null)):r.createElement("div",{className:"action-button search-button"},r.createElement(h,null)),r.createElement("button",{className:"action-button clear-button",onClick:e.onClearHandler,title:S(k.clearButtonTitle),type:"button"},r.createElement(c.a,null)))}));return r.createElement("div",{className:O},r.createElement("form",{action:n,className:C,method:l,onChange:this.onChangeHandler,onSubmit:this.onSubmitHandler,role:"search"},r.createElement("input",y({ref:this.setInputRef,"aria-label":S(k.searchLabel),autoComplete:"off",className:"search-input",name:f,onChange:function(){},type:"search"},E)),r.createElement(_,{isLoading:a,loadingIndicatorProps:{className:"search-form-loading-indicator"}}),x))}}])&&g(n.prototype,o),i&&g(n,i),t}(r.Component);O(C,"defaultProps",{action:void 0,method:"get",name:"search",queryParams:{},useClearButton:!1});t.a=Object(i.c)(C)},function(e,t){e.exports=function(e){return null==e}},,,function(e,t,n){var r=n(70)(n(40),"WeakMap");e.exports=r},function(e,t,n){var r=n(421),o=n(228),i=n(229);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){},,,,,function(e,t,n){var r=n(614),o=n(44);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){"use strict";var r=function(){};e.exports=r},,function(e,t,n){var r=n(99),o=n(38),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},,function(e,t,n){"use strict";var r=n(141);n(0),n(7);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";(function(e){function r(){return e&&Object({NODE_ENV:"production",BABEL_ENV:"production"})&&!1}n.d(t,"a",(function(){return r}))}).call(this,n(179))},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(64)),o=i(n(653));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},function(e,t,n){"use strict";(function(e){
|
|
53
53
|
/**!
|
|
54
54
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
55
55
|
* @version 1.16.0
|
|
@@ -127,7 +127,7 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
|
|
|
127
127
|
* See the License for the specific language governing permissions and
|
|
128
128
|
* limitations under the License.
|
|
129
129
|
*/
|
|
130
|
-
function a(e){return"object"===(void 0===e?"undefined":i(e))&&e instanceof s}var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?Object.keys(t).forEach((function(e){"children"!==e&&void 0!==t[e]&&(n[e]=t[e])})):this.type="text",this.children=[]}return o(e,[{key:"add",value:function(e){a(e)&&this.children.push(e)}},{key:"toArray",value:function(){if(this.children.length){var t=[];(r=new e(this)).use="start",t.push(r);for(var n=0;n<this.children.length;n++)t=t.concat(this.children[n].toArray());return(r=new e(this)).use="end",t.push(r),t}return"text"===this.type?(this.use=void 0,[this]):((r=new e(this)).use="startend",[r]);var r}}],[{key:"fromArray",value:function(t){if(t&&Array.isArray(t)&&t.length&&t.every((function(e){return"object"===(void 0===e?"undefined":i(e))}))){var n;if(1===t.length)return a(t[0])&&((n=new e(t[0])).use=void 0),n;var r=void 0,o=0;"start"===t[0].use?(r=t[0],o=1):(r={type:"root"},o=0);var s=new e(r),l=[],u=s;s.use=void 0,l.push(s);for(var c=o;c<t.length;c++)a(t[c])&&("start"===t[c].use?((n=new e(t[c])).use=void 0,l.push(n),u.add(n),u=n):"end"===t[c].use?l.length&&(l.pop(),u=l[l.length-1]):u.add(t[c]));return s}}}]),e}();t.default=s},,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(166),i=n(118);n(659);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}(this,c(t).call(this,e)),p(f(n),"isMounted",!1),p(f(n),"getAvatarUrlHandler",(function(e){n.isMounted&&n.setState({avatarUrl:e})})),n.state={avatarUrl:void 0},n}var n,h,b;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(h=[{key:"getAvatarUrl",value:function(){var e=this.props,t=e.getContactAvatarUrl,n=e.id;Promise.resolve(t&&n?t({id:n}):void 0).then(this.getAvatarUrlHandler).catch((function(){}))}},{key:"componentDidMount",value:function(){this.isMounted=!0,this.getAvatarUrl()}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){var e=this.props,t=(e.getContactAvatarUrl,e.id),n=e.isExternal,a=e.name,u=e.showAvatar,c=e.subtitle,f=l(e,["getContactAvatarUrl","id","isExternal","name","showAvatar","subtitle"]),d=this.state.avatarUrl;return r.createElement(i.a,s({className:"contact-data-list-item"},f),u&&r.createElement(o.a,{className:"contact-avatar",id:t,name:a,isExternal:n,shouldShowExternal:!0,avatarUrl:d}),r.createElement("div",{className:"contact-name-container"},r.createElement("div",{className:"contact-text contact-name"},a),c&&r.createElement("div",{className:"contact-text contact-sub-name"},c)))}}])&&u(n.prototype,h),b&&u(n,b),t}(r.PureComponent);t.a=h},,function(e,t,n){var r=n(238),o=n(539),i=r((function(e,t,n){return e+(n?" ":"")+o(t)}));e.exports=i},function(e,t,n){"use strict";var r=n(0),o=n(
|
|
130
|
+
function a(e){return"object"===(void 0===e?"undefined":i(e))&&e instanceof s}var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?Object.keys(t).forEach((function(e){"children"!==e&&void 0!==t[e]&&(n[e]=t[e])})):this.type="text",this.children=[]}return o(e,[{key:"add",value:function(e){a(e)&&this.children.push(e)}},{key:"toArray",value:function(){if(this.children.length){var t=[];(r=new e(this)).use="start",t.push(r);for(var n=0;n<this.children.length;n++)t=t.concat(this.children[n].toArray());return(r=new e(this)).use="end",t.push(r),t}return"text"===this.type?(this.use=void 0,[this]):((r=new e(this)).use="startend",[r]);var r}}],[{key:"fromArray",value:function(t){if(t&&Array.isArray(t)&&t.length&&t.every((function(e){return"object"===(void 0===e?"undefined":i(e))}))){var n;if(1===t.length)return a(t[0])&&((n=new e(t[0])).use=void 0),n;var r=void 0,o=0;"start"===t[0].use?(r=t[0],o=1):(r={type:"root"},o=0);var s=new e(r),l=[],u=s;s.use=void 0,l.push(s);for(var c=o;c<t.length;c++)a(t[c])&&("start"===t[c].use?((n=new e(t[c])).use=void 0,l.push(n),u.add(n),u=n):"end"===t[c].use?l.length&&(l.pop(),u=l[l.length-1]):u.add(t[c]));return s}}}]),e}();t.default=s},,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(166),i=n(118);n(659);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}(this,c(t).call(this,e)),p(f(n),"isMounted",!1),p(f(n),"getAvatarUrlHandler",(function(e){n.isMounted&&n.setState({avatarUrl:e})})),n.state={avatarUrl:void 0},n}var n,h,b;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(h=[{key:"getAvatarUrl",value:function(){var e=this.props,t=e.getContactAvatarUrl,n=e.id;Promise.resolve(t&&n?t({id:n}):void 0).then(this.getAvatarUrlHandler).catch((function(){}))}},{key:"componentDidMount",value:function(){this.isMounted=!0,this.getAvatarUrl()}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){var e=this.props,t=(e.getContactAvatarUrl,e.id),n=e.isExternal,a=e.name,u=e.showAvatar,c=e.subtitle,f=l(e,["getContactAvatarUrl","id","isExternal","name","showAvatar","subtitle"]),d=this.state.avatarUrl;return r.createElement(i.a,s({className:"contact-data-list-item"},f),u&&r.createElement(o.a,{className:"contact-avatar",id:t,name:a,isExternal:n,shouldShowExternal:!0,avatarUrl:d}),r.createElement("div",{className:"contact-name-container"},r.createElement("div",{className:"contact-text contact-name"},a),c&&r.createElement("div",{className:"contact-text contact-sub-name"},c)))}}])&&u(n.prototype,h),b&&u(n,b),t}(r.PureComponent);t.a=h},,function(e,t,n){var r=n(238),o=n(539),i=r((function(e,t,n){return e+(n?" ":"")+o(t)}));e.exports=i},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n.n(o),a=n(51),s=n(317),l=n(161),u=n(162);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?m(e):t}(this,(e=b(t)).call.apply(e,[this].concat(s))),r=m(n),i=function(e){var t=n.props,r=t.onChange,o=t.fieldType;r&&1===e.length?r(e[0],o):0===e.length&&r({value:null})},(o="handleChange")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.intl,n=e.isDisabled,o=e.selectedValue,a=e.placeholder,c=e.shouldShowClearOption,h=e.options,b=p(e,["intl","isDisabled","selectedValue","placeholder","shouldShowClearOption","options"]),m=i()(b,["defaultValue","multiple","onChange"]),y=null!==o;m.selectedValues=y?[o]:[];var v=c?[{value:l.a,displayText:t.formatMessage(u.a.clearAll)}].concat(d(h)):h;return r.createElement(s.a,f({className:!y&&a?"placeholder":"",isDisabled:n,onChange:this.handleChange,placeholder:a,options:v,shouldShowClearOption:c},m))}}])&&h(n.prototype,o),a&&h(n,a),t}(r.Component);t.a=Object(a.c)(v)},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=n(212);n.d(t,"a",(function(){return r.a}))},function(e,t,n){
|
|
131
131
|
/*!
|
|
132
132
|
* Pikaday
|
|
133
133
|
*
|
|
@@ -160,7 +160,7 @@ function a(e){return"object"===(void 0===e?"undefined":i(e))&&e instanceof s}var
|
|
|
160
160
|
*
|
|
161
161
|
* This source code is licensed under the MIT license found in the
|
|
162
162
|
* LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(54),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,f=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113;i&&Symbol.for("react.suspense_list");var b=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder"),i&&Symbol.for("react.scope");var y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||g}function S(){}function O(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||g}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=E.prototype;var k=O.prototype=new S;k.constructor=O,o(k,E.prototype),k.isPureReactComponent=!0;var C={current:null},x={current:null},_=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:x.current}}function T(e){return"object"===r(e)&&null!==e&&e.$$typeof===a}var I=/\/+/g,j=[];function D(e,t,n,r){if(j.length){var o=j.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>j.length&&j.push(e)}function R(e,t,n){return null==e?0:function e(t,n,o,i){var l=r(t);"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case s:u=!0}}if(u)return o(i,t,""===n?"."+N(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var f=n+N(l=t[c],c);u+=e(l,f,o,i)}else if(null===t||"object"!==r(t)?f=null:f="function"==typeof(f=y&&t[y]||t["@@iterator"])?f:null,"function"==typeof f)for(t=f.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,f=n+N(l,c++),o,i);else if("object"===l)throw o=""+t,Error(v(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return u}(e,"",t,n)}function N(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function U(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(I,"$&/")+"/"),R(e,F,t=D(t,i,r,o)),L(t)}function B(){var e=C.current;if(null===e)throw Error(v(321));return e}var H={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return U(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,M,t=D(null,null,t,n)),L(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return U(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},createRef:function(){return{current:null}},Component:E,PureComponent:O,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,n){return B().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,n){return B().useReducer(e,t,n)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:h,createElement:A,cloneElement:function(e,t,n){if(null==e)throw Error(v(267,e));var r=o({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)_.call(t,c)&&!P.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:a,type:e.type,key:i,ref:s,props:r,_owner:l}},createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:C,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:o}},z={default:H},V=z&&H||z;e.exports=V.default||V},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.__esModule=!0;var o=n(64),i=(s(o),s(n(13))),a=s(n(538));s(n(332));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=1073741823;t.default=function(e,t){var n,r,s="__create-react-context-"+(0,a.default)()+"__",d=function(e){function n(){var t,r,o,i;l(this,n);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return t=r=u(this,e.call.apply(e,[this].concat(s))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter((function(t){return t!==e}))},get:function(){return o},set:function(e,t){o=e,i.forEach((function(e){return e(o,t)}))}}),u(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof t?t(n,r):f,0!==(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(o.Component);d.childContextTypes=((n={})[s]=i.default.object.isRequired,n);var p=function(t){function n(){var e,r;l(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=u(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},u(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},n.prototype.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},n.prototype.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[s]?this.context[s].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return p.contextTypes=((r={})[s]=i.default.object,r),{Provider:d,Consumer:p}},e.exports=t.default},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){"use strict";var r={tlds:["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADAC","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFAMILYCOMPANY","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIGO","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNL","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUDAPEST","BUGATTI","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANCERRESEARCH","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CARTIER","CASA","CASE","CASEIH","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CEB","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHRYSLER","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CSC","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DODGE","DOG","DOHA","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUCK","DUNLOP","DUNS","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ESURANCE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EVERBANK","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUJIXEROX","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLADE","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HONEYWELL","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTEL","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISELECT","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","IVECO","JAGUAR","JAVA","JCB","JCP","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LADBROKES","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LANCOME","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIAISON","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LIXIL","LK","LLC","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUPIN","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","METLIFE","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MOBILY","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MOPAR","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MOVISTAR","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NADEX","NAGOYA","NAME","NATIONWIDE","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWHOLLAND","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFF","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","ONYOURSIDE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PIAGET","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","QVC","RACING","RADIO","RAID","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIGHTATHOME","RIL","RIO","RIP","RMIT","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCJOHNSON","SCOR","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SHRIRAM","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPACE","SPORT","SPOT","SPREADBETTING","SR","SRL","SRT","SS","ST","STADA","STAPLES","STAR","STARHUB","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWIFTCOVER","SWISS","SX","SY","SYDNEY","SYMANTEC","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TELEFONICA","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UCONNECT","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VISTAPRINT","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WARMAN","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3OQ18VL8PN36A","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--ESTV75G","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ61U9W7B","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPU716F","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBB9FBPOB","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PBT977C","XN--PGBS0DH","XN--PSSY2U","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"]};e.exports=new Set(r.tlds.map((function(e){return e.toLowerCase()})))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=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)}var i=n(999),a=n(1001),s={defaultTlds:{allow:n(948),deny:null}};e.exports={domain:{analyze:function(e,t){return t=s.options(t),i.analyze(e,t)},isValid:function(e,t){return t=s.options(t),i.isValid(e,t)}},email:{analyze:function(e,t){return t=s.options(t),a.analyze(e,t)},isValid:function(e,t){return t=s.options(t),a.isValid(e,t)}}},s.options=function(e){if(!e)return{tlds:s.defaultTlds};if(!1===e.tlds)return e;if(!e.tlds||!0===e.tlds)return o({},e,{tlds:s.defaultTlds});if("object"!==r(e.tlds))throw new Error("Invalid options: tlds must be a boolean or an object");if(e.tlds.deny){if(e.tlds.deny instanceof Set==!1)throw new Error("Invalid options: tlds.deny must be a Set object");if(e.tlds.allow)throw new Error("Invalid options: cannot specify both tlds.allow and tlds.deny lists");return e}if(!0===e.tlds.allow)return o({},e,{tlds:s.defaultTlds});if(e.tlds.allow instanceof Set==!1)throw new Error("Invalid options: tlds.allow must be a Set object or true");return e}},function(e,t,n){"use strict";var r=n(1e3),o={minDomainSegments:2};t.nonAsciiRx=/[^\x00-\x7f]/,o.tldSegmentRx=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,o.domainSegmentRx=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,t.domain=function(e,n){var r=n.minDomainSegments||o.minDomainSegments,i=e.split(".");if(i.length<r)return t.error("Domain lacks the minimum required number of segments");var a=n.tlds;if(a){var s=i[i.length-1].toLowerCase();if(a.deny&&a.deny.has(s)||a.allow&&!a.allow.has(s))return t.error("Domain uses forbidden TLD")}for(var l=0;l<i.length;++l){var u=i[l];if(!u.length)return t.error("Domain contains empty dot-separated segment");if(u.length>63)return t.error("Domain contains dot-separated segment that is too long");if(l<i.length-1){if(!o.domainSegmentRx.test(u))return t.error("Domain contains invalid character")}else if(!o.tldSegmentRx.test(u))return t.error("Domain contains invalid tld character")}},t.error=function(e){return{error:e}},t.punycode=function(e){return r.toASCII(e)}},,,function(e,t,n){var r=n(989)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},function(e,t,n){var r=n(537),o=n(995);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(97),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);e.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(o,"\\$&"):e}},function(e,t,n){"use strict";n(270);var r=n(0),o=n.n(r),i=n(56),a=n(354),s=n.n(a),l=n(3),u=n.n(l),c=n(119),f=n(128),d=n(540),p=n(541),h=n(268),b=n(28),m=n(51),y=n(184),v=n(259),g=n(88),w=Object(g.defineMessages)({contentSharedWithExternalCollaborators:{id:"boxui.unifiedShare.contentSharedWithExternalCollaborators",defaultMessage:"This content will be shared with external collaborators."},disabledShareLinkPermission:{id:"boxui.unifiedShare.disabledShareLinkPermission",defaultMessage:"This option is not available due to a security policy."},disabledMaliciousContentShareLinkPermission:{id:"boxui.unifiedShare.disabledMaliciousContentShareLinkPermission",defaultMessage:"This option isn’t available for this item due to a security policy."},enterAtLeastOneEmailError:{id:"boxui.unifiedShare.enterAtLeastOneEmail",defaultMessage:"Enter at least one valid email"},contactsExceedLimitError:{id:"boxui.unifiedShare.contactsExceedLimitError",defaultMessage:"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."},enterEmailAddressesCalloutText:{id:"boxui.unifiedShare.enterEmailAddressesCalloutText",defaultMessage:"Share this item with coworkers by entering their email addresses"},ftuxNewUSMUserTitle:{id:"boxui.unifiedShare.ftuxNewUsmUserTitle",defaultMessage:"Simplified sharing for files and folders"},ftuxNewUSMUserBody:{id:"boxui.unifiedShare.ftuxNewUSMUserBody",defaultMessage:"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing."},ftuxLinkText:{id:"boxui.unifiedShare.ftuxLinkText",defaultMessage:"Read more about shared link security here."},ftuxConfirmLabel:{id:"boxui.unifiedShare.ftuxConfirmLabel",defaultMessage:"Got it"},ftuxEditPermissionTooltipBody:{id:"boxui.unifiedShare.ftuxEditPermissionTooltipBody",defaultMessage:"Select the new edit option to easily share your file with people or groups."},ftuxEditPermissionTooltipTitle:{id:"boxui.unifiedShare.ftuxEditPermissionTooltipTitle",defaultMessage:"Collaboration made easy"},collaboratorListTitle:{id:"boxui.unifiedShare.collaboratorListTitle",defaultMessage:"People in ‘{itemName}’"},expirationTooltipClickableText:{id:"boxui.unifiedShare.collaborators.expirationTooltipClickableText",defaultMessage:"Access expires on {date}. Click for details."},groupLabel:{id:"boxui.unifiedShare.groupLabel",defaultMessage:"Group"},modalTitle:{id:"boxui.unifiedShare.modalTitle",defaultMessage:"Share ‘{itemName}’"},emailModalTitle:{id:"boxui.unifiedShare.emailModalTitle",defaultMessage:"Send Link to ‘{itemName}’"},inviteDisabledTooltip:{id:"boxui.unifiedShare.inviteDisabledTooltip",defaultMessage:"You do not have permission to invite collaborators."},inviteDisabledWeblinkTooltip:{id:"boxui.unifiedShare.inviteDisabledWeblinkTooltip",defaultMessage:"Collaborators cannot be added to bookmarks."},inviteFieldLabel:{id:"boxui.unifiedShare.inviteFieldLabel",defaultMessage:"Invite People"},sharedLinkSectionLabel:{id:"boxui.unifiedShare.sharedLinkSectionLabel",defaultMessage:"Share Link"},sharedLinkURLLabel:{id:"boxui.share.sharedLinkURLLabel",defaultMessage:"URL"},settingsButtonLabel:{id:"boxui.unifiedShare.settingsButtonLabel",defaultMessage:"Open shared link settings popup"},linkShareOff:{id:"boxui.unifiedShare.linkShareOff",defaultMessage:"Create shared link"},linkShareOn:{id:"boxui.unifiedShare.linkShareOn",defaultMessage:"Shared link is created"},messageTitle:{id:"boxui.unifiedShare.message",defaultMessage:"Message"},suggestedCollabsTitle:{id:"boxui.unifiedShare.suggestedCollabsTitle",defaultMessage:"Suggested"},peopleInEnterpriseName:{id:"boxui.unifiedShare.peopleInEnterpriseName",defaultMessage:"People in {enterpriseName}"},peopleInYourCompany:{id:"boxui.unifiedShare.peopleInYourCompany",defaultMessage:"People in your company"},peopleInThisFolder:{id:"boxui.unifiedShare.peopleInThisFolder",defaultMessage:"Invited people only"},peopleInThisFile:{id:"boxui.unifiedShare.peopleInThisFile",defaultMessage:"Invited people only"},peopleWithTheLinkText:{id:"boxui.unifiedShare.peopleWithTheLinkText",defaultMessage:"People with the link"},removeLinkConfirmationTitle:{id:"boxui.unifiedShare.removeLinkConfirmationTitle",defaultMessage:"Remove Shared Link"},removeLinkConfirmationDescription:{id:"boxui.unifiedShare.removeLinkConfirmationDescription",defaultMessage:"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?"},removeLinkTooltip:{id:"boxui.unifiedShare.removeLinkTooltip",defaultMessage:"You do not have permission to remove the link."},disabledCreateLinkTooltip:{id:"boxui.unifiedShare.disabledCreateLinkTooltip",defaultMessage:"You do not have permission to create the link."},sendSharedLink:{id:"boxui.unifiedShare.sendSharedLink",defaultMessage:"Send Shared Link"},sendSharedLinkFieldLabel:{id:"boxui.unifiedShare.sendSharedLinkFieldLabel",defaultMessage:"Email Shared Link"},sharedLinkExpirationTooltip:{id:"boxui.unifiedShare.sharedLinkExpirationTooltip",defaultMessage:"This link will expire and be inaccessible on {expiration, date, long}."},sharedLinkPermissionsViewDownload:{id:"boxui.unifiedShare.sharedLinkPermissionsViewDownload",defaultMessage:"Can view and download"},sharedLinkPermissionsViewOnly:{id:"boxui.unifiedShare.sharedLinkPermissionsViewOnly",defaultMessage:"Can view only"},ftuxSharedLinkPermissionsEditTag:{id:"boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag",defaultMessage:"NEW"},sharedLinkPermissionsEdit:{id:"boxui.unifiedShare.sharedLinkPermissionsEdit",defaultMessage:"Can edit"},sharedLinkPermissionsEditTooltip:{id:"boxui.unifiedShare.sharedLinkPermissionsEditTooltip",defaultMessage:"This permission can only be changed in Box Notes"},sharedLinkDisabledTooltipCopy:{id:"boxui.unifiedShare.sharedLinkDisabledTooltipCopy",defaultMessage:"Create and copy link for sharing"},sharedLinkSettingsCalloutText:{id:"boxui.unifiedShare.sharedLinkSettingsCalloutText",defaultMessage:"Create a custom URL, enable password protection, enable link expiration, and much more"},sharedLinkPubliclyAvailable:{id:"boxui.unifiedShare.sharedLinkPubliclyAvailable",defaultMessage:"This content is publicly available to anyone with the link."},sharedLinkEditablePubliclyAvailable:{id:"boxui.unifiedShare.sharedLinkEditablePubliclyAvailable",defaultMessage:"Publicly available for anyone to view and download. Any logged in users with the link can edit."},sharedLinkElevatedEditableCompanyAvailable:{id:"boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable",defaultMessage:"People who have access to this link can edit."},upgradeGetMoreAccessControlsDescription:{id:"boxui.unifiedShare.upgradeGetMoreAccessControlsDescription",defaultMessage:"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings"},upgradeGetMoreAccessControlsLink:{id:"boxui.unifiedShare.upgradeGetMoreAccessControlsLink",defaultMessage:"upgrade"},upgradeLink:{id:"boxui.unifiedShare.upgradeLink",defaultMessage:"Upgrade now"},upgradeInlineNoticeTitle:{id:"boxui.unifiedShare.upgradeInlineNoticeTitle",defaultMessage:"Upgrade Your Plan"},sharedLinkSettings:{id:"boxui.unifiedShare.sharedLinkSettings",defaultMessage:"Link Settings"},peopleWithLinkDescription:{id:"boxui.unifiedShare.peopleWithLinkDescription",defaultMessage:"Publicly accessible and no sign-in required"},peopleInSpecifiedCompanyCanAccessFolder:{id:"boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder",defaultMessage:"Anyone at {company} with the link or people invited to this folder can access"},peopleInCompanyCanAccessFolder:{id:"boxui.unifiedShare.peopleInCompanyCanAccessFolder",defaultMessage:"Anyone in your company with the link or people invited to this folder can access"},peopleInSpecifiedCompanyCanAccessFile:{id:"boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile",defaultMessage:"Anyone at {company} with the link or people invited to this file can access"},peopleInCompanyCanAccessFile:{id:"boxui.unifiedShare.peopleInCompanyCanAccessFile",defaultMessage:"Anyone in your company with the link or people invited to this file can access"},peopleInItemCanAccessFolder:{id:"boxui.unifiedShare.peopleInItemCanAccessFolder",defaultMessage:"Only invited people can access this folder"},peopleInItemCanAccessFile:{id:"boxui.unifiedShare.peopleInItemCanAccessFile",defaultMessage:"Only invited people can access this file"},coownerLevelButtonLabel:{id:"boxui.unifiedShare.coownerLevelButtonLabel",defaultMessage:"Invite as Co-owner"},coownerLevelText:{id:"boxui.unifiedShare.coownerLevelText",defaultMessage:"Co-owner"},coownerLevelDescription:{id:"boxui.unifiedShare.coownerLevelDescription",defaultMessage:"Manage security, upload, download, preview, share, edit, and delete"},editorLevelButtonLabel:{id:"boxui.unifiedShare.editorLevelButtonLabel",defaultMessage:"Invite as Editor"},editorLevelText:{id:"boxui.unifiedShare.editorLevelText",defaultMessage:"Editor"},editorLevelDescription:{id:"boxui.unifiedShare.editorLevelDescription",defaultMessage:"Upload, download, preview, share, edit, and delete"},editorLevelFileDescription:{id:"boxui.unifiedShare.editorLevelFileDescription",defaultMessage:"Upload, download, preview, share, and edit"},previewerLevelButtonLabel:{id:"boxui.unifiedShare.previewerLevelButtonLabel",defaultMessage:"Invite as Previewer"},previewerLevelText:{id:"boxui.unifiedShare.previewerLevelText",defaultMessage:"Previewer"},previewerLevelDescription:{id:"boxui.unifiedShare.previewerLevelDescription",defaultMessage:"Preview only"},previewerUploaderLevelButtonLabel:{id:"boxui.unifiedShare.previewerUploaderLevelButtonLabel",defaultMessage:"Invite as Previewer Uploader"},previewerUploaderLevelText:{id:"boxui.unifiedShare.previewerUploaderLevelText",defaultMessage:"Previewer Uploader"},previewerUploaderLevelDescription:{id:"boxui.unifiedShare.previewerUploaderLevelDescription",defaultMessage:"Upload and preview"},viewerLevelButtonLabel:{id:"boxui.unifiedShare.viewerLevelButtonLabel",defaultMessage:"Invite as Viewer"},viewerLevelText:{id:"boxui.unifiedShare.viewerLevelText",defaultMessage:"Viewer"},viewerLevelDescription:{id:"boxui.unifiedShare.viewerLevelDescription",defaultMessage:"Download, preview, and share"},viewerUploaderLevelButtonLabel:{id:"boxui.unifiedShare.viewerUploaderLevelButtonLabel",defaultMessage:"Invite as Viewer Uploader"},viewerUploaderLevelText:{id:"boxui.unifiedShare.viewerUploaderLevelText",defaultMessage:"Viewer Uploader"},viewerUploaderLevelDescription:{id:"boxui.unifiedShare.viewerUploaderLevelDescription",defaultMessage:"Upload, download, preview, share, and edit"},uploaderLevelButtonLabel:{id:"boxui.unifiedShare.uploaderLevelButtonLabel",defaultMessage:"Invite as Uploader"},uploaderLevelText:{id:"boxui.unifiedShare.uploaderLevelText",defaultMessage:"Uploader"},uploaderLevelDescription:{id:"boxui.unifiedShare.uploaderLevelDescription",defaultMessage:"Upload only"},userCollabText:{id:"boxui.unifiedShare.collaboration.userCollabText",defaultMessage:"User"},groupCollabText:{id:"boxui.unifiedShare.collaboration.groupCollabText",defaultMessage:"Group"},recommendedSharingTooltipCalloutText:{id:"boxui.unifiedShare.recommendedSharingTooltipCalloutText",defaultMessage:"Based on your usage, we think {fullName} would be interested in this file."},justificationSelectPlaceholder:{id:"boxui.unifiedShare.justificationSelectPlaceholder",defaultMessage:"Select Justification"},justificationRequiredError:{id:"boxui.unifiedShare.justificationRequiredError",defaultMessage:"Select a justification or remove people to continue"},restrictedContactsError:{id:"boxui.unifiedShare.restrictedContactsError",defaultMessage:"Remove people to continue"},justifiableContactRestrictionNotice:{id:"boxui.unifiedShare.justifiableContactRestrictionNotice",defaultMessage:"This content requires a business justification to invite {count, plural, one {{count} person} other {{count} people}}. Please select a business justification below."},justifiableContactRestrictionNoticeSingular:{id:"boxui.unifiedShare.justifiableContactRestrictionNoticeSingular",defaultMessage:"This content requires a business justification to invite {email}. Please select a business justification below."},justifiableContactRestrictionRemoveButtonLabel:{id:"boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel",defaultMessage:"Alternatively, remove {count, plural, one {the person} other {{count} people}} and continue"},contactRestrictionNotice:{id:"boxui.unifiedShare.contactRestrictionNotice",defaultMessage:"Invitations cannot be sent to {count, plural, one {{count} person} other {{count} people}} because external collaboration is restricted due to the applied security policy."},contactRestrictionNoticeSingular:{id:"boxui.unifiedShare.contactRestrictionNoticeSingular",defaultMessage:"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy."},contactRestrictionRemoveButtonLabel:{id:"boxui.unifiedShare.contactRestrictionRemoveButtonLabel",defaultMessage:"Remove {count, plural, one {the person} other {{count} people}} and continue"},contactEmailsTooltipText:{id:"boxui.unifiedShare.contactEmailsTooltipText",defaultMessage:"{emails}, and {remainingEmailsCount} more"}});function E(){return(E=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)}var S,O=function(e){var t=e.isEmailLinkSectionExpanded,n=e.showCollaboratorList,r=e.item,i=function(e,t,n){var r=n.name;return e?o.a.createElement(c.a,E({},w.emailModalTitle,{values:{itemName:r}})):t?o.a.createElement(c.a,E({},w.collaboratorListTitle,{values:{itemName:r}})):o.a.createElement(c.a,E({},w.modalTitle,{values:{itemName:r}}))}(t,n,r),a=r.bannerPolicy,s=r.canUserSeeClassification,l=r.classification,u=Object(v.d)(a);return o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"bdl-UnifiedShareModalTitle"},i),s&&o.a.createElement(v.c,{definition:a?a.body:void 0,messageStyle:"tooltip",name:l,color:u,className:"bdl-UnifiedShareModalTitle-classification"}))},k=n(103),C=n.n(k),x=n(486),_=n(53),P=n(159),A=n(26),T=n(4),I=n.n(T);!function(e){e.DEFAULT="default",e.INFO="info",e.WARNING="warning",e.HIGHLIGHT="highlight",e.ERROR="error",e.ALERT="alert",e.SUCCESS="success"}(S||(S={}));n(983);function j(){return(j=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 D(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var L=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.type,a=void 0===i?S.DEFAULT:i,s=D(e,["children","className","type"]),l=I()("badge",a!==S.DEFAULT?"badge-".concat(a):"",o);return r.createElement("span",j({className:l},s),t)},R=Object(g.defineMessages)({beta:{id:"boxui.badges.beta",defaultMessage:"BETA"},trial:{id:"boxui.badges.trial",defaultMessage:"TRIAL"},upgrade:{id:"boxui.badges.upgrade",defaultMessage:"UPGRADE"}});function N(){return(N=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 M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var F=function(e){var t=e.className,n=void 0===t?"":t,o=M(e,["className"]),i=I()("upgrade-badge",n);return r.createElement(L,N({className:i},o),r.createElement(c.a,R.upgrade))},U=n(158),B=n(18),H=n(120),z=n(17),V=n(263),W=n(42),q=n(166),G=n(10),K=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#494949":o,a=e.height,s=void 0===a?14:a,l=e.title,u=e.width,c=void 0===u?14:u;return r.createElement(G.a,{className:"icon-expiration-badge ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("circle",{className:"fill-color",cx:"8",cy:"8",fill:i,r:"8"}),r.createElement("path",{d:"M8,1.5C4.4,1.5,1.5,4.4,1.5,8s2.9,6.5,6.5,6.5s6.5-2.9,6.5-6.5S11.6,1.5,8,1.5z M8,13.5C5,13.5,2.5,11,2.5,8 C2.5,5,5,2.5,8,2.5S13.5,5,13.5,8C13.5,11,11,13.5,8,13.5z",fill:"#FFFFFF"}),r.createElement("polygon",{fill:"#FFFFFF",points:"8.5,8.2 8.5,3.5 7.5,3.5 7.5,8.5 9.7,11.3 10.5,10.7 "}))},X=Object(g.defineMessages)({collaboratorAvatarsLabel:{id:"boxui.collaboratorAvatars.collaboratorAvatarsLabel",defaultMessage:"Shared with"},expirationTooltipText:{id:"boxui.collaboratorAvatars.collaborators.expirationTooltipText",defaultMessage:"Access expires on {date}"},externalCollabTooltipText:{id:"boxui.collaboratorAvatars.collaborators.externalCollabTooltipText",defaultMessage:"{email} is from outside of your company"},manageAllLinkText:{id:"boxui.collaboratorAvatars.manageAllLinkText",defaultMessage:"Manage All"},pendingCollabText:{id:"boxui.collaboratorAvatars.collaboration.pendingCollabText",defaultMessage:"Pending"},viewAdditionalPeopleText:{id:"boxui.collaboratorAvatars.viewAdditionalPeopleText",defaultMessage:"View additional people"}});function Y(){return(Y=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 J(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var $=function(e){var t=e.allowBadging,n=void 0!==t&&t,r=e.expiration,i=e.isExternalCollab,a=void 0!==i&&i,s=e.hasCustomAvatar,l=e.avatarUrl,u=e.name,f=J(e,["allowBadging","expiration","isExternalCollab","hasCustomAvatar","avatarUrl","name"]),d=s&&l?o.a.createElement(q.a,Y({avatarUrl:l,name:u},f,{isExternal:a,shouldShowExternal:n})):o.a.createElement(q.a,Y({name:u||"-"},f,{isExternal:a,shouldShowExternal:n})),p=n&&r&&r.executeAt?o.a.createElement(W.c,{position:"middle-right",text:o.a.createElement(c.a,Y({},X.expirationTooltipText,{values:{date:r.executeAt}}))},o.a.createElement("div",null,o.a.createElement(K,{className:"themed",height:14,width:14}))):null;return o.a.createElement(V.a,{topLeft:p},d)};n(984);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(){return(Z=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 ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oe,ie,ae,se=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(this,ne(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(t,e),n=t,(r=[{key:"isVisible",value:function(){return this.props.collaborators.length>0}},{key:"hasAdditionalCollaborators",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars;return t.length>n}},{key:"collaboratorsOverMaxCount",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars,r=e.maxAdditionalCollaboratorsNum;return t.length-n>r}},{key:"formatAdditionalCollaboratorCount",value:function(){var e=this.props,t=e.maxAdditionalCollaboratorsNum,n=e.maxDisplayedUserAvatars,r=e.collaborators;return this.collaboratorsOverMaxCount()?"".concat(t,"+"):"+".concat(r.length-n)}},{key:"render",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars,r=e.containerAttributes,i=e.onClick;return o.a.createElement(B.a,Z({className:I()("collaborator-avatar-container",{"are-avatars-hidden":!this.isVisible()}),onClick:i},r,{"aria-hidden":this.isVisible()?"false":"true",type:"button"}),o.a.createElement("div",{className:"avatars-label"},o.a.createElement(c.a,X.collaboratorAvatarsLabel)),o.a.createElement("div",{className:"avatars"},this.isVisible()&&t.slice(0,n).map((function(e,t){var n=e.collabID,r=e.imageURL,i=e.hasCustomAvatar,a=e.name;return o.a.createElement($,{key:"collab-avatar-".concat(n),avatarUrl:r,hasCustomAvatar:i,id:t,name:a})}))),this.isVisible()&&this.hasAdditionalCollaborators()&&o.a.createElement("div",{className:"avatars-count"},this.formatAdditionalCollaboratorCount()))}}])&&ee(n.prototype,r),i&&ee(n,i),t}(r.Component);ae={maxDisplayedUserAvatars:3,maxAdditionalCollaboratorsNum:99,containerAttributes:{}},(ie="defaultProps")in(oe=se)?Object.defineProperty(oe,ie,{value:ae,enumerable:!0,configurable:!0,writable:!0}):oe[ie]=ae;var le=se,ue=n(2),ce=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.b:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:"collaboration-badge ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{className:"fill-color",d:"M0 8c0 .62.07 1.23.21 1.824C.47 10.95.975 12 1.682 12.91c.792 1.017 1.82 1.832 2.994 2.37C5.71 15.75 6.837 16 8 16c4.418 0 8-3.582 8-8 0-.26-.21-.47-.47-.47s-.47.21-.47.47c0 3.898-3.162 7.06-7.06 7.06-1.026 0-2.02-.22-2.932-.637-1.035-.473-1.943-1.193-2.642-2.092-.624-.8-1.07-1.727-1.3-2.72C1.003 9.087.94 8.548.94 8 .94 4.102 4.103.94 8 .94c.26 0 .47-.21.47-.47S8.26 0 8 0C3.582 0 0 3.582 0 8z",fill:i}),r.createElement("path",{className:"fill-color",d:"M9 6c0-.552-.448-1-1-1s-1 .448-1 1 .448 1 1 1 1-.448 1-1zM6 6c0-1.105.895-2 2-2s2 .895 2 2-.895 2-2 2-2-.895-2-2zM5.59 11.014c.63-.32 1.354-.514 2.16-.514s1.53.193 2.16.514c.374.19.63.376.75.488.2.188.517.177.706-.024.188-.202.177-.52-.025-.707-.183-.17-.512-.41-.976-.647C9.6 9.733 8.724 9.5 7.75 9.5c-.973 0-1.85.233-2.614.623-.464.236-.793.476-.977.648-.203.19-.214.506-.026.708.19.2.505.212.707.024.12-.112.376-.298.75-.488zM14 2V.498C14 .215 13.776 0 13.5 0c-.268 0-.5.223-.5.498V2h-1.502c-.283 0-.498.224-.498.5 0 .268.223.5.498.5H13v1.502c0 .283.224.498.5.498.268 0 .5-.223.5-.498V3h1.502c.283 0 .498-.224.498-.5 0-.268-.223-.5-.498-.5H14z",fill:i})))},fe=n(33);n(985);function de(){return(de=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)}var pe=function(e){var t=e.index,n=e.trackingProps,r=n.usernameProps,i=n.emailProps,a=e.collaborator,s=a.email,l=a.expiration,u=a.hasCustomAvatar,f=a.name,d=a.type,p=a.imageURL,h=a.isExternalCollab,b=a.profileURL,m=a.translatedRole,y=a.userID,v="group"!==d?o.a.createElement("div",{className:I()("name",d)},o.a.createElement(P.a,de({href:b||"/profile/".concat(y),rel:"noopener",target:"_blank",title:f},r),f)):o.a.createElement("div",{className:I()("name",d)},f),g="group"!==d&&s?o.a.createElement("div",{className:"email"},o.a.createElement(P.a,de({href:"mailto:".concat(s),title:s},i),s)):null;return o.a.createElement("li",null,o.a.createElement("div",{className:"collaborator-list-item"},o.a.createElement("div",{className:"user"},o.a.createElement($,{allowBadging:!0,avatarUrl:p,email:s,expiration:l,hasCustomAvatar:u,id:t,isExternalCollab:h,name:f}),o.a.createElement("div",{className:"info"},v,g)),o.a.createElement("div",{className:"role"},"pending"===d?o.a.createElement(c.a,X.pendingCollabText):m)))};n(986);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(){return(be=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 me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var we=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ye(this,ve(t).apply(this,arguments))}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}(t,e),n=t,(o=[{key:"createCollaboratorPageLink",value:function(e,t){var n=this.props.item,o=n.type,i=n.id,a="/".concat(o,"/").concat(i,"/collaborators/");return r.createElement(P.a,be({href:a,rel:"noopener",target:"_blank"},t),e)}},{key:"render",value:function(){var e=this.props,t=e.collaborators,n=e.onDoneClick,o=e.maxCollaboratorListSize,i=e.trackingProps,a=i.usernameProps,s=i.emailProps,l=i.manageLinkProps,u=i.viewAdditionalProps,f=i.doneButtonProps,d=r.createElement(B.a,{className:"manage-all-btn",type:"button"},r.createElement(c.a,X.manageAllLinkText)),p=Math.min(o,90);return r.createElement("div",{className:"usm-collaborator-list"},r.createElement("div",{className:"manage-all-btn-container"},this.createCollaboratorPageLink(d,l)),r.createElement("ul",{className:"be collaborator-list"},t.slice(0,p).map((function(e,t){var n=e.collabID,o=e.type;return r.createElement(pe,{key:"".concat(n,"-").concat(o),collaborator:e,index:t,trackingProps:{usernameProps:a,emailProps:s}})})),t.length>p&&r.createElement("li",{className:"collaborator-list-item more"},r.createElement("div",null,r.createElement(ce,{height:32,width:32})),r.createElement("div",null,this.createCollaboratorPageLink(r.createElement(c.a,X.viewAdditionalPeopleText),u)))),r.createElement(y.b,null,r.createElement(A.b,be({className:"btn-done",onClick:n},f),r.createElement(c.a,fe.a.done))))}}])&&me(n.prototype,o),i&&me(n,i),t}(r.Component);!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(we,"defaultProps",{maxCollaboratorListSize:90});var Ee=we,Se=n(106),Oe=n(41),ke="peopleWithTheLink",Ce="peopleInThisItem",xe="canEdit",_e="canViewDownload",Pe="canViewOnly",Ae={peopleInThisItem:!0,peopleInYourCompany:!0,peopleWithTheLink:!0},Te=[{default:!1,text:"Co-owner",value:"Co-owner"},{default:!0,text:"Editor",value:"Editor"},{default:!1,text:"Previewer",value:"Previewer"},{default:!1,text:"Previewer Uploader",value:"Previewer Uploader"},{default:!1,text:"Uploader",value:"Uploader"},{default:!1,text:"Viewer",value:"Viewer"},{default:!1,text:"Viewer Uploader",value:"Viewer Uploader"}],Ie=[{default:!0,text:"Editor",value:"Editor"},{default:!1,text:"Viewer",value:"Viewer"}],je=function(e){return e.reduce((function(e,t){return t.default?t.value:e}),"Editor")};function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(e){var t,n=e.inviteePermissionLevel,r=(De(t={},"Editor","folder"===e.itemType?w.editorLevelDescription:w.editorLevelFileDescription),De(t,"Co-owner",w.coownerLevelDescription),De(t,"Viewer Uploader",w.viewerUploaderLevelDescription),De(t,"Previewer Uploader",w.previewerUploaderLevelDescription),De(t,"Viewer",w.viewerLevelDescription),De(t,"Previewer",w.previewerLevelDescription),De(t,"Uploader",w.uploaderLevelDescription),t)[n];return o.a.createElement("small",{className:"usm-menu-description"},o.a.createElement(c.a,r))};function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne=function(e){var t,n,r=e.hasDescription,i=e.inviteePermissionLevel,a=e.itemType,s=(Re(t={},"Editor",w.editorLevelText),Re(t,"Co-owner",w.coownerLevelText),Re(t,"Viewer Uploader",w.viewerUploaderLevelText),Re(t,"Previewer Uploader",w.previewerUploaderLevelText),Re(t,"Viewer",w.viewerLevelText),Re(t,"Previewer",w.previewerLevelText),Re(t,"Uploader",w.uploaderLevelText),t),l=(Re(n={},"Editor",w.editorLevelButtonLabel),Re(n,"Co-owner",w.coownerLevelButtonLabel),Re(n,"Viewer Uploader",w.viewerUploaderLevelButtonLabel),Re(n,"Previewer Uploader",w.previewerUploaderLevelButtonLabel),Re(n,"Viewer",w.viewerLevelButtonLabel),Re(n,"Previewer",w.previewerLevelButtonLabel),Re(n,"Uploader",w.uploaderLevelButtonLabel),n);return r?o.a.createElement("span",null,o.a.createElement("strong",null,o.a.createElement(c.a,s[i])," "),o.a.createElement(Le,{inviteePermissionLevel:i,itemType:a})):o.a.createElement(c.a,l[i])};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(){return(Fe=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 Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var We=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?He(e):t}(this,(e=Be(t)).call.apply(e,[this].concat(o))),Ve(He(n),"onChangeInviteePermissionsLevel",(function(e){var t=n.props,r=t.inviteePermissionLevel,o=t.changeInviteePermissionLevel;r!==e&&o(e)})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ze(e,t)}(t,e),n=t,(r=[{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.inviteePermissionLevel,r=t.inviteePermissions,i=t.itemType,a=je(r),s=n||a;return o.a.createElement(Oe.a,{className:"usm-share-access-menu"},r.map((function(t){return t.value?o.a.createElement(Oe.c,{key:t.value,isDisabled:t.disabled,isSelected:t.value===s,onClick:function(){return e.onChangeInviteePermissionsLevel(t.value)}},o.a.createElement(Ne,{hasDescription:!0,inviteePermissionLevel:t.value,inviteePermissions:!0,itemType:i})):null})))}},{key:"render",value:function(){var e=this.props,t=e.inviteePermissions,n=e.inviteePermissionsButtonProps,r=e.inviteePermissionLevel,i=e.disabled,a=e.itemType,s=je(t),l=r||s,u=a===H.b?o.a.createElement(c.a,w.inviteDisabledWeblinkTooltip):o.a.createElement(c.a,w.inviteDisabledTooltip),f=o.a.createElement(B.a,Fe({className:I()("lnk",{"is-disabled":i,"bdl-is-disabled":i}),disabled:i},n),o.a.createElement(Se.a,null,l&&o.a.createElement(Ne,{hasDescription:!1,inviteePermissionLevel:l,itemType:a}))),d=i?o.a.createElement(z.c,{position:"bottom-center",text:u},o.a.createElement("div",{className:"tooltip-target"},f)):f;return o.a.createElement("div",{className:"be invitee-menu-wrap"},o.a.createElement(Se.b,null,d,this.renderMenu()))}}])&&Ue(n.prototype,r),i&&Ue(n,i),t}(r.Component);Ve(We,"defaultProps",{disabled:!1,inviteePermissions:[],inviteePermissionsButtonProps:{}});var qe=We,Ge=n(532),Ke=n(23),Xe=n.n(Ke),Ye=n(336);n(987);function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function Qe(){return(Qe=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 Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e,t){return(nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot=r.createElement(c.a,fe.a.copy),it=r.createElement(c.a,fe.a.copied),at=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Je(t)&&"function"!=typeof t?tt(e):t}(this,et(t).call(this,e)),rt(tt(n),"copySelectedText",(function(){return document.execCommand("copy")})),rt(tt(n),"restoreCopyButton",(function(){n.setState({copySuccess:!1,buttonText:n.props.buttonDefaultText})})),rt(tt(n),"handleCopyButtonClick",(function(){n.performAutofocus(),n.copySelectedText(),n.animateCopyButton()})),rt(tt(n),"handleFocus",(function(e){n.copyInputRef&&n.performAutofocus(),n.props.onFocus&&n.props.onFocus(e)})),rt(tt(n),"handleCopyEvent",(function(e){n.animateCopyButton();var t=n.props.onCopySuccess;t&&t(e)})),rt(tt(n),"performAutofocus",(function(){var e=tt(n).copyInputRef;e&&(e.select(),e.scrollLeft=0)})),rt(tt(n),"renderCopyButton",(function(){return n.isCopyCommandSupported?r.createElement(A.b,Qe({isDisabled:n.props.disabled,onClick:n.handleCopyButtonClick,type:"button"},n.props.buttonProps),n.state.buttonText):null})),n.isCopyCommandSupported=document.queryCommandSupported("copy"),n.state={copySuccess:!1,buttonText:e.buttonDefaultText,hasFocused:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.value;t&&n&&this.performAutofocus()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.autofocus,n=e.value,r=e.triggerCopyOnLoad,o=this.state,i=o.copySuccess,a=o.hasFocused;t&&n&&this.performAutofocus(),!r||i||a||this.animateCopyButton()}},{key:"componentWillUnmount",value:function(){this.clearCopySuccessTimeout()}},{key:"animateCopyButton",value:function(){var e=this,t=this.props,n=t.successStateDuration,r=t.buttonSuccessText;this.clearCopySuccessTimeout(),this.setState({copySuccess:!0,buttonText:r,hasFocused:!0},(function(){e.copySuccessTimeout=setTimeout((function(){e.restoreCopyButton()}),n)}))}},{key:"clearCopySuccessTimeout",value:function(){this.copySuccessTimeout&&(clearTimeout(this.copySuccessTimeout),this.copySuccessTimeout=null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=$e(t,["className"]),i=this.state.copySuccess,a=this.isCopyCommandSupported,s=Xe()(o,["autofocus","buttonDefaultText","buttonSuccessText","buttonProps","onCopySuccess","successStateDuration","triggerCopyOnLoad"]);a&&(s.inputRef=function(t){e.copyInputRef=t});var l=I()(n,{"copy-success":i,"text-input-with-copy-button-container":a}),u=a?{onCopy:this.handleCopyEvent}:{};return r.createElement("div",Qe({className:l},u),r.createElement(Ye.a,Qe({},s,{onFocus:this.handleFocus})),this.renderCopyButton())}}])&&Ze(n.prototype,o),i&&Ze(n,i),t}(r.PureComponent);rt(at,"defaultProps",{buttonDefaultText:ot,buttonProps:{},buttonSuccessText:it,className:"",hideOptionalLabel:!0,readOnly:!0,successStateDuration:3e3,type:"text"});var st=at,lt=n(314),ut=n(30),ct=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.l:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:"icon-mail ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{className:"fill-color",fill:i,fillRule:"evenodd",d:"M14 3H2c-.6 0-1 .4-1 1v9c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V4c0-.6-.5-1-1-1zM8 8.5L2.8 4h10.5L8 8.5zm6 4.5H2V4.7l5.7 4.8.3.3.3-.3L14 4.7V13z"}))},ft=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.j:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:I()("bdl-IconClock",n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{className:"fill-color",fill:i,d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"}),r.createElement("path",{className:"fill-color",fill:i,d:"M8 2.5a.5.5 0 0 1 .5.5v4.486l3.208 1.687a.5.5 0 0 1 .244.592l-.034.083a.5.5 0 0 1-.676.21L7.767 8.23a.5.5 0 0 1-.267-.442V3a.5.5 0 0 1 .5-.5z"}))},dt=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.j:o,a=e.height,s=void 0===a?20:a,l=e.title,u=e.width,c=void 0===u?20:u;return r.createElement(G.a,{className:"icon-globe ".concat(n),height:s,title:l,viewBox:"0 0 20 20",width:c},r.createElement("g",null,r.createElement("path",{d:"M10 0A9.98 9.98 0 0 0 0 10a9.98 9.98 0 0 0 10 10 9.98 9.98 0 0 0 10-10A9.98 9.98 0 0 0 10 0z",fill:ue.z}),r.createElement("path",{className:"fill-color",d:"M10 0A9.98 9.98 0 0 0 0 10a9.98 9.98 0 0 0 10 10 9.98 9.98 0 0 0 10-10A9.98 9.98 0 0 0 10 0zM8.923 18C5.077 17.385 2 14.154 2 10c0-.615.154-1.23.154-1.846l4.77 4.77V14c0 1.077.922 2 2 2v2zm6.923-2.615C15.538 14.615 14.77 14 14 14h-1.077v-3.077c0-.461-.308-.923-.923-.923H6V8h2c.615 0 1.077-.462 1.077-1.077V5.077h2c1.077 0 2-.923 2-2v-.462C16 3.846 18 6.615 18 10c0 2.154-.77 4-2.154 5.385z",fill:i})))},pt=n(21),ht=n(57);var bt=function(e){return{allowed_shared_link_access_levels:void 0,content_created_at:void 0,content_modified_at:void 0,created_at:void 0,created_by:void 0,description:e.description,download_url:void 0,extension:e.extension,file_version:void 0,has_collaborations:void 0,id:String(e.id),interacted_at:void 0,is_download_available:void 0,is_externally_owned:void 0,item_collection:void 0,metadata:void 0,modified_at:void 0,modified_by:void 0,name:e.name,owned_by:void 0,parent:void 0,path_collection:void 0,permissions:void 0,restored_from:void 0,selected:void 0,shared_link:void 0,size:void 0,type:e.type,url:void 0,version_number:void 0}};function mt(){return(mt=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)}var yt=function(e){var t,n=e.accessLevel,r=e.enterpriseName,i=e.itemType;switch(n){case ke:t=w.peopleWithLinkDescription;break;case"peopleInYourCompany":t="folder"===i?r?w.peopleInSpecifiedCompanyCanAccessFolder:w.peopleInCompanyCanAccessFolder:r?w.peopleInSpecifiedCompanyCanAccessFile:w.peopleInCompanyCanAccessFile;break;case Ce:t="folder"===i?w.peopleInItemCanAccessFolder:w.peopleInItemCanAccessFile;break;default:return null}return o.a.createElement("small",{className:"usm-menu-description"},o.a.createElement(c.a,mt({},t,{values:{company:r}})))};function vt(){return(vt=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 gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt=function(e){var t,n,o=e.accessLevel,i=e.enterpriseName,a=e.hasDescription,s=e.itemType,l=(gt(t={},ke,"peopleWithTheLinkText"),gt(t,"peopleInYourCompany",""===i?"peopleInYourCompany":"peopleInEnterpriseName"),gt(t,Ce,"folder"===s?"peopleInThisFolder":"peopleInThisFile"),t);return o?(n=l[o],a?r.createElement("span",null,r.createElement("strong",null,r.createElement(c.a,vt({},w[n],{values:{enterpriseName:i}}))),r.createElement(yt,{accessLevel:o,enterpriseName:i,itemType:s})):r.createElement(c.a,vt({},w[n],{values:{enterpriseName:i}}))):null};function Et(e){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(){return(St=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 Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt=[ke,"peopleInYourCompany",Ce],At=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Et(t)&&"function"!=typeof t?Ct(e):t}(this,(e=kt(t)).call.apply(e,[this].concat(o))),_t(Ct(n),"onChangeAccessLevel",(function(e){var t=n.props,r=t.accessLevel,o=t.changeAccessLevel,i=t.trackingProps.onChangeSharedLinkAccessLevel;r!==e&&(o(e),i&&i(e))})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}(t,e),n=t,(o=[{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.accessLevel,o=t.accessLevelsDisabledReason,i=t.allowedAccessLevels,a=t.enterpriseName,s=t.itemType;return r.createElement(Oe.a,{className:"usm-share-access-menu","data-testid":"usm-share-access-menu"},Pt.map((function(t){var l=!i[t],u="access_policy"===o[t],f="malicious_content"===o[t],d=u||f,p=f?w.disabledMaliciousContentShareLinkPermission:w.disabledShareLinkPermission;return l&&!d?null:r.createElement(z.c,{isDisabled:!d,key:"tooltip-".concat(t),position:"top-center",text:r.createElement(c.a,p)},r.createElement(Oe.c,{key:t,isDisabled:l,isSelected:t===n,onClick:function(){return e.onChangeAccessLevel(t)}},r.createElement(wt,{accessLevel:t,enterpriseName:a,hasDescription:!0,itemType:s})))})))}},{key:"render",value:function(){var e=this.props,t=e.accessLevel,n=e.enterpriseName,o=e.itemType,i=e.onDismissTooltip,a=e.submitting,s=e.tooltipContent,l=e.trackingProps,u=l.onSharedLinkAccessMenuOpen,c=l.sharedLinkAccessMenuButtonProps;return r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!!s,onDismiss:i,position:"middle-left",showCloseButton:!0,text:s,theme:"callout"},r.createElement(Se.b,{onMenuOpen:u,constrainToWindow:!0},r.createElement(B.a,St({className:I()("lnk",{"is-disabled":a,"bdl-is-disabled":a}),"data-testid":"usm-share-access-toggle",disabled:a},c),r.createElement(Se.a,null,r.createElement(wt,{accessLevel:t,enterpriseName:n,hasDescription:!1,itemType:o}))),this.renderMenu()))}}])&&Ot(n.prototype,o),i&&Ot(n,i),t}(r.Component);_t(At,"defaultProps",{accessLevelsDisabledReason:{},allowedAccessLevels:{},trackingProps:{}});var Tt=At,It=n(55);n(988);function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(){return(Dt=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 Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ut=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==jt(t)&&"function"!=typeof t?Nt(e):t}(this,(e=Rt(t)).call.apply(e,[this].concat(o))),Ft(Nt(n),"onChangePermissionLevel",(function(e){var t=n.props,r=t.changePermissionLevel,o=t.permissionLevel,i=t.trackingProps.onChangeSharedLinkPermissionLevel;o!==e&&(r(e),i&&i(e))})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.allowedPermissionLevels,i=n.isSharedLinkEditTooltipShown,a=n.permissionLevel,s=n.sharedLinkEditTagTargetingApi,l=n.sharedLinkEditTooltipTargetingApi,u=n.submitting,f=n.trackingProps.sharedLinkPermissionsMenuButtonProps,d=!!s&&s.canShow,p=!!l&&l.canShow;if(!a)return null;var h=(Ft(e={},xe,{label:o.a.createElement(c.a,w.sharedLinkPermissionsEdit)}),Ft(e,_e,{label:o.a.createElement(c.a,w.sharedLinkPermissionsViewDownload)}),Ft(e,Pe,{label:o.a.createElement(c.a,w.sharedLinkPermissionsViewOnly)}),e);return o.a.createElement(Se.b,{constrainToWindow:!0,onMenuClose:function(){r.includes(xe)&&d&&s&&s.onComplete()},onMenuOpen:function(){r.includes(xe)&&d&&s&&s.onShow(),i&&p&&l&&l.onComplete()}},o.a.createElement(B.a,Dt({className:I()("lnk",{"is-disabled":u,"bdl-is-disabled":u}),"data-testid":"usm-share-permissions-toggle",disabled:u},f),o.a.createElement(Se.a,null,h[a].label)),o.a.createElement(Oe.a,{className:"ums-share-permissions-menu","data-testid":"usm-share-permissions-menu"},r.map((function(e){return o.a.createElement(Oe.c,{key:e,isSelected:e===a,onClick:function(){return t.onChangePermissionLevel(e)}},o.a.createElement("div",{className:"ums-share-permissions-menu-item"},o.a.createElement("span",null,h[e].label),e===xe&&d&&o.a.createElement(It.a.Pill,{className:"ftux-editable-shared-link",type:"ftux"},o.a.createElement(It.a.Text,null,o.a.createElement(c.a,w.ftuxSharedLinkPermissionsEditTag)))))}))))}}])&&Lt(n.prototype,r),i&&Lt(n,i),t}(r.Component);Ft(Ut,"defaultProps",{trackingProps:{}});var Bt=Ut;function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(){return(zt=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 Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(e,t){return(Gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ht(t)&&"function"!=typeof t?qt(e):t}(this,Wt(t).call(this,e)),Kt(qt(n),"canAddSharedLink",(function(e,t){return!e&&t})),Kt(qt(n),"canRemoveSharedLink",(function(e,t){return e&&t})),Kt(qt(n),"getAllowedPermissionLevels",(function(){var e=n.props,t=e.isAllowEditSharedLinkForFileEnabled,r=e.sharedLink,o=r.canChangeAccessLevel,i=r.isEditSettingAvailable,a=r.isDownloadSettingAvailable,s=r.permissionLevel,l=[xe,_e,Pe];return o||(l=l.filter((function(e){return e===s}))),a||(l=l.filter((function(e){return e!==_e}))),i&&t||(l=l.filter((function(e){return e!==xe}))),l})),n.state={isAutoCreatingSharedLink:!1,isCopySuccessful:null,isSharedLinkEditTooltipShown:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gt(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.sharedLink,n=e.autoCreateSharedLink,r=e.addSharedLink,o=e.submitting;!n||this.state.isAutoCreatingSharedLink||!t||t.url||o||t.isNewSharedLink||(this.setState({isAutoCreatingSharedLink:!0}),r())}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.sharedLink,o=n.autoCreateSharedLink,i=n.addSharedLink,a=n.sharedLinkEditTooltipTargetingApi,s=n.submitting,l=n.triggerCopyOnLoad,u=n.onCopyError,c=void 0===u?function(){}:u,f=n.onCopySuccess,d=void 0===f?function(){}:f,p=n.onCopyInit,h=void 0===p?function(){}:p,b=this.state,m=b.isAutoCreatingSharedLink,y=b.isCopySuccessful,v=b.isSharedLinkEditTooltipShown;!o||m||r.url||s||r.isNewSharedLink||(this.setState({isAutoCreatingSharedLink:!0}),i()),!e.sharedLink.url&&r.url&&(this.setState({isAutoCreatingSharedLink:!1}),this.toggleRef&&this.toggleRef.focus()),ht.a.canWriteToClipboard()&&l&&!m&&r.url&&null===y&&(h(),navigator.clipboard.writeText(r.url).then((function(){t.setState({isCopySuccessful:!0}),d()})).catch((function(){t.setState({isCopySuccessful:!1}),c()}))),this.getAllowedPermissionLevels().includes(xe)&&a&&a.canShow&&!v&&((0,a.onShow)(),this.setState({isSharedLinkEditTooltipShown:!0}))}},{key:"renderSharedLink",value:function(){var e=this.props,t=e.autofocusSharedLink,n=e.changeSharedLinkAccessLevel,o=e.changeSharedLinkPermissionLevel,i=e.config,a=e.item,s=e.itemType,l=e.intl,f=e.onDismissTooltip,d=e.onEmailSharedLinkClick,p=e.sharedLink,h=e.sharedLinkEditTagTargetingApi,b=e.sharedLinkEditTooltipTargetingApi,m=e.submitting,y=e.trackingProps,v=e.triggerCopyOnLoad,g=e.tooltips,E=this.state,S=E.isCopySuccessful,O=E.isSharedLinkEditTooltipShown,k=p.accessLevel,C=p.accessLevelsDisabledReason,x=p.allowedAccessLevels,_=p.canChangeAccessLevel,P=p.enterpriseName,T=p.isEditAllowed,I=p.permissionLevel,j=p.url,D=y.copyButtonProps,L=y.onChangeSharedLinkAccessLevel,R=y.onChangeSharedLinkPermissionLevel,N=y.onSharedLinkAccessMenuOpen,M=y.onSharedLinkCopy,F=void 0===M?u.a:M,U=y.sendSharedLinkButtonProps,H=y.sharedLinkAccessMenuButtonProps,V=y.sharedLinkPermissionsMenuButtonProps,W=!!v&&!!S,q=i&&!1===i.showEmailSharedLinkForm,G=Object(pt.d)(bt(a))&&T,K=this.getAllowedPermissionLevels();return r.createElement(r.Fragment,null,r.createElement("div",{className:"shared-link-field-row"},r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!!g["shared-link-copy-button"],onDismiss:function(){return f("shared-link-copy-button")},position:"middle-right",showCloseButton:!0,text:g["shared-link-copy-button"],theme:"callout"},r.createElement(st,{"aria-label":l.formatMessage(w.sharedLinkURLLabel),autofocus:t,buttonProps:D,className:"shared-link-field-container",disabled:m,label:"",onCopySuccess:function(){return F(I)},triggerCopyOnLoad:W,type:"url",value:j})),!q&&r.createElement(z.c,{position:"top-left",text:r.createElement(c.a,w.sendSharedLink)},r.createElement(A.b,zt({"aria-label":l.formatMessage(w.sendSharedLink),className:"email-shared-link-btn",isDisabled:m,onClick:d,type:"button"},U),r.createElement(ct,null)))),r.createElement("div",{className:"shared-link-access-row"},r.createElement(Tt,{accessLevel:k,accessLevelsDisabledReason:C,allowedAccessLevels:x,changeAccessLevel:n,enterpriseName:P,itemType:s,onDismissTooltip:function(){return f("shared-link-access-menu")},tooltipContent:g["shared-link-access-menu"]||null,submitting:m,trackingProps:{onChangeSharedLinkAccessLevel:L,onSharedLinkAccessMenuOpen:N,sharedLinkAccessMenuButtonProps:H}}),!G&&k!==Ce&&r.createElement(Ge.a,{isShown:K.includes(xe)&&(null==b?void 0:b.canShow),title:l.formatMessage(w.ftuxEditPermissionTooltipTitle),body:l.formatMessage(w.ftuxEditPermissionTooltipBody),onDismiss:function(){b&&(0,b.onClose)()},position:"bottom-center"},r.createElement(Bt,{allowedPermissionLevels:K,canChangePermissionLevel:_,changePermissionLevel:o,isSharedLinkEditTooltipShown:O,permissionLevel:I,sharedLinkEditTagTargetingApi:h,sharedLinkEditTooltipTargetingApi:b,submitting:m,trackingProps:{onChangeSharedLinkPermissionLevel:R,sharedLinkPermissionsMenuButtonProps:V}})),G&&r.createElement(z.c,{text:r.createElement(c.a,w.sharedLinkPermissionsEditTooltip)},r.createElement(B.a,{isDisabled:!0,className:"can-edit-btn"},r.createElement(c.a,w.sharedLinkPermissionsEdit)))),k===ke&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement(dt,{height:12,width:12})),I===xe?r.createElement(c.a,zt({"data-testid":"shared-link-editable-publicly-available-message"},w.sharedLinkEditablePubliclyAvailable)):r.createElement(c.a,zt({"data-testid":"shared-link-publicly-available-message"},w.sharedLinkPubliclyAvailable))),"peopleInYourCompany"===k&&I===xe&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement(dt,{height:12,width:12})),r.createElement(c.a,zt({"data-testid":"shared-link-elevated-editable-company-available-message"},w.sharedLinkElevatedEditableCompanyAvailable))))}},{key:"renderSharedLinkSettingsLink",value:function(){var e=this.props,t=e.intl,n=e.onDismissTooltip,o=e.onSettingsClick,i=e.showSharedLinkSettingsCallout,a=e.trackingProps,s=e.tooltips,l=a.sharedLinkSettingsButtonProps;return r.createElement("div",{className:"shared-link-settings-btn-container"},r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!!s["shared-link-settings"]||i,onDismiss:function(){return n("shared-link-settings")},position:"middle-right",showCloseButton:!0,text:s["shared-link-settings"]||r.createElement(c.a,w.sharedLinkSettingsCalloutText),theme:"callout"},r.createElement(B.a,zt({},l,{"aria-label":t.formatMessage(w.settingsButtonLabel),className:"shared-link-settings-btn",onClick:o,type:"button"}),r.createElement(c.a,w.sharedLinkSettings))))}},{key:"renderToggle",value:function(){var e,t=this,n=this.props,o=n.item,i=n.onDismissTooltip,a=n.onToggleSharedLink,s=n.sharedLink,l=n.submitting,u=n.tooltips,f=s.canChangeAccessLevel,d=s.expirationTimestamp,p=!!s.url,h=this.canAddSharedLink(p,o.grantedPermissions.itemShare),b=this.canRemoveSharedLink(p,f),m=(h||b)&&!l;p?(e=r.createElement(c.a,w.linkShareOn),d&&0!==d&&(e=r.createElement("span",null,r.createElement(c.a,w.linkShareOn),r.createElement(z.c,{position:"top-center",text:r.createElement(c.a,zt({},w.sharedLinkExpirationTooltip,{values:{expiration:Object(ut.e)(d)}}))},r.createElement("span",{className:"shared-link-expiration-badge"},r.createElement(ft,{color:ue.u})))))):e=r.createElement(c.a,w.linkShareOff);var y=r.createElement("div",{className:"share-toggle-container"},r.createElement(lt.a,{isDisabled:!m,isOn:p,label:e,name:"toggle",onChange:a,ref:function(e){t.toggleRef=e}}));if(!l){if(h){var v=u["shared-link-toggle"];return v?r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!0,onDismiss:function(){return i("shared-link-toggle")},position:"middle-left",showCloseButton:!0,text:v,theme:"callout"},y):r.createElement(z.c,{position:"top-right",text:r.createElement(c.a,w.sharedLinkDisabledTooltipCopy)},y)}if(!m){var g=p?w.removeLinkTooltip:w.disabledCreateLinkTooltip;return r.createElement(z.c,{className:"usm-disabled-message-tooltip",position:"top-right",text:r.createElement(c.a,g)},y)}}return y}},{key:"render",value:function(){var e=this.props,t=e.sharedLink,n=e.onSettingsClick,o=!!t.url;return r.createElement("div",{className:"be"},r.createElement("hr",{className:"bdl-SharedLinkSection-separator"}),r.createElement("label",null,r.createElement("span",{className:"label bdl-Label"},r.createElement(c.a,w.sharedLinkSectionLabel))),r.createElement("div",{className:"shared-link-toggle-row"},this.renderToggle(),o&&n&&this.renderSharedLinkSettingsLink()),o&&this.renderSharedLink())}}])&&Vt(n.prototype,o),i&&Vt(n,i),t}(r.Component);Kt(Xt,"defaultProps",{trackingProps:{},autoCreateSharedLink:!1});var Yt=Xt,Jt=n(264),$t=n.n(Jt),Qt=n(953),Zt=n.n(Qt),en=n(533),tn=n(95),nn=n(482),rn=n(7),on=n.n(rn),an=n(118);var sn=function(e){return e.map((function(e){var t=e.displayText,n=e.value;return r.createElement(an.a,{key:n},t)}))};var ln=function(e,t,n){return e.filter(function(e){var t=Array.isArray(e)?e:[];return function(e){return!t.find((function(t){return C()(t,e)}))}}(t)).filter(function(e){var t=e||"";return function(e){return e.displayText.toLowerCase().includes(t.toLowerCase())}}(n))},un=n(954),cn=n.n(un),fn=n(955),dn=n.n(fn),pn=n(485);var hn=function(e,t,n){var r;return r=Object(pn.a)(e).map((function(e){var n=e.replace(/\s/g,""),r=dn()(n),o=new RegExp("^".concat(r,"$"),"i");return t.find((function(e){var t=e.displayText,n=e.value;return(o.test(t.replace(/\s|,/g,""))||o.test(String(n)))}))||{displayText:e,value:e}})),r=(r=cn()(r,(function(e){return e.value}))).filter((function(e){return!n.some((function(t){return e.value===t.value}))}))};function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sn=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?gn(e):t}(this,(e=vn(t)).call.apply(e,[this].concat(o))),En(gn(n),"state",{inputText:""}),En(gn(n),"handleBlur",(function(e){var t=n.props.field,r=t.name;(0,t.onBlur)(e||n.createFakeEventTarget(r))})),En(gn(n),"handleInput",(function(e,t){var r=n.props.onInput;n.setState({inputText:e}),r(e,t),""===e&&n.handleBlur(t)})),En(gn(n),"handleSelect",(function(e){var t=n.props.field,r=t.name,o=t.onChange,i=t.value,a=void 0===i?[]:i,s=e.filter((function(e){return n.isValidOption(e)}));o(n.createFakeEventTarget(r,[].concat(mn(a),mn(s))))})),En(gn(n),"handleRemove",(function(e,t){var r=n.props.field,o=r.name,i=r.onChange,a=r.value,s=(void 0===a?[]:a).slice();s.splice(t,1),i(n.createFakeEventTarget(o,s))})),En(gn(n),"handleParseItems",(function(e){var t=n.props,r=t.field,o=t.inputParser,i=t.options,a=r.value;return o(e,i,void 0===a?[]:a)})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),n=t,(o=[{key:"isValidOption",value:function(e){return!!e.displayText.trim()}},{key:"createFakeEventTarget",value:function(e,t){return{target:{name:e,value:t}}}},{key:"render",value:function(){var e=this.state.inputText,t=this.props,n=t.className,o=t.dropdownFilter,i=t.dropdownRenderer,a=t.dropdownScrollBoundarySelector,s=t.field,l=t.form,u=t.isCustomInputAllowed,c=t.isDisabled,f=t.label,d=t.options,p=t.placeholder,h=t.shouldClearUnmatchedInput,b=t.validator,m=s.name,y=s.value,v=void 0===y?[]:y,g=l.errors,w=l.touched,E=on()(w,m)?on()(g,m):null,S=o(d,v,e),O={name:m};return r.createElement(nn.a,{allowCustomPills:u,allowInvalidPills:!0,className:n,disabled:c,dropdownScrollBoundarySelector:a,inputProps:O,label:f,error:E,onBlur:this.handleBlur,onInput:this.handleInput,onRemove:this.handleRemove,onSelect:this.handleSelect,parseItems:this.handleParseItems,placeholder:p,selectedOptions:v,selectorOptions:S,shouldClearUnmatchedInput:h,shouldSetActiveItemOnOpen:!0,validator:b},i(S))}}])&&yn(n.prototype,o),i&&yn(n,i),t}(r.PureComponent);En(Sn,"defaultProps",{dropdownFilter:ln,dropdownRenderer:sn,inputParser:hn,isCustomInputAllowed:!0,isDisabled:!1,onInput:u.a,options:[],shouldClearUnmatchedInput:!1});var On=n(949),kn=n.n(On),Cn=n(948),xn=n.n(Cn);function _n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Pn,An,Tn,In=["AMAZON","CPA","LLP","MUSIC","SPA","XN--4DBRK0CE","XN--CCKWCXETD","XN--JLQ480N2RG","XN--MGBCPQ6GPA1A","XN--Q7CE6A","ZW"],jn=function(e){return kn.a.email.isValid(e,{tlds:{allow:new Set([].concat(_n(xn.a),_n(In.map((function(e){return e.toLowerCase()})))))}})},Dn=n(528);n(1007);function Ln(){return(Ln=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 Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=(Rn(Tn={},"restrictionJustificationEnabled",(Rn(Pn={},"singleContact",w.justifiableContactRestrictionNoticeSingular),Rn(Pn,"multipleContacts",w.justifiableContactRestrictionNotice),Pn)),Rn(Tn,"restrictionJustificationDisabled",(Rn(An={},"singleContact",w.contactRestrictionNoticeSingular),Rn(An,"multipleContacts",w.contactRestrictionNotice),An)),Tn),Mn=function(e){var t=e.error,n=e.intl,o=e.isFetchingJustificationReasons,i=e.isRestrictionJustificationEnabled,a=e.justificationReasons,s=e.onRemoveRestrictedExternalContacts,l=e.onSelectJustificationReason,u=e.restrictedExternalEmails,f=e.selectedContacts,d=e.selectedJustificationReason,p=f.filter((function(e){var t=e.value;return u.includes(t)})),h=p.length;if(!h)return null;var m=p[0].value,y=on()(d,"value",null),v=!!t,g=i?"restrictionJustificationEnabled":"restrictionJustificationDisabled",E=1===h?"singleContact":"multipleContacts",S=i?w.justifiableContactRestrictionRemoveButtonLabel:w.contactRestrictionRemoveButtonLabel,O=Nn[g][E],k=o?r.createElement(b.b,{className:"bdl-ContactRestrictionNotice-loadingIndicator"}):r.createElement(Dn.a,{options:a,onChange:l,placeholder:n.formatMessage(w.justificationSelectPlaceholder),selectedValue:y});return r.createElement(z.c,{text:t,isShown:v,position:"middle-right",theme:"error"},r.createElement(U.a,{className:"bdl-ContactRestrictionNotice","data-resin-component":"contactRestrictionNotice",type:"error"},r.createElement(c.a,Ln({},O,{values:{count:h,email:m}}))," ",i&&k,r.createElement(B.a,{className:"bdl-ContactRestrictionNotice-removeBtn",onClick:s},r.createElement(c.a,Ln({},S,{values:{count:h}})))))};Mn.displayName="ContactRestrictionNotice",Mn.defaultProps={justificationReasons:[],onRemoveRestrictedExternalContacts:u.a,onSelectJustificationReason:u.a};var Fn=Object(m.c)(Mn),Un=n(99),Bn=n.n(Un),Hn=n(525),zn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;if(!t)return!1;var o=t.toLowerCase().replace(/\s/g,""),i=e.toLowerCase().replace(/\s/g,""),a=o.length,s=i.length;if(s<n||s>a)return!1;for(var l=!1,u=0,c=0;c<a&&!(a-c<s);c+=1){for(var f=0,d=0,p=0,h=c;h<a;h+=1)o[h]===i[f]?(f+=1,d+=1+d):d=0,p+=d;if(f!==s)break;p>u&&(u=p)}if(u>0){var b=Math.min(r,s),m=Math.max(b*Math.pow(2,Math.floor(s/b-1)),s+1);l=u>=m}return l};function Vn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Wn(e,t){return t.userScore-e.userScore}var qn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=new Set(e.map((function(e){return e.id.toString()}))),s=Object.values(t),l=s.filter((function(e){return e.id&&a.has(e.id.toString())})),u=l.map((function(e){return e.id.toString()})),c=l.length>=r?[]:s.filter((function(e){if(!n||u.includes(e.id.toString()))return!1;var t=zn(n,e.name,o,i),r=e.email||"",a=r.substring(0,r.indexOf("@")),s=n.length>=o&&a.includes(n);return t||s})),f=[].concat(Vn(l.sort(Wn)),Vn(c.sort(Wn))).slice(0,r),d=f.map((function(e){return e.id}));return[f,e.filter((function(e){return!d.includes(e.id)}))]};var Gn=function(e,t,n){return!!(n&&t&&e)&&n.split("@")[1]!==t},Kn=function(e){if(null==e)return[];var t=e.match(/[^\s[<(]+@[^\s<>@,/\\]+\.[^\s<>,;)]+/gi);return t?t.map((function(e){for(e=e.trim();e.length>=2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1);)e=e.substr(1,e.length-2);return e})):[]};function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function er(e,t){return(er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=function(e,t){return e&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},rr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Xn(t)&&"function"!=typeof t?Zn(e):t}(this,Qn(t).call(this,e)),tr(Zn(n),"addSuggestedContacts",(function(e){var t=n.props.suggestedCollaborators,r=void 0===t?{}:t,o=n.state.pillSelectorInputValue,i=Jn(qn(e,r,o),2),a=i[0],s=i[1];return n.setState({numSuggestedShowing:a.length}),[].concat(Yn(a),Yn(s))})),tr(Zn(n),"filterContacts",(function(e){var t=n.state.pillSelectorInputValue,r=n.props,o=r.selectedContacts,i=r.suggestedCollaborators;if(t&&e){var a=e.filter((function(e){var n=e.name,r=e.email;return nr(n,t)||nr(r,t)})).filter((function(e){var t=e.email,n=e.id;return!o.find((function(e){var r=e.value;return r===t||r===n}))}));return i&&(a=n.addSuggestedContacts(a)),a.map((function(e){var t=e.email,n=e.id;return{email:t,id:n,isExternalUser:e.isExternalUser,text:e.name,type:e.type,value:t||n}}))}return[]})),tr(Zn(n),"getContactsPromise",(function(e){return n.props.getContacts(e).then((function(e){var t=n.filterContacts(e);n.setState({contacts:t})})).catch((function(e){if(!e.isCanceled)throw e}))})),tr(Zn(n),"debouncedGetContacts",Bn()(n.getContactsPromise,200)),tr(Zn(n),"handleParseItems",(function(e){var t=n.props.validator;return Kn(e).filter((function(e){return t(e)}))})),tr(Zn(n),"handlePillSelectorInput",(function(e){var t=n.props.onInput,r=e.trim();n.setState({pillSelectorInputValue:r}),t&&t(e),r?n.debouncedGetContacts(r):n.setState({contacts:[]})})),n.state={contacts:[],numSuggestedShowing:0,pillSelectorInputValue:""},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&er(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.error,o=e.fieldRef,i=e.getContactAvatarUrl,a=e.getPillClassName,s=e.intl,l=e.label,f=e.onContactAdd,d=e.onContactRemove,p=e.onPillCreate,h=e.selectedContacts,b=e.showContactAvatars,m=e.validateForError,y=e.validator,v=this.state,g=v.contacts,E=v.numSuggestedShowing,S=r.createElement(c.a,w.groupLabel),O=E>0,k=I()({scrollable:g.length>5});return r.createElement(nn.a,{allowCustomPills:!0,allowInvalidPills:!0,className:k,dividerIndex:O?E:void 0,disabled:t,error:n,getPillClassName:a,getPillImageUrl:i,inputProps:{autoFocus:!0,onChange:u.a},label:l,onInput:this.handlePillSelectorInput,onRemove:d,onSelect:f,onPillCreate:p,overlayTitle:O?s.formatMessage(w.suggestedCollabsTitle):void 0,parseItems:this.handleParseItems,placeholder:s.formatMessage(fe.a.pillSelectorPlaceholder),ref:o,selectedOptions:h,showRoundedPills:!0,selectorOptions:g,validateForError:m,validator:y},g.map((function(e){var t=e.email,n=e.isExternalUser,o=e.text,a=void 0===o?null:o,s=e.id;return r.createElement(Hn.a,{getContactAvatarUrl:i,key:s,id:s,isExternal:n,name:a,subtitle:t||S,title:a,showAvatar:b})})))}}])&&$n(n.prototype,o),i&&$n(n,i),t}(r.Component);tr(rr,"defaultProps",{showContactAvatars:!1});var or=Object(m.c)(rr),ir=function(e,t){return!!t.length&&e.some((function(e){var n=e.value;return t.includes(n)}))};function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sr(){return(sr=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 lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ur(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pr(e,t){return(pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==ar(t)&&"function"!=typeof t?dr(e):t}(this,fr(t).call(this,e)),hr(dr(n),"contactsFieldRef",r.createRef()),hr(dr(n),"handleContactAdd",(function(e){var t=n.props,r=t.selectedContacts,o=t.onContactAdd,i=t.updateSelectedContacts,a=[].concat(ur(r),ur(e));i(a),n.validateContacts(a),o&&o(e)})),hr(dr(n),"handleContactRemove",(function(e,t){var r=n.props,o=r.onContactRemove,i=r.updateSelectedContacts,a=n.props.selectedContacts.slice(),s=a.splice(t,1);i(a),n.validateContacts(a),o&&o(s)})),hr(dr(n),"handleRemoveRestrictedExternalContacts",(function(){var e=n.props,t=e.onContactRemove,r=e.selectedContacts,o=e.updateSelectedContacts,i=lr(Zt()(r,(function(e){var t=e.value;return n.isRestrictedExternalEmail(t)})),2),a=i[0],s=i[1];o(s),n.validateContacts(s),t&&a.forEach((function(e){t(e)}))})),hr(dr(n),"validateContacts",(function(e){var t=n.props,r=t.contactLimit,o=t.intl,i="";return void 0!==r&&e.length>r?i=o.formatMessage(w.contactsExceedLimitError,{maxContacts:r}):0===e.length&&(i=o.formatMessage(w.enterAtLeastOneEmailError)),n.setState({contactsFieldError:i}),i})),hr(dr(n),"validateContactsRestrictions",(function(){var e="",t=n.state.selectedJustificationReason,r=n.props,o=r.intl,i=r.isRestrictionJustificationEnabled,a=r.selectedContacts,s=r.restrictedExternalEmails,l=ir(a,s);return i&&!t?e=o.formatMessage(w.justificationRequiredError):l&&!i&&(e=o.formatMessage(w.restrictedContactsError)),n.setState({contactsRestrictionError:e}),e})),hr(dr(n),"handleContactInput",(function(e){var t=n.props.onContactInput;t&&t(e)})),hr(dr(n),"handleMessageChange",(function(e){var t=e.target;t instanceof HTMLTextAreaElement&&n.setState({message:t.value})})),hr(dr(n),"handleSelectJustificationReason",(function(e){n.setState({selectedJustificationReason:e},n.validateContactsRestrictions)})),hr(dr(n),"handleClose",(function(){n.setState({message:"",contactsFieldError:"",selectedJustificationReason:null}),n.props.updateSelectedContacts([]),n.contactsFieldRef.current&&n.contactsFieldRef.current.setState({inputValue:""}),n.props.onRequestClose()})),hr(dr(n),"handleSubmit",(function(e){e.preventDefault();var t=n.props,r=t.onSubmit,o=t.selectedContacts,i=n.state,a=i.message,s=i.contactsFieldError,l=i.selectedJustificationReason;if(""===s){var u=n.validateContacts(o),c=n.validateContactsRestrictions();if(!u&&!c){var f=[],d=[],p=[];o.forEach((function(e){var t=e.type,r=e.value;"group"===t?d.push(r):(n.isRestrictedExternalEmail(r)&&p.push(r),f.push(r))})),r({emails:f,groupIDs:d,justificationReason:l,message:a,restrictedExternalEmails:p}).catch((function(e){var t=e.invitedEmails||[];n.filterSentEmails(t)}))}}})),hr(dr(n),"filterSentEmails",(function(e){n.props.updateSelectedContacts(n.props.selectedContacts.filter((function(t){var n=t.value;return!e.includes(n)})))})),hr(dr(n),"validateContactField",(function(e){var t=n.props.intl,r="";e&&!jn(e)&&(r=t.formatMessage(fe.a.invalidEmailError)),n.setState({contactsFieldError:r})})),hr(dr(n),"isValidContactPill",(function(e){var t=!0,r=n.state.selectedJustificationReason,o=n.props.isRestrictionJustificationEnabled;if($t()(e))t=jn(e);else{var i=!!r&&o;t=!n.isRestrictedExternalEmail(e.value)||i}return t})),hr(dr(n),"getContactPillClassName",(function(e){var t=n.state.selectedJustificationReason,r=n.props.isRestrictionJustificationEnabled,o=String(e.value),i=!!t&&r;return n.isRestrictedExternalEmail(o)&&i?"is-waived":""})),hr(dr(n),"isRestrictedExternalEmail",(function(e){return n.props.restrictedExternalEmails.includes(e)})),n.state={contactsFieldError:"",contactsRestrictionError:"",message:"",selectedJustificationReason:null},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e,t){var n=this.props.isRestrictionJustificationEnabled,r=e.isRestrictionJustificationEnabled,o=this.state,i=o.contactsFieldError,a=o.contactsRestrictionError,s=t.contactsFieldError,l=t.contactsRestrictionError;!s&&i&&this.setState({contactsRestrictionError:""}),!l&&a&&this.setState({contactsFieldError:""}),n!==r&&!n&&this.setState({selectedJustificationReason:null})}},{key:"render",value:function(){var e,t=this.state,n=t.contactsFieldError,o=t.contactsRestrictionError,i=t.message,a=t.selectedJustificationReason,s=this.props,l=s.cancelButtonProps,u=s.children,f=s.config,d=s.contactsFieldAvatars,p=s.contactsFieldDisabledTooltip,h=s.contactsFieldLabel,b=s.inlineNotice,m=s.isContactsFieldEnabled,v=s.isExternalUserSelected,g=s.getContactAvatarUrl,E=s.getContacts,S=s.intl,O=s.isExpanded,k=s.isFetchingJustificationReasons,C=s.isRestrictionJustificationEnabled,x=s.justificationReasons,_=s.messageProps,P=s.onPillCreate,T=s.recommendedSharingTooltipCalloutName,j=s.restrictedExternalEmails,D=s.selectedContacts,L=s.sendButtonProps,R=s.showEnterEmailsCallout,N=s.submitting,M=s.suggestedCollaborators,F={className:"usm-ftux-tooltip",isShown:R,position:"middle-right",showCloseButton:!0,text:r.createElement(c.a,w.enterEmailAddressesCalloutText),theme:"callout"},B={isShown:!!T,position:"middle-left",text:r.createElement(c.a,sr({},w.recommendedSharingTooltipCalloutText,{values:{fullName:T}})),theme:"callout"},H=T?B:F,V=r.createElement("div",{className:"tooltip-target"},r.createElement(z.c,H,r.createElement(or,{disabled:!m,error:n,fieldRef:this.contactsFieldRef,getContacts:E,getContactAvatarUrl:g,getPillClassName:this.getContactPillClassName,label:h,onContactAdd:this.handleContactAdd,onContactRemove:this.handleContactRemove,onInput:this.handleContactInput,onPillCreate:P,selectedContacts:D,suggestedCollaborators:M,validateForError:this.validateContactField,validator:this.isValidContactPill,showContactAvatars:!0})));e=m?V:r.createElement(z.c,{position:"bottom-center",text:p},V);var W=f&&!1===f.showInviteCollaboratorMessageSection,q=O&&ir(D,j);return r.createElement("form",{className:I()({"is-expanded":O}),onSubmit:this.handleSubmit},b.content&&O&&r.createElement(U.a,{type:b.type},b.content),q&&r.createElement(Fn,{error:o,isFetchingJustificationReasons:k,isRestrictionJustificationEnabled:C,justificationReasons:x,onRemoveRestrictedExternalContacts:this.handleRemoveRestrictedExternalContacts,restrictedExternalEmails:j,selectedContacts:D,selectedJustificationReason:a,onSelectJustificationReason:this.handleSelectJustificationReason}),d,e,u,O&&!W&&r.createElement(en.a,sr({"data-testid":"be-emailform-message",label:r.createElement(c.a,w.messageTitle),onChange:this.handleMessageChange,placeholder:S.formatMessage(fe.a.messageSelectorPlaceholder),rows:3,value:i},_)),O&&v&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement(dt,{height:12,width:12})),r.createElement(c.a,w.contentSharedWithExternalCollaborators)),O&&r.createElement(y.b,null,r.createElement(A.b,sr({isDisabled:N,onClick:this.handleClose,type:"button"},l),r.createElement(c.a,fe.a.cancel)),r.createElement(tn.a,sr({isDisabled:N,isLoading:N,type:"submit"},L),r.createElement(c.a,fe.a.send))))}}])&&cr(n.prototype,o),i&&cr(n,i),t}(r.Component);hr(br,"defaultProps",{messageProps:{},contactsFieldDisabledTooltip:null,isRestrictionJustificationEnabled:!1,justificationReasons:[],restrictedExternalEmails:[]});var mr=Object(m.c)(br);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gr=function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return e[n.toLowerCase()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{text:r.name,value:r.email||r.id}),e}),{});return e.map((function(e){return e.id?e:e.value&&n[e.value.toLowerCase()]||{email:String(e.value),id:String(e.value),isExternalUser:!0,text:String(e.value),type:"user",value:e.value}}))};function wr(e){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(){return(Er=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 Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cr(e){return(Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e,t){return(_r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ar="inviteCollabsContacts",Tr="emailSharedLinkContacts",Ir=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==wr(t)&&"function"!=typeof t?xr(e):t}(this,Cr(t).call(this,e)),Pr(xr(n),"fetchJustificationReasons",(function(e,t){var r=n.state.justificationReasons,o=n.props.getJustificationReasons,i=!!r.length;return!o||i?Promise.resolve():(n.setState({isFetchingJustificationReasons:!0}),o(e.typedID,t).then((function(e){var t=e.classificationLabelId,r=e.options;n.setState({classificationLabelId:t,justificationReasons:r.map((function(e){var t=e.id;return{displayText:e.title,value:t}}))})})).finally((function(){n.setState({isFetchingJustificationReasons:!1})})))})),Pr(xr(n),"shouldRequireExternalCollabJustification",(function(){var e=n.state.inviteCollabsContacts,t=n.props,r=t.isCollabRestrictionJustificationAllowed,o=t.restrictedExternalCollabEmails;return ir(e,o)&&r})),Pr(xr(n),"handleInviteCollabPillCreate",(function(e){return n.onPillCreate(Ar,e)})),Pr(xr(n),"handleEmailSharedLinkPillCreate",(function(e){return n.onPillCreate(Tr,e)})),Pr(xr(n),"onToggleSharedLink",(function(e){var t=e.target,r=n.props,o=r.handleFtuxCloseClick,i=r.onAddLink,a=r.openConfirmModal,s=r.shouldRenderFTUXTooltip,l=r.trackingProps.sharedLinkTracking.onToggleLink;s&&o(),"checkbox"===t.type&&(!1===t.checked?a():i(),l&&l(t.checked))})),Pr(xr(n),"showCollaboratorList",(function(){n.setState({showCollaboratorList:!0})})),Pr(xr(n),"closeCollaboratorList",(function(){n.setState({showCollaboratorList:!1})})),Pr(xr(n),"handleSendInvites",(function(e){var t=n.props,r=t.inviteePermissions,o=t.isCollabRestrictionJustificationAllowed,i=t.sendInvites,a=t.trackingProps.inviteCollabsEmailTracking.onSendClick,l=n.state,u=l.classificationLabelId,c=l.inviteePermissionLevel,f=je(r),d=c||f,p=e.emails,h=e.groupIDs,b=e.justificationReason,m=e.message,y=e.restrictedExternalEmails,v={emails:p.join(","),groupIDs:h.join(","),emailMessage:m,permission:d,numsOfInvitees:p.length,numOfInviteeGroups:h.length},g=!!b,w=!s()(y);return g&&w&&o&&(v=Or({},v,{classificationLabelId:u,justificationReason:{id:b.value,title:b.displayText}})),a&&a(v),i(v)})),Pr(xr(n),"handleSendSharedLink",(function(e){var t=n.props,r=t.sendSharedLink,o=t.sharedLink,i=t.trackingProps.sharedLinkEmailTracking,a=o.permissionLevel,s=i.onSendClick,l=e.emails,u=e.groupIDs;s&&s(Or({},e,{numsOfRecipients:l.length,numOfRecipientGroups:u.length,permissionLevel:a}));return r(e)})),Pr(xr(n),"handleInviteePermissionChange",(function(e){var t=n.props.trackingProps.inviteCollabTracking.onInviteePermissionChange;n.setState({inviteePermissionLevel:e}),t&&t(e)})),Pr(xr(n),"onPillCreate",(function(e,t){if(0!==t.filter((function(e){return!e.id})).length){var r=n.props.getContactsByEmail;if(r)r({emails:t.map((function(e){return e.value}))}).then((function(t){e===Ar?n.setState((function(e){return{inviteCollabsContacts:gr(e.inviteCollabsContacts,t)}})):e===Tr&&n.setState((function(e){return{emailSharedLinkContacts:gr(e.emailSharedLinkContacts,t)}}))}))}})),Pr(xr(n),"openInviteCollaborators",(function(e){var t=n.props.handleFtuxCloseClick;n.state.isInviteSectionExpanded||""!==e&&(t(),n.setState({isInviteSectionExpanded:!0},(function(){var e=n.props.trackingProps.inviteCollabTracking.onEnterInviteCollabs;e&&e()})))})),Pr(xr(n),"openInviteCollaboratorsSection",(function(){n.setState({isInviteSectionExpanded:!0})})),Pr(xr(n),"closeInviteCollaborators",(function(){n.setState({isInviteSectionExpanded:!1})})),Pr(xr(n),"openEmailSharedLinkForm",(function(){(0,n.props.handleFtuxCloseClick)(),n.setState({isEmailLinkSectionExpanded:!0})})),Pr(xr(n),"closeEmailSharedLinkForm",(function(){n.setState({isEmailLinkSectionExpanded:!1})})),Pr(xr(n),"hasExternalContact",(function(e){var t=n.state,r=t.inviteCollabsContacts,o=t.emailSharedLinkContacts;return e===Ar?r.some((function(e){return e.isExternalUser})):e===Tr&&o.some((function(e){return e.isExternalUser}))})),Pr(xr(n),"isRemovingAllRestrictedExternalCollabs",(function(e,t){var r=n.props.restrictedExternalCollabEmails,o=ir(e,r),i=ir(t,r);return o&&!i})),Pr(xr(n),"updateInviteCollabsContacts",(function(e){var t=n.state.inviteCollabsContacts,r=n.props,o=r.onRemoveAllRestrictedExternalCollabs,i=r.setUpdatedContacts,a=n.isRemovingAllRestrictedExternalCollabs(t,e);n.setState({inviteCollabsContacts:e}),i&&i(e),o&&a&&o()})),Pr(xr(n),"updateEmailSharedLinkContacts",(function(e){n.setState({emailSharedLinkContacts:e})})),Pr(xr(n),"shouldAutoFocusSharedLink",(function(){var e=n.props,t=e.focusSharedLinkOnLoad,r=e.sharedLink,o=e.sharedLinkLoaded;return!(!e.createSharedLinkOnLoad&&!t)&&(!(!t&&!r.isNewSharedLink)&&!!o)})),n.state={classificationLabelId:"",emailSharedLinkContacts:[],inviteCollabsContacts:e.initiallySelectedContacts,inviteePermissionLevel:"",isEmailLinkSectionExpanded:!1,isFetchingJustificationReasons:!1,isInviteSectionExpanded:!!e.initiallySelectedContacts.length,justificationReasons:[],showCollaboratorList:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isCollabRestrictionJustificationAllowed,r=t.item,o=t.restrictedExternalCollabEmails,i=e.restrictedExternalCollabEmails,a=e.isCollabRestrictionJustificationAllowed;(!C()(o,i)||n!==a)&&this.shouldRequireExternalCollabJustification()&&this.fetchJustificationReasons(r,"EXTERNAL_COLLAB")}},{key:"renderInviteSection",value:function(){var e=this.props,t=e.canInvite,n=e.collaborationRestrictionWarning,o=e.config,i=e.contactLimit,a=e.getCollaboratorContacts,s=e.getContactAvatarUrl,l=e.handleFtuxCloseClick,u=e.item,f=e.recommendedSharingTooltipCalloutName,d=void 0===f?null:f,p=e.restrictedExternalCollabEmails,h=e.sendInvitesError,b=e.shouldRenderFTUXTooltip,m=e.showEnterEmailsCallout,y=void 0!==m&&m,v=e.showCalloutForUser,g=void 0!==v&&v,E=e.showUpgradeInlineNotice,S=void 0!==E&&E,O=e.showUpgradeOptions,k=e.submitting,C=e.suggestedCollaborators,x=e.trackingProps,_=u.type,T=this.state,I=T.isFetchingJustificationReasons,j=T.isInviteSectionExpanded,D=T.justificationReasons,L=x.inviteCollabsEmailTracking,R=x.modalTracking,N=_===H.b?r.createElement(c.a,w.inviteDisabledWeblinkTooltip):r.createElement(c.a,w.inviteDisabledTooltip),M=h?{type:"error",content:h}:{type:"warning",content:n},F=this.renderCollaboratorAvatars(),U=R.ftuxConfirmButtonProps,B={className:"usm-ftux-tooltip",isShown:!d&&b&&g,position:"middle-left",showCloseButton:!0,text:r.createElement("div",null,r.createElement("h4",{className:"ftux-tooltip-title"},r.createElement(c.a,w.ftuxNewUSMUserTitle)),r.createElement("p",{className:"ftux-tooltip-body"},r.createElement(c.a,w.ftuxNewUSMUserBody)," ",r.createElement(P.a,{className:"ftux-tooltip-link",href:"https://community.box.com/t5/Using-Shared-Links/Creating-Shared-Links/ta-p/19523",target:"_blank"},r.createElement(c.a,w.ftuxLinkText))),r.createElement("div",{className:"ftux-tooltip-controls"},r.createElement(A.b,Er({className:"ftux-tooltip-button",onClick:l},U),r.createElement(c.a,w.ftuxConfirmLabel)))),theme:"callout"};return r.createElement(r.Fragment,null,r.createElement(z.c,B,r.createElement("div",{className:"invite-collaborator-container","data-testid":"invite-collaborator-container"},r.createElement(mr,Er({config:o,contactLimit:i,contactsFieldAvatars:F,contactsFieldDisabledTooltip:N,contactsFieldLabel:r.createElement(c.a,w.inviteFieldLabel),getContacts:a,getContactAvatarUrl:s,inlineNotice:M,isContactsFieldEnabled:t,isExpanded:j,isFetchingJustificationReasons:I,isExternalUserSelected:this.hasExternalContact(Ar),isRestrictionJustificationEnabled:this.shouldRequireExternalCollabJustification(),justificationReasons:D,onContactInput:this.openInviteCollaborators,onPillCreate:this.handleInviteCollabPillCreate,onRequestClose:this.closeInviteCollaborators,onSubmit:this.handleSendInvites,openInviteCollaboratorsSection:this.openInviteCollaboratorsSection,recommendedSharingTooltipCalloutName:d,restrictedExternalEmails:p,showEnterEmailsCallout:y,submitting:k,selectedContacts:this.state.inviteCollabsContacts,suggestedCollaborators:C,updateSelectedContacts:this.updateInviteCollabsContacts},L),this.renderInviteePermissionsDropdown(),O&&!S&&this.renderUpgradeLinkDescription()))))}},{key:"renderCollaboratorAvatars",value:function(){var e=this.props,t=e.collaboratorsList,n=e.canInvite,o=e.currentUserID,i=e.item,a=e.trackingProps.modalTracking,s=null;if(t){var l=t.collaborators,u=i.hideCollaborators;s=(!(void 0===u||u)||n)&&r.createElement(le,{collaborators:l.filter((function(e){return String(e.userID)!==o})),onClick:this.showCollaboratorList,containerAttributes:a.collaboratorAvatarsProps})}return s}},{key:"renderCollaboratorMessage",value:function(e){var t=this.props.openUpgradePlanModal,n=void 0===t?function(){}:t;return r.createElement(r.Fragment,null,r.createElement(x.a,{id:"boxui.unifiedShare.upgradeCollaboratorAccessDescription",description:"Description for cta to upgrade to get collaborator access controls"},"Set the level of"," ",r.createElement(P.a,{className:"upgrade-link",href:"https://support.box.com/hc/en-us/articles/360044196413-Understanding-Collaborator-Permission-Levels",target:"_blank"},"collaborator access")," ","and increase security through one of our paid plans."," "),r.createElement(B.a,{className:"upgrade-link",onClick:n,type:"button"},r.createElement(c.a,w.upgradeLink)))}},{key:"renderUpgradeLinkDescription",value:function(){var e=this.props,t=e.openUpgradePlanModal,n=void 0===t?function(){}:t,o=e.showNewUpgradeText,i=void 0!==o&&o,a=e.trackingProps,s=(void 0===a?{}:a).inviteCollabsEmailTracking,l=(void 0===s?{}:s).upgradeLinkProps,u=void 0===l?{}:l;return r.createElement("div",{className:"upgrade-description"},r.createElement(F,null),i?this.renderCollaboratorMessage("external_collab_newcopy_upgrade_cta"):r.createElement(c.a,Er({values:{upgradeGetMoreAccessControlsLink:r.createElement(B.a,Er({className:"upgrade-link",onClick:n,type:"button"},u),r.createElement(c.a,w.upgradeGetMoreAccessControlsLink))}},w.upgradeGetMoreAccessControlsDescription)))}},{key:"renderUpgradeInlineNotice",value:function(){return r.createElement(U.a,{title:r.createElement(c.a,w.upgradeInlineNoticeTitle),type:"info"},this.renderCollaboratorMessage("external_collab_top_message_upgrade_cta"))}},{key:"renderInviteePermissionsDropdown",value:function(){var e=this.props,t=e.inviteePermissions,n=e.item,o=e.submitting,i=e.canInvite,a=e.trackingProps,s=n.type,l=a.inviteCollabTracking;return t&&r.createElement(qe,{disabled:!i||o,inviteePermissionsButtonProps:l.inviteePermissionsButtonProps,inviteePermissionLevel:this.state.inviteePermissionLevel,inviteePermissions:t,changeInviteePermissionLevel:this.handleInviteePermissionChange,itemType:s})}},{key:"renderCollaboratorList",value:function(){var e=this.props,t=e.item,n=e.collaboratorsList,o=e.trackingProps,i=t.name,a=t.type,s=o.collaboratorListTracking,l=null;if(n){var u=n.collaborators;l=r.createElement(Ee,{itemName:i,itemType:a,onDoneClick:this.closeCollaboratorList,item:t,collaborators:u,trackingProps:s})}return l}},{key:"render",value:function(){var e=this.props,t=e.allShareRestrictionWarning,n=e.changeSharedLinkAccessLevel,o=e.createSharedLinkOnLoad,i=e.changeSharedLinkPermissionLevel,a=e.config,s=e.displayInModal,l=e.focusSharedLinkOnLoad,u=e.getSharedLinkContacts,f=e.getContactAvatarUrl,d=e.intl,p=e.isAllowEditSharedLinkForFileEnabled,h=e.isFetching,b=e.item,m=e.onAddLink,y=e.onCopyError,v=e.onCopyInit,g=e.onCopySuccess,E=e.onDismissTooltip,S=void 0===E?function(){}:E,O=e.onSettingsClick,k=e.sendSharedLinkError,C=e.sharedLink,x=e.sharedLinkEditTagTargetingApi,P=e.sharedLinkEditTooltipTargetingApi,A=e.showEnterEmailsCallout,T=void 0!==A&&A,I=e.showSharedLinkSettingsCallout,j=void 0!==I&&I,D=e.showUpgradeInlineNotice,L=void 0!==D&&D,R=e.showUpgradeOptions,N=e.submitting,M=e.tooltips,F=void 0===M?{}:M,U=e.trackingProps,B=U.sharedLinkTracking,H=U.sharedLinkEmailTracking,z=this.state,V=z.isEmailLinkSectionExpanded,W=z.isInviteSectionExpanded,q=z.showCollaboratorList,G=!V&&!W&&!q&&t;return r.createElement("div",{className:s?"":"be bdl-UnifiedShareForm"},r.createElement(_.a,{isLoading:h,hideContent:!0},G&&t,R&&L&&this.renderUpgradeInlineNotice(),!V&&!q&&this.renderInviteSection(),!V&&!W&&!q&&r.createElement(Yt,{addSharedLink:m,autofocusSharedLink:this.shouldAutoFocusSharedLink(),autoCreateSharedLink:o,config:a,triggerCopyOnLoad:o&&l,changeSharedLinkAccessLevel:n,changeSharedLinkPermissionLevel:i,intl:d,isAllowEditSharedLinkForFileEnabled:p,item:b,itemType:b.type,onDismissTooltip:S,onEmailSharedLinkClick:this.openEmailSharedLinkForm,onSettingsClick:O,onToggleSharedLink:this.onToggleSharedLink,onCopyInit:v,onCopySuccess:g,onCopyError:y,sharedLink:C,sharedLinkEditTagTargetingApi:x,sharedLinkEditTooltipTargetingApi:P,showSharedLinkSettingsCallout:j,submitting:N||h,trackingProps:B,tooltips:F}),V&&!q&&r.createElement(mr,Er({contactsFieldLabel:r.createElement(c.a,w.sendSharedLinkFieldLabel),getContactAvatarUrl:f,getContacts:u,inlineNotice:{type:"error",content:k},isContactsFieldEnabled:!0,isExpanded:!0,isExternalUserSelected:this.hasExternalContact(Tr),onPillCreate:this.handleEmailSharedLinkPillCreate,onRequestClose:this.closeEmailSharedLinkForm,onSubmit:this.handleSendSharedLink,showEnterEmailsCallout:T,submitting:N,selectedContacts:this.state.emailSharedLinkContacts,updateSelectedContacts:this.updateEmailSharedLinkContacts},H)),q&&this.renderCollaboratorList()))}}])&&kr(n.prototype,o),i&&kr(n,i),t}(r.Component);Pr(Ir,"defaultProps",{displayInModal:!0,initiallySelectedContacts:[],createSharedLinkOnLoad:!1,focusSharedLinkOnLoad:!1,restrictedExternalCollabEmails:[],trackingProps:{collaboratorListTracking:{},inviteCollabsEmailTracking:{},inviteCollabTracking:{},modalTracking:{},removeLinkConfirmModalTracking:{},sharedLinkEmailTracking:{},sharedLinkTracking:{}}});var jr=Object(m.c)(Ir);function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(){return(Lr=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 Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nr(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mr(e){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fr(e,t){return(Fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ur=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Nr(this,Mr(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fr(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props.onLoad;e&&e()}},{key:"render",value:function(){var e=this.props,t=e.isOpen,n=e.onRequestClose,r=e.removeLink,i=e.submitting,a=e.okayButtonProps,s=e.modalProps,l=e.cancelButtonProps;return o.a.createElement(y.a,Lr({className:"be-modal",focusElementSelector:".btn-primary",isOpen:t,onRequestClose:i?void 0:n,title:o.a.createElement(c.a,w.removeLinkConfirmationTitle),type:"alert"},s),o.a.createElement(c.a,w.removeLinkConfirmationDescription),o.a.createElement(y.b,null,o.a.createElement(A.b,Lr({isDisabled:i,onClick:n},l),o.a.createElement(c.a,fe.a.cancel)),o.a.createElement(tn.a,Lr({isDisabled:i,isLoading:i,onClick:r},a),o.a.createElement(c.a,fe.a.okay))))}}])&&Rr(n.prototype,r),i&&Rr(n,i),t}(r.Component);n(1008);function Br(e){return(Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(){return(zr=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 Vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wr(e){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gr(e,t){return(Gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?qr(e):t}(this,Wr(t).call(this,e)),Kr(qr(n),"getInitialData",(function(){(0,n.props.getInitialData)().finally((function(){n.setState({isFetching:!1,shouldRenderFTUXTooltip:!0})})),n.setState({getInitialDataCalled:!0})})),Kr(qr(n),"handleFtuxCloseClick",(function(){n.setState({shouldRenderFTUXTooltip:!1})})),Kr(qr(n),"openConfirmModal",(function(){n.setState({isConfirmModalOpen:!0})})),Kr(qr(n),"closeConfirmModal",(function(){n.setState({isConfirmModalOpen:!1})})),Kr(qr(n),"removeLink",(function(){var e=n.props,t=e.onRemoveLink,r=e.displayInModal;t(),r||n.closeConfirmModal()})),Kr(qr(n),"renderUSF",(function(){var e=n.props,t=e.sharedLinkEditTagTargetingApi,o=e.sharedLinkEditTooltipTargetingApi,i=n.state,a=i.isFetching,s=i.sharedLinkLoaded,l=i.shouldRenderFTUXTooltip;return r.createElement(jr,zr({},n.props,{handleFtuxCloseClick:n.handleFtuxCloseClick,isFetching:a,openConfirmModal:n.openConfirmModal,sharedLinkEditTagTargetingApi:t,sharedLinkEditTooltipTargetingApi:o,sharedLinkLoaded:s,shouldRenderFTUXTooltip:l}))}));var o=e.initialDataReceived;return n.state={getInitialDataCalled:!!o,isConfirmModalOpen:!1,isEmailLinkSectionExpanded:!1,isFetching:!o,sharedLinkLoaded:!1,shouldRenderFTUXTooltip:!1,showCollaboratorList:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gr(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.item,n=e.trackingProps,r=t.type,o=t.typedID,i=n.modalTracking.onLoad;!this.state.getInitialDataCalled&&r&&o&&this.getInitialData(),i&&i()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.item,r=t.sharedLink,o=n.type,i=n.typedID,a=e.sharedLink;!this.state.getInitialDataCalled&&o&&i&&this.getInitialData(),a.url!==r.url&&r.url&&this.setState({sharedLinkLoaded:!0})}},{key:"render",value:function(){var e=this.props,t=e.canInvite,n=e.displayInModal,o=e.isOpen,i=e.item,a=e.onRequestClose,s=e.submitting,l=e.trackingProps,u=l.modalTracking,c=l.removeLinkConfirmModalTracking,f=u.modalProps,d=this.state,p=d.isEmailLinkSectionExpanded,h=d.isConfirmModalOpen,b=d.showCollaboratorList,m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusElementSelector:t?".bdl-PillSelector-input":".toggle-simple"},f);return r.createElement(r.Fragment,null,n?r.createElement(y.a,zr({className:"be-modal unified-share-modal",isOpen:!h&&o,onRequestClose:s?void 0:a,title:r.createElement(O,{isEmailLinkSectionExpanded:p,showCollaboratorList:b,item:i})},m),this.renderUSF()):r.createElement("div",{className:"bdl-UnifiedShareForm-container"},this.renderUSF()),h&&r.createElement(Ur,zr({isOpen:h,onRequestClose:this.closeConfirmModal,removeLink:this.removeLink,submitting:s},c)))}}])&&Vr(n.prototype,o),i&&Vr(n,i),t}(r.Component);Kr(Xr,"defaultProps",{displayInModal:!0,initiallySelectedContacts:[],isAllowEditSharedLinkForFileEnabled:!1,createSharedLinkOnLoad:!1,focusSharedLinkOnLoad:!1,restrictedExternalCollabEmails:[],trackingProps:{inviteCollabsEmailTracking:{},sharedLinkEmailTracking:{},sharedLinkTracking:{},inviteCollabTracking:{},modalTracking:{},removeLinkConfirmModalTracking:{},collaboratorListTracking:{}}});var Yr=Object(m.c)(Xr),Jr=n(13),$r=n.n(Jr),Qr=n(214),Zr=n(205);n(1009);function eo(){return(eo=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 to(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var no=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.title,a=to(e,["children","className","title"]);return r.createElement("fieldset",eo({className:"fieldset ".concat(o)},a),r.createElement("legend",{className:"label"},i),t)},ro=function(e){var t=e.color,n=void 0===t?"#ED3757":t,o=e.className,i=void 0===o?"":o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:"quarantine-badge ".concat(i),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("g",{fill:n,fillRule:"evenodd"},r.createElement("path",{d:"M15 8c0-3.866-3.134-7-7-7S1 4.134 1 8s3.134 7 7 7 7-3.134 7-7zM0 8c0-4.418 3.582-8 8-8s8 3.582 8 8-3.582 8-8 8-8-3.582-8-8z"}),r.createElement("path",{d:"M7.82 7.845c.012.062.12.155.18.155.065 0 .167-.088.18-.155l.668-4.02c-.01.068.08.175.143.175H7.01c.055 0 .15-.114.142-.174l.67 4.02zM7.01 3h1.98c.558 0 .935.45.845.99l-.67 4.02C9.075 8.555 8.555 9 8 9c-.552 0-1.075-.45-1.165-.99l-.67-4.02c-.09-.546.278-.99.844-.99zM9.5 11c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5zm-2 0c0-.276.224-.5.5-.5s.5.224.5.5-.224.5-.5.5-.5-.224-.5-.5z"})))},oo=Object(g.defineMessages)({allowDownloadLabel:{id:"boxui.share.sharedLinkSettings.allowDownloadLabel",defaultMessage:"Allow users with the shared link to download this item"},allowDownloadTitle:{id:"boxui.share.sharedLinkSettings.allowDownloadTitle",defaultMessage:"Allow Download"},directLinkLabel:{id:"boxui.share.sharedLinkSettings.directLinkLabel",defaultMessage:"Direct Link"},directDownloadBlockedByAccessPolicyWithClassification:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification",defaultMessage:"Download has been disabled for content due to the classification."},directDownloadBlockedByMaliciousContent:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent",defaultMessage:"Download for this content has been disabled due to a security policy."},directDownloadBlockedByAccessPolicyWithoutClassification:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification",defaultMessage:"Download has been disabled for content without classification."},inaccessibleSettingsNotice:{id:"boxui.share.sharedLinkSettings.inaccessibleSettingsNotice",defaultMessage:"Certain settings may not be available for this item due to permissions."},modalTitle:{id:"boxui.share.sharedLinkSettings.modalTitle",defaultMessage:"Shared Link Settings"},customURLLabel:{id:"boxui.share.sharedLinkSettings.customURLLabel",defaultMessage:"Non-private custom URL"},expirationTitle:{id:"boxui.share.sharedLinkSettings.expirationTitle",defaultMessage:"Link Expiration"},expirationLabel:{id:"boxui.share.sharedLinkSettings.expirationLabel",defaultMessage:"Disable Shared Link on"},passwordLabel:{id:"boxui.share.sharedLinkSettings.passwordLabel",defaultMessage:"Require password"},passwordPlaceholder:{id:"boxui.share.sharedLinkSettings.passwordPlaceholder",defaultMessage:"Enter a password"},passwordTitle:{id:"boxui.share.sharedLinkSettings.passwordTitle",defaultMessage:"Password Protect"},vanityNamePlaceholder:{id:"boxui.share.sharedLinkSettings.vanityNamePlaceholder",defaultMessage:"Enter a custom path (12 or more characters)"},vanityNameNotSet:{id:"boxui.share.sharedLinkSettings.vanityNameNotSet",defaultMessage:"The custom URL has not been set"},vanityURLWarning:{id:"boxui.share.sharedLinkSettings.vanityURLWarning",defaultMessage:"Custom URLs should not be used when sharing sensitive content."},vanityURLEnableText:{id:"boxui.share.vanityURLEnableText",defaultMessage:"Publish content broadly with a custom, non-private URL"},sharedLinkWarningText:{id:"boxui.share.sharedLinkSettings.sharedLinkWarningText",defaultMessage:"This content is publicly available to anyone with the link."},withLinkViewDownload:{id:"boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload",defaultMessage:"This content is publicly available to anyone with the link, and can be viewed or downloaded."},withLinkView:{id:"boxui.share.sharedLinkSettings.accessLevel.withLinkView",defaultMessage:"This content is publicly available to anyone with the link, and can be viewed."},inCompanyViewDownload:{id:"boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload",defaultMessage:"This content is available to anyone within your company with the link, and can be viewed or downloaded."},inCompanyView:{id:"boxui.share.sharedLinkSettings.accessLevel.inCompanyView",defaultMessage:"This content is available to anyone within your company with the link, and can be viewed."},inItem:{id:"boxui.share.sharedLinkSettings.accessLevel.inItem",defaultMessage:"This content is available to invited collaborators with the link."},sharedLinkSettingWarningLinkText:{id:"boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText",defaultMessage:"Learn more about shared link settings."}});function io(){return(io=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)}var ao=function(e){var t=e.canChangeVanityName,n=e.error,r=e.intl.formatMessage,i=e.isVanityEnabled,a=e.vanityName,s=e.vanityNameInputProps,l=void 0===s?{}:s,u=e.serverURL,f=e.onChange,d=e.onCheckboxChange,p=t?a:a||r(oo.vanityNameNotSet),h=o.a.createElement("div",{className:"vanity-name-content"},o.a.createElement(Ye.a,io({description:o.a.createElement("span",null,o.a.createElement(ro,{color:ue.k}),o.a.createElement(c.a,oo.vanityURLWarning)),hideLabel:!0,disabled:!t,error:n,name:"vanityName",onChange:f,placeholder:r(oo.vanityNamePlaceholder),type:"text",value:p},l)),(t||!!a)&&o.a.createElement("p",{className:"custom-url-preview"},"".concat(u).concat(a)));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(no,{className:"be vanity-name-section",title:o.a.createElement(c.a,oo.customURLLabel)},o.a.createElement(Zr.a,{label:o.a.createElement(c.a,oo.vanityURLEnableText),isChecked:i,isDisabled:!t,subsection:i?h:void 0,onChange:d})))};ao.propTypes={canChangeVanityName:$r.a.bool.isRequired,error:$r.a.string,intl:$r.a.any,isVanityEnabled:$r.a.bool.isRequired,vanityName:$r.a.string.isRequired,vanityNameInputProps:$r.a.object,serverURL:$r.a.string.isRequired,onChange:$r.a.func,onCheckboxChange:$r.a.func};var so=Object(m.c)(ao),lo=n(9);function uo(){return(uo=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)}var co=function(e){return r.createElement(lo.a,uo({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:ue.g,fillRule:"evenodd",d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zm0 8.5a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 018 9.5zm0 1a.5.5 0 100 1 .5.5 0 000-1zM8.99 3c.558 0 .935.45.845.99l-.67 4.02C9.075 8.555 8.555 9 8 9c-.552 0-1.075-.45-1.165-.99l-.67-4.02c-.09-.546.278-.99.844-.99H8.99zm-.171 1H7.181l.641 3.846-.002-.001c.012.062.12.155.18.155.065 0 .167-.088.18-.155L8.819 4z"}))};function fo(){return(fo=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)}var po=function(e){var t=e.canChangePassword,n=e.error,r=e.intl.formatMessage,i=e.isPasswordAvailable,a=e.isPasswordEnabled,s=e.isPasswordInitiallyEnabled,l=e.onCheckboxChange,u=e.onPasswordChange,f=e.password,d=e.passwordCheckboxProps,p=void 0===d?{}:d,h=e.passwordInformationText,b=e.passwordInputProps,m=void 0===b?{}:b;if(!i)return null;var y=o.a.createElement("div",null,o.a.createElement(Ye.a,fo({disabled:!t,error:n,hideLabel:!0,isRequired:!s,label:o.a.createElement(c.a,oo.passwordPlaceholder),maxLength:100,name:"password",onChange:u,placeholder:s?"••••••••":r(oo.passwordPlaceholder),type:"password",value:f},m)),h&&o.a.createElement("div",{className:"be password-section-information"},o.a.createElement("span",null,o.a.createElement(co,{className:"password-section-information-icon",height:12,width:12})),o.a.createElement("span",{className:"password-section-information-text"},h)));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(no,{className:"be password-section",title:o.a.createElement(c.a,oo.passwordTitle)},o.a.createElement(Zr.a,fo({isChecked:a,isDisabled:!t,label:o.a.createElement(c.a,oo.passwordLabel),name:"isPasswordEnabled",onChange:l,subsection:a?y:void 0},p))))};po.propTypes={canChangePassword:$r.a.bool.isRequired,error:$r.a.string,intl:$r.a.any,isPasswordAvailable:$r.a.bool.isRequired,isPasswordEnabled:$r.a.bool.isRequired,isPasswordInitiallyEnabled:$r.a.bool.isRequired,onCheckboxChange:$r.a.func.isRequired,onPasswordChange:$r.a.func.isRequired,password:$r.a.string,passwordCheckboxProps:$r.a.object,passwordInformationText:$r.a.string,passwordInputProps:$r.a.object};var ho=Object(m.c)(po),bo=n(530);function mo(){return(mo=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)}var yo={weekday:"short",year:"numeric",month:"short",day:"numeric"},vo=function(e){var t=e.canChangeExpiration,n=e.error,r=e.expirationCheckboxProps,i=void 0===r?{}:r,a=e.expirationDate,s=e.expirationInputProps,l=void 0===s?{}:s,u=e.isExpirationEnabled,f=e.onCheckboxChange,d=e.onExpirationDateChange,p=new Date((new Date).getTime()+864e5),h=o.a.createElement("div",null,o.a.createElement(bo.a,{displayFormat:yo,error:n,hideLabel:!0,inputProps:l,isDisabled:!t,isRequired:!0,label:o.a.createElement(c.a,oo.expirationLabel),minDate:p,name:"expiration",onChange:d,value:a}));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(no,{className:"be expiration-section",title:o.a.createElement(c.a,oo.expirationTitle)},o.a.createElement(Zr.a,mo({isChecked:u,isDisabled:!t,label:o.a.createElement(c.a,oo.expirationLabel),name:"isExpirationEnabled",onChange:f,subsection:u?h:void 0},i))))};vo.propTypes={canChangeExpiration:$r.a.bool.isRequired,error:$r.a.string,expirationCheckboxProps:$r.a.object,expirationDate:$r.a.instanceOf(Date),expirationInputProps:$r.a.object,isExpirationEnabled:$r.a.bool.isRequired,onCheckboxChange:$r.a.func.isRequired,onExpirationDateChange:$r.a.func.isRequired};var go=vo;n(1010);function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){So(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(){return(Oo=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)}var ko=function(e){var t=e.canChangeDownload,n=e.classification,r=e.directLink,i=e.directLinkInputProps,a=void 0===i?{}:i,s=e.downloadCheckboxProps,l=void 0===s?{}:s,u=e.isDirectLinkAvailable,f=e.isDirectLinkUnavailableDueToDownloadSettings,d=e.isDirectLinkUnavailableDueToAccessPolicy,p=e.isDirectLinkUnavailableDueToMaliciousContent,h=e.isDownloadAvailable,b=e.isDownloadEnabled,m=e.onChange;if(!h&&!u)return null;var y=o.a.createElement("div",null,o.a.createElement(st,Oo({className:"direct-link-input",label:o.a.createElement(c.a,oo.directLinkLabel),type:"url",value:r},a))),v=d||p,g=I()("bdl-AllowDownloadSection",{"bdl-is-disabled":v}),w=(u||f)&&b,E=null;return E=Eo({},p?oo.directDownloadBlockedByMaliciousContent:n?oo.directDownloadBlockedByAccessPolicyWithClassification:oo.directDownloadBlockedByAccessPolicyWithoutClassification),h?o.a.createElement("div",{className:g},o.a.createElement("hr",null),o.a.createElement(z.c,{isDisabled:!v,text:o.a.createElement(c.a,E),position:"middle-left"},o.a.createElement(no,{className:"be",disabled:v,title:o.a.createElement(c.a,oo.allowDownloadTitle)},o.a.createElement(Zr.a,Oo({isChecked:b,isDisabled:!t||v,label:o.a.createElement(c.a,oo.allowDownloadLabel),name:"isDownloadEnabled",onChange:m},l)),w&&y))):o.a.createElement("div",null,o.a.createElement("hr",null),y)};ko.propTypes={canChangeDownload:$r.a.bool.isRequired,classification:$r.a.string,directLink:$r.a.string.isRequired,directLinkInputProps:$r.a.object,downloadCheckboxProps:$r.a.object,isDirectLinkAvailable:$r.a.bool.isRequired,isDirectLinkUnavailableDueToMaliciousContent:$r.a.bool,isDirectLinkUnavailableDueToAccessPolicy:$r.a.bool,isDirectLinkUnavailableDueToDownloadSettings:$r.a.bool.isRequired,isDownloadAvailable:$r.a.bool.isRequired,isDownloadEnabled:$r.a.bool.isRequired,onChange:$r.a.func.isRequired};var Co=ko,xo="peopleWithTheLink",_o="peopleInYourCompany",Po="peopleInThisItem";n(1011);function Ao(e){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function To(){return(To=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 Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Do(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lo(e,t){return(Lo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ao(t)&&"function"!=typeof t?Do(e):t}(this,jo(t).call(this,e)),Ro(Do(n),"onSubmit",(function(e){e.preventDefault();var t=n.state,r=t.expirationDate,o=t.isDownloadEnabled,i=t.isExpirationEnabled,a=t.isPasswordEnabled,s=t.password,l=t.vanityName;n.props.onSubmit({expirationTimestamp:r?r.getTime():void 0,isDownloadEnabled:o,isExpirationEnabled:i,isPasswordEnabled:a,password:s,vanityName:l})})),Ro(Do(n),"onVanityNameChange",(function(e){n.setState({vanityName:e.target.value,vanityNameError:void 0})})),Ro(Do(n),"onPasswordChange",(function(e){n.setState({password:e.target.value,passwordError:void 0})})),Ro(Do(n),"onPasswordCheckboxChange",(function(e){n.setState({isPasswordEnabled:e.target.checked})})),Ro(Do(n),"onExpirationDateChange",(function(e){n.setState({expirationDate:e,expirationError:void 0})})),Ro(Do(n),"onExpirationCheckboxChange",(function(e){n.setState({isExpirationEnabled:e.target.checked})})),Ro(Do(n),"onAllowDownloadChange",(function(e){n.setState({isDownloadEnabled:e.target.checked})})),Ro(Do(n),"onVanityCheckboxChange",(function(e){n.setState({isVanityEnabled:e.target.checked,vanityName:e.target.checked?n.props.vanityName:""})})),n.state={expirationDate:e.expirationTimestamp?new Date(e.expirationTimestamp):null,expirationError:e.expirationError,isVanityEnabled:!!e.vanityName,isDownloadEnabled:e.isDownloadEnabled,isExpirationEnabled:!!e.expirationTimestamp,isPasswordEnabled:e.isPasswordEnabled,password:"",passwordError:e.passwordError,vanityName:e.vanityName,vanityNameError:e.vanityNameError},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lo(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expirationError,r=t.passwordError,o=t.vanityNameError;e.expirationError===n&&e.passwordError===r&&e.vanityNameError===o||this.setState({expirationError:n,passwordError:r,vanityNameError:o})}},{key:"renderVanityNameSection",value:function(){var e=this.props,t=e.canChangeVanityName,n=e.hideVanityNameSection,r=e.serverURL,i=e.vanityNameInputProps,a=e.warnOnPublic,s=void 0!==a&&a,l=this.state,u=l.vanityNameError,c=l.isVanityEnabled;return n?null:o.a.createElement(so,{canChangeVanityName:t,isVanityEnabled:c,error:u,onChange:this.onVanityNameChange,onCheckboxChange:this.onVanityCheckboxChange,serverURL:r,vanityName:this.state.vanityName,vanityNameInputProps:i,warnOnPublic:s})}},{key:"renderPasswordSection",value:function(){var e=this.props,t=e.canChangePassword,n=e.isPasswordAvailable,r=e.passwordCheckboxProps,i=e.passwordInformationText,a=e.passwordInputProps,s=this.state,l=s.isPasswordEnabled,u=s.password,c=s.passwordError;return o.a.createElement(ho,{canChangePassword:t,error:c,isPasswordAvailable:n,isPasswordEnabled:l,isPasswordInitiallyEnabled:this.props.isPasswordEnabled,onCheckboxChange:this.onPasswordCheckboxChange,onPasswordChange:this.onPasswordChange,password:u,passwordCheckboxProps:r,passwordInformationText:i,passwordInputProps:a})}},{key:"renderExpirationSection",value:function(){var e=this.props,t=e.canChangeExpiration,n=e.expirationCheckboxProps,r=e.expirationInputProps,i=this.state,a=i.expirationDate,s=i.isExpirationEnabled,l=i.expirationError;return o.a.createElement(go,{canChangeExpiration:t,error:l,expirationCheckboxProps:n,expirationDate:a,expirationInputProps:r,isExpirationEnabled:s,onCheckboxChange:this.onExpirationCheckboxChange,onExpirationDateChange:this.onExpirationDateChange})}},{key:"renderAccessLevelNotice",value:function(){var e=function(e,t){var n;switch(e){case xo:n=t?oo.withLinkViewDownload:oo.withLinkView;break;case _o:n=t?oo.inCompanyViewDownload:oo.inCompanyView;break;case Po:n=oo.inItem}return n}(this.props.accessLevel,this.state.isDownloadEnabled);return e&&o.a.createElement("div",{className:"link-settings-modal-notice"},o.a.createElement(c.a,e)," ",o.a.createElement(Qr.a,{href:"https://community.box.com/t5/Using-Shared-Links/Shared-Link-Settings/ta-p/50250",target:"_blank"},o.a.createElement(c.a,oo.sharedLinkSettingWarningLinkText)))}},{key:"renderAllowDownloadSection",value:function(){var e=this.props,t=e.canChangeDownload,n=e.directLink,r=e.directLinkInputProps,i=e.downloadCheckboxProps,a=e.isDirectLinkAvailable,s=e.isDirectLinkUnavailableDueToDownloadSettings,l=e.isDirectLinkUnavailableDueToAccessPolicy,u=e.isDirectLinkUnavailableDueToMaliciousContent,c=e.isDownloadAvailable,f=e.item,d=this.state.isDownloadEnabled,p=f.classification;return o.a.createElement(Co,{canChangeDownload:t,classification:p,directLink:n,directLinkInputProps:r,downloadCheckboxProps:i,isDirectLinkAvailable:a,isDirectLinkUnavailableDueToDownloadSettings:s,isDirectLinkUnavailableDueToAccessPolicy:l,isDirectLinkUnavailableDueToMaliciousContent:u,isDownloadAvailable:c,isDownloadEnabled:d,onChange:this.onAllowDownloadChange})}},{key:"renderModalTitle",value:function(){var e=this.props.item,t=e.bannerPolicy,n=e.classification;return o.a.createElement("span",{className:"bdl-SharedLinkSettingsModal-title"},o.a.createElement(c.a,oo.modalTitle),o.a.createElement(v.c,{definition:t?t.body:void 0,messageStyle:"tooltip",name:n,className:"bdl-SharedLinkSettingsModal-classification"}))}},{key:"render",value:function(){var e=this.props,t=e.canChangeDownload,n=e.canChangeExpiration,r=e.canChangePassword,i=e.canChangeVanityName,a=e.cancelButtonProps,s=e.isOpen,l=e.modalProps,u=e.onRequestClose,f=e.saveButtonProps,d=e.submitting,p=!(t&&n&&r&&i),h=!(t||n||r||i);return o.a.createElement(y.a,To({className:"be-modal shared-link-settings-modal",isOpen:s,onRequestClose:d?void 0:u,title:this.renderModalTitle()},l),o.a.createElement("form",{onSubmit:this.onSubmit},p&&o.a.createElement(U.a,{type:"warning"},o.a.createElement(c.a,oo.inaccessibleSettingsNotice)),this.renderAccessLevelNotice(),this.renderExpirationSection(),this.renderPasswordSection(),this.renderVanityNameSection(),this.renderAllowDownloadSection(),o.a.createElement(y.b,null,o.a.createElement(A.b,To({isDisabled:d,onClick:u,type:"button"},a),o.a.createElement(c.a,fe.a.cancel)),o.a.createElement(tn.a,To({isDisabled:d||h,isLoading:d},f),o.a.createElement(c.a,fe.a.save)))))}}])&&Io(n.prototype,r),i&&Io(n,i),t}(r.Component);Ro(No,"propTypes",{hideVanityNameSection:$r.a.bool,isOpen:$r.a.bool,onRequestClose:$r.a.func,submitting:$r.a.bool,warnOnPublic:$r.a.bool,onSubmit:$r.a.func.isRequired,accessLevel:$r.a.string,canChangeVanityName:$r.a.bool.isRequired,vanityName:$r.a.string.isRequired,serverURL:$r.a.string.isRequired,vanityNameError:$r.a.string,canChangePassword:$r.a.bool.isRequired,isPasswordAvailable:$r.a.bool.isRequired,isPasswordEnabled:$r.a.bool.isRequired,passwordError:$r.a.string,passwordInformationText:$r.a.string,canChangeExpiration:$r.a.bool.isRequired,expirationTimestamp:$r.a.number,expirationError:$r.a.string,isDownloadAvailable:$r.a.bool.isRequired,canChangeDownload:$r.a.bool.isRequired,isDownloadEnabled:$r.a.bool.isRequired,directLink:$r.a.string.isRequired,isDirectLinkAvailable:$r.a.bool.isRequired,isDirectLinkUnavailableDueToDownloadSettings:$r.a.bool.isRequired,isDirectLinkUnavailableDueToAccessPolicy:$r.a.bool.isRequired,isDirectLinkUnavailableDueToMaliciousContent:$r.a.bool.isRequired,item:$r.a.object,cancelButtonProps:$r.a.object,directLinkInputProps:$r.a.object,downloadCheckboxProps:$r.a.object,expirationCheckboxProps:$r.a.object,expirationInputProps:$r.a.object,modalProps:$r.a.object,passwordCheckboxProps:$r.a.object,passwordInputProps:$r.a.object,saveButtonProps:$r.a.object,vanityNameInputProps:$r.a.object}),Ro(No,"defaultProps",{cancelButtonProps:{},modalProps:{},saveButtonProps:{}});var Mo=No,Fo=n(1),Uo={400:"badRequestError",401:"noAccessError",403:"noAccessError",404:"notFoundError",500:"loadingError"},Bo=[Fo.sc,Fo.tc,Fo.xc,Fo.Dc,Fo.Gc,Fo.Kc,Fo.ud,Fo.Wc,Fo.Yc,Fo.bd,Fo.ld,Fo.md,Fo.nd],Ho={fields:Bo},zo={SHARED_LINK_SETTINGS:"SHARED_LINK_SETTINGS",UNIFIED_SHARE_MODAL:"UNIFIED_SHARE_MODAL"};function Vo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Wo,qo,Go,Ko,Xo,Yo=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=Vo(r.useState(null),2),l=s[0],c=s[1],f=Vo(r.useState(null),2),d=f[0],p=f[1],h=Vo(r.useState(null),2),b=h[0],m=h[1],y=Vo(r.useState(null),2),v=y[0],g=y[1],w=Vo(r.useState(null),2),E=w[0],S=w[1],O=Vo(r.useState(!1),2),k=O[0],C=O[1],x=r.useRef(i),_=a.handleRemoveSharedLinkError,P=void 0===_?u.a:_,A=a.handleRemoveSharedLinkSuccess,T=void 0===A?function(e){return e}:A,I=a.handleUpdateSharedLinkError,j=void 0===I?u.a:I,D=a.handleUpdateSharedLinkSuccess,L=void 0===D?function(e){return e}:D,R=a.setIsLoading,N=void 0===R?u.a:R,M=a.transformAccess,F=void 0===M?function(e){return e}:M,U=a.transformPermissions,B=void 0===U?function(e){return e}:U,H=a.transformSettings,z=void 0===H?function(e,t){return e}:H;return r.useEffect((function(){if(o&&!k){var r,i={id:t,permissions:o};n===Fo.Jf?r=e.getFileAPI():n===Fo.Kf&&(r=e.getFolderAPI());var a=function(e){var t=e.access,n=e.requestOptions,o=void 0===n?Ho:n,a=e.successFn,s=void 0===a?L:a,l=e.errorFn,u=void 0===l?j:l;return N(!0),r.share(i,t,s,u,o)};c((function(){return function(){return a({successFn:function(e){var t=e.shared_link.access;x.current=t,L(e)}})}}));p((function(){return function(){return a({access:Fo.c,successFn:T,errorFn:P})}}));m((function(){return function(e){return a({access:F(e),successFn:function(t){x.current=e,L(t)}})}}));var s=function(e){return N(!0),r.updateSharedLink(i,e,L,j,Ho)};g((function(){return function(e){return s({permissions:B(e)})}}));S((function(){return function(e){return s(z(e,x.current))}})),C(!0)}}),[o,k,t,n,L,T,F,i,B,z,x,e,N,P,j]),{changeSharedLinkAccessLevel:b,changeSharedLinkPermissionLevel:v,onAddLink:l,onRemoveLink:d,onSubmitSettings:E}},Jo=n(15);function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti=(ei(Wo={},Fo.a,Ce),ei(Wo,Fo.b,"peopleInYourCompany"),ei(Wo,Fo.d,ke),ei(Wo,Fo.c,""),Wo),ni=(ei(qo={},Fo.De,_e),ei(qo,Fo.Fe,Pe),qo),ri=(ei(Go={},"peopleInYourCompany",Fo.b),ei(Go,ke,Fo.d),ei(Go,Ce,Fo.a),Go),oi=(ei(Ko={},_e,Fo.De),ei(Ko,Pe,Fo.Fe),Ko),ii=(ei(Xo={},ue.x,Jo.c),ei(Xo,ue.r,Jo.d),ei(Xo,ue.v,Jo.e),ei(Xo,ue.t,Jo.f),ei(Xo,ue.p,Jo.g),ei(Xo,ue.f,Jo.h),ei(Xo,ue.n,Jo.i),ei(Xo,ue.i,Jo.j),Xo),ai=new RegExp("boxdevedition.com"),si=function(e){if(!e)return null;var t={};return Object.entries(e).forEach((function(e){var n=Zo(e,2),r=n[0],o=n[1];t[ti[r]]=o})),t},li=function(e){if(!e)return null;var t={peopleInThisItem:!1,peopleInYourCompany:!1,peopleWithTheLink:!1};return e.forEach((function(e){t[ti[e]]=!0})),t},ui=function(e){var t=e.allowed_invitee_roles,n=e.allowed_shared_link_access_levels,r=e.allowed_shared_link_access_levels_disabled_reasons,o=e.classification,i=e.id,a=e.description,s=e.extension,l=e.name,u=e.owned_by,c=u.id,f=u.login,d=e.permissions,p=e.shared_link,h=e.shared_link_features,b=h.download_url,m=h.password,y=e.type,v=d.can_download,g=d.can_invite_collaborator,w=d.can_preview,E=d.can_set_share_access,S=d.can_share,O={};if(o){var k=o.color,C=o.definition,x=o.name;O={bannerPolicy:{body:C,colorID:ii[k]},classification:x}}var _=-1!==t.indexOf(Fo.be),P={canInvite:!!g};if(p){var A=p.download_url,T=p.effective_access,I=p.effective_permission,j=p.is_password_enabled,D=p.password,L=p.unshared_at,R=p.url,N=p.vanity_name,M=T?ti[T]:"",F=I?ni[I]:null,U=F===ni.can_download,B=E&&v&&T!==Fo.a,H=E&&m,z=E&&_;P={accessLevel:M,accessLevelsDisabledReason:si(r)||{},allowedAccessLevels:li(n)||Ae,canChangeAccessLevel:E,canChangeDownload:B,canChangeExpiration:z,canChangePassword:H,canChangeVanityName:!1,canInvite:!!g,directLink:A,expirationTimestamp:L?new Date(L).getTime():null,isDirectLinkAvailable:b,isDownloadAllowed:U,isDownloadAvailable:v,isDownloadEnabled:U,isDownloadSettingAvailable:v,isEditAllowed:_,isNewSharedLink:!1,isPasswordAvailable:m,isPasswordEnabled:j,isPreviewAllowed:w,password:D,permissionLevel:F,url:R,vanityName:N||""}}return{item:Qo({canUserSeeClassification:!!o,description:a,extension:s,grantedPermissions:{itemShare:!!S},hideCollaborators:!1,id:i,name:l,ownerEmail:f,ownerID:c,permissions:d,type:y,typedID:y===Fo.Kf?Object(pt.c)(i):Object(pt.b)(i)},O),sharedLink:P}},ci=function(e){var t=e.enterprise,n=e.hostname;return{id:e.id,userEnterpriseData:{enterpriseName:t?t.name:"",serverURL:n?"".concat(n,"v/"):""}}},fi=function(e){var t={};return Object.keys(oi).forEach((function(n){t[oi[n]]=n===e})),t},di=function(e,t,n,r){var o=e.expirationTimestamp,i=e.isDownloadEnabled,a=e.isExpirationEnabled,s=e.isPasswordEnabled,l=e.password,u=e.vanityName,c={unshared_at:o&&a?new Date(o).toISOString():null,vanity_url:r&&u?"".concat(r).concat(u):""};if(![Fo.a,Ce].includes(t)){var f={can_preview:!i};n&&(f.can_download=i),c.permissions=f}return[ke,Fo.d].includes(t)&&(s&&l?c.password=l:s||(c.password=null)),c},pi=function(e){var t=e.collab,n=e.avatarURLMap,r=e.ownerEmail,o=e.isCurrentUserOwner,i=void 0!==o&&o;if(!t||t.status!==Fo.nf)return null;var a=r&&/@/.test(r)?r.split("@")[1]:null,s=t.accessible_by,l=s.id,u=s.login,c=s.name,f=s.type,d=t.id,p=t.expires_at,h=t.role,b=n?n[l]:void 0,m={collabID:parseInt(d,10),email:u,hasCustomAvatar:!!b,imageURL:b,isExternalCollab:Gn(i,a,u),name:c,translatedRole:"".concat(h[0].toUpperCase()).concat(h.slice(1)),type:f,userID:parseInt(l,10)};return p&&(m.expiration={executeAt:p}),m},hi=function(e,t,n,r){var o=e.entries,i=void 0===o?[]:o;if(!i.length)return{collaborators:[]};var a=[];return i.filter((function(e){return e.status===Fo.nf})).forEach((function(e){var o=pi({collab:e,avatarURLMap:t,ownerEmail:n,isCurrentUserOwner:r});o&&a.push(o)})),{collaborators:a}},bi=function(e,t){var n=e.emails,r=e.groupIDs,o=e.permission,i=n?n.split(","):[],a=r?r.split(","):[],s=new Set;t&&t.collaborators.forEach((function(e){"user"===e.type&&e.email?s.add(e.email):"group"===e.type&&e.userID&&s.add(e.userID.toString())}));var l={role:o.toLowerCase()};return{groups:a.filter((function(e){return!s.has(e)})).map((function(e){return Qo({accessible_by:{id:e,type:"group"}},l)})),users:i.filter((function(e){return!s.has(e)})).map((function(e){return Qo({accessible_by:{login:e,type:"user"}},l)}))}},mi=function(e,t){var n=e.name,r=void 0===n?"":n,o=t.name,i=void 0===o?"":o;return r.localeCompare(i)},yi=function(e,t){var n=e.entries;return(void 0===n?[]:n).filter((function(e){var n=e.id,r=e.login,o=e.status;return n!==t&&r&&!ai.test(r)&&o&&o!==Fo.qf})).map((function(e){return{id:e.id,email:e.login,name:e.name,type:e.type}})).sort(mi)},vi=function(e){var t=e.entries,n={};return(void 0===t?[]:t).forEach((function(e){var t=e.id,r=e.login,o=void 0===r?"":r,i=e.name,a=e.type;n[o]={id:t,email:o,name:i,type:a}})),n},gi=function(e){var t=e.entries;return(void 0===t?[]:t).filter((function(e){var t=e.permissions;return t&&t.can_invite_as_collaborator})).map((function(e){return{id:e.id,name:e.name,type:e.type}})).sort(mi)};function wi(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ei(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){wi(i,r,o,a,s,"next",e)}function s(e){wi(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Oi=function(e,t,n){var o=Si(r.useState(null),2),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&n&&n.entries){var r=e.getUsersAPI(!1);Ei(regeneratorRuntime.mark((function e(){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},i=n?n.entries:[],e.next=4,Promise.all(i.map(function(){var e=Ei(regeneratorRuntime.mark((function e(n){var i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&n.accessible_by){e.next=2;break}return e.abrupt("return");case 2:return i=n.accessible_by.id,e.next=5,r.getAvatarUrlWithAccessToken(i.toString(),t);case 5:a=e.sent,o[i]=a;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:a(o);case 5:case"end":return e.stop()}}),e)})))()}}),[e,i,n,t]),i};function ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ci=function(e,t,n,o){var i=ki(r.useState(null),2),a=i[0],s=i[1],l=o.handleSuccess,c=void 0===l?u.a:l,f=o.handleError,d=void 0===f?u.a:f;return r.useEffect((function(){if(!a){var r;n===Fo.Jf?r=e.getFileCollaborationsAPI(!1):n===Fo.Kf&&(r=e.getFolderCollaborationsAPI(!1)),r&&r.getCollaborations(t,(function(e){s(e),c(e)}),(function(){s({entries:[],next_marker:null}),d()}))}}),[e,a,d,c,t,n]),a};function xi(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Pi=function(e,t,n){var o=_i(r.useState(null),2),i=o[0],a=o[1],s=n.handleSuccess,l=void 0===s?u.a:s,c=n.handleError,f=void 0===c?u.a:c,d=n.transformGroups,p=n.transformUsers;return r.useEffect((function(){if(!i){var n=function(e,t,n){l(t);var r=t&&t.entries&&t.entries.length;if(n&&r)return e(n(t));return e(t&&t.entries?t.entries:[])};a((function(){return function(r){var o=new Promise((function(o){e.getMarkerBasedUsersAPI(!1).getUsersInEnterprise(t,(function(e){return n(o,e,p)}),f,{filter_term:r})})),i=new Promise((function(o){e.getMarkerBasedGroupsAPI(!1).getGroupsInEnterprise(t,(function(e){return n(o,e,d)}),f,{fields:[Fo.Wc,Fo.bd].toString(),filter_term:r})}));return Promise.all([o,i]).then((function(e){return[].concat(xi(e[0]),xi(e[1]))}))}}))}}),[e,i,f,l,t,d,p]),i};function Ai(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ii=function(e,t,n,o){var i=Ti(r.useState(null),2),a=i[0],s=i[1],l=o.handleSuccess,c=void 0===l?u.a:l,f=o.handleError,d=void 0===f?u.a:f,p=o.setIsLoading,h=void 0===p?u.a:p,b=o.transformRequest,m=o.transformResponse,y=void 0===m?function(e){return e}:m;return r.useEffect((function(){if(!a){var r={id:t,type:n},o=function(t){return h(!0),e.getCollaborationsAPI(!1).addCollaboration(r,t,(function(e){return c(e),y(e)}),d)};a||s((function(){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b){e.next=2;break}return e.abrupt("return",Promise.resolve(null));case 2:return n=b(t),r=n.users,i=n.groups,e.abrupt("return",Promise.all([r.map((function(e){return o(e)})),i.map((function(e){return o(e)}))]));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ai(i,r,o,a,s,"next",e)}function s(e){Ai(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()}))}}),[e,d,c,t,n,a,h,b,y]),a},ji=Object(g.defineMessages)({badRequestError:{id:"be.contentSharing.badRequestError",defaultMessage:"The request for this item was malformed."},loadingError:{id:"be.contentSharing.loadingError",defaultMessage:"Could not load shared link for this item."},noAccessError:{id:"be.contentSharing.noAccessError",defaultMessage:"You do not have access to this item."},notFoundError:{id:"be.contentSharing.notFoundError",defaultMessage:"Could not find shared link for this item."},sharedLinkUpdateError:{id:"be.contentSharing.sharedLinkUpdateError",defaultMessage:"Could not update the shared link for this item."},sharedLinkSettingsUpdateSuccess:{id:"be.contentSharing.sharedLinkSettingsUpdateSuccess",defaultMessage:"The shared link for this item was successfully updated."},sharedLinkRemovalSuccess:{id:"be.contentSharing.sharedLinkRemovalSuccess",defaultMessage:"The shared link for this item was removed."},collaboratorsLoadingError:{id:"be.contentSharing.collaboratorsLoadingError",defaultMessage:"Could not retrieve collaborators for this item."},getContactsError:{id:"be.contentSharing.getContactsError",defaultMessage:"Could not retrieve contacts."},sendInvitesError:{id:"be.contentSharing.sendInvitesError",defaultMessage:"Could not send invites."},sendInvitesSuccess:{id:"be.contentSharing.sendInvitesSuccess",defaultMessage:"Successfully invited collaborators."}});function Di(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){Ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Fi=function(e){var t=e.accessLevel,n=e.api,o=e.closeComponent,i=e.closeSettings,a=e.collaboratorsList,s=e.currentUserID,l=e.getContacts,u=e.isDownloadAvailable,f=e.itemID,b=e.itemType,m=e.ownerEmail,y=e.ownerID,v=e.permissions,g=e.sendInvites,w=e.serverURL,E=e.setChangeSharedLinkAccessLevel,S=e.setChangeSharedLinkPermissionLevel,O=e.setGetContacts,k=e.setCollaboratorsList,C=e.setIsLoading,x=e.setItem,_=e.setOnAddLink,P=e.setOnRemoveLink,A=e.setOnSubmitSettings,T=e.setSendInvites,I=e.setSharedLink,j=Mi(r.useState({}),2),D=j[0],L=j[1],R=Mi(r.useState(0),2),N=R[0],M=R[1],F=r.useCallback((function(e){var t=Ri({},D);delete t[e],L(t)}),[D]),U=r.useCallback((function(e,t){var n=Ri({},D);n[N]||(n[N]=r.createElement(p.a,{key:N,duration:h.DURATION_SHORT,onClose:function(){return F(N)},type:e},r.createElement("span",null,r.createElement(c.a,t))),L(n),M(N+1))}),[F,N,D]),B=Yo(n,f,b,v,t,{handleUpdateSharedLinkError:function(){U(h.TYPE_ERROR,ji.sharedLinkUpdateError),C(!1),i()},handleUpdateSharedLinkSuccess:function(e){U(h.TYPE_INFO,ji.sharedLinkSettingsUpdateSuccess),function(e){var t=ui(e),n=t.item,r=t.sharedLink;x((function(e){return Ri({},e,{},n)})),I((function(e){return Ri({},e,{},r)}))}(e),C(!1),i()},handleRemoveSharedLinkError:function(){U(h.TYPE_ERROR,ji.sharedLinkUpdateError),C(!1),o()},handleRemoveSharedLinkSuccess:function(e){U(h.TYPE_INFO,ji.sharedLinkRemovalSuccess),function(e){var t=ui(e),n=t.item,r=t.sharedLink;x((function(e){return Ri({},e,{},n)})),I((function(e){return Ri({},r,{serverURL:e?e.serverURL:"",enterpriseName:e&&e.enterpriseName?e.enterpriseName:""})}))}(e),C(!1),o()},setIsLoading:C,transformAccess:function(e){return ri[e]},transformPermissions:function(e){return fi(e)},transformSettings:function(e,t){return di(e,t,u,w)}}),H=B.changeSharedLinkAccessLevel,z=B.changeSharedLinkPermissionLevel,V=B.onAddLink,W=B.onRemoveLink,q=B.onSubmitSettings;E((function(){return H})),S((function(){return z})),_((function(){return V})),P((function(){return W})),A((function(){return q}));var G=Ci(n,f,b,{handleError:function(){return U(h.TYPE_ERROR,ji.collaboratorsLoadingError)}}),K=Oi(n,f,G);G&&K&&!a&&k(hi(G,K,m,s===y));var X=Pi(n,f,{handleError:function(){return U(h.TYPE_ERROR,ji.getContactsError)},transformGroups:function(e){return gi(e)},transformUsers:function(e){return yi(e,s)}});X&&!l&&O((function(){return X}));var Y=Ii(n,f,b,{handleSuccess:function(e){U(h.TYPE_INFO,ji.sendInvitesSuccess),C(!1),k((function(t){var n=t?Ri({},t):{collaborators:[]},r=pi({collab:e,ownerEmail:m,isCurrentUserOwner:s===y});return r&&n.collaborators.push(r),n})),o()},handleError:function(){U(h.TYPE_ERROR,ji.sendInvitesError),C(!1),o()},setIsLoading:C,transformRequest:function(e){return bi(e,a)}});return Y&&!g&&T((function(){return Y})),r.createElement(d.a,null,r.createElement(r.Fragment,null,Di(Object.values(D))))};function Ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Bi=function(e,t,n){var o=Ui(r.useState(null),2),i=o[0],a=o[1],s=n.handleSuccess,l=void 0===s?u.a:s,c=n.handleError,f=void 0===c?u.a:c,d=n.transformUsers;return r.useEffect((function(){if(!i){a((function(){return function(n){if(!n||!Array.isArray(n.emails)||!n.emails.length)return Promise.resolve({});var r=n.emails[0];return new Promise((function(n){e.getMarkerBasedUsersAPI(!1).getUsersInEnterprise(t,(function(e){return function(e,t,n){return l(t),t&&t.entries&&t.entries.length?e(n?n(t):t.entries):e({})}(n,e,d)}),f,{filter_term:r})}))}}))}}),[e,i,f,l,t,d]),i};function Hi(){return(Hi=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 zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Gi=function(e){var t=e.api,n=e.config,o=e.displayInModal,i=e.isVisible,a=e.itemID,l=e.itemType,m=e.language,y=e.messages,v=e.setIsVisible,g=e.uuid,w=qi(r.useState(null),2),E=w[0],S=w[1],O=qi(r.useState(null),2),k=O[0],C=O[1],x=qi(r.useState(null),2),_=x[0],P=x[1],A=qi(r.useState(null),2),T=A[0],I=A[1],j=qi(r.useState(null),2),D=j[0],L=j[1],R=qi(r.useState(!1),2),N=R[0],M=R[1],F=qi(r.useState(null),2),U=F[0],B=F[1],H=qi(r.useState(null),2),z=H[0],V=H[1],W=qi(r.useState(null),2),q=W[0],G=W[1],K=qi(r.useState(null),2),X=K[0],Y=K[1],J=qi(r.useState(null),2),$=J[0],Q=J[1],Z=qi(r.useState(null),2),ee=Z[0],te=Z[1],ne=qi(r.useState(zo.UNIFIED_SHARE_MODAL),2),re=ne[0],oe=ne[1],ie=qi(r.useState(null),2),ae=ie[0],se=ie[1],le=qi(r.useState(null),2),ue=le[0],ce=le[1],fe=qi(r.useState(null),2),de=fe[0],pe=fe[1],he=qi(r.useState(!0),2),be=he[0],me=he[1],ye=r.useCallback((function(e){var t=ui(e),n=t.item,r=t.sharedLink;S(n),C(r),me(!1)}),[]),ve=r.useCallback((function(e){var t;N||(M(!0),me(!1),t=e.status?ji[Uo[e.status]]:e.response&&e.response.status?ji[Uo[e.response.status]]:ji.loadingError,L(t))}),[N]);r.useEffect((function(){Y(null),Q(null),B(null),L(null),I(null),P(null),M(!1),me(!0),S(null),V(null),G(null),C(null)}),[t]),r.useEffect((function(){L(null),M(!1)}),[g]),r.useEffect((function(){!t||s()(t)||D||!i||E||k||(l===Fo.Jf?t.getFileAPI().getFile(a,ye,ve,{fields:Bo}):l===Fo.Kf&&t.getFolderAPI().getFolderFields(a,ye,ve,{fields:Bo}))}),[t,D,ve,ye,i,E,a,l,k]),r.useEffect((function(){var e=function(e){var t=ci(e),n=t.id,r=t.userEnterpriseData;I(n),P(r.enterpriseName||null),C((function(e){return Vi({},e,{},r)})),L(null),me(!1)};t&&!s()(t)&&!D&&E&&k&&!T&&t.getUsersAPI(!1).getUser(a,e,ve,{params:{fields:[Fo.Fc,Fo.Jc].toString()}})}),[ve,E,a,l,k,T,t,D]);var ge=Bi(t,a,{transformUsers:function(e){return vi(e)}});if(ge&&!ue&&ce((function(){return ge})),D)return N?r.createElement(f.a,{language:m,messages:y},r.createElement(d.a,null,r.createElement(p.a,{onClose:function(){return M(!1)},type:h.TYPE_ERROR,duration:h.DURATION_SHORT},r.createElement("span",null,r.createElement(c.a,D))))):null;if(!(E&&k&&T&&k.serverURL))return i?r.createElement(b.b,null):null;var we=E.ownerEmail,Ee=E.ownerID,Se=E.permissions,Oe=k.accessLevel,ke=void 0===Oe?"":Oe,Ce=k.canChangeExpiration,xe=void 0!==Ce&&Ce,_e=k.expirationTimestamp,Pe=k.isDownloadAvailable,Ae=void 0!==Pe&&Pe,je=k.serverURL;return r.createElement(f.a,{language:m,messages:y},r.createElement(r.Fragment,null,r.createElement(Fi,{accessLevel:ke,api:t,closeComponent:o?function(){return v(!1)}:u.a,closeSettings:function(){return oe(zo.UNIFIED_SHARE_MODAL)},collaboratorsList:U,currentUserID:T,getContacts:ae,isDownloadAvailable:Ae,itemID:a,itemType:l,onSubmitSettings:ee,ownerEmail:we,ownerID:Ee,permissions:Se,sendInvites:de,serverURL:je,setChangeSharedLinkAccessLevel:Y,setChangeSharedLinkPermissionLevel:Q,setGetContacts:se,setCollaboratorsList:B,setIsLoading:me,setItem:S,setOnAddLink:V,setOnRemoveLink:G,setOnSubmitSettings:te,setSendInvites:pe,setSharedLink:C}),i&&re===zo.SHARED_LINK_SETTINGS&&r.createElement(Mo,Hi({isDirectLinkUnavailableDueToDownloadSettings:!1,isDirectLinkUnavailableDueToAccessPolicy:!1,isDirectLinkUnavailableDueToMaliciousContent:!1,isOpen:i,item:E,onRequestClose:function(){return oe(zo.UNIFIED_SHARE_MODAL)},onSubmit:ee,submitting:be},k,{canChangeExpiration:xe&&!!_})),i&&re===zo.UNIFIED_SHARE_MODAL&&r.createElement(Yr,{canInvite:k.canInvite,config:n,changeSharedLinkAccessLevel:X,changeSharedLinkPermissionLevel:$,collaboratorsList:U,currentUserID:T,displayInModal:o,getCollaboratorContacts:ae,getContactsByEmail:ue,initialDataReceived:!0,inviteePermissions:l===Fo.Kf?Te:Ie,isOpen:i,item:E,onAddLink:z,onRequestClose:o?function(){return v(!1)}:u.a,onRemoveLink:q,onSettingsClick:function(){return oe(zo.SHARED_LINK_SETTINGS)},sendInvites:de,sharedLink:Vi({},k,{expirationTimestamp:_e?_e/1e3:null}),submitting:be})))};n(241),n(326),n(536);function Ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Xi=function(e,t,n,r){return new i.a({apiHost:e,clientName:Fo.z,id:"".concat(n,"_").concat(t),token:r})};var Yi=function(e){var t=e.apiHost,n=void 0===t?Fo.L:t,o=e.config,i=e.customButton,a=e.displayInModal,s=e.itemID,l=e.itemType,u=e.language,c=e.messages,f=e.token,d=e.uuid,p=Ki(r.useState(Xi(n,s,l,f)),2),h=p[0],b=p[1],m=Ki(r.useState(null),2),y=m[0],v=m[1],g=Ki(r.useState(!i),2),w=g[0],E=g[1];return r.useEffect((function(){!h&&n&&s&&l&&f&&b(Xi(n,s,l,f))}),[h,n,s,l,f]),r.useEffect((function(){E(!i)}),[h,i,d]),r.useEffect((function(){i&&!y&&v(r.cloneElement(i,{onClick:function(){return E(!0)}}))}),[o,i,a,s,l,u,y,c,w]),r.createElement(r.Fragment,null,y,h&&r.createElement(Gi,{api:h,config:o,displayInModal:a,isVisible:w,itemID:s,itemType:l,language:u,messages:c,setIsVisible:E,uuid:d}))};n.d(t,"a",(function(){return Yi}))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var r=n(0),o=n(12),i=n.n(o),a=n(39),s=n(251),l=n(956),u=n(120);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,h(t).apply(this,arguments))}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.options.itemType;Object(a.render)(r.createElement(l.a,f({itemID:this.id,itemType:e||u.a,language:this.language,messages:this.messages,token:this.token,uuid:i()("contentSharing_")},this.options)),this.container)}}])&&d(n.prototype,o),s&&d(n,s),t}(s.a);e.Box=e.Box||{},e.Box.ContentSharing=m,t.default=m}.call(this,n(43))},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){var r=n(990),o=n(991),i=n(537),a=n(32);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,u=t?t():{};return l(n,e,i(s,2),u)}}},function(e,t){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(992);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},function(e,t,n){var r=n(993),o=n(994)(r);e.exports=o},function(e,t,n){var r=n(342),o=n(108);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(83);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){var r=n(559),o=n(996),i=n(997),a=n(560),s=n(998),l=n(552),u=200;e.exports=function(e,t,n){var c=-1,f=o,d=e.length,p=!0,h=[],b=h;if(n)p=!1,f=i;else if(d>=u){var m=t?null:s(e);if(m)return l(m);p=!1,f=a,b=new r}else b=t?[]:h;e:for(;++c<d;){var y=e[c],v=t?t(y):y;if(y=n||0!==y?y:0,p&&v==v){for(var g=b.length;g--;)if(b[g]===v)continue e;t&&b.push(v),h.push(y)}else f(b,v,n)||(b!==h&&b.push(v),h.push(y))}return h}},function(e,t,n){var r=n(341);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(340),o=n(3),i=n(552),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){"use strict";var r=n(950);t.analyze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return r.error("Domain must be a non-empty string");if(e.length>256)return r.error("Domain too long");var n=!r.nonAsciiRx.test(e);if(!n){if(!1===t.allowUnicode)return r.error("Domain contains forbidden Unicode characters");var o=e.normalize("NFC");e=r.punycode(o)}return r.domain(e,t)},t.isValid=function(e,n){return!t.analyze(e,n)}},function(e,t,n){(function(e,r){var o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
163
|
+
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(54),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,f=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113;i&&Symbol.for("react.suspense_list");var b=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder"),i&&Symbol.for("react.scope");var y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||g}function S(){}function O(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||g}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=E.prototype;var k=O.prototype=new S;k.constructor=O,o(k,E.prototype),k.isPureReactComponent=!0;var C={current:null},x={current:null},_=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:x.current}}function T(e){return"object"===r(e)&&null!==e&&e.$$typeof===a}var I=/\/+/g,j=[];function D(e,t,n,r){if(j.length){var o=j.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>j.length&&j.push(e)}function R(e,t,n){return null==e?0:function e(t,n,o,i){var l=r(t);"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case s:u=!0}}if(u)return o(i,t,""===n?"."+N(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var f=n+N(l=t[c],c);u+=e(l,f,o,i)}else if(null===t||"object"!==r(t)?f=null:f="function"==typeof(f=y&&t[y]||t["@@iterator"])?f:null,"function"==typeof f)for(t=f.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,f=n+N(l,c++),o,i);else if("object"===l)throw o=""+t,Error(v(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return u}(e,"",t,n)}function N(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function U(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(I,"$&/")+"/"),R(e,F,t=D(t,i,r,o)),L(t)}function B(){var e=C.current;if(null===e)throw Error(v(321));return e}var H={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return U(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,M,t=D(null,null,t,n)),L(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return U(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},createRef:function(){return{current:null}},Component:E,PureComponent:O,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,n){return B().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,n){return B().useReducer(e,t,n)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:h,createElement:A,cloneElement:function(e,t,n){if(null==e)throw Error(v(267,e));var r=o({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)_.call(t,c)&&!P.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:a,type:e.type,key:i,ref:s,props:r,_owner:l}},createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:C,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:o}},z={default:H},V=z&&H||z;e.exports=V.default||V},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.__esModule=!0;var o=n(64),i=(s(o),s(n(13))),a=s(n(538));s(n(332));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=1073741823;t.default=function(e,t){var n,r,s="__create-react-context-"+(0,a.default)()+"__",d=function(e){function n(){var t,r,o,i;l(this,n);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return t=r=u(this,e.call.apply(e,[this].concat(s))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter((function(t){return t!==e}))},get:function(){return o},set:function(e,t){o=e,i.forEach((function(e){return e(o,t)}))}}),u(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof t?t(n,r):f,0!==(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(o.Component);d.childContextTypes=((n={})[s]=i.default.object.isRequired,n);var p=function(t){function n(){var e,r;l(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=u(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},u(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},n.prototype.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},n.prototype.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[s]?this.context[s].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return p.contextTypes=((r={})[s]=i.default.object,r),{Provider:d,Consumer:p}},e.exports=t.default},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){"use strict";var r={tlds:["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADAC","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFAMILYCOMPANY","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIGO","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNL","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUDAPEST","BUGATTI","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANCERRESEARCH","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CARTIER","CASA","CASE","CASEIH","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CEB","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHRYSLER","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CSC","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DODGE","DOG","DOHA","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUCK","DUNLOP","DUNS","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ESURANCE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EVERBANK","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUJIXEROX","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLADE","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HONEYWELL","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTEL","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISELECT","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","IVECO","JAGUAR","JAVA","JCB","JCP","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LADBROKES","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LANCOME","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIAISON","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LIXIL","LK","LLC","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUPIN","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","METLIFE","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MOBILY","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MOPAR","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MOVISTAR","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NADEX","NAGOYA","NAME","NATIONWIDE","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWHOLLAND","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFF","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","ONYOURSIDE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PIAGET","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","QVC","RACING","RADIO","RAID","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIGHTATHOME","RIL","RIO","RIP","RMIT","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCJOHNSON","SCOR","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SHRIRAM","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPACE","SPORT","SPOT","SPREADBETTING","SR","SRL","SRT","SS","ST","STADA","STAPLES","STAR","STARHUB","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWIFTCOVER","SWISS","SX","SY","SYDNEY","SYMANTEC","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TELEFONICA","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UCONNECT","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VISTAPRINT","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WARMAN","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3OQ18VL8PN36A","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--ESTV75G","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ61U9W7B","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPU716F","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBB9FBPOB","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PBT977C","XN--PGBS0DH","XN--PSSY2U","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"]};e.exports=new Set(r.tlds.map((function(e){return e.toLowerCase()})))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=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)}var i=n(999),a=n(1001),s={defaultTlds:{allow:n(948),deny:null}};e.exports={domain:{analyze:function(e,t){return t=s.options(t),i.analyze(e,t)},isValid:function(e,t){return t=s.options(t),i.isValid(e,t)}},email:{analyze:function(e,t){return t=s.options(t),a.analyze(e,t)},isValid:function(e,t){return t=s.options(t),a.isValid(e,t)}}},s.options=function(e){if(!e)return{tlds:s.defaultTlds};if(!1===e.tlds)return e;if(!e.tlds||!0===e.tlds)return o({},e,{tlds:s.defaultTlds});if("object"!==r(e.tlds))throw new Error("Invalid options: tlds must be a boolean or an object");if(e.tlds.deny){if(e.tlds.deny instanceof Set==!1)throw new Error("Invalid options: tlds.deny must be a Set object");if(e.tlds.allow)throw new Error("Invalid options: cannot specify both tlds.allow and tlds.deny lists");return e}if(!0===e.tlds.allow)return o({},e,{tlds:s.defaultTlds});if(e.tlds.allow instanceof Set==!1)throw new Error("Invalid options: tlds.allow must be a Set object or true");return e}},function(e,t,n){"use strict";var r=n(1e3),o={minDomainSegments:2};t.nonAsciiRx=/[^\x00-\x7f]/,o.tldSegmentRx=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,o.domainSegmentRx=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,t.domain=function(e,n){var r=n.minDomainSegments||o.minDomainSegments,i=e.split(".");if(i.length<r)return t.error("Domain lacks the minimum required number of segments");var a=n.tlds;if(a){var s=i[i.length-1].toLowerCase();if(a.deny&&a.deny.has(s)||a.allow&&!a.allow.has(s))return t.error("Domain uses forbidden TLD")}for(var l=0;l<i.length;++l){var u=i[l];if(!u.length)return t.error("Domain contains empty dot-separated segment");if(u.length>63)return t.error("Domain contains dot-separated segment that is too long");if(l<i.length-1){if(!o.domainSegmentRx.test(u))return t.error("Domain contains invalid character")}else if(!o.tldSegmentRx.test(u))return t.error("Domain contains invalid tld character")}},t.error=function(e){return{error:e}},t.punycode=function(e){return r.toASCII(e)}},,,function(e,t,n){var r=n(989)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},function(e,t,n){var r=n(537),o=n(995);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(97),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);e.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(o,"\\$&"):e}},function(e,t,n){"use strict";n(270);var r=n(0),o=n.n(r),i=n(56),a=n(354),s=n.n(a),l=n(3),u=n.n(l),c=n(119),f=n(128),d=n(540),p=n(541),h=n(268),b=n(28),m=n(51),y=n(184),v=n(259),g=n(88),w=Object(g.defineMessages)({contentSharedWithExternalCollaborators:{id:"boxui.unifiedShare.contentSharedWithExternalCollaborators",defaultMessage:"This content will be shared with external collaborators."},disabledShareLinkPermission:{id:"boxui.unifiedShare.disabledShareLinkPermission",defaultMessage:"This option is not available due to a security policy."},disabledMaliciousContentShareLinkPermission:{id:"boxui.unifiedShare.disabledMaliciousContentShareLinkPermission",defaultMessage:"This option isn’t available for this item due to a security policy."},enterAtLeastOneEmailError:{id:"boxui.unifiedShare.enterAtLeastOneEmail",defaultMessage:"Enter at least one valid email"},contactsExceedLimitError:{id:"boxui.unifiedShare.contactsExceedLimitError",defaultMessage:"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."},enterEmailAddressesCalloutText:{id:"boxui.unifiedShare.enterEmailAddressesCalloutText",defaultMessage:"Share this item with coworkers by entering their email addresses"},ftuxNewUSMUserTitle:{id:"boxui.unifiedShare.ftuxNewUsmUserTitle",defaultMessage:"Simplified sharing for files and folders"},ftuxNewUSMUserBody:{id:"boxui.unifiedShare.ftuxNewUSMUserBody",defaultMessage:"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing."},ftuxLinkText:{id:"boxui.unifiedShare.ftuxLinkText",defaultMessage:"Read more about shared link security here."},ftuxConfirmLabel:{id:"boxui.unifiedShare.ftuxConfirmLabel",defaultMessage:"Got it"},ftuxEditPermissionTooltipBody:{id:"boxui.unifiedShare.ftuxEditPermissionTooltipBody",defaultMessage:"Select the new edit option to easily share your file with people or groups."},ftuxEditPermissionTooltipTitle:{id:"boxui.unifiedShare.ftuxEditPermissionTooltipTitle",defaultMessage:"Collaboration made easy"},collaboratorListTitle:{id:"boxui.unifiedShare.collaboratorListTitle",defaultMessage:"People in ‘{itemName}’"},expirationTooltipClickableText:{id:"boxui.unifiedShare.collaborators.expirationTooltipClickableText",defaultMessage:"Access expires on {date}. Click for details."},groupLabel:{id:"boxui.unifiedShare.groupLabel",defaultMessage:"Group"},modalTitle:{id:"boxui.unifiedShare.modalTitle",defaultMessage:"Share ‘{itemName}’"},emailModalTitle:{id:"boxui.unifiedShare.emailModalTitle",defaultMessage:"Send Link to ‘{itemName}’"},inviteDisabledTooltip:{id:"boxui.unifiedShare.inviteDisabledTooltip",defaultMessage:"You do not have permission to invite collaborators."},inviteDisabledWeblinkTooltip:{id:"boxui.unifiedShare.inviteDisabledWeblinkTooltip",defaultMessage:"Collaborators cannot be added to bookmarks."},inviteFieldLabel:{id:"boxui.unifiedShare.inviteFieldLabel",defaultMessage:"Invite People"},sharedLinkSectionLabel:{id:"boxui.unifiedShare.sharedLinkSectionLabel",defaultMessage:"Share Link"},sharedLinkURLLabel:{id:"boxui.share.sharedLinkURLLabel",defaultMessage:"URL"},settingsButtonLabel:{id:"boxui.unifiedShare.settingsButtonLabel",defaultMessage:"Open shared link settings popup"},linkShareOff:{id:"boxui.unifiedShare.linkShareOff",defaultMessage:"Create shared link"},linkShareOn:{id:"boxui.unifiedShare.linkShareOn",defaultMessage:"Shared link is created"},messageTitle:{id:"boxui.unifiedShare.message",defaultMessage:"Message"},suggestedCollabsTitle:{id:"boxui.unifiedShare.suggestedCollabsTitle",defaultMessage:"Suggested"},peopleInEnterpriseName:{id:"boxui.unifiedShare.peopleInEnterpriseName",defaultMessage:"People in {enterpriseName}"},peopleInYourCompany:{id:"boxui.unifiedShare.peopleInYourCompany",defaultMessage:"People in your company"},peopleInThisFolder:{id:"boxui.unifiedShare.peopleInThisFolder",defaultMessage:"Invited people only"},peopleInThisFile:{id:"boxui.unifiedShare.peopleInThisFile",defaultMessage:"Invited people only"},peopleWithTheLinkText:{id:"boxui.unifiedShare.peopleWithTheLinkText",defaultMessage:"People with the link"},removeLinkConfirmationTitle:{id:"boxui.unifiedShare.removeLinkConfirmationTitle",defaultMessage:"Remove Shared Link"},removeLinkConfirmationDescription:{id:"boxui.unifiedShare.removeLinkConfirmationDescription",defaultMessage:"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?"},removeLinkTooltip:{id:"boxui.unifiedShare.removeLinkTooltip",defaultMessage:"You do not have permission to remove the link."},disabledCreateLinkTooltip:{id:"boxui.unifiedShare.disabledCreateLinkTooltip",defaultMessage:"You do not have permission to create the link."},sendSharedLink:{id:"boxui.unifiedShare.sendSharedLink",defaultMessage:"Send Shared Link"},sendSharedLinkFieldLabel:{id:"boxui.unifiedShare.sendSharedLinkFieldLabel",defaultMessage:"Email Shared Link"},sharedLinkExpirationTooltip:{id:"boxui.unifiedShare.sharedLinkExpirationTooltip",defaultMessage:"This link will expire and be inaccessible on {expiration, date, long}."},sharedLinkPermissionsViewDownload:{id:"boxui.unifiedShare.sharedLinkPermissionsViewDownload",defaultMessage:"Can view and download"},sharedLinkPermissionsViewOnly:{id:"boxui.unifiedShare.sharedLinkPermissionsViewOnly",defaultMessage:"Can view only"},ftuxSharedLinkPermissionsEditTag:{id:"boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag",defaultMessage:"NEW"},sharedLinkPermissionsEdit:{id:"boxui.unifiedShare.sharedLinkPermissionsEdit",defaultMessage:"Can edit"},sharedLinkPermissionsEditTooltip:{id:"boxui.unifiedShare.sharedLinkPermissionsEditTooltip",defaultMessage:"This permission can only be changed in Box Notes"},sharedLinkDisabledTooltipCopy:{id:"boxui.unifiedShare.sharedLinkDisabledTooltipCopy",defaultMessage:"Create and copy link for sharing"},sharedLinkSettingsCalloutText:{id:"boxui.unifiedShare.sharedLinkSettingsCalloutText",defaultMessage:"Create a custom URL, enable password protection, enable link expiration, and much more"},sharedLinkPubliclyAvailable:{id:"boxui.unifiedShare.sharedLinkPubliclyAvailable",defaultMessage:"This content is publicly available to anyone with the link."},sharedLinkEditablePubliclyAvailable:{id:"boxui.unifiedShare.sharedLinkEditablePubliclyAvailable",defaultMessage:"Publicly available for anyone to view and download. Any logged in users with the link can edit."},sharedLinkElevatedEditableCompanyAvailable:{id:"boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable",defaultMessage:"People who have access to this link can edit."},upgradeGetMoreAccessControlsDescription:{id:"boxui.unifiedShare.upgradeGetMoreAccessControlsDescription",defaultMessage:"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings"},upgradeGetMoreAccessControlsLink:{id:"boxui.unifiedShare.upgradeGetMoreAccessControlsLink",defaultMessage:"upgrade"},upgradeLink:{id:"boxui.unifiedShare.upgradeLink",defaultMessage:"Upgrade now"},upgradeInlineNoticeTitle:{id:"boxui.unifiedShare.upgradeInlineNoticeTitle",defaultMessage:"Upgrade Your Plan"},sharedLinkSettings:{id:"boxui.unifiedShare.sharedLinkSettings",defaultMessage:"Link Settings"},peopleWithLinkDescription:{id:"boxui.unifiedShare.peopleWithLinkDescription",defaultMessage:"Publicly accessible and no sign-in required"},peopleInSpecifiedCompanyCanAccessFolder:{id:"boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder",defaultMessage:"Anyone at {company} with the link or people invited to this folder can access"},peopleInCompanyCanAccessFolder:{id:"boxui.unifiedShare.peopleInCompanyCanAccessFolder",defaultMessage:"Anyone in your company with the link or people invited to this folder can access"},peopleInSpecifiedCompanyCanAccessFile:{id:"boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile",defaultMessage:"Anyone at {company} with the link or people invited to this file can access"},peopleInCompanyCanAccessFile:{id:"boxui.unifiedShare.peopleInCompanyCanAccessFile",defaultMessage:"Anyone in your company with the link or people invited to this file can access"},peopleInItemCanAccessFolder:{id:"boxui.unifiedShare.peopleInItemCanAccessFolder",defaultMessage:"Only invited people can access this folder"},peopleInItemCanAccessFile:{id:"boxui.unifiedShare.peopleInItemCanAccessFile",defaultMessage:"Only invited people can access this file"},coownerLevelButtonLabel:{id:"boxui.unifiedShare.coownerLevelButtonLabel",defaultMessage:"Invite as Co-owner"},coownerLevelText:{id:"boxui.unifiedShare.coownerLevelText",defaultMessage:"Co-owner"},coownerLevelDescription:{id:"boxui.unifiedShare.coownerLevelDescription",defaultMessage:"Manage security, upload, download, preview, share, edit, and delete"},editorLevelButtonLabel:{id:"boxui.unifiedShare.editorLevelButtonLabel",defaultMessage:"Invite as Editor"},editorLevelText:{id:"boxui.unifiedShare.editorLevelText",defaultMessage:"Editor"},editorLevelDescription:{id:"boxui.unifiedShare.editorLevelDescription",defaultMessage:"Upload, download, preview, share, edit, and delete"},editorLevelFileDescription:{id:"boxui.unifiedShare.editorLevelFileDescription",defaultMessage:"Upload, download, preview, share, and edit"},previewerLevelButtonLabel:{id:"boxui.unifiedShare.previewerLevelButtonLabel",defaultMessage:"Invite as Previewer"},previewerLevelText:{id:"boxui.unifiedShare.previewerLevelText",defaultMessage:"Previewer"},previewerLevelDescription:{id:"boxui.unifiedShare.previewerLevelDescription",defaultMessage:"Preview only"},previewerUploaderLevelButtonLabel:{id:"boxui.unifiedShare.previewerUploaderLevelButtonLabel",defaultMessage:"Invite as Previewer Uploader"},previewerUploaderLevelText:{id:"boxui.unifiedShare.previewerUploaderLevelText",defaultMessage:"Previewer Uploader"},previewerUploaderLevelDescription:{id:"boxui.unifiedShare.previewerUploaderLevelDescription",defaultMessage:"Upload and preview"},viewerLevelButtonLabel:{id:"boxui.unifiedShare.viewerLevelButtonLabel",defaultMessage:"Invite as Viewer"},viewerLevelText:{id:"boxui.unifiedShare.viewerLevelText",defaultMessage:"Viewer"},viewerLevelDescription:{id:"boxui.unifiedShare.viewerLevelDescription",defaultMessage:"Download, preview, and share"},viewerUploaderLevelButtonLabel:{id:"boxui.unifiedShare.viewerUploaderLevelButtonLabel",defaultMessage:"Invite as Viewer Uploader"},viewerUploaderLevelText:{id:"boxui.unifiedShare.viewerUploaderLevelText",defaultMessage:"Viewer Uploader"},viewerUploaderLevelDescription:{id:"boxui.unifiedShare.viewerUploaderLevelDescription",defaultMessage:"Upload, download, preview, share, and edit"},uploaderLevelButtonLabel:{id:"boxui.unifiedShare.uploaderLevelButtonLabel",defaultMessage:"Invite as Uploader"},uploaderLevelText:{id:"boxui.unifiedShare.uploaderLevelText",defaultMessage:"Uploader"},uploaderLevelDescription:{id:"boxui.unifiedShare.uploaderLevelDescription",defaultMessage:"Upload only"},userCollabText:{id:"boxui.unifiedShare.collaboration.userCollabText",defaultMessage:"User"},groupCollabText:{id:"boxui.unifiedShare.collaboration.groupCollabText",defaultMessage:"Group"},recommendedSharingTooltipCalloutText:{id:"boxui.unifiedShare.recommendedSharingTooltipCalloutText",defaultMessage:"Based on your usage, we think {fullName} would be interested in this file."},justificationSelectPlaceholder:{id:"boxui.unifiedShare.justificationSelectPlaceholder",defaultMessage:"Select Justification"},justificationRequiredError:{id:"boxui.unifiedShare.justificationRequiredError",defaultMessage:"Select a justification or remove people to continue"},restrictedContactsError:{id:"boxui.unifiedShare.restrictedContactsError",defaultMessage:"Remove people to continue"},justifiableContactRestrictionNotice:{id:"boxui.unifiedShare.justifiableContactRestrictionNotice",defaultMessage:"This content requires a business justification to invite {count, plural, one {{count} person} other {{count} people}}. Please select a business justification below."},justifiableContactRestrictionNoticeSingular:{id:"boxui.unifiedShare.justifiableContactRestrictionNoticeSingular",defaultMessage:"This content requires a business justification to invite {email}. Please select a business justification below."},justifiableContactRestrictionRemoveButtonLabel:{id:"boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel",defaultMessage:"Alternatively, remove {count, plural, one {the person} other {{count} people}} and continue"},contactRestrictionNotice:{id:"boxui.unifiedShare.contactRestrictionNotice",defaultMessage:"Invitations cannot be sent to {count, plural, one {{count} person} other {{count} people}} because external collaboration is restricted due to the applied security policy."},contactRestrictionNoticeSingular:{id:"boxui.unifiedShare.contactRestrictionNoticeSingular",defaultMessage:"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy."},contactRestrictionRemoveButtonLabel:{id:"boxui.unifiedShare.contactRestrictionRemoveButtonLabel",defaultMessage:"Remove {count, plural, one {the person} other {{count} people}} and continue"},contactEmailsTooltipText:{id:"boxui.unifiedShare.contactEmailsTooltipText",defaultMessage:"{emails}, and {remainingEmailsCount} more"}});function E(){return(E=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)}var S,O=function(e){var t=e.isEmailLinkSectionExpanded,n=e.showCollaboratorList,r=e.item,i=function(e,t,n){var r=n.name;return e?o.a.createElement(c.a,E({},w.emailModalTitle,{values:{itemName:r}})):t?o.a.createElement(c.a,E({},w.collaboratorListTitle,{values:{itemName:r}})):o.a.createElement(c.a,E({},w.modalTitle,{values:{itemName:r}}))}(t,n,r),a=r.bannerPolicy,s=r.canUserSeeClassification,l=r.classification,u=Object(v.d)(a);return o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"bdl-UnifiedShareModalTitle"},i),s&&o.a.createElement(v.c,{definition:a?a.body:void 0,messageStyle:"tooltip",name:l,color:u,className:"bdl-UnifiedShareModalTitle-classification"}))},k=n(103),C=n.n(k),x=n(486),_=n(53),P=n(159),A=n(26),T=n(4),I=n.n(T);!function(e){e.DEFAULT="default",e.INFO="info",e.WARNING="warning",e.HIGHLIGHT="highlight",e.ERROR="error",e.ALERT="alert",e.SUCCESS="success"}(S||(S={}));n(983);function j(){return(j=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 D(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var L=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.type,a=void 0===i?S.DEFAULT:i,s=D(e,["children","className","type"]),l=I()("badge",a!==S.DEFAULT?"badge-".concat(a):"",o);return r.createElement("span",j({className:l},s),t)},R=Object(g.defineMessages)({beta:{id:"boxui.badges.beta",defaultMessage:"BETA"},trial:{id:"boxui.badges.trial",defaultMessage:"TRIAL"},upgrade:{id:"boxui.badges.upgrade",defaultMessage:"UPGRADE"}});function N(){return(N=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 M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var F=function(e){var t=e.className,n=void 0===t?"":t,o=M(e,["className"]),i=I()("upgrade-badge",n);return r.createElement(L,N({className:i},o),r.createElement(c.a,R.upgrade))},U=n(158),B=n(18),H=n(120),z=n(17),V=n(263),W=n(42),q=n(166),G=n(10),K=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#494949":o,a=e.height,s=void 0===a?14:a,l=e.title,u=e.width,c=void 0===u?14:u;return r.createElement(G.a,{className:"icon-expiration-badge ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("circle",{className:"fill-color",cx:"8",cy:"8",fill:i,r:"8"}),r.createElement("path",{d:"M8,1.5C4.4,1.5,1.5,4.4,1.5,8s2.9,6.5,6.5,6.5s6.5-2.9,6.5-6.5S11.6,1.5,8,1.5z M8,13.5C5,13.5,2.5,11,2.5,8 C2.5,5,5,2.5,8,2.5S13.5,5,13.5,8C13.5,11,11,13.5,8,13.5z",fill:"#FFFFFF"}),r.createElement("polygon",{fill:"#FFFFFF",points:"8.5,8.2 8.5,3.5 7.5,3.5 7.5,8.5 9.7,11.3 10.5,10.7 "}))},X=Object(g.defineMessages)({collaboratorAvatarsLabel:{id:"boxui.collaboratorAvatars.collaboratorAvatarsLabel",defaultMessage:"Shared with"},expirationTooltipText:{id:"boxui.collaboratorAvatars.collaborators.expirationTooltipText",defaultMessage:"Access expires on {date}"},externalCollabTooltipText:{id:"boxui.collaboratorAvatars.collaborators.externalCollabTooltipText",defaultMessage:"{email} is from outside of your company"},manageAllLinkText:{id:"boxui.collaboratorAvatars.manageAllLinkText",defaultMessage:"Manage All"},pendingCollabText:{id:"boxui.collaboratorAvatars.collaboration.pendingCollabText",defaultMessage:"Pending"},viewAdditionalPeopleText:{id:"boxui.collaboratorAvatars.viewAdditionalPeopleText",defaultMessage:"View additional people"}});function Y(){return(Y=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 J(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var $=function(e){var t=e.allowBadging,n=void 0!==t&&t,r=e.expiration,i=e.isExternalCollab,a=void 0!==i&&i,s=e.hasCustomAvatar,l=e.avatarUrl,u=e.name,f=J(e,["allowBadging","expiration","isExternalCollab","hasCustomAvatar","avatarUrl","name"]),d=s&&l?o.a.createElement(q.a,Y({avatarUrl:l,name:u},f,{isExternal:a,shouldShowExternal:n})):o.a.createElement(q.a,Y({name:u||"-"},f,{isExternal:a,shouldShowExternal:n})),p=n&&r&&r.executeAt?o.a.createElement(W.c,{position:"middle-right",text:o.a.createElement(c.a,Y({},X.expirationTooltipText,{values:{date:r.executeAt}}))},o.a.createElement("div",null,o.a.createElement(K,{className:"themed",height:14,width:14}))):null;return o.a.createElement(V.a,{topLeft:p},d)};n(984);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(){return(Z=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 ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oe,ie,ae,se=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(this,ne(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(t,e),n=t,(r=[{key:"isVisible",value:function(){return this.props.collaborators.length>0}},{key:"hasAdditionalCollaborators",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars;return t.length>n}},{key:"collaboratorsOverMaxCount",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars,r=e.maxAdditionalCollaboratorsNum;return t.length-n>r}},{key:"formatAdditionalCollaboratorCount",value:function(){var e=this.props,t=e.maxAdditionalCollaboratorsNum,n=e.maxDisplayedUserAvatars,r=e.collaborators;return this.collaboratorsOverMaxCount()?"".concat(t,"+"):"+".concat(r.length-n)}},{key:"render",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars,r=e.containerAttributes,i=e.onClick;return o.a.createElement(B.a,Z({className:I()("collaborator-avatar-container",{"are-avatars-hidden":!this.isVisible()}),onClick:i},r,{"aria-hidden":this.isVisible()?"false":"true",type:"button"}),o.a.createElement("div",{className:"avatars-label"},o.a.createElement(c.a,X.collaboratorAvatarsLabel)),o.a.createElement("div",{className:"avatars"},this.isVisible()&&t.slice(0,n).map((function(e,t){var n=e.collabID,r=e.imageURL,i=e.hasCustomAvatar,a=e.name;return o.a.createElement($,{key:"collab-avatar-".concat(n),avatarUrl:r,hasCustomAvatar:i,id:t,name:a})}))),this.isVisible()&&this.hasAdditionalCollaborators()&&o.a.createElement("div",{className:"avatars-count"},this.formatAdditionalCollaboratorCount()))}}])&&ee(n.prototype,r),i&&ee(n,i),t}(r.Component);ae={maxDisplayedUserAvatars:3,maxAdditionalCollaboratorsNum:99,containerAttributes:{}},(ie="defaultProps")in(oe=se)?Object.defineProperty(oe,ie,{value:ae,enumerable:!0,configurable:!0,writable:!0}):oe[ie]=ae;var le=se,ue=n(2),ce=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.b:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:"collaboration-badge ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{className:"fill-color",d:"M0 8c0 .62.07 1.23.21 1.824C.47 10.95.975 12 1.682 12.91c.792 1.017 1.82 1.832 2.994 2.37C5.71 15.75 6.837 16 8 16c4.418 0 8-3.582 8-8 0-.26-.21-.47-.47-.47s-.47.21-.47.47c0 3.898-3.162 7.06-7.06 7.06-1.026 0-2.02-.22-2.932-.637-1.035-.473-1.943-1.193-2.642-2.092-.624-.8-1.07-1.727-1.3-2.72C1.003 9.087.94 8.548.94 8 .94 4.102 4.103.94 8 .94c.26 0 .47-.21.47-.47S8.26 0 8 0C3.582 0 0 3.582 0 8z",fill:i}),r.createElement("path",{className:"fill-color",d:"M9 6c0-.552-.448-1-1-1s-1 .448-1 1 .448 1 1 1 1-.448 1-1zM6 6c0-1.105.895-2 2-2s2 .895 2 2-.895 2-2 2-2-.895-2-2zM5.59 11.014c.63-.32 1.354-.514 2.16-.514s1.53.193 2.16.514c.374.19.63.376.75.488.2.188.517.177.706-.024.188-.202.177-.52-.025-.707-.183-.17-.512-.41-.976-.647C9.6 9.733 8.724 9.5 7.75 9.5c-.973 0-1.85.233-2.614.623-.464.236-.793.476-.977.648-.203.19-.214.506-.026.708.19.2.505.212.707.024.12-.112.376-.298.75-.488zM14 2V.498C14 .215 13.776 0 13.5 0c-.268 0-.5.223-.5.498V2h-1.502c-.283 0-.498.224-.498.5 0 .268.223.5.498.5H13v1.502c0 .283.224.498.5.498.268 0 .5-.223.5-.498V3h1.502c.283 0 .498-.224.498-.5 0-.268-.223-.5-.498-.5H14z",fill:i})))},fe=n(33);n(985);function de(){return(de=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)}var pe=function(e){var t=e.index,n=e.trackingProps,r=n.usernameProps,i=n.emailProps,a=e.collaborator,s=a.email,l=a.expiration,u=a.hasCustomAvatar,f=a.name,d=a.type,p=a.imageURL,h=a.isExternalCollab,b=a.profileURL,m=a.translatedRole,y=a.userID,v="group"!==d?o.a.createElement("div",{className:I()("name",d)},o.a.createElement(P.a,de({href:b||"/profile/".concat(y),rel:"noopener",target:"_blank",title:f},r),f)):o.a.createElement("div",{className:I()("name",d)},f),g="group"!==d&&s?o.a.createElement("div",{className:"email"},o.a.createElement(P.a,de({href:"mailto:".concat(s),title:s},i),s)):null;return o.a.createElement("li",null,o.a.createElement("div",{className:"collaborator-list-item"},o.a.createElement("div",{className:"user"},o.a.createElement($,{allowBadging:!0,avatarUrl:p,email:s,expiration:l,hasCustomAvatar:u,id:t,isExternalCollab:h,name:f}),o.a.createElement("div",{className:"info"},v,g)),o.a.createElement("div",{className:"role"},"pending"===d?o.a.createElement(c.a,X.pendingCollabText):m)))};n(986);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(){return(be=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 me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var we=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ye(this,ve(t).apply(this,arguments))}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}(t,e),n=t,(o=[{key:"createCollaboratorPageLink",value:function(e,t){var n=this.props.item,o=n.type,i=n.id,a="/".concat(o,"/").concat(i,"/collaborators/");return r.createElement(P.a,be({href:a,rel:"noopener",target:"_blank"},t),e)}},{key:"render",value:function(){var e=this.props,t=e.collaborators,n=e.onDoneClick,o=e.maxCollaboratorListSize,i=e.trackingProps,a=i.usernameProps,s=i.emailProps,l=i.manageLinkProps,u=i.viewAdditionalProps,f=i.doneButtonProps,d=r.createElement(B.a,{className:"manage-all-btn",type:"button"},r.createElement(c.a,X.manageAllLinkText)),p=Math.min(o,90);return r.createElement("div",{className:"usm-collaborator-list"},r.createElement("div",{className:"manage-all-btn-container"},this.createCollaboratorPageLink(d,l)),r.createElement("ul",{className:"be collaborator-list"},t.slice(0,p).map((function(e,t){var n=e.collabID,o=e.type;return r.createElement(pe,{key:"".concat(n,"-").concat(o),collaborator:e,index:t,trackingProps:{usernameProps:a,emailProps:s}})})),t.length>p&&r.createElement("li",{className:"collaborator-list-item more"},r.createElement("div",null,r.createElement(ce,{height:32,width:32})),r.createElement("div",null,this.createCollaboratorPageLink(r.createElement(c.a,X.viewAdditionalPeopleText),u)))),r.createElement(y.b,null,r.createElement(A.b,be({className:"btn-done",onClick:n},f),r.createElement(c.a,fe.a.done))))}}])&&me(n.prototype,o),i&&me(n,i),t}(r.Component);!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(we,"defaultProps",{maxCollaboratorListSize:90});var Ee=we,Se=n(106),Oe=n(41),ke="peopleWithTheLink",Ce="peopleInThisItem",xe="canEdit",_e="canViewDownload",Pe="canViewOnly",Ae={peopleInThisItem:!0,peopleInYourCompany:!0,peopleWithTheLink:!0},Te=[{default:!1,text:"Co-owner",value:"Co-owner"},{default:!0,text:"Editor",value:"Editor"},{default:!1,text:"Previewer",value:"Previewer"},{default:!1,text:"Previewer Uploader",value:"Previewer Uploader"},{default:!1,text:"Uploader",value:"Uploader"},{default:!1,text:"Viewer",value:"Viewer"},{default:!1,text:"Viewer Uploader",value:"Viewer Uploader"}],Ie=[{default:!0,text:"Editor",value:"Editor"},{default:!1,text:"Viewer",value:"Viewer"}],je=function(e){return e.reduce((function(e,t){return t.default?t.value:e}),"Editor")};function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(e){var t,n=e.inviteePermissionLevel,r=(De(t={},"Editor","folder"===e.itemType?w.editorLevelDescription:w.editorLevelFileDescription),De(t,"Co-owner",w.coownerLevelDescription),De(t,"Viewer Uploader",w.viewerUploaderLevelDescription),De(t,"Previewer Uploader",w.previewerUploaderLevelDescription),De(t,"Viewer",w.viewerLevelDescription),De(t,"Previewer",w.previewerLevelDescription),De(t,"Uploader",w.uploaderLevelDescription),t)[n];return o.a.createElement("small",{className:"usm-menu-description"},o.a.createElement(c.a,r))};function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne=function(e){var t,n,r=e.hasDescription,i=e.inviteePermissionLevel,a=e.itemType,s=(Re(t={},"Editor",w.editorLevelText),Re(t,"Co-owner",w.coownerLevelText),Re(t,"Viewer Uploader",w.viewerUploaderLevelText),Re(t,"Previewer Uploader",w.previewerUploaderLevelText),Re(t,"Viewer",w.viewerLevelText),Re(t,"Previewer",w.previewerLevelText),Re(t,"Uploader",w.uploaderLevelText),t),l=(Re(n={},"Editor",w.editorLevelButtonLabel),Re(n,"Co-owner",w.coownerLevelButtonLabel),Re(n,"Viewer Uploader",w.viewerUploaderLevelButtonLabel),Re(n,"Previewer Uploader",w.previewerUploaderLevelButtonLabel),Re(n,"Viewer",w.viewerLevelButtonLabel),Re(n,"Previewer",w.previewerLevelButtonLabel),Re(n,"Uploader",w.uploaderLevelButtonLabel),n);return r?o.a.createElement("span",null,o.a.createElement("strong",null,o.a.createElement(c.a,s[i])," "),o.a.createElement(Le,{inviteePermissionLevel:i,itemType:a})):o.a.createElement(c.a,l[i])};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(){return(Fe=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 Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var We=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?He(e):t}(this,(e=Be(t)).call.apply(e,[this].concat(o))),Ve(He(n),"onChangeInviteePermissionsLevel",(function(e){var t=n.props,r=t.inviteePermissionLevel,o=t.changeInviteePermissionLevel;r!==e&&o(e)})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ze(e,t)}(t,e),n=t,(r=[{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.inviteePermissionLevel,r=t.inviteePermissions,i=t.itemType,a=je(r),s=n||a;return o.a.createElement(Oe.a,{className:"usm-share-access-menu"},r.map((function(t){return t.value?o.a.createElement(Oe.c,{key:t.value,isDisabled:t.disabled,isSelected:t.value===s,onClick:function(){return e.onChangeInviteePermissionsLevel(t.value)}},o.a.createElement(Ne,{hasDescription:!0,inviteePermissionLevel:t.value,inviteePermissions:!0,itemType:i})):null})))}},{key:"render",value:function(){var e=this.props,t=e.inviteePermissions,n=e.inviteePermissionsButtonProps,r=e.inviteePermissionLevel,i=e.disabled,a=e.itemType,s=je(t),l=r||s,u=a===H.b?o.a.createElement(c.a,w.inviteDisabledWeblinkTooltip):o.a.createElement(c.a,w.inviteDisabledTooltip),f=o.a.createElement(B.a,Fe({className:I()("lnk",{"is-disabled":i,"bdl-is-disabled":i}),disabled:i},n),o.a.createElement(Se.a,null,l&&o.a.createElement(Ne,{hasDescription:!1,inviteePermissionLevel:l,itemType:a}))),d=i?o.a.createElement(z.c,{position:"bottom-center",text:u},o.a.createElement("div",{className:"tooltip-target"},f)):f;return o.a.createElement("div",{className:"be invitee-menu-wrap"},o.a.createElement(Se.b,null,d,this.renderMenu()))}}])&&Ue(n.prototype,r),i&&Ue(n,i),t}(r.Component);Ve(We,"defaultProps",{disabled:!1,inviteePermissions:[],inviteePermissionsButtonProps:{}});var qe=We,Ge=n(532),Ke=n(22),Xe=n.n(Ke),Ye=n(336);n(987);function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}function Qe(){return(Qe=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 Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e,t){return(nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot=r.createElement(c.a,fe.a.copy),it=r.createElement(c.a,fe.a.copied),at=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Je(t)&&"function"!=typeof t?tt(e):t}(this,et(t).call(this,e)),rt(tt(n),"copySelectedText",(function(){return document.execCommand("copy")})),rt(tt(n),"restoreCopyButton",(function(){n.setState({copySuccess:!1,buttonText:n.props.buttonDefaultText})})),rt(tt(n),"handleCopyButtonClick",(function(){n.performAutofocus(),n.copySelectedText(),n.animateCopyButton()})),rt(tt(n),"handleFocus",(function(e){n.copyInputRef&&n.performAutofocus(),n.props.onFocus&&n.props.onFocus(e)})),rt(tt(n),"handleCopyEvent",(function(e){n.animateCopyButton();var t=n.props.onCopySuccess;t&&t(e)})),rt(tt(n),"performAutofocus",(function(){var e=tt(n).copyInputRef;e&&(e.select(),e.scrollLeft=0)})),rt(tt(n),"renderCopyButton",(function(){return n.isCopyCommandSupported?r.createElement(A.b,Qe({isDisabled:n.props.disabled,onClick:n.handleCopyButtonClick,type:"button"},n.props.buttonProps),n.state.buttonText):null})),n.isCopyCommandSupported=document.queryCommandSupported("copy"),n.state={copySuccess:!1,buttonText:e.buttonDefaultText,hasFocused:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.value;t&&n&&this.performAutofocus()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.autofocus,n=e.value,r=e.triggerCopyOnLoad,o=this.state,i=o.copySuccess,a=o.hasFocused;t&&n&&this.performAutofocus(),!r||i||a||this.animateCopyButton()}},{key:"componentWillUnmount",value:function(){this.clearCopySuccessTimeout()}},{key:"animateCopyButton",value:function(){var e=this,t=this.props,n=t.successStateDuration,r=t.buttonSuccessText;this.clearCopySuccessTimeout(),this.setState({copySuccess:!0,buttonText:r,hasFocused:!0},(function(){e.copySuccessTimeout=setTimeout((function(){e.restoreCopyButton()}),n)}))}},{key:"clearCopySuccessTimeout",value:function(){this.copySuccessTimeout&&(clearTimeout(this.copySuccessTimeout),this.copySuccessTimeout=null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=$e(t,["className"]),i=this.state.copySuccess,a=this.isCopyCommandSupported,s=Xe()(o,["autofocus","buttonDefaultText","buttonSuccessText","buttonProps","onCopySuccess","successStateDuration","triggerCopyOnLoad"]);a&&(s.inputRef=function(t){e.copyInputRef=t});var l=I()(n,{"copy-success":i,"text-input-with-copy-button-container":a}),u=a?{onCopy:this.handleCopyEvent}:{};return r.createElement("div",Qe({className:l},u),r.createElement(Ye.a,Qe({},s,{onFocus:this.handleFocus})),this.renderCopyButton())}}])&&Ze(n.prototype,o),i&&Ze(n,i),t}(r.PureComponent);rt(at,"defaultProps",{buttonDefaultText:ot,buttonProps:{},buttonSuccessText:it,className:"",hideOptionalLabel:!0,readOnly:!0,successStateDuration:3e3,type:"text"});var st=at,lt=n(314),ut=n(30),ct=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.l:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:"icon-mail ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{className:"fill-color",fill:i,fillRule:"evenodd",d:"M14 3H2c-.6 0-1 .4-1 1v9c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V4c0-.6-.5-1-1-1zM8 8.5L2.8 4h10.5L8 8.5zm6 4.5H2V4.7l5.7 4.8.3.3.3-.3L14 4.7V13z"}))},ft=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.j:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:I()("bdl-IconClock",n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{className:"fill-color",fill:i,d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"}),r.createElement("path",{className:"fill-color",fill:i,d:"M8 2.5a.5.5 0 0 1 .5.5v4.486l3.208 1.687a.5.5 0 0 1 .244.592l-.034.083a.5.5 0 0 1-.676.21L7.767 8.23a.5.5 0 0 1-.267-.442V3a.5.5 0 0 1 .5-.5z"}))},dt=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ue.j:o,a=e.height,s=void 0===a?20:a,l=e.title,u=e.width,c=void 0===u?20:u;return r.createElement(G.a,{className:"icon-globe ".concat(n),height:s,title:l,viewBox:"0 0 20 20",width:c},r.createElement("g",null,r.createElement("path",{d:"M10 0A9.98 9.98 0 0 0 0 10a9.98 9.98 0 0 0 10 10 9.98 9.98 0 0 0 10-10A9.98 9.98 0 0 0 10 0z",fill:ue.z}),r.createElement("path",{className:"fill-color",d:"M10 0A9.98 9.98 0 0 0 0 10a9.98 9.98 0 0 0 10 10 9.98 9.98 0 0 0 10-10A9.98 9.98 0 0 0 10 0zM8.923 18C5.077 17.385 2 14.154 2 10c0-.615.154-1.23.154-1.846l4.77 4.77V14c0 1.077.922 2 2 2v2zm6.923-2.615C15.538 14.615 14.77 14 14 14h-1.077v-3.077c0-.461-.308-.923-.923-.923H6V8h2c.615 0 1.077-.462 1.077-1.077V5.077h2c1.077 0 2-.923 2-2v-.462C16 3.846 18 6.615 18 10c0 2.154-.77 4-2.154 5.385z",fill:i})))},pt=n(21),ht=n(57);var bt=function(e){return{allowed_shared_link_access_levels:void 0,content_created_at:void 0,content_modified_at:void 0,created_at:void 0,created_by:void 0,description:e.description,download_url:void 0,extension:e.extension,file_version:void 0,has_collaborations:void 0,id:String(e.id),interacted_at:void 0,is_download_available:void 0,is_externally_owned:void 0,item_collection:void 0,metadata:void 0,modified_at:void 0,modified_by:void 0,name:e.name,owned_by:void 0,parent:void 0,path_collection:void 0,permissions:void 0,restored_from:void 0,selected:void 0,shared_link:void 0,size:void 0,type:e.type,url:void 0,version_number:void 0}};function mt(){return(mt=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)}var yt=function(e){var t,n=e.accessLevel,r=e.enterpriseName,i=e.itemType;switch(n){case ke:t=w.peopleWithLinkDescription;break;case"peopleInYourCompany":t="folder"===i?r?w.peopleInSpecifiedCompanyCanAccessFolder:w.peopleInCompanyCanAccessFolder:r?w.peopleInSpecifiedCompanyCanAccessFile:w.peopleInCompanyCanAccessFile;break;case Ce:t="folder"===i?w.peopleInItemCanAccessFolder:w.peopleInItemCanAccessFile;break;default:return null}return o.a.createElement("small",{className:"usm-menu-description"},o.a.createElement(c.a,mt({},t,{values:{company:r}})))};function vt(){return(vt=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 gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt=function(e){var t,n,o=e.accessLevel,i=e.enterpriseName,a=e.hasDescription,s=e.itemType,l=(gt(t={},ke,"peopleWithTheLinkText"),gt(t,"peopleInYourCompany",""===i?"peopleInYourCompany":"peopleInEnterpriseName"),gt(t,Ce,"folder"===s?"peopleInThisFolder":"peopleInThisFile"),t);return o?(n=l[o],a?r.createElement("span",null,r.createElement("strong",null,r.createElement(c.a,vt({},w[n],{values:{enterpriseName:i}}))),r.createElement(yt,{accessLevel:o,enterpriseName:i,itemType:s})):r.createElement(c.a,vt({},w[n],{values:{enterpriseName:i}}))):null};function Et(e){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(){return(St=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 Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt=[ke,"peopleInYourCompany",Ce],At=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Et(t)&&"function"!=typeof t?Ct(e):t}(this,(e=kt(t)).call.apply(e,[this].concat(o))),_t(Ct(n),"onChangeAccessLevel",(function(e){var t=n.props,r=t.accessLevel,o=t.changeAccessLevel,i=t.trackingProps.onChangeSharedLinkAccessLevel;r!==e&&(o(e),i&&i(e))})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}(t,e),n=t,(o=[{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.accessLevel,o=t.accessLevelsDisabledReason,i=t.allowedAccessLevels,a=t.enterpriseName,s=t.itemType;return r.createElement(Oe.a,{className:"usm-share-access-menu","data-testid":"usm-share-access-menu"},Pt.map((function(t){var l=!i[t],u="access_policy"===o[t],f="malicious_content"===o[t],d=u||f,p=f?w.disabledMaliciousContentShareLinkPermission:w.disabledShareLinkPermission;return l&&!d?null:r.createElement(z.c,{isDisabled:!d,key:"tooltip-".concat(t),position:"top-center",text:r.createElement(c.a,p)},r.createElement(Oe.c,{key:t,isDisabled:l,isSelected:t===n,onClick:function(){return e.onChangeAccessLevel(t)}},r.createElement(wt,{accessLevel:t,enterpriseName:a,hasDescription:!0,itemType:s})))})))}},{key:"render",value:function(){var e=this.props,t=e.accessLevel,n=e.enterpriseName,o=e.itemType,i=e.onDismissTooltip,a=e.submitting,s=e.tooltipContent,l=e.trackingProps,u=l.onSharedLinkAccessMenuOpen,c=l.sharedLinkAccessMenuButtonProps;return r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!!s,onDismiss:i,position:"middle-left",showCloseButton:!0,text:s,theme:"callout"},r.createElement(Se.b,{onMenuOpen:u,constrainToWindow:!0},r.createElement(B.a,St({className:I()("lnk",{"is-disabled":a,"bdl-is-disabled":a}),"data-testid":"usm-share-access-toggle",disabled:a},c),r.createElement(Se.a,null,r.createElement(wt,{accessLevel:t,enterpriseName:n,hasDescription:!1,itemType:o}))),this.renderMenu()))}}])&&Ot(n.prototype,o),i&&Ot(n,i),t}(r.Component);_t(At,"defaultProps",{accessLevelsDisabledReason:{},allowedAccessLevels:{},trackingProps:{}});var Tt=At,It=n(55);n(988);function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(){return(Dt=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 Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ut=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==jt(t)&&"function"!=typeof t?Nt(e):t}(this,(e=Rt(t)).call.apply(e,[this].concat(o))),Ft(Nt(n),"onChangePermissionLevel",(function(e){var t=n.props,r=t.changePermissionLevel,o=t.permissionLevel,i=t.trackingProps.onChangeSharedLinkPermissionLevel;o!==e&&(r(e),i&&i(e))})),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.allowedPermissionLevels,i=n.isSharedLinkEditTooltipShown,a=n.permissionLevel,s=n.sharedLinkEditTagTargetingApi,l=n.sharedLinkEditTooltipTargetingApi,u=n.submitting,f=n.trackingProps.sharedLinkPermissionsMenuButtonProps,d=!!s&&s.canShow,p=!!l&&l.canShow;if(!a)return null;var h=(Ft(e={},xe,{label:o.a.createElement(c.a,w.sharedLinkPermissionsEdit)}),Ft(e,_e,{label:o.a.createElement(c.a,w.sharedLinkPermissionsViewDownload)}),Ft(e,Pe,{label:o.a.createElement(c.a,w.sharedLinkPermissionsViewOnly)}),e);return o.a.createElement(Se.b,{constrainToWindow:!0,onMenuClose:function(){r.includes(xe)&&d&&s&&s.onComplete()},onMenuOpen:function(){r.includes(xe)&&d&&s&&s.onShow(),i&&p&&l&&l.onComplete()}},o.a.createElement(B.a,Dt({className:I()("lnk",{"is-disabled":u,"bdl-is-disabled":u}),"data-testid":"usm-share-permissions-toggle",disabled:u},f),o.a.createElement(Se.a,null,h[a].label)),o.a.createElement(Oe.a,{className:"ums-share-permissions-menu","data-testid":"usm-share-permissions-menu"},r.map((function(e){return o.a.createElement(Oe.c,{key:e,isSelected:e===a,onClick:function(){return t.onChangePermissionLevel(e)}},o.a.createElement("div",{className:"ums-share-permissions-menu-item"},o.a.createElement("span",null,h[e].label),e===xe&&d&&o.a.createElement(It.a.Pill,{className:"ftux-editable-shared-link",type:"ftux"},o.a.createElement(It.a.Text,null,o.a.createElement(c.a,w.ftuxSharedLinkPermissionsEditTag)))))}))))}}])&&Lt(n.prototype,r),i&&Lt(n,i),t}(r.Component);Ft(Ut,"defaultProps",{trackingProps:{}});var Bt=Ut;function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(){return(zt=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 Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(e,t){return(Gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ht(t)&&"function"!=typeof t?qt(e):t}(this,Wt(t).call(this,e)),Kt(qt(n),"canAddSharedLink",(function(e,t){return!e&&t})),Kt(qt(n),"canRemoveSharedLink",(function(e,t){return e&&t})),Kt(qt(n),"getAllowedPermissionLevels",(function(){var e=n.props,t=e.isAllowEditSharedLinkForFileEnabled,r=e.sharedLink,o=r.canChangeAccessLevel,i=r.isEditSettingAvailable,a=r.isDownloadSettingAvailable,s=r.permissionLevel,l=[xe,_e,Pe];return o||(l=l.filter((function(e){return e===s}))),a||(l=l.filter((function(e){return e!==_e}))),i&&t||(l=l.filter((function(e){return e!==xe}))),l})),n.state={isAutoCreatingSharedLink:!1,isCopySuccessful:null,isSharedLinkEditTooltipShown:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gt(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.sharedLink,n=e.autoCreateSharedLink,r=e.addSharedLink,o=e.submitting;!n||this.state.isAutoCreatingSharedLink||!t||t.url||o||t.isNewSharedLink||(this.setState({isAutoCreatingSharedLink:!0}),r())}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.sharedLink,o=n.autoCreateSharedLink,i=n.addSharedLink,a=n.sharedLinkEditTooltipTargetingApi,s=n.submitting,l=n.triggerCopyOnLoad,u=n.onCopyError,c=void 0===u?function(){}:u,f=n.onCopySuccess,d=void 0===f?function(){}:f,p=n.onCopyInit,h=void 0===p?function(){}:p,b=this.state,m=b.isAutoCreatingSharedLink,y=b.isCopySuccessful,v=b.isSharedLinkEditTooltipShown;!o||m||r.url||s||r.isNewSharedLink||(this.setState({isAutoCreatingSharedLink:!0}),i()),!e.sharedLink.url&&r.url&&(this.setState({isAutoCreatingSharedLink:!1}),this.toggleRef&&this.toggleRef.focus()),ht.a.canWriteToClipboard()&&l&&!m&&r.url&&null===y&&(h(),navigator.clipboard.writeText(r.url).then((function(){t.setState({isCopySuccessful:!0}),d()})).catch((function(){t.setState({isCopySuccessful:!1}),c()}))),this.getAllowedPermissionLevels().includes(xe)&&a&&a.canShow&&!v&&((0,a.onShow)(),this.setState({isSharedLinkEditTooltipShown:!0}))}},{key:"renderSharedLink",value:function(){var e=this.props,t=e.autofocusSharedLink,n=e.changeSharedLinkAccessLevel,o=e.changeSharedLinkPermissionLevel,i=e.config,a=e.item,s=e.itemType,l=e.intl,f=e.onDismissTooltip,d=e.onEmailSharedLinkClick,p=e.sharedLink,h=e.sharedLinkEditTagTargetingApi,b=e.sharedLinkEditTooltipTargetingApi,m=e.submitting,y=e.trackingProps,v=e.triggerCopyOnLoad,g=e.tooltips,E=this.state,S=E.isCopySuccessful,O=E.isSharedLinkEditTooltipShown,k=p.accessLevel,C=p.accessLevelsDisabledReason,x=p.allowedAccessLevels,_=p.canChangeAccessLevel,P=p.enterpriseName,T=p.isEditAllowed,I=p.permissionLevel,j=p.url,D=y.copyButtonProps,L=y.onChangeSharedLinkAccessLevel,R=y.onChangeSharedLinkPermissionLevel,N=y.onSharedLinkAccessMenuOpen,M=y.onSharedLinkCopy,F=void 0===M?u.a:M,U=y.sendSharedLinkButtonProps,H=y.sharedLinkAccessMenuButtonProps,V=y.sharedLinkPermissionsMenuButtonProps,W=!!v&&!!S,q=i&&!1===i.showEmailSharedLinkForm,G=Object(pt.d)(bt(a))&&T,K=this.getAllowedPermissionLevels();return r.createElement(r.Fragment,null,r.createElement("div",{className:"shared-link-field-row"},r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!!g["shared-link-copy-button"],onDismiss:function(){return f("shared-link-copy-button")},position:"middle-right",showCloseButton:!0,text:g["shared-link-copy-button"],theme:"callout"},r.createElement(st,{"aria-label":l.formatMessage(w.sharedLinkURLLabel),autofocus:t,buttonProps:D,className:"shared-link-field-container",disabled:m,label:"",onCopySuccess:function(){return F(I)},triggerCopyOnLoad:W,type:"url",value:j})),!q&&r.createElement(z.c,{position:"top-left",text:r.createElement(c.a,w.sendSharedLink)},r.createElement(A.b,zt({"aria-label":l.formatMessage(w.sendSharedLink),className:"email-shared-link-btn",isDisabled:m,onClick:d,type:"button"},U),r.createElement(ct,null)))),r.createElement("div",{className:"shared-link-access-row"},r.createElement(Tt,{accessLevel:k,accessLevelsDisabledReason:C,allowedAccessLevels:x,changeAccessLevel:n,enterpriseName:P,itemType:s,onDismissTooltip:function(){return f("shared-link-access-menu")},tooltipContent:g["shared-link-access-menu"]||null,submitting:m,trackingProps:{onChangeSharedLinkAccessLevel:L,onSharedLinkAccessMenuOpen:N,sharedLinkAccessMenuButtonProps:H}}),!G&&k!==Ce&&r.createElement(Ge.a,{isShown:K.includes(xe)&&(null==b?void 0:b.canShow),title:l.formatMessage(w.ftuxEditPermissionTooltipTitle),body:l.formatMessage(w.ftuxEditPermissionTooltipBody),onDismiss:function(){b&&(0,b.onClose)()},position:"bottom-center"},r.createElement(Bt,{allowedPermissionLevels:K,canChangePermissionLevel:_,changePermissionLevel:o,isSharedLinkEditTooltipShown:O,permissionLevel:I,sharedLinkEditTagTargetingApi:h,sharedLinkEditTooltipTargetingApi:b,submitting:m,trackingProps:{onChangeSharedLinkPermissionLevel:R,sharedLinkPermissionsMenuButtonProps:V}})),G&&r.createElement(z.c,{text:r.createElement(c.a,w.sharedLinkPermissionsEditTooltip)},r.createElement(B.a,{isDisabled:!0,className:"can-edit-btn"},r.createElement(c.a,w.sharedLinkPermissionsEdit)))),k===ke&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement(dt,{height:12,width:12})),I===xe?r.createElement(c.a,zt({"data-testid":"shared-link-editable-publicly-available-message"},w.sharedLinkEditablePubliclyAvailable)):r.createElement(c.a,zt({"data-testid":"shared-link-publicly-available-message"},w.sharedLinkPubliclyAvailable))),"peopleInYourCompany"===k&&I===xe&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement(dt,{height:12,width:12})),r.createElement(c.a,zt({"data-testid":"shared-link-elevated-editable-company-available-message"},w.sharedLinkElevatedEditableCompanyAvailable))))}},{key:"renderSharedLinkSettingsLink",value:function(){var e=this.props,t=e.intl,n=e.onDismissTooltip,o=e.onSettingsClick,i=e.showSharedLinkSettingsCallout,a=e.trackingProps,s=e.tooltips,l=a.sharedLinkSettingsButtonProps;return r.createElement("div",{className:"shared-link-settings-btn-container"},r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!!s["shared-link-settings"]||i,onDismiss:function(){return n("shared-link-settings")},position:"middle-right",showCloseButton:!0,text:s["shared-link-settings"]||r.createElement(c.a,w.sharedLinkSettingsCalloutText),theme:"callout"},r.createElement(B.a,zt({},l,{"aria-label":t.formatMessage(w.settingsButtonLabel),className:"shared-link-settings-btn",onClick:o,type:"button"}),r.createElement(c.a,w.sharedLinkSettings))))}},{key:"renderToggle",value:function(){var e,t=this,n=this.props,o=n.item,i=n.onDismissTooltip,a=n.onToggleSharedLink,s=n.sharedLink,l=n.submitting,u=n.tooltips,f=s.canChangeAccessLevel,d=s.expirationTimestamp,p=!!s.url,h=this.canAddSharedLink(p,o.grantedPermissions.itemShare),b=this.canRemoveSharedLink(p,f),m=(h||b)&&!l;p?(e=r.createElement(c.a,w.linkShareOn),d&&0!==d&&(e=r.createElement("span",null,r.createElement(c.a,w.linkShareOn),r.createElement(z.c,{position:"top-center",text:r.createElement(c.a,zt({},w.sharedLinkExpirationTooltip,{values:{expiration:Object(ut.e)(d)}}))},r.createElement("span",{className:"shared-link-expiration-badge"},r.createElement(ft,{color:ue.u})))))):e=r.createElement(c.a,w.linkShareOff);var y=r.createElement("div",{className:"share-toggle-container"},r.createElement(lt.a,{isDisabled:!m,isOn:p,label:e,name:"toggle",onChange:a,ref:function(e){t.toggleRef=e}}));if(!l){if(h){var v=u["shared-link-toggle"];return v?r.createElement(z.c,{className:"usm-ftux-tooltip",isShown:!0,onDismiss:function(){return i("shared-link-toggle")},position:"middle-left",showCloseButton:!0,text:v,theme:"callout"},y):r.createElement(z.c,{position:"top-right",text:r.createElement(c.a,w.sharedLinkDisabledTooltipCopy)},y)}if(!m){var g=p?w.removeLinkTooltip:w.disabledCreateLinkTooltip;return r.createElement(z.c,{className:"usm-disabled-message-tooltip",position:"top-right",text:r.createElement(c.a,g)},y)}}return y}},{key:"render",value:function(){var e=this.props,t=e.sharedLink,n=e.onSettingsClick,o=!!t.url;return r.createElement("div",{className:"be"},r.createElement("hr",{className:"bdl-SharedLinkSection-separator"}),r.createElement("label",null,r.createElement("span",{className:"label bdl-Label"},r.createElement(c.a,w.sharedLinkSectionLabel))),r.createElement("div",{className:"shared-link-toggle-row"},this.renderToggle(),o&&n&&this.renderSharedLinkSettingsLink()),o&&this.renderSharedLink())}}])&&Vt(n.prototype,o),i&&Vt(n,i),t}(r.Component);Kt(Xt,"defaultProps",{trackingProps:{},autoCreateSharedLink:!1});var Yt=Xt,Jt=n(264),$t=n.n(Jt),Qt=n(953),Zt=n.n(Qt),en=n(533),tn=n(95),nn=n(482),rn=n(7),on=n.n(rn),an=n(118);var sn=function(e){return e.map((function(e){var t=e.displayText,n=e.value;return r.createElement(an.a,{key:n},t)}))};var ln=function(e,t,n){return e.filter(function(e){var t=Array.isArray(e)?e:[];return function(e){return!t.find((function(t){return C()(t,e)}))}}(t)).filter(function(e){var t=e||"";return function(e){return e.displayText.toLowerCase().includes(t.toLowerCase())}}(n))},un=n(954),cn=n.n(un),fn=n(955),dn=n.n(fn),pn=n(485);var hn=function(e,t,n){var r;return r=Object(pn.a)(e).map((function(e){var n=e.replace(/\s/g,""),r=dn()(n),o=new RegExp("^".concat(r,"$"),"i");return t.find((function(e){var t=e.displayText,n=e.value;return(o.test(t.replace(/\s|,/g,""))||o.test(String(n)))}))||{displayText:e,value:e}})),r=(r=cn()(r,(function(e){return e.value}))).filter((function(e){return!n.some((function(t){return e.value===t.value}))}))};function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sn=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?gn(e):t}(this,(e=vn(t)).call.apply(e,[this].concat(o))),En(gn(n),"state",{inputText:""}),En(gn(n),"handleBlur",(function(e){var t=n.props.field,r=t.name;(0,t.onBlur)(e||n.createFakeEventTarget(r))})),En(gn(n),"handleInput",(function(e,t){var r=n.props.onInput;n.setState({inputText:e}),r(e,t),""===e&&n.handleBlur(t)})),En(gn(n),"handleSelect",(function(e){var t=n.props.field,r=t.name,o=t.onChange,i=t.value,a=void 0===i?[]:i,s=e.filter((function(e){return n.isValidOption(e)}));o(n.createFakeEventTarget(r,[].concat(mn(a),mn(s))))})),En(gn(n),"handleRemove",(function(e,t){var r=n.props.field,o=r.name,i=r.onChange,a=r.value,s=(void 0===a?[]:a).slice();s.splice(t,1),i(n.createFakeEventTarget(o,s))})),En(gn(n),"handleParseItems",(function(e){var t=n.props,r=t.field,o=t.inputParser,i=t.options,a=r.value;return o(e,i,void 0===a?[]:a)})),n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),n=t,(o=[{key:"isValidOption",value:function(e){return!!e.displayText.trim()}},{key:"createFakeEventTarget",value:function(e,t){return{target:{name:e,value:t}}}},{key:"render",value:function(){var e=this.state.inputText,t=this.props,n=t.className,o=t.dropdownFilter,i=t.dropdownRenderer,a=t.dropdownScrollBoundarySelector,s=t.field,l=t.form,u=t.isCustomInputAllowed,c=t.isDisabled,f=t.label,d=t.options,p=t.placeholder,h=t.shouldClearUnmatchedInput,b=t.validator,m=s.name,y=s.value,v=void 0===y?[]:y,g=l.errors,w=l.touched,E=on()(w,m)?on()(g,m):null,S=o(d,v,e),O={name:m};return r.createElement(nn.a,{allowCustomPills:u,allowInvalidPills:!0,className:n,disabled:c,dropdownScrollBoundarySelector:a,inputProps:O,label:f,error:E,onBlur:this.handleBlur,onInput:this.handleInput,onRemove:this.handleRemove,onSelect:this.handleSelect,parseItems:this.handleParseItems,placeholder:p,selectedOptions:v,selectorOptions:S,shouldClearUnmatchedInput:h,shouldSetActiveItemOnOpen:!0,validator:b},i(S))}}])&&yn(n.prototype,o),i&&yn(n,i),t}(r.PureComponent);En(Sn,"defaultProps",{dropdownFilter:ln,dropdownRenderer:sn,inputParser:hn,isCustomInputAllowed:!0,isDisabled:!1,onInput:u.a,options:[],shouldClearUnmatchedInput:!1});var On=n(949),kn=n.n(On),Cn=n(948),xn=n.n(Cn);function _n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Pn,An,Tn,In=["AMAZON","CPA","LLP","MUSIC","SPA","XN--4DBRK0CE","XN--CCKWCXETD","XN--JLQ480N2RG","XN--MGBCPQ6GPA1A","XN--Q7CE6A","ZW"],jn=function(e){return kn.a.email.isValid(e,{tlds:{allow:new Set([].concat(_n(xn.a),_n(In.map((function(e){return e.toLowerCase()})))))}})},Dn=n(528);n(1007);function Ln(){return(Ln=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 Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=(Rn(Tn={},"restrictionJustificationEnabled",(Rn(Pn={},"singleContact",w.justifiableContactRestrictionNoticeSingular),Rn(Pn,"multipleContacts",w.justifiableContactRestrictionNotice),Pn)),Rn(Tn,"restrictionJustificationDisabled",(Rn(An={},"singleContact",w.contactRestrictionNoticeSingular),Rn(An,"multipleContacts",w.contactRestrictionNotice),An)),Tn),Mn=function(e){var t=e.error,n=e.intl,o=e.isFetchingJustificationReasons,i=e.isRestrictionJustificationEnabled,a=e.justificationReasons,s=e.onRemoveRestrictedExternalContacts,l=e.onSelectJustificationReason,u=e.restrictedExternalEmails,f=e.selectedContacts,d=e.selectedJustificationReason,p=f.filter((function(e){var t=e.value;return u.includes(t)})),h=p.length;if(!h)return null;var m=p[0].value,y=on()(d,"value",null),v=!!t,g=i?"restrictionJustificationEnabled":"restrictionJustificationDisabled",E=1===h?"singleContact":"multipleContacts",S=i?w.justifiableContactRestrictionRemoveButtonLabel:w.contactRestrictionRemoveButtonLabel,O=Nn[g][E],k=o?r.createElement(b.b,{className:"bdl-ContactRestrictionNotice-loadingIndicator"}):r.createElement(Dn.a,{options:a,onChange:l,placeholder:n.formatMessage(w.justificationSelectPlaceholder),selectedValue:y});return r.createElement(z.c,{text:t,isShown:v,position:"middle-right",theme:"error"},r.createElement(U.a,{className:"bdl-ContactRestrictionNotice","data-resin-component":"contactRestrictionNotice",type:"error"},r.createElement(c.a,Ln({},O,{values:{count:h,email:m}}))," ",i&&k,r.createElement(B.a,{className:"bdl-ContactRestrictionNotice-removeBtn",onClick:s},r.createElement(c.a,Ln({},S,{values:{count:h}})))))};Mn.displayName="ContactRestrictionNotice",Mn.defaultProps={justificationReasons:[],onRemoveRestrictedExternalContacts:u.a,onSelectJustificationReason:u.a};var Fn=Object(m.c)(Mn),Un=n(99),Bn=n.n(Un),Hn=n(525),zn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;if(!t)return!1;var o=t.toLowerCase().replace(/\s/g,""),i=e.toLowerCase().replace(/\s/g,""),a=o.length,s=i.length;if(s<n||s>a)return!1;for(var l=!1,u=0,c=0;c<a&&!(a-c<s);c+=1){for(var f=0,d=0,p=0,h=c;h<a;h+=1)o[h]===i[f]?(f+=1,d+=1+d):d=0,p+=d;if(f!==s)break;p>u&&(u=p)}if(u>0){var b=Math.min(r,s),m=Math.max(b*Math.pow(2,Math.floor(s/b-1)),s+1);l=u>=m}return l};function Vn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Wn(e,t){return t.userScore-e.userScore}var qn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=new Set(e.map((function(e){return e.id.toString()}))),s=Object.values(t),l=s.filter((function(e){return e.id&&a.has(e.id.toString())})),u=l.map((function(e){return e.id.toString()})),c=l.length>=r?[]:s.filter((function(e){if(!n||u.includes(e.id.toString()))return!1;var t=zn(n,e.name,o,i),r=e.email||"",a=r.substring(0,r.indexOf("@")),s=n.length>=o&&a.includes(n);return t||s})),f=[].concat(Vn(l.sort(Wn)),Vn(c.sort(Wn))).slice(0,r),d=f.map((function(e){return e.id}));return[f,e.filter((function(e){return!d.includes(e.id)}))]};var Gn=function(e,t,n){return!!(n&&t&&e)&&n.split("@")[1]!==t},Kn=function(e){if(null==e)return[];var t=e.match(/[^\s[<(]+@[^\s<>@,/\\]+\.[^\s<>,;)]+/gi);return t?t.map((function(e){for(e=e.trim();e.length>=2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1);)e=e.substr(1,e.length-2);return e})):[]};function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function er(e,t){return(er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=function(e,t){return e&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},rr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Xn(t)&&"function"!=typeof t?Zn(e):t}(this,Qn(t).call(this,e)),tr(Zn(n),"addSuggestedContacts",(function(e){var t=n.props.suggestedCollaborators,r=void 0===t?{}:t,o=n.state.pillSelectorInputValue,i=Jn(qn(e,r,o),2),a=i[0],s=i[1];return n.setState({numSuggestedShowing:a.length}),[].concat(Yn(a),Yn(s))})),tr(Zn(n),"filterContacts",(function(e){var t=n.state.pillSelectorInputValue,r=n.props,o=r.selectedContacts,i=r.suggestedCollaborators;if(t&&e){var a=e.filter((function(e){var n=e.name,r=e.email;return nr(n,t)||nr(r,t)})).filter((function(e){var t=e.email,n=e.id;return!o.find((function(e){var r=e.value;return r===t||r===n}))}));return i&&(a=n.addSuggestedContacts(a)),a.map((function(e){var t=e.email,n=e.id;return{email:t,id:n,isExternalUser:e.isExternalUser,text:e.name,type:e.type,value:t||n}}))}return[]})),tr(Zn(n),"getContactsPromise",(function(e){return n.props.getContacts(e).then((function(e){var t=n.filterContacts(e);n.setState({contacts:t})})).catch((function(e){if(!e.isCanceled)throw e}))})),tr(Zn(n),"debouncedGetContacts",Bn()(n.getContactsPromise,200)),tr(Zn(n),"handleParseItems",(function(e){var t=n.props.validator;return Kn(e).filter((function(e){return t(e)}))})),tr(Zn(n),"handlePillSelectorInput",(function(e){var t=n.props.onInput,r=e.trim();n.setState({pillSelectorInputValue:r}),t&&t(e),r?n.debouncedGetContacts(r):n.setState({contacts:[]})})),n.state={contacts:[],numSuggestedShowing:0,pillSelectorInputValue:""},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&er(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.error,o=e.fieldRef,i=e.getContactAvatarUrl,a=e.getPillClassName,s=e.intl,l=e.label,f=e.onContactAdd,d=e.onContactRemove,p=e.onPillCreate,h=e.selectedContacts,b=e.showContactAvatars,m=e.validateForError,y=e.validator,v=this.state,g=v.contacts,E=v.numSuggestedShowing,S=r.createElement(c.a,w.groupLabel),O=E>0,k=I()({scrollable:g.length>5});return r.createElement(nn.a,{allowCustomPills:!0,allowInvalidPills:!0,className:k,dividerIndex:O?E:void 0,disabled:t,error:n,getPillClassName:a,getPillImageUrl:i,inputProps:{autoFocus:!0,onChange:u.a},label:l,onInput:this.handlePillSelectorInput,onRemove:d,onSelect:f,onPillCreate:p,overlayTitle:O?s.formatMessage(w.suggestedCollabsTitle):void 0,parseItems:this.handleParseItems,placeholder:s.formatMessage(fe.a.pillSelectorPlaceholder),ref:o,selectedOptions:h,showRoundedPills:!0,selectorOptions:g,validateForError:m,validator:y},g.map((function(e){var t=e.email,n=e.isExternalUser,o=e.text,a=void 0===o?null:o,s=e.id;return r.createElement(Hn.a,{getContactAvatarUrl:i,key:s,id:s,isExternal:n,name:a,subtitle:t||S,title:a,showAvatar:b})})))}}])&&$n(n.prototype,o),i&&$n(n,i),t}(r.Component);tr(rr,"defaultProps",{showContactAvatars:!1});var or=Object(m.c)(rr),ir=function(e,t){return!!t.length&&e.some((function(e){var n=e.value;return t.includes(n)}))};function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sr(){return(sr=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 lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ur(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pr(e,t){return(pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==ar(t)&&"function"!=typeof t?dr(e):t}(this,fr(t).call(this,e)),hr(dr(n),"contactsFieldRef",r.createRef()),hr(dr(n),"handleContactAdd",(function(e){var t=n.props,r=t.selectedContacts,o=t.onContactAdd,i=t.updateSelectedContacts,a=[].concat(ur(r),ur(e));i(a),n.validateContacts(a),o&&o(e)})),hr(dr(n),"handleContactRemove",(function(e,t){var r=n.props,o=r.onContactRemove,i=r.updateSelectedContacts,a=n.props.selectedContacts.slice(),s=a.splice(t,1);i(a),n.validateContacts(a),o&&o(s)})),hr(dr(n),"handleRemoveRestrictedExternalContacts",(function(){var e=n.props,t=e.onContactRemove,r=e.selectedContacts,o=e.updateSelectedContacts,i=lr(Zt()(r,(function(e){var t=e.value;return n.isRestrictedExternalEmail(t)})),2),a=i[0],s=i[1];o(s),n.validateContacts(s),t&&a.forEach((function(e){t(e)}))})),hr(dr(n),"validateContacts",(function(e){var t=n.props,r=t.contactLimit,o=t.intl,i="";return void 0!==r&&e.length>r?i=o.formatMessage(w.contactsExceedLimitError,{maxContacts:r}):0===e.length&&(i=o.formatMessage(w.enterAtLeastOneEmailError)),n.setState({contactsFieldError:i}),i})),hr(dr(n),"validateContactsRestrictions",(function(){var e="",t=n.state.selectedJustificationReason,r=n.props,o=r.intl,i=r.isRestrictionJustificationEnabled,a=r.selectedContacts,s=r.restrictedExternalEmails,l=ir(a,s);return i&&!t?e=o.formatMessage(w.justificationRequiredError):l&&!i&&(e=o.formatMessage(w.restrictedContactsError)),n.setState({contactsRestrictionError:e}),e})),hr(dr(n),"handleContactInput",(function(e){var t=n.props.onContactInput;t&&t(e)})),hr(dr(n),"handleMessageChange",(function(e){var t=e.target;t instanceof HTMLTextAreaElement&&n.setState({message:t.value})})),hr(dr(n),"handleSelectJustificationReason",(function(e){n.setState({selectedJustificationReason:e},n.validateContactsRestrictions)})),hr(dr(n),"handleClose",(function(){n.setState({message:"",contactsFieldError:"",selectedJustificationReason:null}),n.props.updateSelectedContacts([]),n.contactsFieldRef.current&&n.contactsFieldRef.current.setState({inputValue:""}),n.props.onRequestClose()})),hr(dr(n),"handleSubmit",(function(e){e.preventDefault();var t=n.props,r=t.onSubmit,o=t.selectedContacts,i=n.state,a=i.message,s=i.contactsFieldError,l=i.selectedJustificationReason;if(""===s){var u=n.validateContacts(o),c=n.validateContactsRestrictions();if(!u&&!c){var f=[],d=[],p=[];o.forEach((function(e){var t=e.type,r=e.value;"group"===t?d.push(r):(n.isRestrictedExternalEmail(r)&&p.push(r),f.push(r))})),r({emails:f,groupIDs:d,justificationReason:l,message:a,restrictedExternalEmails:p}).catch((function(e){var t=e.invitedEmails||[];n.filterSentEmails(t)}))}}})),hr(dr(n),"filterSentEmails",(function(e){n.props.updateSelectedContacts(n.props.selectedContacts.filter((function(t){var n=t.value;return!e.includes(n)})))})),hr(dr(n),"validateContactField",(function(e){var t=n.props.intl,r="";e&&!jn(e)&&(r=t.formatMessage(fe.a.invalidEmailError)),n.setState({contactsFieldError:r})})),hr(dr(n),"isValidContactPill",(function(e){var t=!0,r=n.state.selectedJustificationReason,o=n.props.isRestrictionJustificationEnabled;if($t()(e))t=jn(e);else{var i=!!r&&o;t=!n.isRestrictedExternalEmail(e.value)||i}return t})),hr(dr(n),"getContactPillClassName",(function(e){var t=n.state.selectedJustificationReason,r=n.props.isRestrictionJustificationEnabled,o=String(e.value),i=!!t&&r;return n.isRestrictedExternalEmail(o)&&i?"is-waived":""})),hr(dr(n),"isRestrictedExternalEmail",(function(e){return n.props.restrictedExternalEmails.includes(e)})),n.state={contactsFieldError:"",contactsRestrictionError:"",message:"",selectedJustificationReason:null},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e,t){var n=this.props.isRestrictionJustificationEnabled,r=e.isRestrictionJustificationEnabled,o=this.state,i=o.contactsFieldError,a=o.contactsRestrictionError,s=t.contactsFieldError,l=t.contactsRestrictionError;!s&&i&&this.setState({contactsRestrictionError:""}),!l&&a&&this.setState({contactsFieldError:""}),n!==r&&!n&&this.setState({selectedJustificationReason:null})}},{key:"render",value:function(){var e,t=this.state,n=t.contactsFieldError,o=t.contactsRestrictionError,i=t.message,a=t.selectedJustificationReason,s=this.props,l=s.cancelButtonProps,u=s.children,f=s.config,d=s.contactsFieldAvatars,p=s.contactsFieldDisabledTooltip,h=s.contactsFieldLabel,b=s.inlineNotice,m=s.isContactsFieldEnabled,v=s.isExternalUserSelected,g=s.getContactAvatarUrl,E=s.getContacts,S=s.intl,O=s.isExpanded,k=s.isFetchingJustificationReasons,C=s.isRestrictionJustificationEnabled,x=s.justificationReasons,_=s.messageProps,P=s.onPillCreate,T=s.recommendedSharingTooltipCalloutName,j=s.restrictedExternalEmails,D=s.selectedContacts,L=s.sendButtonProps,R=s.showEnterEmailsCallout,N=s.submitting,M=s.suggestedCollaborators,F={className:"usm-ftux-tooltip",isShown:R,position:"middle-right",showCloseButton:!0,text:r.createElement(c.a,w.enterEmailAddressesCalloutText),theme:"callout"},B={isShown:!!T,position:"middle-left",text:r.createElement(c.a,sr({},w.recommendedSharingTooltipCalloutText,{values:{fullName:T}})),theme:"callout"},H=T?B:F,V=r.createElement("div",{className:"tooltip-target"},r.createElement(z.c,H,r.createElement(or,{disabled:!m,error:n,fieldRef:this.contactsFieldRef,getContacts:E,getContactAvatarUrl:g,getPillClassName:this.getContactPillClassName,label:h,onContactAdd:this.handleContactAdd,onContactRemove:this.handleContactRemove,onInput:this.handleContactInput,onPillCreate:P,selectedContacts:D,suggestedCollaborators:M,validateForError:this.validateContactField,validator:this.isValidContactPill,showContactAvatars:!0})));e=m?V:r.createElement(z.c,{position:"bottom-center",text:p},V);var W=f&&!1===f.showInviteCollaboratorMessageSection,q=O&&ir(D,j);return r.createElement("form",{className:I()({"is-expanded":O}),onSubmit:this.handleSubmit},b.content&&O&&r.createElement(U.a,{type:b.type},b.content),q&&r.createElement(Fn,{error:o,isFetchingJustificationReasons:k,isRestrictionJustificationEnabled:C,justificationReasons:x,onRemoveRestrictedExternalContacts:this.handleRemoveRestrictedExternalContacts,restrictedExternalEmails:j,selectedContacts:D,selectedJustificationReason:a,onSelectJustificationReason:this.handleSelectJustificationReason}),d,e,u,O&&!W&&r.createElement(en.a,sr({"data-testid":"be-emailform-message",label:r.createElement(c.a,w.messageTitle),onChange:this.handleMessageChange,placeholder:S.formatMessage(fe.a.messageSelectorPlaceholder),rows:3,value:i},_)),O&&v&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement(dt,{height:12,width:12})),r.createElement(c.a,w.contentSharedWithExternalCollaborators)),O&&r.createElement(y.b,null,r.createElement(A.b,sr({isDisabled:N,onClick:this.handleClose,type:"button"},l),r.createElement(c.a,fe.a.cancel)),r.createElement(tn.a,sr({isDisabled:N,isLoading:N,type:"submit"},L),r.createElement(c.a,fe.a.send))))}}])&&cr(n.prototype,o),i&&cr(n,i),t}(r.Component);hr(br,"defaultProps",{messageProps:{},contactsFieldDisabledTooltip:null,isRestrictionJustificationEnabled:!1,justificationReasons:[],restrictedExternalEmails:[]});var mr=Object(m.c)(br);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gr=function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return e[n.toLowerCase()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{text:r.name,value:r.email||r.id}),e}),{});return e.map((function(e){return e.id?e:e.value&&n[e.value.toLowerCase()]||{email:String(e.value),id:String(e.value),isExternalUser:!0,text:String(e.value),type:"user",value:e.value}}))};function wr(e){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(){return(Er=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 Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cr(e){return(Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e,t){return(_r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ar="inviteCollabsContacts",Tr="emailSharedLinkContacts",Ir=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==wr(t)&&"function"!=typeof t?xr(e):t}(this,Cr(t).call(this,e)),Pr(xr(n),"fetchJustificationReasons",(function(e,t){var r=n.state.justificationReasons,o=n.props.getJustificationReasons,i=!!r.length;return!o||i?Promise.resolve():(n.setState({isFetchingJustificationReasons:!0}),o(e.typedID,t).then((function(e){var t=e.classificationLabelId,r=e.options;n.setState({classificationLabelId:t,justificationReasons:r.map((function(e){var t=e.id;return{displayText:e.title,value:t}}))})})).finally((function(){n.setState({isFetchingJustificationReasons:!1})})))})),Pr(xr(n),"shouldRequireExternalCollabJustification",(function(){var e=n.state.inviteCollabsContacts,t=n.props,r=t.isCollabRestrictionJustificationAllowed,o=t.restrictedExternalCollabEmails;return ir(e,o)&&r})),Pr(xr(n),"handleInviteCollabPillCreate",(function(e){return n.onPillCreate(Ar,e)})),Pr(xr(n),"handleEmailSharedLinkPillCreate",(function(e){return n.onPillCreate(Tr,e)})),Pr(xr(n),"onToggleSharedLink",(function(e){var t=e.target,r=n.props,o=r.handleFtuxCloseClick,i=r.onAddLink,a=r.openConfirmModal,s=r.shouldRenderFTUXTooltip,l=r.trackingProps.sharedLinkTracking.onToggleLink;s&&o(),"checkbox"===t.type&&(!1===t.checked?a():i(),l&&l(t.checked))})),Pr(xr(n),"showCollaboratorList",(function(){n.setState({showCollaboratorList:!0})})),Pr(xr(n),"closeCollaboratorList",(function(){n.setState({showCollaboratorList:!1})})),Pr(xr(n),"handleSendInvites",(function(e){var t=n.props,r=t.inviteePermissions,o=t.isCollabRestrictionJustificationAllowed,i=t.sendInvites,a=t.trackingProps.inviteCollabsEmailTracking.onSendClick,l=n.state,u=l.classificationLabelId,c=l.inviteePermissionLevel,f=je(r),d=c||f,p=e.emails,h=e.groupIDs,b=e.justificationReason,m=e.message,y=e.restrictedExternalEmails,v={emails:p.join(","),groupIDs:h.join(","),emailMessage:m,permission:d,numsOfInvitees:p.length,numOfInviteeGroups:h.length},g=!!b,w=!s()(y);return g&&w&&o&&(v=Or({},v,{classificationLabelId:u,justificationReason:{id:b.value,title:b.displayText}})),a&&a(v),i(v)})),Pr(xr(n),"handleSendSharedLink",(function(e){var t=n.props,r=t.sendSharedLink,o=t.sharedLink,i=t.trackingProps.sharedLinkEmailTracking,a=o.permissionLevel,s=i.onSendClick,l=e.emails,u=e.groupIDs;s&&s(Or({},e,{numsOfRecipients:l.length,numOfRecipientGroups:u.length,permissionLevel:a}));return r(e)})),Pr(xr(n),"handleInviteePermissionChange",(function(e){var t=n.props.trackingProps.inviteCollabTracking.onInviteePermissionChange;n.setState({inviteePermissionLevel:e}),t&&t(e)})),Pr(xr(n),"onPillCreate",(function(e,t){if(0!==t.filter((function(e){return!e.id})).length){var r=n.props.getContactsByEmail;if(r)r({emails:t.map((function(e){return e.value}))}).then((function(t){e===Ar?n.setState((function(e){return{inviteCollabsContacts:gr(e.inviteCollabsContacts,t)}})):e===Tr&&n.setState((function(e){return{emailSharedLinkContacts:gr(e.emailSharedLinkContacts,t)}}))}))}})),Pr(xr(n),"openInviteCollaborators",(function(e){var t=n.props.handleFtuxCloseClick;n.state.isInviteSectionExpanded||""!==e&&(t(),n.setState({isInviteSectionExpanded:!0},(function(){var e=n.props.trackingProps.inviteCollabTracking.onEnterInviteCollabs;e&&e()})))})),Pr(xr(n),"openInviteCollaboratorsSection",(function(){n.setState({isInviteSectionExpanded:!0})})),Pr(xr(n),"closeInviteCollaborators",(function(){n.setState({isInviteSectionExpanded:!1})})),Pr(xr(n),"openEmailSharedLinkForm",(function(){(0,n.props.handleFtuxCloseClick)(),n.setState({isEmailLinkSectionExpanded:!0})})),Pr(xr(n),"closeEmailSharedLinkForm",(function(){n.setState({isEmailLinkSectionExpanded:!1})})),Pr(xr(n),"hasExternalContact",(function(e){var t=n.state,r=t.inviteCollabsContacts,o=t.emailSharedLinkContacts;return e===Ar?r.some((function(e){return e.isExternalUser})):e===Tr&&o.some((function(e){return e.isExternalUser}))})),Pr(xr(n),"isRemovingAllRestrictedExternalCollabs",(function(e,t){var r=n.props.restrictedExternalCollabEmails,o=ir(e,r),i=ir(t,r);return o&&!i})),Pr(xr(n),"updateInviteCollabsContacts",(function(e){var t=n.state.inviteCollabsContacts,r=n.props,o=r.onRemoveAllRestrictedExternalCollabs,i=r.setUpdatedContacts,a=n.isRemovingAllRestrictedExternalCollabs(t,e);n.setState({inviteCollabsContacts:e}),i&&i(e),o&&a&&o()})),Pr(xr(n),"updateEmailSharedLinkContacts",(function(e){n.setState({emailSharedLinkContacts:e})})),Pr(xr(n),"shouldAutoFocusSharedLink",(function(){var e=n.props,t=e.focusSharedLinkOnLoad,r=e.sharedLink,o=e.sharedLinkLoaded;return!(!e.createSharedLinkOnLoad&&!t)&&(!(!t&&!r.isNewSharedLink)&&!!o)})),n.state={classificationLabelId:"",emailSharedLinkContacts:[],inviteCollabsContacts:e.initiallySelectedContacts,inviteePermissionLevel:"",isEmailLinkSectionExpanded:!1,isFetchingJustificationReasons:!1,isInviteSectionExpanded:!!e.initiallySelectedContacts.length,justificationReasons:[],showCollaboratorList:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isCollabRestrictionJustificationAllowed,r=t.item,o=t.restrictedExternalCollabEmails,i=e.restrictedExternalCollabEmails,a=e.isCollabRestrictionJustificationAllowed;(!C()(o,i)||n!==a)&&this.shouldRequireExternalCollabJustification()&&this.fetchJustificationReasons(r,"EXTERNAL_COLLAB")}},{key:"renderInviteSection",value:function(){var e=this.props,t=e.canInvite,n=e.collaborationRestrictionWarning,o=e.config,i=e.contactLimit,a=e.getCollaboratorContacts,s=e.getContactAvatarUrl,l=e.handleFtuxCloseClick,u=e.item,f=e.recommendedSharingTooltipCalloutName,d=void 0===f?null:f,p=e.restrictedExternalCollabEmails,h=e.sendInvitesError,b=e.shouldRenderFTUXTooltip,m=e.showEnterEmailsCallout,y=void 0!==m&&m,v=e.showCalloutForUser,g=void 0!==v&&v,E=e.showUpgradeInlineNotice,S=void 0!==E&&E,O=e.showUpgradeOptions,k=e.submitting,C=e.suggestedCollaborators,x=e.trackingProps,_=u.type,T=this.state,I=T.isFetchingJustificationReasons,j=T.isInviteSectionExpanded,D=T.justificationReasons,L=x.inviteCollabsEmailTracking,R=x.modalTracking,N=_===H.b?r.createElement(c.a,w.inviteDisabledWeblinkTooltip):r.createElement(c.a,w.inviteDisabledTooltip),M=h?{type:"error",content:h}:{type:"warning",content:n},F=this.renderCollaboratorAvatars(),U=R.ftuxConfirmButtonProps,B={className:"usm-ftux-tooltip",isShown:!d&&b&&g,position:"middle-left",showCloseButton:!0,text:r.createElement("div",null,r.createElement("h4",{className:"ftux-tooltip-title"},r.createElement(c.a,w.ftuxNewUSMUserTitle)),r.createElement("p",{className:"ftux-tooltip-body"},r.createElement(c.a,w.ftuxNewUSMUserBody)," ",r.createElement(P.a,{className:"ftux-tooltip-link",href:"https://community.box.com/t5/Using-Shared-Links/Creating-Shared-Links/ta-p/19523",target:"_blank"},r.createElement(c.a,w.ftuxLinkText))),r.createElement("div",{className:"ftux-tooltip-controls"},r.createElement(A.b,Er({className:"ftux-tooltip-button",onClick:l},U),r.createElement(c.a,w.ftuxConfirmLabel)))),theme:"callout"};return r.createElement(r.Fragment,null,r.createElement(z.c,B,r.createElement("div",{className:"invite-collaborator-container","data-testid":"invite-collaborator-container"},r.createElement(mr,Er({config:o,contactLimit:i,contactsFieldAvatars:F,contactsFieldDisabledTooltip:N,contactsFieldLabel:r.createElement(c.a,w.inviteFieldLabel),getContacts:a,getContactAvatarUrl:s,inlineNotice:M,isContactsFieldEnabled:t,isExpanded:j,isFetchingJustificationReasons:I,isExternalUserSelected:this.hasExternalContact(Ar),isRestrictionJustificationEnabled:this.shouldRequireExternalCollabJustification(),justificationReasons:D,onContactInput:this.openInviteCollaborators,onPillCreate:this.handleInviteCollabPillCreate,onRequestClose:this.closeInviteCollaborators,onSubmit:this.handleSendInvites,openInviteCollaboratorsSection:this.openInviteCollaboratorsSection,recommendedSharingTooltipCalloutName:d,restrictedExternalEmails:p,showEnterEmailsCallout:y,submitting:k,selectedContacts:this.state.inviteCollabsContacts,suggestedCollaborators:C,updateSelectedContacts:this.updateInviteCollabsContacts},L),this.renderInviteePermissionsDropdown(),O&&!S&&this.renderUpgradeLinkDescription()))))}},{key:"renderCollaboratorAvatars",value:function(){var e=this.props,t=e.collaboratorsList,n=e.canInvite,o=e.currentUserID,i=e.item,a=e.trackingProps.modalTracking,s=null;if(t){var l=t.collaborators,u=i.hideCollaborators;s=(!(void 0===u||u)||n)&&r.createElement(le,{collaborators:l.filter((function(e){return String(e.userID)!==o})),onClick:this.showCollaboratorList,containerAttributes:a.collaboratorAvatarsProps})}return s}},{key:"renderCollaboratorMessage",value:function(e){var t=this.props.openUpgradePlanModal,n=void 0===t?function(){}:t;return r.createElement(r.Fragment,null,r.createElement(x.a,{id:"boxui.unifiedShare.upgradeCollaboratorAccessDescription",description:"Description for cta to upgrade to get collaborator access controls"},"Set the level of"," ",r.createElement(P.a,{className:"upgrade-link",href:"https://support.box.com/hc/en-us/articles/360044196413-Understanding-Collaborator-Permission-Levels",target:"_blank"},"collaborator access")," ","and increase security through one of our paid plans."," "),r.createElement(B.a,{className:"upgrade-link",onClick:n,type:"button"},r.createElement(c.a,w.upgradeLink)))}},{key:"renderUpgradeLinkDescription",value:function(){var e=this.props,t=e.openUpgradePlanModal,n=void 0===t?function(){}:t,o=e.trackingProps,i=(void 0===o?{}:o).inviteCollabsEmailTracking,a=(void 0===i?{}:i).upgradeLinkProps,s=void 0===a?{}:a;return r.createElement("div",{className:"upgrade-description"},r.createElement(F,null),r.createElement(c.a,Er({values:{upgradeGetMoreAccessControlsLink:r.createElement(B.a,Er({className:"upgrade-link",onClick:n,type:"button"},s),r.createElement(c.a,w.upgradeGetMoreAccessControlsLink))}},w.upgradeGetMoreAccessControlsDescription)))}},{key:"renderUpgradeInlineNotice",value:function(){return r.createElement(U.a,{title:r.createElement(c.a,w.upgradeInlineNoticeTitle),type:"info"},this.renderCollaboratorMessage("external_collab_top_message_upgrade_cta"))}},{key:"renderInviteePermissionsDropdown",value:function(){var e=this.props,t=e.inviteePermissions,n=e.item,o=e.submitting,i=e.canInvite,a=e.trackingProps,s=n.type,l=a.inviteCollabTracking;return t&&r.createElement(qe,{disabled:!i||o,inviteePermissionsButtonProps:l.inviteePermissionsButtonProps,inviteePermissionLevel:this.state.inviteePermissionLevel,inviteePermissions:t,changeInviteePermissionLevel:this.handleInviteePermissionChange,itemType:s})}},{key:"renderCollaboratorList",value:function(){var e=this.props,t=e.item,n=e.collaboratorsList,o=e.trackingProps,i=t.name,a=t.type,s=o.collaboratorListTracking,l=null;if(n){var u=n.collaborators;l=r.createElement(Ee,{itemName:i,itemType:a,onDoneClick:this.closeCollaboratorList,item:t,collaborators:u,trackingProps:s})}return l}},{key:"render",value:function(){var e=this.props,t=e.allShareRestrictionWarning,n=e.changeSharedLinkAccessLevel,o=e.createSharedLinkOnLoad,i=e.changeSharedLinkPermissionLevel,a=e.config,s=e.displayInModal,l=e.focusSharedLinkOnLoad,u=e.getSharedLinkContacts,f=e.getContactAvatarUrl,d=e.intl,p=e.isAllowEditSharedLinkForFileEnabled,h=e.isFetching,b=e.item,m=e.onAddLink,y=e.onCopyError,v=e.onCopyInit,g=e.onCopySuccess,E=e.onDismissTooltip,S=void 0===E?function(){}:E,O=e.onSettingsClick,k=e.sendSharedLinkError,C=e.sharedLink,x=e.sharedLinkEditTagTargetingApi,P=e.sharedLinkEditTooltipTargetingApi,A=e.showEnterEmailsCallout,T=void 0!==A&&A,I=e.showSharedLinkSettingsCallout,j=void 0!==I&&I,D=e.showUpgradeInlineNotice,L=void 0!==D&&D,R=e.showUpgradeOptions,N=e.submitting,M=e.tooltips,F=void 0===M?{}:M,U=e.trackingProps,B=U.sharedLinkTracking,H=U.sharedLinkEmailTracking,z=this.state,V=z.isEmailLinkSectionExpanded,W=z.isInviteSectionExpanded,q=z.showCollaboratorList,G=!V&&!W&&!q&&t;return r.createElement("div",{className:s?"":"be bdl-UnifiedShareForm"},r.createElement(_.a,{isLoading:h,hideContent:!0},G&&t,R&&L&&this.renderUpgradeInlineNotice(),!V&&!q&&this.renderInviteSection(),!V&&!W&&!q&&r.createElement(Yt,{addSharedLink:m,autofocusSharedLink:this.shouldAutoFocusSharedLink(),autoCreateSharedLink:o,config:a,triggerCopyOnLoad:o&&l,changeSharedLinkAccessLevel:n,changeSharedLinkPermissionLevel:i,intl:d,isAllowEditSharedLinkForFileEnabled:p,item:b,itemType:b.type,onDismissTooltip:S,onEmailSharedLinkClick:this.openEmailSharedLinkForm,onSettingsClick:O,onToggleSharedLink:this.onToggleSharedLink,onCopyInit:v,onCopySuccess:g,onCopyError:y,sharedLink:C,sharedLinkEditTagTargetingApi:x,sharedLinkEditTooltipTargetingApi:P,showSharedLinkSettingsCallout:j,submitting:N||h,trackingProps:B,tooltips:F}),V&&!q&&r.createElement(mr,Er({contactsFieldLabel:r.createElement(c.a,w.sendSharedLinkFieldLabel),getContactAvatarUrl:f,getContacts:u,inlineNotice:{type:"error",content:k},isContactsFieldEnabled:!0,isExpanded:!0,isExternalUserSelected:this.hasExternalContact(Tr),onPillCreate:this.handleEmailSharedLinkPillCreate,onRequestClose:this.closeEmailSharedLinkForm,onSubmit:this.handleSendSharedLink,showEnterEmailsCallout:T,submitting:N,selectedContacts:this.state.emailSharedLinkContacts,updateSelectedContacts:this.updateEmailSharedLinkContacts},H)),q&&this.renderCollaboratorList()))}}])&&kr(n.prototype,o),i&&kr(n,i),t}(r.Component);Pr(Ir,"defaultProps",{displayInModal:!0,initiallySelectedContacts:[],createSharedLinkOnLoad:!1,focusSharedLinkOnLoad:!1,restrictedExternalCollabEmails:[],trackingProps:{collaboratorListTracking:{},inviteCollabsEmailTracking:{},inviteCollabTracking:{},modalTracking:{},removeLinkConfirmModalTracking:{},sharedLinkEmailTracking:{},sharedLinkTracking:{}}});var jr=Object(m.c)(Ir);function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(){return(Lr=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 Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nr(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mr(e){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fr(e,t){return(Fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ur=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Nr(this,Mr(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fr(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props.onLoad;e&&e()}},{key:"render",value:function(){var e=this.props,t=e.isOpen,n=e.onRequestClose,r=e.removeLink,i=e.submitting,a=e.okayButtonProps,s=e.modalProps,l=e.cancelButtonProps;return o.a.createElement(y.a,Lr({className:"be-modal",focusElementSelector:".btn-primary",isOpen:t,onRequestClose:i?void 0:n,title:o.a.createElement(c.a,w.removeLinkConfirmationTitle),type:"alert"},s),o.a.createElement(c.a,w.removeLinkConfirmationDescription),o.a.createElement(y.b,null,o.a.createElement(A.b,Lr({isDisabled:i,onClick:n},l),o.a.createElement(c.a,fe.a.cancel)),o.a.createElement(tn.a,Lr({isDisabled:i,isLoading:i,onClick:r},a),o.a.createElement(c.a,fe.a.okay))))}}])&&Rr(n.prototype,r),i&&Rr(n,i),t}(r.Component);n(1008);function Br(e){return(Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(){return(zr=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 Vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wr(e){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gr(e,t){return(Gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?qr(e):t}(this,Wr(t).call(this,e)),Kr(qr(n),"getInitialData",(function(){(0,n.props.getInitialData)().finally((function(){n.setState({isFetching:!1,shouldRenderFTUXTooltip:!0})})),n.setState({getInitialDataCalled:!0})})),Kr(qr(n),"handleFtuxCloseClick",(function(){n.setState({shouldRenderFTUXTooltip:!1})})),Kr(qr(n),"openConfirmModal",(function(){n.setState({isConfirmModalOpen:!0})})),Kr(qr(n),"closeConfirmModal",(function(){n.setState({isConfirmModalOpen:!1})})),Kr(qr(n),"removeLink",(function(){var e=n.props,t=e.onRemoveLink,r=e.displayInModal;t(),r||n.closeConfirmModal()})),Kr(qr(n),"renderUSF",(function(){var e=n.props,t=e.sharedLinkEditTagTargetingApi,o=e.sharedLinkEditTooltipTargetingApi,i=n.state,a=i.isFetching,s=i.sharedLinkLoaded,l=i.shouldRenderFTUXTooltip;return r.createElement(jr,zr({},n.props,{handleFtuxCloseClick:n.handleFtuxCloseClick,isFetching:a,openConfirmModal:n.openConfirmModal,sharedLinkEditTagTargetingApi:t,sharedLinkEditTooltipTargetingApi:o,sharedLinkLoaded:s,shouldRenderFTUXTooltip:l}))}));var o=e.initialDataReceived;return n.state={getInitialDataCalled:!!o,isConfirmModalOpen:!1,isEmailLinkSectionExpanded:!1,isFetching:!o,sharedLinkLoaded:!1,shouldRenderFTUXTooltip:!1,showCollaboratorList:!1},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gr(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.item,n=e.trackingProps,r=t.type,o=t.typedID,i=n.modalTracking.onLoad;!this.state.getInitialDataCalled&&r&&o&&this.getInitialData(),i&&i()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.item,r=t.sharedLink,o=n.type,i=n.typedID,a=e.sharedLink;!this.state.getInitialDataCalled&&o&&i&&this.getInitialData(),a.url!==r.url&&r.url&&this.setState({sharedLinkLoaded:!0})}},{key:"render",value:function(){var e=this.props,t=e.canInvite,n=e.displayInModal,o=e.isOpen,i=e.item,a=e.onRequestClose,s=e.submitting,l=e.trackingProps,u=l.modalTracking,c=l.removeLinkConfirmModalTracking,f=u.modalProps,d=this.state,p=d.isEmailLinkSectionExpanded,h=d.isConfirmModalOpen,b=d.showCollaboratorList,m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusElementSelector:t?".bdl-PillSelector-input":".toggle-simple"},f);return r.createElement(r.Fragment,null,n?r.createElement(y.a,zr({className:"be-modal unified-share-modal",isOpen:!h&&o,onRequestClose:s?void 0:a,title:r.createElement(O,{isEmailLinkSectionExpanded:p,showCollaboratorList:b,item:i})},m),this.renderUSF()):r.createElement("div",{className:"bdl-UnifiedShareForm-container"},this.renderUSF()),h&&r.createElement(Ur,zr({isOpen:h,onRequestClose:this.closeConfirmModal,removeLink:this.removeLink,submitting:s},c)))}}])&&Vr(n.prototype,o),i&&Vr(n,i),t}(r.Component);Kr(Xr,"defaultProps",{displayInModal:!0,initiallySelectedContacts:[],isAllowEditSharedLinkForFileEnabled:!1,createSharedLinkOnLoad:!1,focusSharedLinkOnLoad:!1,restrictedExternalCollabEmails:[],trackingProps:{inviteCollabsEmailTracking:{},sharedLinkEmailTracking:{},sharedLinkTracking:{},inviteCollabTracking:{},modalTracking:{},removeLinkConfirmModalTracking:{},collaboratorListTracking:{}}});var Yr=Object(m.c)(Xr),Jr=n(13),$r=n.n(Jr),Qr=n(214),Zr=n(205);n(1009);function eo(){return(eo=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 to(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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)&&(o[n]=e[n])}return o}var no=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.title,a=to(e,["children","className","title"]);return r.createElement("fieldset",eo({className:"fieldset ".concat(o)},a),r.createElement("legend",{className:"label"},i),t)},ro=function(e){var t=e.color,n=void 0===t?"#ED3757":t,o=e.className,i=void 0===o?"":o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(G.a,{className:"quarantine-badge ".concat(i),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("g",{fill:n,fillRule:"evenodd"},r.createElement("path",{d:"M15 8c0-3.866-3.134-7-7-7S1 4.134 1 8s3.134 7 7 7 7-3.134 7-7zM0 8c0-4.418 3.582-8 8-8s8 3.582 8 8-3.582 8-8 8-8-3.582-8-8z"}),r.createElement("path",{d:"M7.82 7.845c.012.062.12.155.18.155.065 0 .167-.088.18-.155l.668-4.02c-.01.068.08.175.143.175H7.01c.055 0 .15-.114.142-.174l.67 4.02zM7.01 3h1.98c.558 0 .935.45.845.99l-.67 4.02C9.075 8.555 8.555 9 8 9c-.552 0-1.075-.45-1.165-.99l-.67-4.02c-.09-.546.278-.99.844-.99zM9.5 11c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5zm-2 0c0-.276.224-.5.5-.5s.5.224.5.5-.224.5-.5.5-.5-.224-.5-.5z"})))},oo=Object(g.defineMessages)({allowDownloadLabel:{id:"boxui.share.sharedLinkSettings.allowDownloadLabel",defaultMessage:"Allow users with the shared link to download this item"},allowDownloadTitle:{id:"boxui.share.sharedLinkSettings.allowDownloadTitle",defaultMessage:"Allow Download"},directLinkLabel:{id:"boxui.share.sharedLinkSettings.directLinkLabel",defaultMessage:"Direct Link"},directDownloadBlockedByAccessPolicyWithClassification:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification",defaultMessage:"Download has been disabled for content due to the classification."},directDownloadBlockedByMaliciousContent:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent",defaultMessage:"Download for this content has been disabled due to a security policy."},directDownloadBlockedByAccessPolicyWithoutClassification:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification",defaultMessage:"Download has been disabled for content without classification."},inaccessibleSettingsNotice:{id:"boxui.share.sharedLinkSettings.inaccessibleSettingsNotice",defaultMessage:"Certain settings may not be available for this item due to permissions."},modalTitle:{id:"boxui.share.sharedLinkSettings.modalTitle",defaultMessage:"Shared Link Settings"},customURLLabel:{id:"boxui.share.sharedLinkSettings.customURLLabel",defaultMessage:"Non-private custom URL"},expirationTitle:{id:"boxui.share.sharedLinkSettings.expirationTitle",defaultMessage:"Link Expiration"},expirationLabel:{id:"boxui.share.sharedLinkSettings.expirationLabel",defaultMessage:"Disable Shared Link on"},passwordLabel:{id:"boxui.share.sharedLinkSettings.passwordLabel",defaultMessage:"Require password"},passwordPlaceholder:{id:"boxui.share.sharedLinkSettings.passwordPlaceholder",defaultMessage:"Enter a password"},passwordTitle:{id:"boxui.share.sharedLinkSettings.passwordTitle",defaultMessage:"Password Protect"},vanityNamePlaceholder:{id:"boxui.share.sharedLinkSettings.vanityNamePlaceholder",defaultMessage:"Enter a custom path (12 or more characters)"},vanityNameNotSet:{id:"boxui.share.sharedLinkSettings.vanityNameNotSet",defaultMessage:"The custom URL has not been set"},vanityURLWarning:{id:"boxui.share.sharedLinkSettings.vanityURLWarning",defaultMessage:"Custom URLs should not be used when sharing sensitive content."},vanityURLEnableText:{id:"boxui.share.vanityURLEnableText",defaultMessage:"Publish content broadly with a custom, non-private URL"},sharedLinkWarningText:{id:"boxui.share.sharedLinkSettings.sharedLinkWarningText",defaultMessage:"This content is publicly available to anyone with the link."},withLinkViewDownload:{id:"boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload",defaultMessage:"This content is publicly available to anyone with the link, and can be viewed or downloaded."},withLinkView:{id:"boxui.share.sharedLinkSettings.accessLevel.withLinkView",defaultMessage:"This content is publicly available to anyone with the link, and can be viewed."},inCompanyViewDownload:{id:"boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload",defaultMessage:"This content is available to anyone within your company with the link, and can be viewed or downloaded."},inCompanyView:{id:"boxui.share.sharedLinkSettings.accessLevel.inCompanyView",defaultMessage:"This content is available to anyone within your company with the link, and can be viewed."},inItem:{id:"boxui.share.sharedLinkSettings.accessLevel.inItem",defaultMessage:"This content is available to invited collaborators with the link."},sharedLinkSettingWarningLinkText:{id:"boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText",defaultMessage:"Learn more about shared link settings."}});function io(){return(io=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)}var ao=function(e){var t=e.canChangeVanityName,n=e.error,r=e.intl.formatMessage,i=e.isVanityEnabled,a=e.vanityName,s=e.vanityNameInputProps,l=void 0===s?{}:s,u=e.serverURL,f=e.onChange,d=e.onCheckboxChange,p=t?a:a||r(oo.vanityNameNotSet),h=o.a.createElement("div",{className:"vanity-name-content"},o.a.createElement(Ye.a,io({description:o.a.createElement("span",null,o.a.createElement(ro,{color:ue.k}),o.a.createElement(c.a,oo.vanityURLWarning)),hideLabel:!0,disabled:!t,error:n,name:"vanityName",onChange:f,placeholder:r(oo.vanityNamePlaceholder),type:"text",value:p},l)),(t||!!a)&&o.a.createElement("p",{className:"custom-url-preview"},"".concat(u).concat(a)));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(no,{className:"be vanity-name-section",title:o.a.createElement(c.a,oo.customURLLabel)},o.a.createElement(Zr.a,{label:o.a.createElement(c.a,oo.vanityURLEnableText),isChecked:i,isDisabled:!t,subsection:i?h:void 0,onChange:d})))};ao.propTypes={canChangeVanityName:$r.a.bool.isRequired,error:$r.a.string,intl:$r.a.any,isVanityEnabled:$r.a.bool.isRequired,vanityName:$r.a.string.isRequired,vanityNameInputProps:$r.a.object,serverURL:$r.a.string.isRequired,onChange:$r.a.func,onCheckboxChange:$r.a.func};var so=Object(m.c)(ao),lo=n(9);function uo(){return(uo=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)}var co=function(e){return r.createElement(lo.a,uo({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:ue.g,fillRule:"evenodd",d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zm0 8.5a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 018 9.5zm0 1a.5.5 0 100 1 .5.5 0 000-1zM8.99 3c.558 0 .935.45.845.99l-.67 4.02C9.075 8.555 8.555 9 8 9c-.552 0-1.075-.45-1.165-.99l-.67-4.02c-.09-.546.278-.99.844-.99H8.99zm-.171 1H7.181l.641 3.846-.002-.001c.012.062.12.155.18.155.065 0 .167-.088.18-.155L8.819 4z"}))};function fo(){return(fo=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)}var po=function(e){var t=e.canChangePassword,n=e.error,r=e.intl.formatMessage,i=e.isPasswordAvailable,a=e.isPasswordEnabled,s=e.isPasswordInitiallyEnabled,l=e.onCheckboxChange,u=e.onPasswordChange,f=e.password,d=e.passwordCheckboxProps,p=void 0===d?{}:d,h=e.passwordInformationText,b=e.passwordInputProps,m=void 0===b?{}:b;if(!i)return null;var y=o.a.createElement("div",null,o.a.createElement(Ye.a,fo({disabled:!t,error:n,hideLabel:!0,isRequired:!s,label:o.a.createElement(c.a,oo.passwordPlaceholder),maxLength:100,name:"password",onChange:u,placeholder:s?"••••••••":r(oo.passwordPlaceholder),type:"password",value:f},m)),h&&o.a.createElement("div",{className:"be password-section-information"},o.a.createElement("span",null,o.a.createElement(co,{className:"password-section-information-icon",height:12,width:12})),o.a.createElement("span",{className:"password-section-information-text"},h)));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(no,{className:"be password-section",title:o.a.createElement(c.a,oo.passwordTitle)},o.a.createElement(Zr.a,fo({isChecked:a,isDisabled:!t,label:o.a.createElement(c.a,oo.passwordLabel),name:"isPasswordEnabled",onChange:l,subsection:a?y:void 0},p))))};po.propTypes={canChangePassword:$r.a.bool.isRequired,error:$r.a.string,intl:$r.a.any,isPasswordAvailable:$r.a.bool.isRequired,isPasswordEnabled:$r.a.bool.isRequired,isPasswordInitiallyEnabled:$r.a.bool.isRequired,onCheckboxChange:$r.a.func.isRequired,onPasswordChange:$r.a.func.isRequired,password:$r.a.string,passwordCheckboxProps:$r.a.object,passwordInformationText:$r.a.string,passwordInputProps:$r.a.object};var ho=Object(m.c)(po),bo=n(530);function mo(){return(mo=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)}var yo={weekday:"short",year:"numeric",month:"short",day:"numeric"},vo=function(e){var t=e.canChangeExpiration,n=e.error,r=e.expirationCheckboxProps,i=void 0===r?{}:r,a=e.expirationDate,s=e.expirationInputProps,l=void 0===s?{}:s,u=e.isExpirationEnabled,f=e.onCheckboxChange,d=e.onExpirationDateChange,p=new Date((new Date).getTime()+864e5),h=o.a.createElement("div",null,o.a.createElement(bo.a,{displayFormat:yo,error:n,hideLabel:!0,inputProps:l,isDisabled:!t,isRequired:!0,label:o.a.createElement(c.a,oo.expirationLabel),minDate:p,name:"expiration",onChange:d,value:a}));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(no,{className:"be expiration-section",title:o.a.createElement(c.a,oo.expirationTitle)},o.a.createElement(Zr.a,mo({isChecked:u,isDisabled:!t,label:o.a.createElement(c.a,oo.expirationLabel),name:"isExpirationEnabled",onChange:f,subsection:u?h:void 0},i))))};vo.propTypes={canChangeExpiration:$r.a.bool.isRequired,error:$r.a.string,expirationCheckboxProps:$r.a.object,expirationDate:$r.a.instanceOf(Date),expirationInputProps:$r.a.object,isExpirationEnabled:$r.a.bool.isRequired,onCheckboxChange:$r.a.func.isRequired,onExpirationDateChange:$r.a.func.isRequired};var go=vo;n(1010);function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){So(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(){return(Oo=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)}var ko=function(e){var t=e.canChangeDownload,n=e.classification,r=e.directLink,i=e.directLinkInputProps,a=void 0===i?{}:i,s=e.downloadCheckboxProps,l=void 0===s?{}:s,u=e.isDirectLinkAvailable,f=e.isDirectLinkUnavailableDueToDownloadSettings,d=e.isDirectLinkUnavailableDueToAccessPolicy,p=e.isDirectLinkUnavailableDueToMaliciousContent,h=e.isDownloadAvailable,b=e.isDownloadEnabled,m=e.onChange;if(!h&&!u)return null;var y=o.a.createElement("div",null,o.a.createElement(st,Oo({className:"direct-link-input",label:o.a.createElement(c.a,oo.directLinkLabel),type:"url",value:r},a))),v=d||p,g=I()("bdl-AllowDownloadSection",{"bdl-is-disabled":v}),w=(u||f)&&b,E=null;return E=Eo({},p?oo.directDownloadBlockedByMaliciousContent:n?oo.directDownloadBlockedByAccessPolicyWithClassification:oo.directDownloadBlockedByAccessPolicyWithoutClassification),h?o.a.createElement("div",{className:g},o.a.createElement("hr",null),o.a.createElement(z.c,{isDisabled:!v,text:o.a.createElement(c.a,E),position:"middle-left"},o.a.createElement(no,{className:"be",disabled:v,title:o.a.createElement(c.a,oo.allowDownloadTitle)},o.a.createElement(Zr.a,Oo({isChecked:b,isDisabled:!t||v,label:o.a.createElement(c.a,oo.allowDownloadLabel),name:"isDownloadEnabled",onChange:m},l)),w&&y))):o.a.createElement("div",null,o.a.createElement("hr",null),y)};ko.propTypes={canChangeDownload:$r.a.bool.isRequired,classification:$r.a.string,directLink:$r.a.string.isRequired,directLinkInputProps:$r.a.object,downloadCheckboxProps:$r.a.object,isDirectLinkAvailable:$r.a.bool.isRequired,isDirectLinkUnavailableDueToMaliciousContent:$r.a.bool,isDirectLinkUnavailableDueToAccessPolicy:$r.a.bool,isDirectLinkUnavailableDueToDownloadSettings:$r.a.bool.isRequired,isDownloadAvailable:$r.a.bool.isRequired,isDownloadEnabled:$r.a.bool.isRequired,onChange:$r.a.func.isRequired};var Co=ko,xo="peopleWithTheLink",_o="peopleInYourCompany",Po="peopleInThisItem";n(1011);function Ao(e){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function To(){return(To=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 Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Do(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lo(e,t){return(Lo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ao(t)&&"function"!=typeof t?Do(e):t}(this,jo(t).call(this,e)),Ro(Do(n),"onSubmit",(function(e){e.preventDefault();var t=n.state,r=t.expirationDate,o=t.isDownloadEnabled,i=t.isExpirationEnabled,a=t.isPasswordEnabled,s=t.password,l=t.vanityName;n.props.onSubmit({expirationTimestamp:r?r.getTime():void 0,isDownloadEnabled:o,isExpirationEnabled:i,isPasswordEnabled:a,password:s,vanityName:l})})),Ro(Do(n),"onVanityNameChange",(function(e){n.setState({vanityName:e.target.value,vanityNameError:void 0})})),Ro(Do(n),"onPasswordChange",(function(e){n.setState({password:e.target.value,passwordError:void 0})})),Ro(Do(n),"onPasswordCheckboxChange",(function(e){n.setState({isPasswordEnabled:e.target.checked})})),Ro(Do(n),"onExpirationDateChange",(function(e){n.setState({expirationDate:e,expirationError:void 0})})),Ro(Do(n),"onExpirationCheckboxChange",(function(e){n.setState({isExpirationEnabled:e.target.checked})})),Ro(Do(n),"onAllowDownloadChange",(function(e){n.setState({isDownloadEnabled:e.target.checked})})),Ro(Do(n),"onVanityCheckboxChange",(function(e){n.setState({isVanityEnabled:e.target.checked,vanityName:e.target.checked?n.props.vanityName:""})})),n.state={expirationDate:e.expirationTimestamp?new Date(e.expirationTimestamp):null,expirationError:e.expirationError,isVanityEnabled:!!e.vanityName,isDownloadEnabled:e.isDownloadEnabled,isExpirationEnabled:!!e.expirationTimestamp,isPasswordEnabled:e.isPasswordEnabled,password:"",passwordError:e.passwordError,vanityName:e.vanityName,vanityNameError:e.vanityNameError},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lo(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expirationError,r=t.passwordError,o=t.vanityNameError;e.expirationError===n&&e.passwordError===r&&e.vanityNameError===o||this.setState({expirationError:n,passwordError:r,vanityNameError:o})}},{key:"renderVanityNameSection",value:function(){var e=this.props,t=e.canChangeVanityName,n=e.hideVanityNameSection,r=e.serverURL,i=e.vanityNameInputProps,a=e.warnOnPublic,s=void 0!==a&&a,l=this.state,u=l.vanityNameError,c=l.isVanityEnabled;return n?null:o.a.createElement(so,{canChangeVanityName:t,isVanityEnabled:c,error:u,onChange:this.onVanityNameChange,onCheckboxChange:this.onVanityCheckboxChange,serverURL:r,vanityName:this.state.vanityName,vanityNameInputProps:i,warnOnPublic:s})}},{key:"renderPasswordSection",value:function(){var e=this.props,t=e.canChangePassword,n=e.isPasswordAvailable,r=e.passwordCheckboxProps,i=e.passwordInformationText,a=e.passwordInputProps,s=this.state,l=s.isPasswordEnabled,u=s.password,c=s.passwordError;return o.a.createElement(ho,{canChangePassword:t,error:c,isPasswordAvailable:n,isPasswordEnabled:l,isPasswordInitiallyEnabled:this.props.isPasswordEnabled,onCheckboxChange:this.onPasswordCheckboxChange,onPasswordChange:this.onPasswordChange,password:u,passwordCheckboxProps:r,passwordInformationText:i,passwordInputProps:a})}},{key:"renderExpirationSection",value:function(){var e=this.props,t=e.canChangeExpiration,n=e.expirationCheckboxProps,r=e.expirationInputProps,i=this.state,a=i.expirationDate,s=i.isExpirationEnabled,l=i.expirationError;return o.a.createElement(go,{canChangeExpiration:t,error:l,expirationCheckboxProps:n,expirationDate:a,expirationInputProps:r,isExpirationEnabled:s,onCheckboxChange:this.onExpirationCheckboxChange,onExpirationDateChange:this.onExpirationDateChange})}},{key:"renderAccessLevelNotice",value:function(){var e=function(e,t){var n;switch(e){case xo:n=t?oo.withLinkViewDownload:oo.withLinkView;break;case _o:n=t?oo.inCompanyViewDownload:oo.inCompanyView;break;case Po:n=oo.inItem}return n}(this.props.accessLevel,this.state.isDownloadEnabled);return e&&o.a.createElement("div",{className:"link-settings-modal-notice"},o.a.createElement(c.a,e)," ",o.a.createElement(Qr.a,{href:"https://community.box.com/t5/Using-Shared-Links/Shared-Link-Settings/ta-p/50250",target:"_blank"},o.a.createElement(c.a,oo.sharedLinkSettingWarningLinkText)))}},{key:"renderAllowDownloadSection",value:function(){var e=this.props,t=e.canChangeDownload,n=e.directLink,r=e.directLinkInputProps,i=e.downloadCheckboxProps,a=e.isDirectLinkAvailable,s=e.isDirectLinkUnavailableDueToDownloadSettings,l=e.isDirectLinkUnavailableDueToAccessPolicy,u=e.isDirectLinkUnavailableDueToMaliciousContent,c=e.isDownloadAvailable,f=e.item,d=this.state.isDownloadEnabled,p=f.classification;return o.a.createElement(Co,{canChangeDownload:t,classification:p,directLink:n,directLinkInputProps:r,downloadCheckboxProps:i,isDirectLinkAvailable:a,isDirectLinkUnavailableDueToDownloadSettings:s,isDirectLinkUnavailableDueToAccessPolicy:l,isDirectLinkUnavailableDueToMaliciousContent:u,isDownloadAvailable:c,isDownloadEnabled:d,onChange:this.onAllowDownloadChange})}},{key:"renderModalTitle",value:function(){var e=this.props.item,t=e.bannerPolicy,n=e.classification;return o.a.createElement("span",{className:"bdl-SharedLinkSettingsModal-title"},o.a.createElement(c.a,oo.modalTitle),o.a.createElement(v.c,{definition:t?t.body:void 0,messageStyle:"tooltip",name:n,className:"bdl-SharedLinkSettingsModal-classification"}))}},{key:"render",value:function(){var e=this.props,t=e.canChangeDownload,n=e.canChangeExpiration,r=e.canChangePassword,i=e.canChangeVanityName,a=e.cancelButtonProps,s=e.isOpen,l=e.modalProps,u=e.onRequestClose,f=e.saveButtonProps,d=e.submitting,p=!(t&&n&&r&&i),h=!(t||n||r||i);return o.a.createElement(y.a,To({className:"be-modal shared-link-settings-modal",isOpen:s,onRequestClose:d?void 0:u,title:this.renderModalTitle()},l),o.a.createElement("form",{onSubmit:this.onSubmit},p&&o.a.createElement(U.a,{type:"warning"},o.a.createElement(c.a,oo.inaccessibleSettingsNotice)),this.renderAccessLevelNotice(),this.renderExpirationSection(),this.renderPasswordSection(),this.renderVanityNameSection(),this.renderAllowDownloadSection(),o.a.createElement(y.b,null,o.a.createElement(A.b,To({isDisabled:d,onClick:u,type:"button"},a),o.a.createElement(c.a,fe.a.cancel)),o.a.createElement(tn.a,To({isDisabled:d||h,isLoading:d},f),o.a.createElement(c.a,fe.a.save)))))}}])&&Io(n.prototype,r),i&&Io(n,i),t}(r.Component);Ro(No,"propTypes",{hideVanityNameSection:$r.a.bool,isOpen:$r.a.bool,onRequestClose:$r.a.func,submitting:$r.a.bool,warnOnPublic:$r.a.bool,onSubmit:$r.a.func.isRequired,accessLevel:$r.a.string,canChangeVanityName:$r.a.bool.isRequired,vanityName:$r.a.string.isRequired,serverURL:$r.a.string.isRequired,vanityNameError:$r.a.string,canChangePassword:$r.a.bool.isRequired,isPasswordAvailable:$r.a.bool.isRequired,isPasswordEnabled:$r.a.bool.isRequired,passwordError:$r.a.string,passwordInformationText:$r.a.string,canChangeExpiration:$r.a.bool.isRequired,expirationTimestamp:$r.a.number,expirationError:$r.a.string,isDownloadAvailable:$r.a.bool.isRequired,canChangeDownload:$r.a.bool.isRequired,isDownloadEnabled:$r.a.bool.isRequired,directLink:$r.a.string.isRequired,isDirectLinkAvailable:$r.a.bool.isRequired,isDirectLinkUnavailableDueToDownloadSettings:$r.a.bool.isRequired,isDirectLinkUnavailableDueToAccessPolicy:$r.a.bool.isRequired,isDirectLinkUnavailableDueToMaliciousContent:$r.a.bool.isRequired,item:$r.a.object,cancelButtonProps:$r.a.object,directLinkInputProps:$r.a.object,downloadCheckboxProps:$r.a.object,expirationCheckboxProps:$r.a.object,expirationInputProps:$r.a.object,modalProps:$r.a.object,passwordCheckboxProps:$r.a.object,passwordInputProps:$r.a.object,saveButtonProps:$r.a.object,vanityNameInputProps:$r.a.object}),Ro(No,"defaultProps",{cancelButtonProps:{},modalProps:{},saveButtonProps:{}});var Mo=No,Fo=n(1),Uo={400:"badRequestError",401:"noAccessError",403:"noAccessError",404:"notFoundError",500:"loadingError"},Bo=[Fo.sc,Fo.tc,Fo.xc,Fo.Dc,Fo.Gc,Fo.Kc,Fo.ud,Fo.Wc,Fo.Yc,Fo.bd,Fo.ld,Fo.md,Fo.nd],Ho={fields:Bo},zo={SHARED_LINK_SETTINGS:"SHARED_LINK_SETTINGS",UNIFIED_SHARE_MODAL:"UNIFIED_SHARE_MODAL"};function Vo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Wo,qo,Go,Ko,Xo,Yo=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=Vo(r.useState(null),2),l=s[0],c=s[1],f=Vo(r.useState(null),2),d=f[0],p=f[1],h=Vo(r.useState(null),2),b=h[0],m=h[1],y=Vo(r.useState(null),2),v=y[0],g=y[1],w=Vo(r.useState(null),2),E=w[0],S=w[1],O=Vo(r.useState(!1),2),k=O[0],C=O[1],x=r.useRef(i),_=a.handleRemoveSharedLinkError,P=void 0===_?u.a:_,A=a.handleRemoveSharedLinkSuccess,T=void 0===A?function(e){return e}:A,I=a.handleUpdateSharedLinkError,j=void 0===I?u.a:I,D=a.handleUpdateSharedLinkSuccess,L=void 0===D?function(e){return e}:D,R=a.setIsLoading,N=void 0===R?u.a:R,M=a.transformAccess,F=void 0===M?function(e){return e}:M,U=a.transformPermissions,B=void 0===U?function(e){return e}:U,H=a.transformSettings,z=void 0===H?function(e,t){return e}:H;return r.useEffect((function(){if(o&&!k){var r,i={id:t,permissions:o};n===Fo.Jf?r=e.getFileAPI():n===Fo.Kf&&(r=e.getFolderAPI());var a=function(e){var t=e.access,n=e.requestOptions,o=void 0===n?Ho:n,a=e.successFn,s=void 0===a?L:a,l=e.errorFn,u=void 0===l?j:l;return N(!0),r.share(i,t,s,u,o)};c((function(){return function(){return a({successFn:function(e){var t=e.shared_link.access;x.current=t,L(e)}})}}));p((function(){return function(){return a({access:Fo.c,successFn:T,errorFn:P})}}));m((function(){return function(e){return a({access:F(e),successFn:function(t){x.current=e,L(t)}})}}));var s=function(e){return N(!0),r.updateSharedLink(i,e,L,j,Ho)};g((function(){return function(e){return s({permissions:B(e)})}}));S((function(){return function(e){return s(z(e,x.current))}})),C(!0)}}),[o,k,t,n,L,T,F,i,B,z,x,e,N,P,j]),{changeSharedLinkAccessLevel:b,changeSharedLinkPermissionLevel:v,onAddLink:l,onRemoveLink:d,onSubmitSettings:E}},Jo=n(15);function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti=(ei(Wo={},Fo.a,Ce),ei(Wo,Fo.b,"peopleInYourCompany"),ei(Wo,Fo.d,ke),ei(Wo,Fo.c,""),Wo),ni=(ei(qo={},Fo.De,_e),ei(qo,Fo.Fe,Pe),qo),ri=(ei(Go={},"peopleInYourCompany",Fo.b),ei(Go,ke,Fo.d),ei(Go,Ce,Fo.a),Go),oi=(ei(Ko={},_e,Fo.De),ei(Ko,Pe,Fo.Fe),Ko),ii=(ei(Xo={},ue.x,Jo.c),ei(Xo,ue.r,Jo.d),ei(Xo,ue.v,Jo.e),ei(Xo,ue.t,Jo.f),ei(Xo,ue.p,Jo.g),ei(Xo,ue.f,Jo.h),ei(Xo,ue.n,Jo.i),ei(Xo,ue.i,Jo.j),Xo),ai=new RegExp("boxdevedition.com"),si=function(e){if(!e)return null;var t={};return Object.entries(e).forEach((function(e){var n=Zo(e,2),r=n[0],o=n[1];t[ti[r]]=o})),t},li=function(e){if(!e)return null;var t={peopleInThisItem:!1,peopleInYourCompany:!1,peopleWithTheLink:!1};return e.forEach((function(e){t[ti[e]]=!0})),t},ui=function(e){var t=e.allowed_invitee_roles,n=e.allowed_shared_link_access_levels,r=e.allowed_shared_link_access_levels_disabled_reasons,o=e.classification,i=e.id,a=e.description,s=e.extension,l=e.name,u=e.owned_by,c=u.id,f=u.login,d=e.permissions,p=e.shared_link,h=e.shared_link_features,b=h.download_url,m=h.password,y=e.type,v=d.can_download,g=d.can_invite_collaborator,w=d.can_preview,E=d.can_set_share_access,S=d.can_share,O={};if(o){var k=o.color,C=o.definition,x=o.name;O={bannerPolicy:{body:C,colorID:ii[k]},classification:x}}var _=-1!==t.indexOf(Fo.be),P={canInvite:!!g};if(p){var A=p.download_url,T=p.effective_access,I=p.effective_permission,j=p.is_password_enabled,D=p.password,L=p.unshared_at,R=p.url,N=p.vanity_name,M=T?ti[T]:"",F=I?ni[I]:null,U=F===ni.can_download,B=E&&v&&T!==Fo.a,H=E&&m,z=E&&_;P={accessLevel:M,accessLevelsDisabledReason:si(r)||{},allowedAccessLevels:li(n)||Ae,canChangeAccessLevel:E,canChangeDownload:B,canChangeExpiration:z,canChangePassword:H,canChangeVanityName:!1,canInvite:!!g,directLink:A,expirationTimestamp:L?new Date(L).getTime():null,isDirectLinkAvailable:b,isDownloadAllowed:U,isDownloadAvailable:v,isDownloadEnabled:U,isDownloadSettingAvailable:v,isEditAllowed:_,isNewSharedLink:!1,isPasswordAvailable:m,isPasswordEnabled:j,isPreviewAllowed:w,password:D,permissionLevel:F,url:R,vanityName:N||""}}return{item:Qo({canUserSeeClassification:!!o,description:a,extension:s,grantedPermissions:{itemShare:!!S},hideCollaborators:!1,id:i,name:l,ownerEmail:f,ownerID:c,permissions:d,type:y,typedID:y===Fo.Kf?Object(pt.c)(i):Object(pt.b)(i)},O),sharedLink:P}},ci=function(e){var t=e.enterprise,n=e.hostname;return{id:e.id,userEnterpriseData:{enterpriseName:t?t.name:"",serverURL:n?"".concat(n,"v/"):""}}},fi=function(e){var t={};return Object.keys(oi).forEach((function(n){t[oi[n]]=n===e})),t},di=function(e,t,n,r){var o=e.expirationTimestamp,i=e.isDownloadEnabled,a=e.isExpirationEnabled,s=e.isPasswordEnabled,l=e.password,u=e.vanityName,c={unshared_at:o&&a?new Date(o).toISOString():null,vanity_url:r&&u?"".concat(r).concat(u):""};if(![Fo.a,Ce].includes(t)){var f={can_preview:!i};n&&(f.can_download=i),c.permissions=f}return[ke,Fo.d].includes(t)&&(s&&l?c.password=l:s||(c.password=null)),c},pi=function(e){var t=e.collab,n=e.avatarURLMap,r=e.ownerEmail,o=e.isCurrentUserOwner,i=void 0!==o&&o;if(!t||t.status!==Fo.nf)return null;var a=r&&/@/.test(r)?r.split("@")[1]:null,s=t.accessible_by,l=s.id,u=s.login,c=s.name,f=s.type,d=t.id,p=t.expires_at,h=t.role,b=n?n[l]:void 0,m={collabID:parseInt(d,10),email:u,hasCustomAvatar:!!b,imageURL:b,isExternalCollab:Gn(i,a,u),name:c,translatedRole:"".concat(h[0].toUpperCase()).concat(h.slice(1)),type:f,userID:parseInt(l,10)};return p&&(m.expiration={executeAt:p}),m},hi=function(e,t,n,r){var o=e.entries,i=void 0===o?[]:o;if(!i.length)return{collaborators:[]};var a=[];return i.filter((function(e){return e.status===Fo.nf})).forEach((function(e){var o=pi({collab:e,avatarURLMap:t,ownerEmail:n,isCurrentUserOwner:r});o&&a.push(o)})),{collaborators:a}},bi=function(e,t){var n=e.emails,r=e.groupIDs,o=e.permission,i=n?n.split(","):[],a=r?r.split(","):[],s=new Set;t&&t.collaborators.forEach((function(e){"user"===e.type&&e.email?s.add(e.email):"group"===e.type&&e.userID&&s.add(e.userID.toString())}));var l={role:o.toLowerCase()};return{groups:a.filter((function(e){return!s.has(e)})).map((function(e){return Qo({accessible_by:{id:e,type:"group"}},l)})),users:i.filter((function(e){return!s.has(e)})).map((function(e){return Qo({accessible_by:{login:e,type:"user"}},l)}))}},mi=function(e,t){var n=e.name,r=void 0===n?"":n,o=t.name,i=void 0===o?"":o;return r.localeCompare(i)},yi=function(e,t){var n=e.entries;return(void 0===n?[]:n).filter((function(e){var n=e.id,r=e.login,o=e.status;return n!==t&&r&&!ai.test(r)&&o&&o!==Fo.qf})).map((function(e){return{id:e.id,email:e.login,name:e.name,type:e.type}})).sort(mi)},vi=function(e){var t=e.entries,n={};return(void 0===t?[]:t).forEach((function(e){var t=e.id,r=e.login,o=void 0===r?"":r,i=e.name,a=e.type;n[o]={id:t,email:o,name:i,type:a}})),n},gi=function(e){var t=e.entries;return(void 0===t?[]:t).filter((function(e){var t=e.permissions;return t&&t.can_invite_as_collaborator})).map((function(e){return{id:e.id,name:e.name,type:e.type}})).sort(mi)};function wi(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ei(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){wi(i,r,o,a,s,"next",e)}function s(e){wi(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Oi=function(e,t,n){var o=Si(r.useState(null),2),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&n&&n.entries){var r=e.getUsersAPI(!1);Ei(regeneratorRuntime.mark((function e(){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},i=n?n.entries:[],e.next=4,Promise.all(i.map(function(){var e=Ei(regeneratorRuntime.mark((function e(n){var i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&n.accessible_by){e.next=2;break}return e.abrupt("return");case 2:return i=n.accessible_by.id,e.next=5,r.getAvatarUrlWithAccessToken(i.toString(),t);case 5:a=e.sent,o[i]=a;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:a(o);case 5:case"end":return e.stop()}}),e)})))()}}),[e,i,n,t]),i};function ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ci=function(e,t,n,o){var i=ki(r.useState(null),2),a=i[0],s=i[1],l=o.handleSuccess,c=void 0===l?u.a:l,f=o.handleError,d=void 0===f?u.a:f;return r.useEffect((function(){if(!a){var r;n===Fo.Jf?r=e.getFileCollaborationsAPI(!1):n===Fo.Kf&&(r=e.getFolderCollaborationsAPI(!1)),r&&r.getCollaborations(t,(function(e){s(e),c(e)}),(function(){s({entries:[],next_marker:null}),d()}))}}),[e,a,d,c,t,n]),a};function xi(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Pi=function(e,t,n){var o=_i(r.useState(null),2),i=o[0],a=o[1],s=n.handleSuccess,l=void 0===s?u.a:s,c=n.handleError,f=void 0===c?u.a:c,d=n.transformGroups,p=n.transformUsers;return r.useEffect((function(){if(!i){var n=function(e,t,n){l(t);var r=t&&t.entries&&t.entries.length;if(n&&r)return e(n(t));return e(t&&t.entries?t.entries:[])};a((function(){return function(r){var o=new Promise((function(o){e.getMarkerBasedUsersAPI(!1).getUsersInEnterprise(t,(function(e){return n(o,e,p)}),f,{filter_term:r})})),i=new Promise((function(o){e.getMarkerBasedGroupsAPI(!1).getGroupsInEnterprise(t,(function(e){return n(o,e,d)}),f,{fields:[Fo.Wc,Fo.bd].toString(),filter_term:r})}));return Promise.all([o,i]).then((function(e){return[].concat(xi(e[0]),xi(e[1]))}))}}))}}),[e,i,f,l,t,d,p]),i};function Ai(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ii=function(e,t,n,o){var i=Ti(r.useState(null),2),a=i[0],s=i[1],l=o.handleSuccess,c=void 0===l?u.a:l,f=o.handleError,d=void 0===f?u.a:f,p=o.setIsLoading,h=void 0===p?u.a:p,b=o.transformRequest,m=o.transformResponse,y=void 0===m?function(e){return e}:m;return r.useEffect((function(){if(!a){var r={id:t,type:n},o=function(t){return h(!0),e.getCollaborationsAPI(!1).addCollaboration(r,t,(function(e){return c(e),y(e)}),d)};a||s((function(){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b){e.next=2;break}return e.abrupt("return",Promise.resolve(null));case 2:return n=b(t),r=n.users,i=n.groups,e.abrupt("return",Promise.all([r.map((function(e){return o(e)})),i.map((function(e){return o(e)}))]));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ai(i,r,o,a,s,"next",e)}function s(e){Ai(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()}))}}),[e,d,c,t,n,a,h,b,y]),a},ji=Object(g.defineMessages)({badRequestError:{id:"be.contentSharing.badRequestError",defaultMessage:"The request for this item was malformed."},loadingError:{id:"be.contentSharing.loadingError",defaultMessage:"Could not load shared link for this item."},noAccessError:{id:"be.contentSharing.noAccessError",defaultMessage:"You do not have access to this item."},notFoundError:{id:"be.contentSharing.notFoundError",defaultMessage:"Could not find shared link for this item."},sharedLinkUpdateError:{id:"be.contentSharing.sharedLinkUpdateError",defaultMessage:"Could not update the shared link for this item."},sharedLinkSettingsUpdateSuccess:{id:"be.contentSharing.sharedLinkSettingsUpdateSuccess",defaultMessage:"The shared link for this item was successfully updated."},sharedLinkRemovalSuccess:{id:"be.contentSharing.sharedLinkRemovalSuccess",defaultMessage:"The shared link for this item was removed."},collaboratorsLoadingError:{id:"be.contentSharing.collaboratorsLoadingError",defaultMessage:"Could not retrieve collaborators for this item."},getContactsError:{id:"be.contentSharing.getContactsError",defaultMessage:"Could not retrieve contacts."},sendInvitesError:{id:"be.contentSharing.sendInvitesError",defaultMessage:"Could not send invites."},sendInvitesSuccess:{id:"be.contentSharing.sendInvitesSuccess",defaultMessage:"Successfully invited collaborators."}});function Di(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){Ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Fi=function(e){var t=e.accessLevel,n=e.api,o=e.closeComponent,i=e.closeSettings,a=e.collaboratorsList,s=e.currentUserID,l=e.getContacts,u=e.isDownloadAvailable,f=e.itemID,b=e.itemType,m=e.ownerEmail,y=e.ownerID,v=e.permissions,g=e.sendInvites,w=e.serverURL,E=e.setChangeSharedLinkAccessLevel,S=e.setChangeSharedLinkPermissionLevel,O=e.setGetContacts,k=e.setCollaboratorsList,C=e.setIsLoading,x=e.setItem,_=e.setOnAddLink,P=e.setOnRemoveLink,A=e.setOnSubmitSettings,T=e.setSendInvites,I=e.setSharedLink,j=Mi(r.useState({}),2),D=j[0],L=j[1],R=Mi(r.useState(0),2),N=R[0],M=R[1],F=r.useCallback((function(e){var t=Ri({},D);delete t[e],L(t)}),[D]),U=r.useCallback((function(e,t){var n=Ri({},D);n[N]||(n[N]=r.createElement(p.a,{key:N,duration:h.DURATION_SHORT,onClose:function(){return F(N)},type:e},r.createElement("span",null,r.createElement(c.a,t))),L(n),M(N+1))}),[F,N,D]),B=Yo(n,f,b,v,t,{handleUpdateSharedLinkError:function(){U(h.TYPE_ERROR,ji.sharedLinkUpdateError),C(!1),i()},handleUpdateSharedLinkSuccess:function(e){U(h.TYPE_INFO,ji.sharedLinkSettingsUpdateSuccess),function(e){var t=ui(e),n=t.item,r=t.sharedLink;x((function(e){return Ri({},e,{},n)})),I((function(e){return Ri({},e,{},r)}))}(e),C(!1),i()},handleRemoveSharedLinkError:function(){U(h.TYPE_ERROR,ji.sharedLinkUpdateError),C(!1),o()},handleRemoveSharedLinkSuccess:function(e){U(h.TYPE_INFO,ji.sharedLinkRemovalSuccess),function(e){var t=ui(e),n=t.item,r=t.sharedLink;x((function(e){return Ri({},e,{},n)})),I((function(e){return Ri({},r,{serverURL:e?e.serverURL:"",enterpriseName:e&&e.enterpriseName?e.enterpriseName:""})}))}(e),C(!1),o()},setIsLoading:C,transformAccess:function(e){return ri[e]},transformPermissions:function(e){return fi(e)},transformSettings:function(e,t){return di(e,t,u,w)}}),H=B.changeSharedLinkAccessLevel,z=B.changeSharedLinkPermissionLevel,V=B.onAddLink,W=B.onRemoveLink,q=B.onSubmitSettings;E((function(){return H})),S((function(){return z})),_((function(){return V})),P((function(){return W})),A((function(){return q}));var G=Ci(n,f,b,{handleError:function(){return U(h.TYPE_ERROR,ji.collaboratorsLoadingError)}}),K=Oi(n,f,G);G&&K&&!a&&k(hi(G,K,m,s===y));var X=Pi(n,f,{handleError:function(){return U(h.TYPE_ERROR,ji.getContactsError)},transformGroups:function(e){return gi(e)},transformUsers:function(e){return yi(e,s)}});X&&!l&&O((function(){return X}));var Y=Ii(n,f,b,{handleSuccess:function(e){U(h.TYPE_INFO,ji.sendInvitesSuccess),C(!1),k((function(t){var n=t?Ri({},t):{collaborators:[]},r=pi({collab:e,ownerEmail:m,isCurrentUserOwner:s===y});return r&&n.collaborators.push(r),n})),o()},handleError:function(){U(h.TYPE_ERROR,ji.sendInvitesError),C(!1),o()},setIsLoading:C,transformRequest:function(e){return bi(e,a)}});return Y&&!g&&T((function(){return Y})),r.createElement(d.a,null,r.createElement(r.Fragment,null,Di(Object.values(D))))};function Ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Bi=function(e,t,n){var o=Ui(r.useState(null),2),i=o[0],a=o[1],s=n.handleSuccess,l=void 0===s?u.a:s,c=n.handleError,f=void 0===c?u.a:c,d=n.transformUsers;return r.useEffect((function(){if(!i){a((function(){return function(n){if(!n||!Array.isArray(n.emails)||!n.emails.length)return Promise.resolve({});var r=n.emails[0];return new Promise((function(n){e.getMarkerBasedUsersAPI(!1).getUsersInEnterprise(t,(function(e){return function(e,t,n){return l(t),t&&t.entries&&t.entries.length?e(n?n(t):t.entries):e({})}(n,e,d)}),f,{filter_term:r})}))}}))}}),[e,i,f,l,t,d]),i};function Hi(){return(Hi=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 zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Gi=function(e){var t=e.api,n=e.config,o=e.displayInModal,i=e.isVisible,a=e.itemID,l=e.itemType,m=e.language,y=e.messages,v=e.setIsVisible,g=e.uuid,w=qi(r.useState(null),2),E=w[0],S=w[1],O=qi(r.useState(null),2),k=O[0],C=O[1],x=qi(r.useState(null),2),_=x[0],P=x[1],A=qi(r.useState(null),2),T=A[0],I=A[1],j=qi(r.useState(null),2),D=j[0],L=j[1],R=qi(r.useState(!1),2),N=R[0],M=R[1],F=qi(r.useState(null),2),U=F[0],B=F[1],H=qi(r.useState(null),2),z=H[0],V=H[1],W=qi(r.useState(null),2),q=W[0],G=W[1],K=qi(r.useState(null),2),X=K[0],Y=K[1],J=qi(r.useState(null),2),$=J[0],Q=J[1],Z=qi(r.useState(null),2),ee=Z[0],te=Z[1],ne=qi(r.useState(zo.UNIFIED_SHARE_MODAL),2),re=ne[0],oe=ne[1],ie=qi(r.useState(null),2),ae=ie[0],se=ie[1],le=qi(r.useState(null),2),ue=le[0],ce=le[1],fe=qi(r.useState(null),2),de=fe[0],pe=fe[1],he=qi(r.useState(!0),2),be=he[0],me=he[1],ye=r.useCallback((function(e){var t=ui(e),n=t.item,r=t.sharedLink;S(n),C(r),me(!1)}),[]),ve=r.useCallback((function(e){var t;N||(M(!0),me(!1),t=e.status?ji[Uo[e.status]]:e.response&&e.response.status?ji[Uo[e.response.status]]:ji.loadingError,L(t))}),[N]);r.useEffect((function(){Y(null),Q(null),B(null),L(null),I(null),P(null),M(!1),me(!0),S(null),V(null),G(null),C(null)}),[t]),r.useEffect((function(){L(null),M(!1)}),[g]),r.useEffect((function(){!t||s()(t)||D||!i||E||k||(l===Fo.Jf?t.getFileAPI().getFile(a,ye,ve,{fields:Bo}):l===Fo.Kf&&t.getFolderAPI().getFolderFields(a,ye,ve,{fields:Bo}))}),[t,D,ve,ye,i,E,a,l,k]),r.useEffect((function(){var e=function(e){var t=ci(e),n=t.id,r=t.userEnterpriseData;I(n),P(r.enterpriseName||null),C((function(e){return Vi({},e,{},r)})),L(null),me(!1)};t&&!s()(t)&&!D&&E&&k&&!T&&t.getUsersAPI(!1).getUser(a,e,ve,{params:{fields:[Fo.Fc,Fo.Jc].toString()}})}),[ve,E,a,l,k,T,t,D]);var ge=Bi(t,a,{transformUsers:function(e){return vi(e)}});if(ge&&!ue&&ce((function(){return ge})),D)return N?r.createElement(f.a,{language:m,messages:y},r.createElement(d.a,null,r.createElement(p.a,{onClose:function(){return M(!1)},type:h.TYPE_ERROR,duration:h.DURATION_SHORT},r.createElement("span",null,r.createElement(c.a,D))))):null;if(!(E&&k&&T&&k.serverURL))return i?r.createElement(b.b,null):null;var we=E.ownerEmail,Ee=E.ownerID,Se=E.permissions,Oe=k.accessLevel,ke=void 0===Oe?"":Oe,Ce=k.canChangeExpiration,xe=void 0!==Ce&&Ce,_e=k.expirationTimestamp,Pe=k.isDownloadAvailable,Ae=void 0!==Pe&&Pe,je=k.serverURL;return r.createElement(f.a,{language:m,messages:y},r.createElement(r.Fragment,null,r.createElement(Fi,{accessLevel:ke,api:t,closeComponent:o?function(){return v(!1)}:u.a,closeSettings:function(){return oe(zo.UNIFIED_SHARE_MODAL)},collaboratorsList:U,currentUserID:T,getContacts:ae,isDownloadAvailable:Ae,itemID:a,itemType:l,onSubmitSettings:ee,ownerEmail:we,ownerID:Ee,permissions:Se,sendInvites:de,serverURL:je,setChangeSharedLinkAccessLevel:Y,setChangeSharedLinkPermissionLevel:Q,setGetContacts:se,setCollaboratorsList:B,setIsLoading:me,setItem:S,setOnAddLink:V,setOnRemoveLink:G,setOnSubmitSettings:te,setSendInvites:pe,setSharedLink:C}),i&&re===zo.SHARED_LINK_SETTINGS&&r.createElement(Mo,Hi({isDirectLinkUnavailableDueToDownloadSettings:!1,isDirectLinkUnavailableDueToAccessPolicy:!1,isDirectLinkUnavailableDueToMaliciousContent:!1,isOpen:i,item:E,onRequestClose:function(){return oe(zo.UNIFIED_SHARE_MODAL)},onSubmit:ee,submitting:be},k,{canChangeExpiration:xe&&!!_})),i&&re===zo.UNIFIED_SHARE_MODAL&&r.createElement(Yr,{canInvite:k.canInvite,config:n,changeSharedLinkAccessLevel:X,changeSharedLinkPermissionLevel:$,collaboratorsList:U,currentUserID:T,displayInModal:o,getCollaboratorContacts:ae,getContactsByEmail:ue,initialDataReceived:!0,inviteePermissions:l===Fo.Kf?Te:Ie,isOpen:i,item:E,onAddLink:z,onRequestClose:o?function(){return v(!1)}:u.a,onRemoveLink:q,onSettingsClick:function(){return oe(zo.SHARED_LINK_SETTINGS)},sendInvites:de,sharedLink:Vi({},k,{expirationTimestamp:_e?_e/1e3:null}),submitting:be})))};n(241),n(326),n(536);function Ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Xi=function(e,t,n,r){return new i.a({apiHost:e,clientName:Fo.z,id:"".concat(n,"_").concat(t),token:r})};var Yi=function(e){var t=e.apiHost,n=void 0===t?Fo.L:t,o=e.config,i=e.customButton,a=e.displayInModal,s=e.itemID,l=e.itemType,u=e.language,c=e.messages,f=e.token,d=e.uuid,p=Ki(r.useState(Xi(n,s,l,f)),2),h=p[0],b=p[1],m=Ki(r.useState(null),2),y=m[0],v=m[1],g=Ki(r.useState(!i),2),w=g[0],E=g[1];return r.useEffect((function(){!h&&n&&s&&l&&f&&b(Xi(n,s,l,f))}),[h,n,s,l,f]),r.useEffect((function(){E(!i)}),[h,i,d]),r.useEffect((function(){i&&!y&&v(r.cloneElement(i,{onClick:function(){return E(!0)}}))}),[o,i,a,s,l,u,y,c,w]),r.createElement(r.Fragment,null,y,h&&r.createElement(Gi,{api:h,config:o,displayInModal:a,isVisible:w,itemID:s,itemType:l,language:u,messages:c,setIsVisible:E,uuid:d}))};n.d(t,"a",(function(){return Yi}))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var r=n(0),o=n(12),i=n.n(o),a=n(39),s=n(251),l=n(956),u=n(120);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,h(t).apply(this,arguments))}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.options.itemType;Object(a.render)(r.createElement(l.a,f({itemID:this.id,itemType:e||u.a,language:this.language,messages:this.messages,token:this.token,uuid:i()("contentSharing_")},this.options)),this.container)}}])&&d(n.prototype,o),s&&d(n,s),t}(s.a);e.Box=e.Box||{},e.Box.ContentSharing=m,t.default=m}.call(this,n(43))},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){var r=n(990),o=n(991),i=n(537),a=n(32);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,u=t?t():{};return l(n,e,i(s,2),u)}}},function(e,t){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(992);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},function(e,t,n){var r=n(993),o=n(994)(r);e.exports=o},function(e,t,n){var r=n(342),o=n(108);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(83);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){var r=n(559),o=n(996),i=n(997),a=n(560),s=n(998),l=n(552),u=200;e.exports=function(e,t,n){var c=-1,f=o,d=e.length,p=!0,h=[],b=h;if(n)p=!1,f=i;else if(d>=u){var m=t?null:s(e);if(m)return l(m);p=!1,f=a,b=new r}else b=t?[]:h;e:for(;++c<d;){var y=e[c],v=t?t(y):y;if(y=n||0!==y?y:0,p&&v==v){for(var g=b.length;g--;)if(b[g]===v)continue e;t&&b.push(v),h.push(y)}else f(b,v,n)||(b!==h&&b.push(v),h.push(y))}return h}},function(e,t,n){var r=n(341);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(340),o=n(3),i=n(552),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){"use strict";var r=n(950);t.analyze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return r.error("Domain must be a non-empty string");if(e.length>256)return r.error("Domain too long");var n=!r.nonAsciiRx.test(e);if(!n){if(!1===t.allowUnicode)return r.error("Domain contains forbidden Unicode characters");var o=e.normalize("NFC");e=r.punycode(o)}return r.domain(e,t)},t.isValid=function(e,n){return!t.analyze(e,n)}},function(e,t,n){(function(e,r){var o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
164
164
|
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){var s="object"==i(t)&&t&&!t.nodeType&&t,l="object"==i(e)&&e&&!e.nodeType&&e,u="object"==(void 0===r?"undefined":i(r))&&r;u.global!==u&&u.window!==u&&u.self!==u||(a=u);var c,f,d=2147483647,p=36,h=1,b=26,m=38,y=700,v=72,g=128,w="-",E=/^xn--/,S=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=p-h,x=Math.floor,_=String.fromCharCode;function P(e){throw new RangeError(k[e])}function A(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+A((e=e.replace(O,".")).split("."),t).join(".")}function I(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function j(e){return A(e,(function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function D(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function L(e,t,n){var r=0;for(e=n?x(e/y):e>>1,e+=x(e/t);e>C*b>>1;r+=p)e=x(e/C);return x(r+(C+1)*e/(e+m))}function R(e){var t,n,r,o,i,a,s,l,u,c,f,m=[],y=e.length,E=0,S=g,O=v;for((n=e.lastIndexOf(w))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&P("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=E,a=1,s=p;o>=y&&P("invalid-input"),((l=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:p)>=p||l>x((d-E)/a))&&P("overflow"),E+=l*a,!(l<(u=s<=O?h:s>=O+b?b:s-O));s+=p)a>x(d/(c=p-u))&&P("overflow"),a*=c;O=L(E-i,t=m.length+1,0==i),x(E/t)>d-S&&P("overflow"),S+=x(E/t),E%=t,m.splice(E++,0,S)}return j(m)}function N(e){var t,n,r,o,i,a,s,l,u,c,f,m,y,E,S,O=[];for(m=(e=I(e)).length,t=g,n=0,i=v,a=0;a<m;++a)(f=e[a])<128&&O.push(_(f));for(r=o=O.length,o&&O.push(w);r<m;){for(s=d,a=0;a<m;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>x((d-n)/(y=r+1))&&P("overflow"),n+=(s-t)*y,t=s,a=0;a<m;++a)if((f=e[a])<t&&++n>d&&P("overflow"),f==t){for(l=n,u=p;!(l<(c=u<=i?h:u>=i+b?b:u-i));u+=p)S=l-c,E=p-c,O.push(_(D(c+S%E,0))),l=x(S/E);O.push(_(D(l,0))),i=L(n,y,r==o),n=0,++r}++n,++t}return O.join("")}if(c={version:"1.4.1",ucs2:{decode:I,encode:j},decode:R,encode:N,toASCII:function(e){return T(e,(function(e){return S.test(e)?"xn--"+N(e):e}))},toUnicode:function(e){return T(e,(function(e){return E.test(e)?R(e.slice(4).toLowerCase()):e}))}},"object"==i(n(112))&&n(112))void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o);else if(s&&l)if(e.exports==s)l.exports=c;else for(f in c)c.hasOwnProperty(f)&&(s[f]=c[f]);else a.punycode=c}(this)}).call(this,n(90)(e),n(43))},function(e,t,n){"use strict";(function(e){var r=n(1006),o=n(950),i={};t.analyze=function(e,t){return i.email(e,t)},t.isValid=function(e,t){return!i.email(e,t)},i.email=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw new Error("Invalid input: email must be a string");if(!t)return o.error("Address must be a non-empty string");var r=!o.nonAsciiRx.test(t);if(!r){if(!1===n.allowUnicode)return o.error("Address contains forbidden Unicode characters");var a=t.normalize("NFC");t=o.punycode(a)}var s=t.split("@");if(2!==s.length)return o.error(s.length>2?"Address cannot contain more than one @ character":"Address must contain one @ character");var l=s[0],u=s[1];if(!l)return o.error("Address local part cannot be empty");if(!u)return o.error("Domain cannot be empty");if(!n.ignoreLength){if(t.length>254)return o.error("Address too long");if(e.byteLength(l,"utf-8")>64)return o.error("Address local part too long")}return i.local(l,r)||o.domain(u,n)},i.local=function(t,n){var i=t.split("."),a=!0,s=!1,l=void 0;try{for(var u,c=i[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var f=u.value;if(!f.length)return o.error("Address local part contains empty dot-separated segment");if(n){if(!r.atextRx.test(f))return o.error("Address local part contains invalid character")}else{var d=!0,p=!1,h=void 0;try{for(var b,m=f[Symbol.iterator]();!(d=(b=m.next()).done);d=!0){var y=b.value,v=e.from(y).toString("binary");if(!r.atomRx.test(v))return o.error("Address local part contains invalid character")}}catch(e){p=!0,h=e}finally{try{d||null==m.return||m.return()}finally{if(p)throw h}}}}}catch(e){s=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw l}}}}).call(this,n(1002).Buffer)},function(e,t,n){"use strict";(function(e){
|
|
165
165
|
/*!
|
|
166
166
|
* The buffer module from node.js, for the browser.
|