diff --git a/.gitignore b/.gitignore index ad46b30..8dc8670 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ typings/ # next.js build output .next +out/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..9fd7f47 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,35 @@ +// A launch configuration that compiles the extension and then opens it inside a new window +// Use IntelliSense to learn about possible attributes. +// Hover to view descriptions of existing attributes. +// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 +{ + "version": "0.2.0", + "configurations": [{ + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm: watch" + }, + { + "name": "Extension Tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test" + ], + "outFiles": [ + "${workspaceFolder}/out/test/**/*.js" + ], + "preLaunchTask": "npm: watch" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..241aa6d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,20 @@ +// See https://go.microsoft.com/fwlink/?LinkId=733558 +// for the documentation about the tasks.json format +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index f2cda5a..b5ba9d8 100644 --- a/README.md +++ b/README.md @@ -8,37 +8,21 @@ To use the Extension you must configure it first! This extension contributes the following settings: * `twp.ShowTeamworkPanel`: Use Teamwork Panel instead of AdaptiveCards for Preview, *Currently not working! -* `twp.APIKey`: Your Teamwork API Key -* `twp.APIRoot`: The installation URL of your Teamwork Projects Account - -## Known Issues -* Teamwork Embedded view not working due to CORS issues +* `twp.OnlySelfAssigned`: Only show your own tasks +* `twp.showUnAssigned`: Show tasks not assigned to anyone (default yes) ## Release Notes -### 0.5.8 -** This is a pre-release version and under development ** -* fixed initial project selection for new folders +### 1.0.0 +** Release Version ** +* Performance improvements on loading tasks and task lists +* Bugfixes +* New Login using our OAuth Flow. -### 0.5.7 +### 0.6.0 ** This is a pre-release version and under development ** -* fixed logo not visible +* Active Project - Can now set the active project by clicking on the taskbar label +* Adding Tasks - Select any piece of code - right click - add a task +* Add tasks is using the active project as target -### 0.5.6 -** This is a pre-release version and under development ** -* fixed some tasks not being displayed properly -* fixed a few display issues on the task info screen -* few improvements to styling of the Preview Card -* tasks now show priority -* tasks now show wether or not its linked to Teamwork Desk -* can complete a task from the tree - -### 0.5.5 -** This is a pre-release version and under development ** -* fixed some tasks not being displayed properly - -### 0.5.2 - -** This is a pre-release version and under development ** -You can use the extension but some features might not work or might be changed in later versions. diff --git a/media/cards/exampleCardDataFilled.json b/media/cards/exampleCardDataFilled.json index 71b4d45..ecdf062 100644 --- a/media/cards/exampleCardDataFilled.json +++ b/media/cards/exampleCardDataFilled.json @@ -1,11 +1,6 @@ { "type": "AdaptiveCard", "body": [ - { - "type": "Image", - "url": "https://s3.amazonaws.com/tw-desk/i/1/doclogo/197378.20190228210102000.197378.20190228210102000rlycm.png", - "size": "Large" - }, { "type": "Container", "items": [ @@ -20,7 +15,7 @@ "size": "Medium", "weight": "Bolder", "wrap": true, - "text": "Archived projects being added once clicked \"Add to all projects\"" + "text": "Something we want to do" }, { "type": "TextBlock", @@ -32,11 +27,11 @@ "facts": [ { "title": "Project:", - "value": "[Teamwork Projects App](undefined/projects/13215117)" + "value": "[Teamwork Projects App](url/projects/421)" }, { "title": "TaskList:", - "value": "[Minor Bugs](undefined/tasklists/1136000)" + "value": "[Minor Bugs](url/tasklists/123)" }, { "title": "Assigned to:", @@ -57,7 +52,7 @@ { "type": "Image", "style": "Person", - "url": "https://s3.amazonaws.com/TWFiles/1/userAvatar/userlogo1493205327729946000.jpg", + "url": "https://url/TWFiles/1/userAvatar/userlogo1493205327729946000.jpg", "size": "Small" } ], @@ -102,6 +97,7 @@ "type": "Column", "items": [ { + "spacing": "large", "type": "Image", "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/file.png" } @@ -114,7 +110,7 @@ { "type": "TextBlock", "text": "Attachments:", - "spacing": "Medium", + "spacing": "large", "separator": true, "color": "Accent", "weight": "Bolder" @@ -187,7 +183,7 @@ { "type": "Image", "style": "Person", - "url": "https://s3.amazonaws.com/TWFiles/1/userAvatar/tf_7d5af3ea-984b-429d-ae8c-0dffbbf01523.avatar.jpg", + "url": "https://url/TWFiles/1/userAvatar/avatar.avatar.jpg", "size": "Small" } ], diff --git a/media/cards/exampleData.json b/media/cards/exampleData.json index fb6ff2c..7fc06a1 100644 --- a/media/cards/exampleData.json +++ b/media/cards/exampleData.json @@ -45,7 +45,7 @@ "predecessors": [], "canEdit": true, "viewEstimatedTime": true, - "creator-avatar-url": "https://s3.amazonaws.com/TWFiles/1/userAvatar/tf_7D864F78-C68B-E861-6305DA288F04819E.6D362E6B-5DDD-4952-ADA5-3C34DA20A184.jpeg", + "creator-avatar-url": "https://url/TWFiles/1/userAvatar/tf_7D864F78-C68B-E861-6305DA288F04819E.6D362E6B-5DDD-4952-ADA5-3C34DA20A184.jpeg", "canLogTime": false, "commentFollowerSummary": "Michael Carew", "commentFollowerIds": "153196", @@ -63,7 +63,7 @@ "private": "0", "lockdown-id": "", "datetime": "Wed-04-2019 03:35", - "author-avatar-url": "https://s3.amazonaws.com/TWFiles/1/userAvatar/tf_7D864F78-C68B-E861-6305DA288F04819E.6D362E6B-5DDD-4952-ADA5-3C34DA20A184.jpeg", + "author-avatar-url": "https://url/TWFiles/1/userAvatar/tf_7D864F78-C68B-E861-6305DA288F04819E.6D362E6B-5DDD-4952-ADA5-3C34DA20A184.jpeg", "author_id": "153196", "canEdit": true, "id": "6595662", @@ -93,7 +93,7 @@ "categoryId": "", "filename": "image.png", "projectId": "328110", - "thumbnail": "https://s3.amazonaws.com/TWFiles/1/thumb_p328110.tf_14A0E8F9-C4FC-FA82-017D4A1B976CAC17.image.png", + "thumbnail": "https://url/TWFiles/1/thumb_p328110.tf_14A0E8F9-C4FC-FA82-017D4A1B976CAC17.image.png", "fileLocked": "0", "canEdit": true, "version": "1", @@ -150,7 +150,7 @@ }], "commentsCountRead": "0", "commentsCount": "0", - "thumbURL": "https://s3.amazonaws.com/TWFiles/1/thumb_p328110.tf_7597B63F-D36C-11AC-F541699BC2147FE6.image.png", + "thumbURL": "https://surl/TWFiles/1/thumb_p328110.tf_7597B63F-D36C-11AC-F541699BC2147FE6.image.png", "canDelete": true, "latestversion": "1", "categoryColor": "", diff --git a/media/cards/hostconfig.dark.json b/media/cards/hostconfig.dark.json index 6b8c5af..4b8cfe1 100644 --- a/media/cards/hostconfig.dark.json +++ b/media/cards/hostconfig.dark.json @@ -2,20 +2,21 @@ "choiceSetInputValueSeparator": ",", "supportsInteractivity": true, "spacing": { - "small": 8, - "default": 12, - "medium": 16, - "large": 20, - "extraLarge": 24, - "padding": 16 + "small": 6, + "default": 10, + "medium": 15, + "large": 25, + "extraLarge": 30, + "padding": 15 }, "separator": { "lineThickness": 1, - "lineColor": "#EEEEEE" + "lineColor": "#EEEEEE", + "spacing": 15 }, "fontStyles": { "default": { - "fontFamily": "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif", + "fontFamily": "'Open Sans'", "fontSizes": { "small": 12, "default": 14, @@ -29,8 +30,8 @@ "bolder": 600 } }, - "monospace": { - "fontFamily": "'Courier New', Courier, monospace", + "opensans": { + "fontFamily": "'Open Sans'", "fontSizes": { "small": 12, "default": 14, @@ -264,7 +265,7 @@ "actionAlignment": "Left" }, "adaptiveCard": { - "allowCustomStyle": false + "allowCustomStyle": true }, "imageSet": { "imageSize": "Medium", @@ -285,6 +286,6 @@ "weight": "Default", "warp": true }, - "spacing": 16 + "spacing": 15 } } \ No newline at end of file diff --git a/media/cards/taskCard.json b/media/cards/taskCard.json index 0fa9f68..a77c7ac 100644 --- a/media/cards/taskCard.json +++ b/media/cards/taskCard.json @@ -1,275 +1,331 @@ { - "type": "AdaptiveCard", - "body": [{ - "type": "Image", - "url": "https://s3.amazonaws.com/tw-desk/i/1/doclogo/197378.20190228210102000.197378.20190228210102000rlycm.png", - "size": "large" - }, - { - "type": "Container", - "items": [{ - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "items": [{ - "$when": "{$root.completed}", - "type": "TextBlock", - "color": "Good", - "text": "Completed" - }, - { - "type": "TextBlock", - "size": "Medium", - "weight": "Bolder", - "wrap": true, - "text": "{$root.content}" - }, - { - "type": "FactSet", - "facts": [{ - "title": "Project:", - "value": "[{$root['project-name']}]({$root.rooturl}/projects/{$root.id})" - }, - { - "title": "TaskList:", - "value": "[{$root['todo-list-name']}]({$root.rooturl}/tasklists/{$root['todo-list-id']})" - }, - { - "title": "Assigned to:", - "value": "{$root['responsible-party-names']}" - }, - { - "title": "Due date:", - "value": "{$root['due-date']}" - } - ] - }, - { - "type": "TextBlock", - "spacing": "Small", - "text": "Description:", - "isSubtle": true - }, - { - "type": "TextBlock", - "text": "{$root.description}", - "wrap": true - }, - { - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "items": [{ - "type": "Image", - "style": "Person", - "url": "{$root['creator-avatar-url']}", - "size": "Small" - }], - "width": "auto" - }, - { - "type": "Column", - "items": [{ - "type": "TextBlock", - "text": "Created {$root['created-on']}", - "isSubtle": true, - "wrap": true, - "size": "Small" - }, - { - "type": "TextBlock", - "spacing": "None", - "text": "by [{$root['creator-firstname']} {$root['creator-lastname']}]({$root.rooturl}/people/{$root['creator-id']})", - "isSubtle": true, - "wrap": true - } - ], - "width": "stretch" - } - ] - } - ], - "width": "stretch" - }] - }] - }, - { - "type": "Container", - "items": [{ - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "items": [{ - "type": "Image", - "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/file.png" - }], - "width": "auto" - }, - { - "type": "Column", - "items": [{ - "type": "TextBlock", - "text": "Attachments:", - "spacing": "Medium", - "separator": true, - "color": "Accent", - "weight": "Bolder" - }], - "width": "stretch" - } - ] - }, - { - "$when": "{$root['attachments-count'] > 0}", - "$data": "{$root.attachments}", - "type": "Container", - "items": [{ - "type": "TextBlock", - "text": "{$data.filenameOnDisk}" - }, - { - "type": "Image", - "url": "{$data.thumbURL}" - } - ] - } - ], - "spacing": "Medium", - "separator": true - }, - { - "type": "Container", - "items": [{ - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "height": "stretch", - "items": [{ - "type": "Image", - "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/comment.png" - }], - "width": "auto" - }, - { - "type": "Column", - "items": [{ - "type": "TextBlock", - "text": "Comments:", - "spacing": "Medium", - "separator": true, - "color": "Accent", - "weight": "Bolder" - }], - "width": "stretch" - } - ] - }], - "spacing": "Medium", - "separator": true - }, - { - "type": "Container", - "$when": "{$root['comments-count'] > 0}", - "$data": "{$root.comments}", - "items": [{ - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "items": [{ - "type": "Image", - "style": "Person", - "url": "{$data['author-avatar-url']}", - "size": "Small" - }], - "width": "auto" - }, - { - "type": "Column", - "items": [{ - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "items": [{ - "type": "TextBlock", - "weight": "Bolder", - "text": " [{$data['author-firstname']} {$data['author-lastname']}]({$root.rooturl}/people/{$root['author_id']}) ( {$data['author-company']} )", - "isSubtle": true, - "wrap": true - }], - "width": "auto" - }, - { - "type": "Column", - "items": [{ - "type": "TextBlock", - "spacing": "None", - "text": "{datetime}", - "isSubtle": true, - "wrap": true - }], - "width": "stretch" - } - ] - }], - "width": "stretch" - } - ] - }, - { - "type": "TextBlock", - "text": "{$data.body}", - "wrap": true - } - ], - "spacing": "Medium", - "style": "emphasis" - } - ], - "actions": [{ - "type": "Action.ShowCard", - "title": "Add Comment", - "card": { - "type": "AdaptiveCard", - "body": [{ - "type": "ColumnSet", - "columns": [{ - "type": "Column", - "items": [{ - "type": "Image", - "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/comment_notify.png" - }], - "width": "auto" - }, - { - "type": "Column", - "items": [{ - "type": "TextBlock", - "text": "Comment" - }], - "width": "stretch" - } - ] - }, - { - "id": "comment", - "type": "Input.Text", - "placeholder": "Your comment", - "isMultiline": true - } - ], - "actions": [{ - "type": "Action.Submit", - "title": "Submit", - "data": { - "taskId": "{$root.id}", - "type": "comment" - } - }], - "version": "1.0", - "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" - } - } - ], - "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", - "version": "1.1" + "type": "AdaptiveCard", + "body": [ + { + "type": "Image", + "url": "https://s3.amazonaws.com/tw-desk/i/1/doclogo/197378.20190228210102000.197378.20190228210102000rlycm.png", + "size": "Large" + }, + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "items": [ + { + "$when": "{$root.completed}", + "type": "TextBlock", + "color": "Good", + "text": "Completed" + }, + { + "type": "TextBlock", + "size": "Medium", + "weight": "Bolder", + "wrap": true, + "text": "{$root.content}" + }, + { + "type": "FactSet", + "facts": [ + { + "title": "Project:", + "value": "[{$root['project-name']}]({$root.rooturl}/projects/{$root.id})" + }, + { + "title": "TaskList:", + "value": "[{$root['todo-list-name']}]({$root.rooturl}/tasklists/{$root['todo-list-id']})" + }, + { + "title": "Assigned to:", + "value": "{$root['responsible-party-names']}" + }, + { + "title": "Due date:", + "value": "{$root['due-date']}" + } + ] + }, + { + "type": "TextBlock", + "spacing": "Small", + "text": "Description:", + "isSubtle": true + }, + { + "type": "TextBlock", + "text": "{$root.description}", + "wrap": true + }, + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "items": [ + { + "type": "Image", + "style": "Person", + "url": "{$root['creator-avatar-url']}", + "size": "Small" + } + ], + "width": "auto" + }, + { + "type": "Column", + "items": [ + { + "type": "TextBlock", + "text": "Created {$root['created-on']}", + "isSubtle": true, + "wrap": true, + "size": "Small" + }, + { + "type": "TextBlock", + "spacing": "None", + "text": "by [{$root['creator-firstname']} {$root['creator-lastname']}]({$root.rooturl}/people/{$root['creator-id']})", + "isSubtle": true, + "wrap": true + } + ], + "width": "stretch" + } + ] + } + ], + "width": "stretch" + } + ] + } + ] + }, + { + "type": "Container", + "spacing": "Medium", + "items": [ + { + "type": "ColumnSet", + "spacing": "Medium", + "columns": [ + { + "type": "Column", + "spacing": "Medium", + "items": [ + { + "type": "Image", + "spacing": "Medium", + "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/file.png" + } + ], + "width": "auto" + }, + { + "type": "Column", + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "Attachments:", + "spacing": "Medium", + "separator": true, + "weight": "Bolder" + } + ], + "width": "stretch" + } + ] + }, + { + "$when": "{$root['attachments-count'] > 0}", + "$data": "{$root.attachments}", + "type": "Container", + "items": [ + { + "type": "TextBlock", + "text": "{$data.filenameOnDisk}" + }, + { + "type": "Image", + "url": "{$data.thumbURL}" + } + ] + } + ], + "separator": true + }, + { + "type": "Container", + "spacing": "Medium", + "items": [ + { + "type": "ColumnSet", + "spacing": "Medium", + "columns": [ + { + "spacing": "Medium", + "type": "Column", + "height": "stretch", + "items": [ + { + "type": "Image", + "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/comment.png" + } + ], + "width": "auto" + }, + { + "spacing": "Medium", + "type": "Column", + "items": [ + { + "type": "TextBlock", + "text": "Comments:", + "separator": true, + "weight": "Bolder" + } + ], + "width": "stretch" + } + ] + } + ], + "separator": true + }, + { + "type": "Container", + "$when": "{$root['comments-count'] > 0}", + "$data": "{$root.comments}", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "items": [ + { + "type": "Image", + "style": "Person", + "url": "{$data['author-avatar-url']}", + "size": "Small" + } + ], + "width": "auto" + }, + { + "type": "Column", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "items": [ + { + "type": "TextBlock", + "weight": "Bolder", + "text": " [{$data['author-firstname']} {$data['author-lastname']}]({$root.rooturl}/people/{$root['author_id']}) ( {$data['author-company']} )", + "isSubtle": true, + "wrap": true + } + ], + "width": "auto" + }, + { + "type": "Column", + "items": [ + { + "type": "TextBlock", + "spacing": "None", + "text": "{$data['datewritten']}", + "isSubtle": true, + "wrap": true + } + ], + "width": "stretch" + } + ] + } + ], + "width": "stretch" + } + ] + }, + { + "type": "TextBlock", + "text": "{$data.body}", + "wrap": true + } + ], + "style": "emphasis" + } + ], + "actions": [ + { + "type": "Action.ShowCard", + "title": "Add Comment", + "card": { + "type": "AdaptiveCard", + "body": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "items": [ + { + "type": "Image", + "url": "https://tw-synthesiscore-beta.us.teamworkops.com/img/projects/comment_notify.png" + } + ], + "width": "auto" + }, + { + "type": "Column", + "items": [ + { + "type": "TextBlock", + "text": "Comment" + } + ], + "width": "stretch" + } + ] + }, + { + "id": "comment", + "type": "Input.Text", + "placeholder": "Your comment", + "isMultiline": true + }, + { + "id": "comment", + "type": "Input.Toggle", + "placeholder": "Your comment", + "isMultiline": true, + "value": "false", + "wrap": false + } + ], + "actions": [ + { + "type": "Action.Submit", + "title": "Submit", + "data": { + "taskId": "{$root.id}", + "type": "comment" + } + } + ], + "version": "1.0", + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" + } + } + ], + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "version": "1.1" } \ No newline at end of file diff --git a/media/cards/taskCardWithActions.json b/media/cards/taskCardWithActions.json index 2924109..7767529 100644 --- a/media/cards/taskCardWithActions.json +++ b/media/cards/taskCardWithActions.json @@ -44,7 +44,7 @@ "value": "[{$root['project-name']}]({$root.rooturl}/projects/{$root.id})" }, { - "title": "TaskList:", + "title": "Task List:", "value": "[{$root['todo-list-name']}]({$root.rooturl}/tasklists/{$root['todo-list-id']})" }, { @@ -142,7 +142,7 @@ { "type": "TextBlock", "spacing": "None", - "text": "{datetime}", + "text": "{$data['datetime']}", "isSubtle": true, "wrap": true, "size": "Small", @@ -181,6 +181,7 @@ "id": "notify", "type": "Input.Toggle", "title": "Notify?", + "text":"Notify?", "wrap": false } ], diff --git a/media/css/editormain.css b/media/css/editormain.css index f504d1c..8789d8b 100644 --- a/media/css/editormain.css +++ b/media/css/editormain.css @@ -66,49 +66,6 @@ a.ac-anchor:visited:active { background-color: rgba(0, 0, 0, 0.15) !important; } -.ac-pushButton { - overflow: hidden; - text-overflow: ellipsis; - text-align: center; - vertical-align: middle; - cursor: default; - font-family: "Segoe UI", sans-serif; - font-size: 14px; - font-weight: 600; - padding: 4px 10px 5px 10px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: white; - color: #0078D7; - border: 1px solid #B2E0FF; -} - -.ac-pushButton:hover { - background-color: #0078D7; - color: white; - border: 1px solid #73C1FD; -} - -.ac-pushButton:active { - background-color: #464B93; - color: white; - border: 1px solid #464B93; -} - -.ac-pushButton.sentiment-positive { - background-color: #0078D7; - color: white; - border: 1px solid #0078D7; -} - -.ac-pushButton.sentiment-positive:hover, -.ac-pushButton.sentiment-positive:active { - background-color: #006ABC; - border: 1px solid #006ABC; -} - .ac-pushButton.sentiment-destructive { background-color: #E50000; color: white; @@ -127,31 +84,15 @@ a.ac-anchor:visited:active { } .ac-pushButton.subdued:hover { - background-color: #0078D7; + background-color: slategray; color: white; - border: 1px solid #0078D7; + border: 1px solid #ffffff; } .ac-pushButton.expanded { - background-color: #0078D7; + background-color: slategray; color: white; - border: 1px solid #0078D7; -} - -.ac-pushButton.expandable:after { - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - display: inline-block; - font-family: 'FabricMDL2Icons'; - font-size: 10px; - font-style: normal; - font-weight: 900; - margin: auto 0px auto 6px; - content: '\E70D'; -} - -.ac-pushButton.expandable.expanded:after { - content: '\E70E'; + border: 1px solid #ffffff; } .ac-input { diff --git a/media/css/fabric.components.min.css b/media/css/fabric.components.min.css new file mode 100644 index 0000000..2876d9d --- /dev/null +++ b/media/css/fabric.components.min.css @@ -0,0 +1,6 @@ +/* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ +/** + * Office UI Fabric JS 1.4.0 + * The JavaScript front-end framework for building experiences for Office 365. + **/ + .ms-Breadcrumb{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;margin:23px 0 1px}.ms-Breadcrumb.is-overflow .ms-Breadcrumb-overflow{display:inline}.ms-Breadcrumb-chevron{font-size:12px;color:#666;vertical-align:top;margin:11px 7px}.ms-Breadcrumb-list{display:inline;white-space:nowrap;padding:0;margin:0}.ms-Breadcrumb-list .ms-Breadcrumb-listItem{list-style-type:none;vertical-align:top;margin:0;padding:0;display:inline-block}.ms-Breadcrumb-list .ms-Breadcrumb-listItem:last-of-type .ms-Breadcrumb-chevron{display:none}.ms-Breadcrumb-overflow{display:none;position:relative}.ms-Breadcrumb-overflow .ms-Breadcrumb-overflowButton{font-size:16px;display:inline-block;color:#0078d7;padding:8px;cursor:pointer;vertical-align:top}.ms-Breadcrumb-overflowMenu{display:none;position:absolute;margin-right:-2px}.ms-Breadcrumb-overflowMenu.is-open{display:block;top:36px;left:0;box-shadow:0 0 5px 0 rgba(0,0,0,.4);background-color:#fff;border:1px solid #c8c8c8;z-index:105}.ms-Breadcrumb-overflowMenu:before{position:absolute;box-shadow:0 0 5px 0 rgba(0,0,0,.4);top:-6px;left:6px;content:" ";width:16px;height:16px;transform:rotate(45deg);background-color:#fff}.ms-Breadcrumb-overflowMenu .ms-ContextualMenu{border:0;box-shadow:none;position:relative;width:190px}.ms-Breadcrumb-overflowMenu .ms-ContextualMenu.is-open{margin-bottom:0}.ms-Breadcrumb-itemLink,.ms-Breadcrumb-overflowButton{text-decoration:none;outline:transparent}.ms-Breadcrumb-itemLink:hover,.ms-Breadcrumb-overflowButton:hover{background-color:#f4f4f4;cursor:pointer}.ms-Breadcrumb-itemLink:focus,.ms-Breadcrumb-overflowButton:focus{outline:1px solid #767676;color:#000}.ms-Breadcrumb-itemLink:active,.ms-Breadcrumb-overflowButton:active{outline:transparent;background-color:#c8c8c8}.ms-Breadcrumb-itemLink{font-weight:100;font-size:21px;color:#333;display:inline-block;padding:0 4px;max-width:160px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;vertical-align:top}@media screen and (max-width:639px){.ms-Breadcrumb{margin:10px 0}.ms-Breadcrumb-itemLink{font-size:17px}.ms-Breadcrumb-chevron{font-size:10px;margin:8px 5px}.ms-Breadcrumb-overflow .ms-Breadcrumb-overflowButton{font-size:16px;padding:5px 4px}}@media screen and (max-width:479px){.ms-Breadcrumb-itemLink{font-size:14px;max-width:116px}.ms-Breadcrumb-chevron{margin:5px 4px}.ms-Breadcrumb-overflow .ms-Breadcrumb-overflowButton{padding:2px 4px}}.ms-Button{box-sizing:border-box;margin:0;padding:0;box-shadow:none;font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;color:#333;font-size:14px;font-weight:400;background-color:#f4f4f4;border:1px solid #f4f4f4;cursor:pointer;display:inline-block;height:32px;min-width:80px;padding:4px 20px 6px}.ms-Button.is-hidden{display:none}.ms-Button:hover{background-color:#eaeaea;border-color:#eaeaea}.ms-Button:hover .ms-Button-label{color:#000}@media screen and (-ms-high-contrast:active){.ms-Button:hover{color:#1aebff;border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Button:hover{color:#37006e;border-color:#37006e}}.ms-Button:focus{background-color:#eaeaea;border-color:#0078d7;outline:1px solid transparent}.ms-Button:focus .ms-Button-label{color:#000}.ms-Button:active{background-color:#0078d7;border-color:#0078d7}.ms-Button:active .ms-Button-label{color:#fff}.ms-Button.is-disabled,.ms-Button:disabled{background-color:#f4f4f4;border-color:#f4f4f4;cursor:default}.ms-Button.is-disabled .ms-Button-label,.ms-Button:disabled .ms-Button-label{color:#a6a6a6}.ms-Button.is-disabled:focus,.ms-Button.is-disabled:hover,.ms-Button:disabled:focus,.ms-Button:disabled:hover{outline:0}.ms-Button-label{color:#333;font-weight:600;font-size:14px}.ms-Button-description,.ms-Button-icon{display:none}.ms-Button.ms-Button--primary{background-color:#0078d7;border-color:#0078d7}.ms-Button.ms-Button--primary .ms-Button-label{color:#fff}.ms-Button.ms-Button--primary:hover{background-color:#005a9e;border-color:#005a9e}.ms-Button.ms-Button--primary:focus{background-color:#005a9e;border-color:#004578}.ms-Button.ms-Button--primary:active{background-color:#0078d7;border-color:#0078d7}.ms-Button.ms-Button--primary.is-disabled,.ms-Button.ms-Button--primary:disabled{background-color:#f4f4f4;border-color:#f4f4f4}.ms-Button.ms-Button--primary.is-disabled .ms-Button-label,.ms-Button.ms-Button--primary:disabled .ms-Button-label{color:#a6a6a6}.ms-Button.ms-Button--small{min-width:60px;min-height:24px;height:auto;padding-top:0;padding-bottom:4px}.ms-Button.ms-Button--small .ms-Button-label{font-weight:400;font-size:12px}.ms-Button.ms-Button--hero{-ms-flex-align:center;align-items:center;background-color:transparent;border:0;padding:0;position:relative}.ms-Button.ms-Button--hero .ms-Button-icon{color:#0078d7;display:inline-block;font-size:12px;margin-right:4px;padding-top:5px;text-align:center}.ms-Button.ms-Button--hero .ms-Button-icon .ms-Icon{border-radius:18px;border:1px solid #0078d7;font-size:12px;height:18px;line-height:18px;width:18px}.ms-Button.ms-Button--hero .ms-Button-label{color:#0078d7;font-size:21px;font-weight:100;position:relative;text-decoration:none;vertical-align:top}.ms-Button.ms-Button--hero:focus .ms-Button-icon,.ms-Button.ms-Button--hero:hover .ms-Button-icon{color:#005a9e}.ms-Button.ms-Button--hero:focus .ms-Button-icon .ms-Icon,.ms-Button.ms-Button--hero:hover .ms-Button-icon .ms-Icon{border:1px solid #005a9e}.ms-Button.ms-Button--hero:focus .ms-Button-label,.ms-Button.ms-Button--hero:hover .ms-Button-label{color:#004578}.ms-Button.ms-Button--hero:active .ms-Button-icon{color:#0078d7}.ms-Button.ms-Button--hero:active .ms-Button-icon .ms-Icon{border:1px solid #0078d7}.ms-Button.ms-Button--hero:active .ms-Button-label{color:#0078d7}.ms-Button.ms-Button--hero.is-disabled .ms-Button-icon,.ms-Button.ms-Button--hero:disabled .ms-Button-icon{color:#c8c8c8}.ms-Button.ms-Button--hero.is-disabled .ms-Button-icon .ms-Icon,.ms-Button.ms-Button--hero:disabled .ms-Button-icon .ms-Icon{border:1px solid #c8c8c8}.ms-Button.ms-Button--hero.is-disabled .ms-Button-label,.ms-Button.ms-Button--hero:disabled .ms-Button-label{color:#a6a6a6}.ms-Button.ms-Button--compound{display:block;height:auto;max-width:280px;min-height:72px;padding:20px}.ms-Button.ms-Button--compound .ms-Button-label{display:block;font-weight:600;position:relative;text-align:left;margin-top:-5px}.ms-Button.ms-Button--compound .ms-Button-description{color:#666;display:block;font-weight:400;font-size:12px;position:relative;text-align:left;top:3px}.ms-Button.ms-Button--compound:hover .ms-Button-description{color:#212121}.ms-Button.ms-Button--compound:focus{border-color:#0078d7;background-color:#f4f4f4}.ms-Button.ms-Button--compound:focus .ms-Button-label{color:#333}.ms-Button.ms-Button--compound:focus .ms-Button-description{color:#666}.ms-Button.ms-Button--compound:active{background-color:#0078d7}.ms-Button.ms-Button--compound:active .ms-Button-description,.ms-Button.ms-Button--compound:active .ms-Button-label{color:#fff}.ms-Button.ms-Button--compound.is-disabled .ms-Button-description,.ms-Button.ms-Button--compound.is-disabled .ms-Button-label,.ms-Button.ms-Button--compound:disabled .ms-Button-description,.ms-Button.ms-Button--compound:disabled .ms-Button-label{color:#a6a6a6}.ms-Button.ms-Button--compound.is-disabled:active,.ms-Button.ms-Button--compound.is-disabled:focus,.ms-Button.ms-Button--compound:disabled:active,.ms-Button.ms-Button--compound:disabled:focus{border-color:#f4f4f4;background-color:#f4f4f4}.ms-Button.ms-Button--compound.is-disabled:active .ms-Button-description,.ms-Button.ms-Button--compound.is-disabled:active .ms-Button-label,.ms-Button.ms-Button--compound.is-disabled:focus .ms-Button-description,.ms-Button.ms-Button--compound.is-disabled:focus .ms-Button-label,.ms-Button.ms-Button--compound:disabled:active .ms-Button-description,.ms-Button.ms-Button--compound:disabled:active .ms-Button-label,.ms-Button.ms-Button--compound:disabled:focus .ms-Button-description,.ms-Button.ms-Button--compound:disabled:focus .ms-Button-label{color:#a6a6a6}.ms-Callout{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;width:288px}.ms-Callout.is-hidden{display:none}.ms-Callout-header{z-index:105;padding:24px 28px 12px}.ms-Callout-title{margin:0;font-weight:300;font-size:21px}.ms-Callout-subText{margin:0;font-weight:300;color:#333;font-size:12px}.ms-Callout-close{margin:0;border:0;background:none;cursor:pointer;position:absolute;top:12px;right:12px;padding:8px;width:32px;height:32px;font-size:14px;color:#666;z-index:110}.ms-Callout-link{font-size:14px}.ms-Callout-inner{height:100%;padding:0 28px 12px}.ms-Callout-actions{position:relative;margin-top:20px;width:100%;white-space:nowrap}.ms-Callout-actions .ms-CommandButton.ms-CommandButton--inline,.ms-Callout-actions .ms-CommandButton.ms-CommandButton--inline .ms-CommandButton-button{height:27px;line-height:27px}.ms-Callout-actions .ms-CommandButton.ms-CommandButton--inline .ms-CommandButton-icon,.ms-Callout-actions .ms-CommandButton.ms-CommandButton--inline .ms-CommandButton-label{line-height:27px}.ms-Callout-actions .ms-CommandButton.ms-CommandButton--inline:focus .ms-Button,.ms-Callout-actions .ms-CommandButton.ms-CommandButton--inline:hover .ms-Button{color:#0078d7}.ms-Callout-actions .ms-Callout-button{margin-right:12px}.ms-Callout.ms-Callout--OOBE .ms-Callout-header{padding:28px 24px;background-color:#0078d7}.ms-Callout.ms-Callout--OOBE .ms-Callout-title{font-weight:100;font-size:28px;color:#fff}.ms-Callout.ms-Callout--OOBE .ms-Callout-inner{padding-top:20px}.ms-Callout.ms-Callout--OOBE .ms-Callout-subText{font-size:14px}.ms-Callout.ms-Callout--actionText .ms-Callout-actions{border-top:1px solid #eaeaea;padding-top:12px}.ms-Callout.ms-Callout--actionText .ms-Callout-inner{padding-bottom:12px}.ms-Callout.ms-Callout--peek .ms-Callout-header{padding-bottom:0}.ms-Callout.ms-Callout--peek .ms-Callout-title{font-size:14px}.ms-Callout.ms-Callout--peek .ms-Callout-actions{margin-top:12px;margin-bottom:-4px}.ms-CheckBox{box-sizing:border-box;color:#333;font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400;min-height:36px;position:relative}.ms-CheckBox .ms-Label{font-size:14px;padding:0 0 0 26px;cursor:pointer;display:inline-block}.ms-CheckBox-input{position:absolute;opacity:0}.ms-CheckBox-field:before{content:"";display:inline-block;border:2px solid #a6a6a6;width:20px;height:20px;cursor:pointer;font-weight:400;position:absolute;box-sizing:border-box;transition-property:background,border,border-color;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.23,1)}.ms-CheckBox-field:after{content:"\E73E";font-family:FabricMDL2Icons;display:none;position:absolute;font-weight:900;background-color:transparent;font-size:13px;top:0;color:#fff;line-height:20px;width:20px;text-align:center}@media screen and (-ms-high-contrast:active){.ms-CheckBox-field:after{color:#000}}@media screen and (-ms-high-contrast:black-on-white){.ms-CheckBox-field:after{color:#fff}}.ms-CheckBox-field{display:inline-block;cursor:pointer;margin-top:8px;position:relative;outline:0;vertical-align:top}.ms-CheckBox-field:focus:before,.ms-CheckBox-field:hover:before{border-color:#767676}.ms-CheckBox-field:focus .ms-Label,.ms-CheckBox-field:hover .ms-Label{color:#000}.ms-CheckBox-field.is-disabled{cursor:default}.ms-CheckBox-field.is-disabled:before{background-color:#c8c8c8;border-color:#c8c8c8;color:#c8c8c8}@media screen and (-ms-high-contrast:active){.ms-CheckBox-field.is-disabled:before{border-color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-CheckBox-field.is-disabled:before{border-color:#600000}}.ms-CheckBox-field.is-disabled .ms-Label{color:#a6a6a6}@media screen and (-ms-high-contrast:active){.ms-CheckBox-field.is-disabled .ms-Label{color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-CheckBox-field.is-disabled .ms-Label{color:#600000}}.ms-CheckBox-field.in-focus:before{border-color:#767676}.ms-CheckBox-field.in-focus.is-disabled:before{border-color:#c8c8c8}.ms-CheckBox-field.in-focus.is-checked:before{border-color:#106ebe}.ms-CheckBox-field.is-checked:before{border:10px solid #0078d7;background-color:#0078d7}@media screen and (-ms-high-contrast:active){.ms-CheckBox-field.is-checked:before{border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-CheckBox-field.is-checked:before{border-color:#37006e}}.ms-CheckBox-field.is-checked:after{display:block}.ms-CheckBox-field.is-checked:focus:before,.ms-CheckBox-field.is-checked:hover:before{border-color:#106ebe}.ms-RadioButton{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;color:#333;font-size:14px;font-weight:400;min-height:36px;position:relative}.ms-RadioButton .ms-Label{font-size:14px;padding:0 0 0 26px;cursor:pointer;display:inline-block}.ms-RadioButton-input{position:absolute;opacity:0}.ms-RadioButton-field:before{content:"";display:inline-block;border:2px solid #a6a6a6;width:20px;height:20px;cursor:pointer;font-weight:400;position:absolute;box-sizing:border-box;transition-property:border-color;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.23,1);border-radius:50%}.ms-RadioButton-field:after{content:"";width:0;height:0;border-radius:50%;position:absolute;top:8px;left:8px;bottom:0;right:0;transition-property:top,left,width,height;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.23,1);box-sizing:border-box}@media screen and (-ms-high-contrast:active){.ms-RadioButton-field:after{color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-RadioButton-field:after{color:#600000}}.ms-RadioButton-field{display:inline-block;cursor:pointer;margin-top:8px;position:relative;outline:0;vertical-align:top}.ms-RadioButton-field:focus:before,.ms-RadioButton-field:hover:before{border-color:#767676}.ms-RadioButton-field:focus .ms-Label,.ms-RadioButton-field:hover .ms-Label{color:#000}.ms-RadioButton-field.is-disabled{cursor:default}.ms-RadioButton-field.is-disabled:before{background-color:#c8c8c8;border-color:#c8c8c8;color:#c8c8c8}@media screen and (-ms-high-contrast:active){.ms-RadioButton-field.is-disabled:before{border-color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-RadioButton-field.is-disabled:before{border-color:#600000}}.ms-RadioButton-field.is-disabled .ms-Label{color:#a6a6a6}@media screen and (-ms-high-contrast:active){.ms-RadioButton-field.is-disabled .ms-Label{color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-RadioButton-field.is-disabled .ms-Label{color:#600000}}.ms-RadioButton-field.is-disabled:focus:before,.ms-RadioButton-field.is-disabled:hover:before{border-color:#c8c8c8}.ms-RadioButton-field.in-focus:before{border-color:#767676}.ms-RadioButton-field.is-checked:before{border:2px solid #0078d7;background-color:transparent}@media screen and (-ms-high-contrast:active){.ms-RadioButton-field.is-checked:before{border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-RadioButton-field.is-checked:before{border-color:#37006e}}.ms-RadioButton-field.is-checked:after{background-color:#0078d7;top:5px;left:5px;width:10px;height:10px}@media screen and (-ms-high-contrast:active){.ms-RadioButton-field.is-checked:after{background-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-RadioButton-field.is-checked:after{background-color:#37006e}}.ms-RadioButton-field.is-checked.in-focus:before,.ms-RadioButton-field.is-checked:focus:before,.ms-RadioButton-field.is-checked:hover:before{border-color:#0078d7}.ms-ChoiceFieldGroup{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;margin-bottom:4px}.ms-ChoiceFieldGroup .ms-ChoiceFieldGroup-list{padding:0;margin:0;list-style:none}.ms-CommandBar{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;background-color:#f4f4f4;height:40px;white-space:nowrap;padding-left:0;border:0;position:relative}.ms-CommandBar:focus{outline:none}.ms-CommandBar .ms-CommandButton--actionButton{border-right:1px solid #eaeaea}.ms-CommandBar .ms-Button{height:100%}.ms-CommandBar .ms-Button.ms-Button--noLabel .ms-Button-icon{padding-right:0}.ms-CommandBar .ms-Button.is-hidden{display:none}.ms-CommandBar .ms-SearchBox,.ms-CommandBar .ms-SearchBox-field,.ms-CommandBar .ms-SearchBox-label{height:100%}.ms-CommandBar .ms-SearchBox{display:inline-block;vertical-align:top;transition:margin-right .267s}.ms-CommandBar .ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active{width:220px}@media only screen and (max-width:639px){.ms-CommandBar .ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active{width:100%;position:absolute;left:0;right:0;z-index:10}}.ms-CommandBar .ms-CommandBar-overflowButton .ms-CommandButton-button{font-size:18px;padding:0 11px}@media only screen and (min-width:1024px){.ms-CommandBar .ms-SearchBox{margin-right:24px}}@media only screen and (max-width:639px){.ms-CommandBar{height:44px}}@media only screen and (min-width:640px){.ms-CommandBar.search-expanded .ms-SearchBox{margin-right:8px}.ms-CommandBar .ms-SearchBox.ms-SearchBox--commandBar.is-collapsed{transition:none}}.ms-CommandBar-mainArea{overflow-x:hidden;display:block;height:100%;overflow:hidden}.ms-CommandBar-sideCommands{float:right;text-align:right;width:auto;padding-right:4px;height:100%}.ms-CommandBar-sideCommands .ms-Button:last-child{margin-right:0}@media only screen and (min-width:640px){.ms-CommandBar-sideCommands{min-width:128px}}@media only screen and (min-width:1024px){.ms-CommandBar-sideCommands{padding-right:20px}}.ms-CommandButton{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;display:inline-block;position:relative;vertical-align:top}.ms-CommandButton.is-hidden{display:none}.ms-CommandButton.is-disabled .ms-CommandButton-button,.ms-CommandButton:disabled .ms-CommandButton-button{cursor:default}.ms-CommandButton.is-disabled .ms-CommandButton-button:hover,.ms-CommandButton:disabled .ms-CommandButton-button:hover{background-color:#eff6fc}.ms-CommandButton.is-disabled .ms-CommandButton-button .ms-CommandButton-icon,.ms-CommandButton.is-disabled .ms-CommandButton-button .ms-CommandButton-label,.ms-CommandButton:disabled .ms-CommandButton-button .ms-CommandButton-icon,.ms-CommandButton:disabled .ms-CommandButton-button .ms-CommandButton-label{color:#a6a6a6}.ms-CommandButton .ms-ContextualMenu{display:none}.ms-CommandButton-button,.ms-CommandButton-splitIcon{box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;font-weight:400;cursor:pointer;display:inline-block;height:40px;line-height:40px;outline:1px solid transparent;padding:0 8px;position:relative;vertical-align:top;background:transparent}.ms-CommandButton-button:hover,.ms-CommandButton-splitIcon:hover{background-color:#eaeaea}.ms-CommandButton-button:hover .ms-CommandButton-label,.ms-CommandButton-splitIcon:hover .ms-CommandButton-label{color:#212121}.ms-CommandButton-button:active,.ms-CommandButton-splitIcon:active{background-color:#eaeaea}.ms-CommandButton-button:focus:before,.ms-CommandButton-splitIcon:focus:before{top:3px;left:3px;right:3px;bottom:3px;border:1px solid #333;position:absolute;z-index:10;content:"";outline:none}.ms-CommandButton-button:focus,.ms-CommandButton-splitIcon:focus{outline:0}@media only screen and (max-width:639px){.ms-CommandButton-button,.ms-CommandButton-splitIcon{height:44px}.ms-CommandButton-button .ms-CommandButton-icon,.ms-CommandButton-splitIcon .ms-CommandButton-icon{font-size:20px}.ms-CommandButton-button .ms-CommandButton-label,.ms-CommandButton-splitIcon .ms-CommandButton-label{line-height:44px}}.ms-CommandButton-button{border:0;margin:0}.ms-CommandButton+.ms-CommandButton{margin-left:8px}@media only screen and (max-width:639px){.ms-CommandButton+.ms-CommandButton{margin-left:4px}}.ms-CommandButton-icon{display:inline-block;margin-right:8px;position:relative;font-size:16px;min-width:16px;height:100%}.ms-CommandButton-icon .ms-Icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ms-CommandButton-label{font-size:14px;font-weight:400;color:#333;line-height:40px;height:100%;display:inline-block;vertical-align:top}.ms-CommandButton-label:hover{color:#212121}.ms-CommandButton-dropdownIcon,.ms-CommandButton-splitIcon{display:inline-block;position:relative;color:#333;font-size:12px;font-weight:300;min-width:12px;height:100%;vertical-align:top;margin-left:8px}.ms-CommandButton-dropdownIcon .ms-Icon,.ms-CommandButton-splitIcon .ms-Icon{line-height:normal;padding-top:16px}.ms-CommandButton-dropdownIcon:focus:before,.ms-CommandButton-splitIcon:focus:before{top:3px;left:3px;right:3px;bottom:3px;border:1px solid #333;position:absolute;z-index:10;content:"";outline:none}@media only screen and (max-width:639px){.ms-CommandButton-dropdownIcon,.ms-CommandButton-splitIcon{display:none}}.ms-CommandButton-splitIcon{margin-left:-2px;width:27px;border:0}.ms-CommandButton-splitIcon .ms-Icon{margin-left:-1px;position:relative;padding-top:16px}.ms-CommandButton-splitIcon .ms-Icon:after{position:absolute;content:" ";width:1px;height:16px;top:12px;left:-8px;border-left:1px solid #c8c8c8}.ms-CommandButton.ms-CommandButton--noLabel .ms-CommandButton-icon{margin-right:0}.ms-CommandButton.ms-CommandButton--noLabel .ms-CommandButton-label{display:none}.ms-CommandButton.ms-CommandButton--noLabel .ms-CommandButton-button{padding:0 12px}.ms-CommandButton.ms-CommandButton--inline .ms-CommandButton-button{background:none}.ms-CommandButton.ms-CommandButton--actionButton .ms-CommandButton-button{width:50px;height:40px}.ms-CommandButton.ms-CommandButton--actionButton .ms-CommandButton-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:16px;height:16px;padding-right:0}.ms-CommandButton.ms-CommandButton--pivot.is-active:before,.ms-CommandButton.ms-CommandButton--pivot:hover:before{content:"";height:2px;position:absolute;left:0;right:0;background-color:#0078d7;bottom:0;z-index:5}.ms-CommandButton.ms-CommandButton--pivot .ms-CommandButton-label,.ms-CommandButton.ms-CommandButton--textOnly .ms-CommandButton-label{display:inline-block}@media only screen and (max-width:479px){.ms-CommandButton.ms-CommandButton--pivot .ms-CommandButton-label,.ms-CommandButton.ms-CommandButton--textOnly .ms-CommandButton-label{font-size:16px}}.ms-ContextualMenu{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;font-weight:400;display:block;min-width:180px;max-width:220px;list-style-type:none;position:relative;background-color:#fff}.ms-ContextualMenu.is-hidden{display:none}.ms-ContextualMenu-item{position:relative}.ms-ContextualMenu-link{box-sizing:border-box;text-decoration:none;color:#333;border:1px solid transparent;cursor:pointer;display:block;height:36px;overflow:hidden;line-height:34px;padding:0 16px 0 25px;position:relative;text-overflow:ellipsis;white-space:nowrap}.ms-ContextualMenu-link:active,.ms-ContextualMenu-link:focus,.ms-ContextualMenu-link:hover{background-color:#f4f4f4;color:#212121}.ms-ContextualMenu-link:active .ms-ContextualMenu-subMenuIcon,.ms-ContextualMenu-link:focus .ms-ContextualMenu-subMenuIcon,.ms-ContextualMenu-link:hover .ms-ContextualMenu-subMenuIcon{color:#212121}.ms-ContextualMenu-link:focus{outline:transparent;border:1px solid #666}.ms-ContextualMenu-link.is-selected{background-color:#dadada;color:#000;font-weight:600}.ms-ContextualMenu-link.is-selected~.ms-ContextualMenu-subMenuIcon{color:#000}.ms-ContextualMenu-link.is-selected:hover{background-color:#d0d0d0}.ms-ContextualMenu-link.is-disabled{color:#a6a6a6;background-color:#fff;pointer-events:none}.ms-ContextualMenu-link.is-disabled:active,.ms-ContextualMenu-link.is-disabled:focus{border-color:#fff}.ms-ContextualMenu-link.is-disabled .ms-Icon{color:#a6a6a6;pointer-events:none;cursor:default}.ms-ContextualMenu-item.ms-ContextualMenu-item--divider{cursor:default;display:block;height:1px;background-color:#eaeaea;position:relative}.ms-ContextualMenu-item.ms-ContextualMenu-item--header{color:#0078d7;font-size:12px;text-transform:uppercase;height:36px;line-height:36px;padding:0 18px}.ms-ContextualMenu-item.ms-ContextualMenu-item--hasMenu .ms-ContextualMenu{position:absolute;top:-1px;left:178px}.ms-ContextualMenu-caretRight,.ms-ContextualMenu-subMenuIcon{color:#333;font-size:8px;font-weight:600;width:24px;height:36px;line-height:36px;position:absolute;text-align:center;top:0;right:0;z-index:1;pointer-events:none}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-item.ms-ContextualMenu-item--header{padding:0 16px 0 26px}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected{background-color:#fff;font-weight:600;color:#333}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:after{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;speak:none;color:#333;content:"\E73E";font-size:10px;font-weight:800;height:36px;line-height:36px;position:absolute;left:7px}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:focus,.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:hover{color:#212121;background-color:#f4f4f4}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:focus:after,.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:hover:after{color:#212121}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:active{color:#000;background-color:#d0d0d0}.ms-ContextualMenu.ms-ContextualMenu--multiselect .ms-ContextualMenu-link.is-selected:active:after{color:#000}.ms-ContextualMenu.ms-ContextualMenu--hasChecks .ms-ContextualMenu-link,.ms-ContextualMenu.ms-ContextualMenu--hasIcons .ms-ContextualMenu-link{padding-left:40px}.ms-ContextualMenu.ms-ContextualMenu--hasChecks .ms-Icon,.ms-ContextualMenu.ms-ContextualMenu--hasIcons .ms-Icon{position:absolute;top:50%;transform:translateY(-50%);width:40px;text-align:center}.ms-ContextualMenu.ms-ContextualMenu--hasIcons{width:220px}.ms-DatePicker{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;margin-bottom:17px;z-index:300}.ms-DatePicker .ms-TextField{position:relative}.ms-DatePicker-picker{color:#000;font-size:14px;position:relative;text-align:left;z-index:0}.ms-DatePicker-event{color:#666;font-size:21px;line-height:20px;pointer-events:none;position:absolute;right:5px;bottom:5px;z-index:5}.ms-DatePicker-holder{-webkit-overflow-scrolling:touch;box-sizing:border-box;background:#fff;position:absolute;min-width:300px;display:none}.ms-DatePicker-picker.ms-DatePicker-picker--opened .ms-DatePicker-holder{animation-name:fadeIn,slideDownIn10;-webkit-animation-duration:.167s;-moz-animation-duration:.167s;-ms-animation-duration:.167s;-o-animation-duration:.167s;animation-timing-function:cubic-bezier(.1,.25,.75,.9);animation-fill-mode:both;box-sizing:border-box;box-shadow:0 0 5px 0 rgba(0,0,0,.4);border:1px solid #eaeaea;display:block}.ms-DatePicker-picker--opened{position:relative;z-index:10}.ms-DatePicker-frame{padding:1px}.ms-DatePicker-wrap{margin:-1px;padding:9px}.ms-DatePicker-dayPicker{display:block;margin-bottom:30px}.ms-DatePicker-header{height:40px;line-height:44px}.ms-DatePicker-month,.ms-DatePicker-year{display:inline-block;font-weight:100;font-size:21px;color:#0078d7;margin-top:-1px}.ms-DatePicker-month:hover,.ms-DatePicker-year:hover{color:#005a9e;cursor:pointer}.ms-DatePicker-month{margin-left:15px}.ms-DatePicker-year{margin-left:5px}.ms-DatePicker-table{text-align:center;border-collapse:collapse;border-spacing:0;table-layout:fixed;font-size:inherit}.ms-DatePicker-table td{margin:0;padding:0}.ms-DatePicker-table td:hover{outline:1px solid transparent}.ms-DatePicker-day,.ms-DatePicker-weekday{width:40px;height:40px;padding:0;line-height:40px;font-weight:400;font-size:15px;color:#333}.ms-DatePicker-day--today{position:relative;background-color:#b3d6f2}.ms-DatePicker-day--disabled:before{border-top-color:#a6a6a6}.ms-DatePicker-day--outfocus{color:#a6a6a6;font-weight:400}.ms-DatePicker-day--infocus:hover,.ms-DatePicker-day--outfocus:hover{cursor:pointer;color:#000;background:#eaeaea}.ms-DatePicker-day--highlighted:hover,.ms-DatePicker-picker--focused .ms-DatePicker-day--highlighted{cursor:pointer;color:#fff;background:#0078d7}.ms-DatePicker-day--highlighted.ms-DatePicker-day--disabled,.ms-DatePicker-day--highlighted.ms-DatePicker-day--disabled:hover{background:#a6a6a6}.ms-DatePicker-monthPicker,.ms-DatePicker-yearPicker{display:none}.ms-DatePicker-monthComponents{position:absolute;top:9px;right:9px;left:9px}.ms-DatePicker-decadeComponents,.ms-DatePicker-yearComponents{position:absolute;right:10px}.ms-DatePicker-nextDecade,.ms-DatePicker-nextMonth,.ms-DatePicker-nextYear,.ms-DatePicker-prevDecade,.ms-DatePicker-prevMonth,.ms-DatePicker-prevYear{width:40px;height:40px;display:block;float:right;margin-left:10px;text-align:center;line-height:40px;font-size:21px;color:#666;position:relative;top:3px}.ms-DatePicker-nextDecade:hover,.ms-DatePicker-nextMonth:hover,.ms-DatePicker-nextYear:hover,.ms-DatePicker-prevDecade:hover,.ms-DatePicker-prevMonth:hover,.ms-DatePicker-prevYear:hover{color:#212121;cursor:pointer;outline:1px solid transparent}.ms-DatePicker-headerToggleView{height:40px;left:0;position:absolute;top:0;width:140px;z-index:5;cursor:pointer}.ms-DatePicker-currentDecade,.ms-DatePicker-currentYear{display:block;font-weight:300;font-size:21px;height:40px;line-height:42px;margin-left:15px}.ms-DatePicker-currentYear{color:#0078d7}.ms-DatePicker-currentYear:hover{color:#005a9e;cursor:pointer}.ms-DatePicker-optionGrid{position:relative;height:210px;width:280px;margin:10px 0 30px 5px}.ms-DatePicker-monthOption,.ms-DatePicker-yearOption{background-color:#f4f4f4;width:60px;height:60px;line-height:60px;cursor:pointer;float:left;margin:0 10px 10px 0;font-weight:400;font-size:13px;color:#333;text-align:center}.ms-DatePicker-monthOption:hover,.ms-DatePicker-yearOption:hover{background-color:#c8c8c8;outline:1px solid transparent}.ms-DatePicker-monthOption.is-highlighted,.ms-DatePicker-yearOption.is-highlighted{background-color:#333;color:#fff}.ms-DatePicker-goToday{bottom:9px;color:#0078d7;cursor:pointer;font-weight:300;font-size:13px;height:30px;line-height:30px;padding:0 10px;position:absolute;right:9px}.ms-DatePicker-goToday:hover{outline:1px solid transparent}.ms-DatePicker.is-pickingYears .ms-DatePicker-dayPicker,.ms-DatePicker.is-pickingYears .ms-DatePicker-monthComponents,.ms-DatePicker.is-pickingYears .ms-DatePicker-monthPicker{display:none}.ms-DatePicker.is-pickingYears .ms-DatePicker-yearPicker{display:block}@media (min-width:460px){.ms-DatePicker-holder{width:440px}.ms-DatePicker-month,.ms-DatePicker-year{font-weight:300;font-size:17px;color:#333}.ms-DatePicker-month:hover,.ms-DatePicker-year:hover{color:#333;cursor:default}.ms-DatePicker-header{height:30px;line-height:28px}.ms-DatePicker-dayPicker{box-sizing:border-box;border-right:1px solid #eaeaea;width:220px;margin:-10px 0;padding:10px 0}.ms-DatePicker-monthPicker{display:block}.ms-DatePicker-monthPicker,.ms-DatePicker-yearPicker{top:9px;left:238px;position:absolute}.ms-DatePicker-optionGrid{width:200px;height:auto;margin:10px 0 0}.ms-DatePicker-monthComponents{width:210px}.ms-DatePicker-month{margin-left:12px}.ms-DatePicker-day,.ms-DatePicker-weekday{width:30px;height:30px;line-height:30px;font-weight:600;font-size:12px}.ms-DatePicker-nextDecade,.ms-DatePicker-nextMonth,.ms-DatePicker-nextYear,.ms-DatePicker-prevDecade,.ms-DatePicker-prevMonth,.ms-DatePicker-prevYear{font-size:17px;width:30px;height:30px;line-height:29px}.ms-DatePicker-toggleMonthView{display:none}.ms-DatePicker-currentDecade,.ms-DatePicker-currentYear{font-size:17px;margin:0;height:30px;line-height:26px;padding:0 10px;display:inline-block}.ms-DatePicker-monthOption,.ms-DatePicker-yearOption{width:40px;height:40px;line-height:40px;font-size:12px;margin:0 10px 10px 0}.ms-DatePicker-monthOption:hover,.ms-DatePicker-yearOption:hover{outline:1px solid transparent}.ms-DatePicker-goToday{box-sizing:border-box;font-size:12px;height:30px;line-height:30px;padding:0 10px;right:10px;text-align:right;top:199px;width:210px}.ms-DatePicker.is-pickingYears .ms-DatePicker-dayPicker,.ms-DatePicker.is-pickingYears .ms-DatePicker-monthComponents{display:block}.ms-DatePicker.is-pickingYears .ms-DatePicker-monthPicker{display:none}.ms-DatePicker.is-pickingYears .ms-DatePicker-yearPicker{display:block}}@media (max-width:459px){.ms-DatePicker.is-pickingMonths .ms-DatePicker-dayPicker,.ms-DatePicker.is-pickingMonths .ms-DatePicker-monthComponents{display:none}.ms-DatePicker.is-pickingMonths .ms-DatePicker-monthPicker{display:block}}.ms-DetailsList{position:relative}.ms-DetailsList.is-horizontalConstrained{overflow-x:auto;overflow-y:inherit}.ms-DetailsList-cell{word-break:break-word}.ms-DetailsHeader{display:inline-block;min-width:100%;height:36px;line-height:36px;white-space:nowrap;padding-bottom:1px;border-bottom:1px solid #eaeaea;margin-bottom:1px;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ms-DetailsHeader.is-singleSelect{padding-left:40px}.ms-DetailsHeader.is-resizingColumn .ms-DetailsHeader-sizerCover{background:transparent;position:fixed;left:0;top:0;right:0;bottom:0;z-index:99;cursor:col-resize}.ms-DetailsHeader-cell.is-check .ms-Check-circle{visibility:hidden}.ms-DetailsHeader-cell.is-check:hover .ms-Check-circle,.ms-DetailsHeader.is-allSelected .ms-Check-circle{visibility:visible}.ms-DetailsHeader-cellWrapper{display:inline-block;position:relative}.ms-DetailsHeader-cellSizeWrapper{display:inline-block;vertical-align:top;margin-right:16px}.ms-DetailsHeader-cellSizeWrapper:last-child{margin-right:0}.ms-DetailsHeader-filterChevron.ms-Icon{color:#a6a6a6;padding-left:4px;vertical-align:middle}.ms-DetailsHeader-cell{display:inline-block;box-sizing:border-box;padding:0 8px;color:#a6a6a6;border:0;background:none;line-height:inherit;margin:0;font-size:inherit;font-family:inherit;text-align:left;height:36px;vertical-align:top}.ms-DetailsHeader-cell.is-check{position:relative;padding:8px 10px;margin:0}.ms-DetailsHeader-cell:focus{outline:transparent}.ms-DetailsHeader-cell.is-sortable{color:#000;cursor:default}.ms-DetailsHeader-cell.is-sortable:hover{background-color:#eaeaea}.ms-DetailsHeader-cell.is-filter{position:absolute;right:0;width:20px;top:0;bottom:0;padding:0;text-align:center;color:#000}.ms-DetailsHeader-cell.is-filter:hover{background-color:#eaeaea}.ms-DetailsHeader-cell.is-filter:before{content:"";position:absolute;border-left:1px solid #a6a6a6;top:10px;bottom:10px;left:0}.ms-DetailsHeader-cell.is-sizer{position:absolute;width:16px;cursor:col-resize;bottom:0;top:0;height:inherit;z-index:99}.ms-DetailsHeader-cell.is-sorted.is-sortable .ms-DetailsHeader-sortArrow{display:inline}.ms-DetailsHeader-cellis-sortedDescending .ms-DetailsHeader-sortArrow{transform:rotate(180deg)}.ms-DetailsHeader-cell.is-resizing.is-sizer:after,.ms-DetailsHeader-cell.is-sizer:hover:after{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:#eaeaea;border:1px solid #fff}.ms-DetailsHeader-cell:focus:before,.ms-Fabric.is-focusVisible .ms-DetailsHeader-cell:focus:before{content:"";pointer-events:none;position:absolute;left:0;top:0;right:0;bottom:0;border:1px solid #a6a6a6}.ms-DetailsHeader-sortArrow.ms-Icon{font-size:12px;margin-right:4px;display:none;color:#a6a6a6}.ms-DetailsRow{position:relative;display:inline-block;min-width:100%;min-height:36px;vertical-align:top;white-space:nowrap;padding:10px 0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;box-sizing:border-box}.ms-DetailsRow:focus{outline:transparent}.ms-DetailsRow.ms-DetailsRow.is-selected{background:#deecf9}.ms-DetailsRow:hover,.ms-Fabric.is-stationary .ms-DetailsRow:hover{background:#eff6fc}.ms-DetailsRow.is-selected:hover,.ms-Fabric.is-stationary .ms-DetailsRow.is-selected:hover{background:#b3d6f2}.ms-DetailsRow-cell{display:inline-block;box-sizing:border-box;padding:0 8px;vertical-align:top;white-space:normal;word-break:break-word;margin-right:16px}.ms-DetailsRow-cell.is-clipped{overflow:hidden}.ms-DetailsRow-cell:last-child{margin-right:0}.ms-DetailsRow-cellIcon{display:inline-block;margin-right:6px;position:relative;bottom:-2px}.ms-DetailsRow-check{display:inline-block;cursor:default;padding:10px;margin:-10px 0;box-sizing:border-box;vertical-align:top;background:none;border:0;visibility:hidden}.ms-DetailsRow-check:focus{outline:transparent}.ms-DetailsRow.is-selected .ms-DetailsRow-check,.ms-DetailsRow:hover .ms-DetailsRow-check,.ms-Fabric.is-stationary .ms-DetailsRow:hover .ms-DetailsRow-check{visibility:visible}.ms-DetailsRow:focus .ms-DetailsRow-focusBox,.ms-Fabric.is-focusVisible .ms-DetailsRow:focus .ms-DetailsRow-focusBox{position:absolute;left:0;right:0;top:0;bottom:0;border:1px solid #a6a6a6}.ms-DetailsRow-cellMeasurer{position:absolute;visibility:hidden;white-space:nowrap;top:-1000000000}.ms-Check{display:inline-block;cursor:default;line-height:0;vertical-align:top}.ms-Check.is-checked .ms-Check-circle{fill:#0078d7;stroke:#fff;stroke-width:1px}.ms-Check.is-checked .ms-Check-check{stroke:#fff}.ms-Check-circle{fill:#fff;stroke:#c8c8c8}.ms-Check-check{stroke:#c8c8c8}.ms-Dialog{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-shadow:0 0 5px 0 rgba(0,0,0,.4);background-color:#fff;display:none;height:auto;min-width:220px;max-width:340px;padding:28px 24px;z-index:10;position:fixed;transform:translate(-50%,-50%);left:50%;top:50%}.ms-Dialog.is-open{display:block}.ms-Dialog-title{font-size:21px;font-weight:100;margin-bottom:24px}.ms-Dialog-content{position:relative}.ms-Dialog-subText{color:#333;font-size:12px;font-weight:300;line-height:1.5}.ms-Dialog-actions{margin-top:24px;text-align:right}.ms-Dialog--multiline .ms-Dialog-title{font-size:28px}.ms-Dialog.ms-Dialog--lgHeader .ms-Dialog-title{background-color:#0078d7;color:#fff;font-size:28px;font-weight:100;padding:28px 24px;margin-top:-28px;margin-left:-24px;margin-right:-24px}.ms-Dialog-buttonClose{background:none;border:0;cursor:pointer;margin:0;padding:4px;position:absolute;right:12px;top:12px;z-index:10}.ms-Dialog-buttonClose .ms-Icon.ms-Icon--Cancel{color:#666;font-size:16px}.ms-Button.ms-Button--compound:not(:last-child){margin-bottom:20px}.ms-Dialog.ms-Dialog--close:not(.ms-Dialog--lgHeader) .ms-Dialog-title{margin-right:20px}.ms-Dialog.ms-Dialog--close:not(.ms-Dialog--lgHeader) .ms-Dialog-button.ms-Dialog-buttonClose{display:block}@media (min-width:480px){.ms-Dialog-main{width:auto;min-width:288px;max-width:340px}}.ms-Dropdown{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;font-weight:400;margin-bottom:10px;position:relative;outline:0}.ms-Dropdown:active .ms-Dropdown-caretDown,.ms-Dropdown:active .ms-Dropdown-title,.ms-Dropdown:focus .ms-Dropdown-caretDown,.ms-Dropdown:focus .ms-Dropdown-title,.ms-Dropdown:hover .ms-Dropdown-caretDown,.ms-Dropdown:hover .ms-Dropdown-title{color:#000}.ms-Dropdown:active .ms-Dropdown-title,.ms-Dropdown:hover .ms-Dropdown-title{border-color:#767676}.ms-Dropdown:focus .ms-Dropdown-title{border-color:#0078d7}.ms-Dropdown .ms-Label{display:inline-block;margin-bottom:8px}.ms-Dropdown.is-disabled .ms-Dropdown-title{background-color:#f4f4f4;border-color:#f4f4f4;color:#a6a6a6;cursor:default}@media screen and (-ms-high-contrast:active){.ms-Dropdown.is-disabled .ms-Dropdown-title{border-color:#0f0;color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-Dropdown.is-disabled .ms-Dropdown-title{border-color:#600000;color:#600000}}.ms-Dropdown.is-disabled .ms-Dropdown-caretDown{color:#a6a6a6}@media screen and (-ms-high-contrast:active){.ms-Dropdown.is-disabled .ms-Dropdown-caretDown{color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-Dropdown.is-disabled .ms-Dropdown-caretDown{color:#600000}}.ms-Dropdown.is-open .ms-Dropdown-items{display:block;position:absolute}.ms-Panel .ms-Dropdown-items{box-shadow:none;overflow-y:auto;padding-top:4px;max-height:100%}.ms-Panel .ms-Dropdown-items .ms-Dropdown-item{padding:7px 16px;overflow:hidden;text-overflow:ellipsis}.ms-Panel .ms-Dropdown-items:before{content:none;border:0}.ms-Dropdown-select{display:none}.ms-Dropdown-caretDown{color:#212121;font-size:12px;position:absolute;right:13px;bottom:9px;z-index:1;pointer-events:none}.ms-Dropdown-title{box-sizing:border-box;margin:0;padding:0;box-shadow:none;background:#fff;border:1px solid #c8c8c8;cursor:pointer;display:block;height:32px;padding:5px 32px 0 10px;position:relative;overflow:hidden}.ms-Dropdown-title.ms-Dropdown-truncator{height:auto;display:block;position:absolute;visibility:hidden}.ms-Dropdown-items{box-sizing:border-box;margin:0;padding:0;box-shadow:none;box-shadow:0 0 5px 0 rgba(0,0,0,.4);background-color:#fff;display:none;list-style-type:none;position:absolute;width:100%;max-height:200px;z-index:400;overflow-y:scroll;top:auto;right:auto;bottom:auto;left:auto;max-width:100%}.ms-Dropdown-items:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;border:1px solid #eaeaea}@media screen and (-ms-high-contrast:active){.ms-Dropdown-items{border:1px solid #fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Dropdown-items{border:1px solid #000}}.ms-Dropdown-item{box-sizing:border-box;cursor:pointer;display:block;height:36px;padding:7px 10px;position:relative;border:1px solid transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (-ms-high-contrast:active){.ms-Dropdown-item{border-color:#000}}@media screen and (-ms-high-contrast:black-on-white){.ms-Dropdown-item{border-color:#fff}}.ms-Dropdown-item:hover{background-color:#eaeaea;color:#000}@media screen and (-ms-high-contrast:active){.ms-Dropdown-item:hover{background-color:#1aebff;border-color:#1aebff;color:#000}.ms-Dropdown-item:hover:focus{border-color:#000}}@media screen and (-ms-high-contrast:black-on-white){.ms-Dropdown-item:hover{background-color:#37006e;border-color:#37006e;color:#fff}}.ms-Dropdown-item:active{background-color:#eaeaea;border-color:#0078d7;color:#000}.ms-Dropdown-item.is-disabled{background:#fff;color:#a6a6a6;cursor:default}.ms-Dropdown-item.is-selected,.ms-Dropdown-item.ms-Dropdown-item--selected{background-color:#b3d6f2;color:#000}.ms-Dropdown-item.is-selected:hover,.ms-Dropdown-item.ms-Dropdown-item--selected:hover{background-color:#b3d6f2}@media screen and (-ms-high-contrast:active){.ms-Dropdown-item.is-selected,.ms-Dropdown-item.ms-Dropdown-item--selected{background-color:#1aebff;border-color:#1aebff;color:#000}.ms-Dropdown-item.is-selected:focus,.ms-Dropdown-item.ms-Dropdown-item--selected:focus{border-color:#000}}@media screen and (-ms-high-contrast:black-on-white){.ms-Dropdown-item.is-selected,.ms-Dropdown-item.ms-Dropdown-item--selected{background-color:#37006e;border-color:#37006e;color:#fff}}.ms-FacePile{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;position:relative;height:32px;width:auto}.ms-FacePile .ms-FacePile-personaCardHost{display:none}.ms-FacePile-addButton{background:none;border:0;cursor:pointer;position:relative;height:32px;width:32px;line-height:32px;text-align:center;float:left;padding:0;margin-right:4px;outline:transparent;border-radius:50%;vertical-align:top}.ms-FacePile-addButton .ms-Persona-details,.ms-FacePile-addButton .ms-Persona-presence{display:none}.ms-FacePile-addButton.ms-FacePile-addButton--addPerson{background-color:#0078d7;color:#fff;font-size:16px}.ms-FacePile-addButton.ms-FacePile-addButton--addPerson:focus,.ms-FacePile-addButton.ms-FacePile-addButton--addPerson:hover{background-color:#005a9e}.ms-FacePile-addButton.ms-FacePile-addButton--addPerson:active{background-color:#004578}.ms-FacePile-addButton.ms-FacePile-addButton--addPerson:disabled{background-color:#c8c8c8}.ms-FacePile-addButton.ms-FacePile-addButton--overflow{background-color:#eaeaea;color:#666;display:none}.ms-FacePile-addButton.ms-FacePile-addButton--overflow.is-active{display:block}.ms-FacePile-addButton.ms-FacePile-addButton--overflow:hover{color:#212121}.ms-FacePile-addButton.ms-FacePile-addButton--overflow:disabled{color:#c8c8c8}.ms-FacePile-addPersonIcon{position:relative;top:-1px}.ms-FacePile-overflowText{font-size:14px}.ms-FacePile-panel.ms-FacePile-panel--overflow .ms-Panel-headerText,.ms-FacePile-panel.ms-FacePile-panel--overflow .ms-PeoplePicker-resultAction,.ms-FacePile-panel.ms-FacePile-panel--overflow .ms-PeoplePicker-results,.ms-FacePile-panel.ms-FacePile-panel--overflow .ms-PeoplePicker-searchBox{display:none}.ms-FacePile-panel.ms-FacePile-panel--overflow .ms-PeoplePicker-selectedHeader{font-weight:100;font-size:21px;color:#333;line-height:82px;height:74px;text-transform:none}.ms-Link{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;font-weight:400;color:#0078d7;text-decoration:none;cursor:pointer;outline:none}.ms-Link:focus,.ms-Link:hover{color:#004578}.ms-Link:active{color:#0078d7}.ms-List{padding:0;list-style-type:none}.ms-List,.ms-ListItem{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;box-shadow:none;color:#333;font-size:14px;font-weight:400}.ms-ListItem{padding:0;*zoom:1;padding:9px 28px 3px;position:relative;display:block}.ms-ListItem:after,.ms-ListItem:before{display:table;content:"";line-height:0}.ms-ListItem:after{clear:both}.ms-ListItem-primaryText,.ms-ListItem-secondaryText,.ms-ListItem-tertiaryText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.ms-ListItem-primaryText{color:#212121;font-weight:300;font-size:21px;padding-right:80px;position:relative;top:-4px}.ms-ListItem-secondaryText{color:#333;font-weight:400;font-size:14px;line-height:25px;position:relative;top:-7px;padding-right:30px}.ms-ListItem-tertiaryText{color:#767676;font-weight:300;font-size:14px;position:relative;top:-9px;margin-bottom:-4px;padding-right:30px}.ms-ListItem-metaText{color:#333;font-weight:300;font-size:11px;position:absolute;right:30px;top:39px}.ms-ListItem-image{float:left;height:70px;margin-left:-8px;margin-right:10px;width:70px;background-color:#333}.ms-ListItem-selectionTarget{display:none}.ms-ListItem-actions{max-width:80px;position:absolute;right:30px;text-align:right;top:10px}.ms-ListItem-action{color:#a6a6a6;display:inline-block;font-size:15px;position:relative;text-align:center;top:3px;cursor:pointer;height:16px;width:16px}.ms-ListItem-action .ms-Icon{vertical-align:top}.ms-ListItem-action:hover{color:#666;outline:1px solid transparent}.ms-ListItem.is-unread{border-left:3px solid #0078d7;padding-left:27px}.ms-ListItem.is-unread .ms-ListItem-metaText,.ms-ListItem.is-unread .ms-ListItem-secondaryText{color:#0078d7;font-weight:600}.ms-ListItem.is-unseen:after{border-right:10px solid transparent;border-top:10px solid #0078d7;left:0;position:absolute;top:0}.ms-ListItem.is-selectable .ms-ListItem-selectionTarget{display:block;height:20px;left:6px;position:absolute;top:13px;width:20px}.ms-ListItem.is-selectable .ms-ListItem-image{margin-left:0}.ms-ListItem.is-selectable:hover{background-color:#eaeaea;cursor:pointer;outline:1px solid transparent}.ms-ListItem.is-selectable:hover:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;speak:none;position:absolute;top:14px;left:7px;height:15px;width:15px;border:1px solid #767676}.ms-ListItem.is-selected:before{border:1px solid transparent}.ms-ListItem.is-selected:before,.ms-ListItem.is-selected:hover:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;speak:none;content:"\e73A";font-size:17px;color:#767676;position:absolute;top:23px;left:7px;border:0}.ms-ListItem.is-selected:hover{background-color:#b3d6f2;outline:1px solid transparent}.ms-ListItem.ms-ListItem--document{padding:0}.ms-ListItem.ms-ListItem--document .ms-ListItem-itemIcon{width:70px;height:70px;float:left;text-align:center}.ms-ListItem.ms-ListItem--document .ms-ListItem-itemIcon .ms-Icon{font-size:38px;line-height:70px;color:#666}.ms-ListItem.ms-ListItem--document .ms-ListItem-primaryText{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;padding-top:15px;padding-right:0;position:static}.ms-ListItem.ms-ListItem--document .ms-ListItem-secondaryText{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-weight:400;font-size:11px;padding-top:6px}.ms-MessageBanner{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;color:#333;font-size:12px;font-weight:400;position:relative;border-bottom:1px solid #767676;background-color:#eff6fc;min-width:320px;width:100%;height:52px;text-align:center;overflow:hidden;animation-name:fadeIn,slideDownIn20;-webkit-animation-duration:.367s;-moz-animation-duration:.367s;-ms-animation-duration:.367s;-o-animation-duration:.367s;animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-fill-mode:both}.ms-MessageBanner .ms-Icon{font-size:16px}.ms-MessageBanner.hide{animation-name:fadeOut,slideUpOut20;-webkit-animation-duration:.167s;-moz-animation-duration:.167s;-ms-animation-duration:.167s;-o-animation-duration:.167s;animation-timing-function:cubic-bezier(.1,.25,.75,.9);animation-fill-mode:both}.ms-MessageBanner.is-hidden{display:none}.ms-MessageBanner-close,.ms-MessageBanner-expand{height:52px;width:40px;cursor:pointer;border:0;background-color:transparent}.ms-MessageBanner-close{position:absolute;right:0;top:0;line-height:52px;color:#666}.ms-MessageBanner-text{display:inline-block;padding:18px 0;margin-left:0;max-width:770px;overflow:hidden;text-align:left}.ms-MessageBanner-expand{display:none;vertical-align:top}.ms-MessageBanner-expand.is-visible{display:inline-block}.ms-MessageBanner-action{display:inline-block;vertical-align:top;margin-top:10px;margin-left:10px;padding-right:36px}.ms-MessageBanner-action .ms-Button{color:#fff}.ms-MessageBanner-clipper{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;vertical-align:top}.ms-MessageBanner.is-expanded{height:auto}.ms-MessageBanner.is-expanded .ms-MessageBanner-clipper{white-space:normal}@media screen and (max-width:479px){.ms-MessageBanner-action{margin:0;display:block;text-align:right;padding:0 10px 10px 0}.ms-MessageBanner-text{margin-left:-25px;padding:18px 0 10px;min-width:240px}.ms-MessageBanner-expand{display:inline-block;padding:0;margin-left:-5px;width:20px}.ms-MessageBanner-expand .ms-Icon{color:#0078d7}}.ms-ContextualHost{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;z-index:10;margin:16px auto;position:relative;min-width:10px;display:none;background-color:#fff;box-shadow:0 0 5px 0 rgba(0,0,0,.4)}.ms-ContextualHost.is-positioned{position:absolute;margin:0}.ms-ContextualHost.is-open{display:inline-block}.ms-ContextualHost-beak{box-shadow:0 0 15px -5px #3c3c3c;position:absolute;width:28px;height:28px;background:#fff;border:1px solid #eaeaea;box-sizing:border-box;top:-6px;display:none;transform:rotate(45deg);z-index:0;outline:1px solid transparent}.ms-ContextualHost.ms-ContextualHost--arrowLeft .ms-ContextualHost-beak,.ms-ContextualHost.ms-ContextualHost--arrowRight .ms-ContextualHost-beak{top:40px;display:none}.ms-ContextualHost.ms-ContextualHost--arrowLeft .ms-ContextualHost-beak{left:-10px}.ms-ContextualHost.ms-ContextualHost--arrowRight .ms-ContextualHost-beak{right:-10px}.ms-ContextualHost.ms-ContextualHost--arrowTop .ms-ContextualHost-beak{display:block;top:-10px}.ms-ContextualHost.ms-ContextualHost--arrowBottom .ms-ContextualHost-beak{display:block;bottom:-10px}.ms-ContextualHost-main{position:relative;background-color:#fff;box-sizing:border-box;outline:1px solid transparent;z-index:5;min-height:10px}.ms-ContextualHost-close{margin:0;border:0;background:none;cursor:pointer;position:absolute;top:12px;right:12px;padding:8px;width:32px;height:32px;font-size:14px;color:#666;z-index:10}.ms-ContextualHost.ms-ContextualHost--close .ms-ContextualHost-title{margin-right:20px}.ms-ContextualHost.ms-ContextualHost--primaryArrow .ms-ContextualHost-beak{background-color:#0078d7}@media (min-width:480px){.ms-ContextualHost{margin:16px}.ms-ContextualHost.is-positioned{margin:0}.ms-ContextualHost.ms-ContextualHost--arrowLeft .ms-ContextualHost-beak,.ms-ContextualHost.ms-ContextualHost--arrowRight .ms-ContextualHost-beak{display:block}}.ms-MessageBar{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;padding:8px;display:table;background-color:#f4f4f4}.ms-MessageBar .ms-Link{font-size:12px}.ms-MessageBar-icon,.ms-MessageBar-text{display:table-cell;vertical-align:top}.ms-MessageBar-icon{padding-right:8px;font-size:16px;color:#767676}.ms-MessageBar-text{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;font-size:12px;font-weight:400}.ms-MessageBar.ms-MessageBar--warning{background-color:#fff4ce}.ms-MessageBar.ms-MessageBar--severeWarning{background-color:#fed9cc}.ms-MessageBar.ms-MessageBar--severeWarning .ms-MessageBar-icon{color:#d83b01}.ms-MessageBar.ms-MessageBar--error{background-color:#fde7e9}.ms-MessageBar.ms-MessageBar--error .ms-MessageBar-icon{color:#a80000}.ms-MessageBar.ms-MessageBar--blocked{background-color:#fde7e9}.ms-MessageBar.ms-MessageBar--blocked .ms-MessageBar-icon{color:#a80000}.ms-MessageBar.ms-MessageBar--success{background-color:#dff6dd}.ms-MessageBar.ms-MessageBar--success .ms-MessageBar-icon{color:#107c10}.ms-OrgChart{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;font-weight:400}.ms-OrgChart-groupTitle{color:#666;line-height:1}.ms-OrgChart-list{padding:0;margin:12px 0 16px}.ms-OrgChart-listItem{height:50px;width:100%;position:relative;list-style:none;margin-bottom:8px}.ms-OrgChart-listItemBtn{cursor:pointer;position:relative;height:50px;width:100%;background:none;border:0;text-align:left;margin:0;padding:0}.ms-Overlay{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;background-color:hsla(0,0%,100%,.4);position:fixed;bottom:0;left:0;right:0;top:0;z-index:0;display:none}.ms-Overlay.is-visible{display:block}.ms-Overlay--dark{background-color:rgba(0,0,0,.4)}.ms-u-overflowHidden{overflow:hidden}.ms-Panel{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;background-color:#fff;width:100%;max-width:340px;box-shadow:-30px 0 30px -30px rgba(0,0,0,.2);position:absolute;top:0;right:0;bottom:0;z-index:10;display:none;height:100%}.ms-Panel.animate-in{animation-name:fadeIn,slideLeftIn40;-webkit-animation-duration:.367s;-moz-animation-duration:.367s;-ms-animation-duration:.367s;-o-animation-duration:.367s;animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-fill-mode:both}.ms-Panel.animate-out{animation-name:fadeOut,slideRightOut40;-webkit-animation-duration:.167s;-moz-animation-duration:.167s;-ms-animation-duration:.167s;-o-animation-duration:.167s;animation-timing-function:cubic-bezier(.1,.25,.75,.9);animation-fill-mode:both}.ms-Panel.is-open{display:block}.ms-Panel .ms-CommandBar{padding-right:0;padding-left:8px}.ms-Panel.ms-Panel--md{max-width:340px}.ms-Panel.ms-Panel--lg{max-width:644px}.ms-Panel.ms-Panel--xl{max-width:940px}.ms-Panel.ms-Panel--xxl{max-width:1192px}.ms-Panel--left{box-shadow:-30px 0 30px 30px rgba(0,0,0,.2);left:0;right:auto}.ms-Panel--left.animate-in{animation-name:fadeIn,slideRightIn40;-webkit-animation-duration:.367s;-moz-animation-duration:.367s;-ms-animation-duration:.367s;-o-animation-duration:.367s;animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-fill-mode:both}.ms-Panel--left.animate-out{animation-name:fadeOut,slideLeftOut40;-webkit-animation-duration:.167s;-moz-animation-duration:.167s;-ms-animation-duration:.167s;-o-animation-duration:.167s;animation-timing-function:cubic-bezier(.1,.25,.75,.9);animation-fill-mode:both}.ms-Panel-closeButton{background:none;border:0;cursor:pointer;position:absolute;right:6px;top:0;height:40px;width:40px;line-height:40px;outline:0;padding:0;color:#666;font-size:16px}.ms-Panel-closeButton:hover{color:#333}.ms-Panel-closeButton .ms-Icon--Cancel{margin-top:2px}@media (max-width:639px){.ms-Panel-closeButton{font-size:20px;line-height:20px;height:44px;right:4px}}.ms-Panel-contentInner{margin-top:40px;padding:0 16px 20px;overflow-y:auto;height:100%}@media (min-width:640px){.ms-Panel-contentInner{padding:0 32px 20px}}@media (min-width:1366px){.ms-Panel-contentInner{padding:0 40px 20px}}.ms-Panel-headerText{font-weight:100;font-size:21px;color:#333;margin:10px 0;padding:4px 0;line-height:1;text-overflow:ellipsis;overflow:hidden}@media (min-width:1024px){.ms-Panel-headerText{margin-top:30px}}.ms-PanelHost{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;bottom:0;left:0;position:fixed;right:0;top:0;z-index:10}.ms-PanelHost .ms-Overlay{cursor:pointer}.ms-PeoplePicker{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;background-color:#fff;margin-bottom:10px}.ms-PeoplePicker-searchBox{border-bottom:1px solid #c8c8c8;cursor:text;-ms-flex-flow:row wrap;flex-flow:row wrap;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}.ms-PeoplePicker-searchBox:hover{border-color:#767676}.ms-PeoplePicker-searchBox.is-active,.ms-PeoplePicker-searchBox:focus{border-color:#0078d7}@media screen and (-ms-high-contrast:active){.ms-PeoplePicker-searchBox:focus,.ms-PeoplePicker-searchBox:hover{border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-PeoplePicker-searchBox:focus,.ms-PeoplePicker-searchBox:hover{border-color:#37006e}}.ms-PeoplePicker-searchBox::-webkit-input-placeholder{color:#666}.ms-PeoplePicker-searchBox:-moz-placeholder,.ms-PeoplePicker-searchBox::-moz-placeholder{color:#666}.ms-PeoplePicker-searchBox:-ms-input-placeholder{color:#666}.ms-PeoplePicker-searchBox .ms-TextField.ms-TextField--textFieldUnderlined{border:0;margin-bottom:0;display:inline-block;width:100%;-ms-flex:1;flex:1}.ms-PeoplePicker-searchBox .ms-TextField.ms-TextField--textFieldUnderlined .ms-TextField-field{min-height:40px;border:0}.ms-PeoplePicker.is-active .ms-PeoplePicker-searchBox .ms-TextField-field{border-color:#0078d7}.ms-PeoplePicker-persona{cursor:pointer}.ms-PeoplePicker-persona.has-error .ms-Persona-primaryText{color:#a80000}.ms-PeoplePicker-personaRemove{background:none;border:0;cursor:pointer;background-color:#f4f4f4;color:#666;display:inline-block;text-align:center;height:32px;width:32px}.ms-PeoplePicker-personaRemove:hover{background-color:#eaeaea;color:#333;cursor:pointer}.ms-PeoplePicker-personaRemove:focus{background-color:#eaeaea;color:#333;border:1px solid #0078d7;outline:none}.ms-PeoplePicker-results{background-color:#fff;border:1px solid #c8c8c8;margin-bottom:-1px;padding-top:9px;width:100%;padding-left:0;box-sizing:border-box}.ms-PeoplePicker.is-active .ms-PeoplePicker-results{display:block;opacity:1}.ms-PeoplePicker-resultGroup{border-top:1px solid #eaeaea}.ms-PeoplePicker-resultGroup:first-child{border-top:0}.ms-PeoplePicker-resultGroupTitle{color:#0078d7;font-weight:300;font-size:12px;padding-top:8px;padding-bottom:8px;text-transform:uppercase;padding-left:16px}.ms-PeoplePicker-resultList{box-sizing:border-box;margin:0;padding:0;box-shadow:none;margin-bottom:-1px;list-style-type:none}.ms-PeoplePicker-result{position:relative;margin-top:8px;margin-bottom:8px;padding-left:16px;cursor:pointer;outline:0}.ms-PeoplePicker-result:focus,.ms-PeoplePicker-result:hover{background-color:#eaeaea}.ms-PeoplePicker-result:focus{box-shadow:inset 0 0 0 1px #0078d7}.ms-PeoplePicker-result.is-selected{background-color:#b3d6f2}.ms-PeoplePicker-result.is-selected .ms-PeoplePicker-resultAction:active,.ms-PeoplePicker-result.is-selected .ms-PeoplePicker-resultAction:hover{background-color:#69afe5}.ms-PeoplePicker-peopleListBtn,.ms-PeoplePicker-resultBtn{cursor:pointer;position:relative;box-sizing:border-box;height:34px;width:100%;background:none;border:0;text-align:left;margin:0 0 10px;padding:0 0 0 9px}@media (min-width:480px){.ms-PeoplePicker-peopleListBtn,.ms-PeoplePicker-resultBtn{height:48px}}.ms-PeoplePicker-peopleListBtn:hover,.ms-PeoplePicker-resultBtn:hover{background-color:#eaeaea;outline:1px solid transparent}.ms-PeoplePicker-peopleListBtn:focus,.ms-PeoplePicker-resultBtn:focus{outline:1}.ms-PeoplePicker-peopleListBtn.ms-PeoplePicker-resultBtn--compact,.ms-PeoplePicker-resultBtn.ms-PeoplePicker-resultBtn--compact{height:32px}.ms-PeoplePicker-peopleListBtn{margin-bottom:0;padding:0}.ms-PeoplePicker-peopleListBtn:hover{background-color:transparent}.ms-PeoplePicker-resultAction{background:none;border:0;cursor:pointer;display:block;height:100%;transition:background-color .367s cubic-bezier(.1,.9,.2,1);position:absolute;right:0;top:0;width:40px;text-align:center}.ms-PeoplePicker-resultAction .ms-Icon{color:#666;font-size:15px}.ms-PeoplePicker-resultAction:hover{background-color:#c8c8c8;outline:1px solid transparent}.ms-PeoplePicker-resultAction:active{background-color:#a6a6a6}.ms-PeoplePicker-resultAdditionalContent{display:none}.ms-PeoplePicker-result.is-expanded{background-color:#f4f4f4;margin-bottom:11px}.ms-PeoplePicker-result.is-expanded .ms-PeoplePicker-resultAction .ms-Icon{transform:rotate(180deg)}.ms-PeoplePicker-result.is-expanded .ms-PeoplePicker-resultAdditionalContent{display:block}.ms-PeoplePicker-searchMore{background:none;border:0;cursor:pointer;height:40px;position:relative;width:100%}.ms-PeoplePicker-searchMore:hover{background-color:#f4f4f4}.ms-PeoplePicker-searchMoreIcon{font-size:21px;height:40px;left:16px;line-height:40px;position:absolute;text-align:center;top:0;width:40px}.ms-PeoplePicker-searchMoreText{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;height:40px;left:64px;line-height:40px;position:absolute;top:0}.ms-PeoplePicker-results.ms-PeoplePicker-results--compact .ms-PeoplePicker-resultAction{height:32px;width:32px}.ms-PeoplePicker-results.ms-PeoplePicker-results--compact .ms-PeoplePicker-resultGroups{max-height:209px}.ms-PeoplePicker.ms-PeoplePicker--facePile.is-searching .ms-PeoplePicker-results{border-bottom:0;padding:20px 0 0}.ms-PeoplePicker.ms-PeoplePicker--facePile.is-searching .ms-PeoplePicker-peopleListHeader{display:none}.ms-PeoplePicker.ms-PeoplePicker--facePile .ms-PersonaCard{display:none;position:absolute;height:200px}.ms-PeoplePicker.ms-PeoplePicker--facePile .ms-PersonaCard.is-active{display:block}.ms-PeoplePicker.ms-PeoplePicker--facePile .ms-Persona.ms-Persona--selectable{padding:0}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile{position:relative;border:0;box-shadow:none;margin:0;max-width:100%;border-bottom:1px solid #eaeaea}@media (max-width:479px){.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona-placeholder,.ms-PeoplePicker-selectedPeople .ms-Persona-placeholder{font-size:28px;top:6px}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona-initials,.ms-PeoplePicker-selectedPeople .ms-Persona-initials{font-size:12px;line-height:32px}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona-presence,.ms-PeoplePicker-selectedPeople .ms-Persona-presence{left:19px}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona-details,.ms-PeoplePicker-selectedPeople .ms-Persona-details{padding-left:8px}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona-primaryText,.ms-PeoplePicker-selectedPeople .ms-Persona-primaryText{font-size:14px;padding-top:3px}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona-secondaryText,.ms-PeoplePicker-selectedPeople .ms-Persona-secondaryText{display:none}}@media (min-width:480px){.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-Persona .ms-Persona-secondaryText,.ms-PeoplePicker-selectedPeople .ms-Persona .ms-Persona-secondaryText{display:block}}@media (min-width:480px){.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-PeoplePicker-peopleListBtn,.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-PeoplePicker-resultAction,.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-PeoplePicker-resultBtn,.ms-PeoplePicker-selectedPeople .ms-PeoplePicker-peopleListBtn,.ms-PeoplePicker-selectedPeople .ms-PeoplePicker-resultAction,.ms-PeoplePicker-selectedPeople .ms-PeoplePicker-resultBtn{height:40px}}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-PeoplePicker-selected,.ms-PeoplePicker-selectedPeople .ms-PeoplePicker-selected{margin-bottom:20px;display:none}.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile .ms-PeoplePicker-selected.is-active,.ms-PeoplePicker-selectedPeople .ms-PeoplePicker-selected.is-active{display:block}.ms-PeoplePicker-peopleListHeader,.ms-PeoplePicker-selectedHeader{color:#0078d7;font-size:12px;font-weight:400;height:50px;line-height:50px}.ms-PeoplePicker-peopleList,.ms-PeoplePicker-selectedPeople{box-sizing:border-box;margin:0;padding:0;box-shadow:none;list-style:none}.ms-PeoplePicker-selectedPerson{margin-bottom:8px;position:relative}.ms-PeoplePicker-peopleListItem{margin-bottom:6px;position:relative}.ms-Persona{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;font-weight:400;line-height:1;position:relative;width:100%;height:48px;display:table;table-layout:fixed;border-collapse:separate}.ms-Persona .ms-ContextualHost{display:none}.ms-Persona-imageArea{position:absolute;overflow:hidden;text-align:center;max-width:48px;height:48px;border-radius:50%;z-index:0;width:100%;top:0;left:0}@media screen and (-ms-high-contrast:active){.ms-Persona-imageArea{border:1px solid #fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Persona-imageArea{border:1px solid #000}}.ms-Persona-placeholder{color:#fff;position:absolute;right:0;left:0;font-size:47px;top:9px;z-index:5}.ms-Persona-initials{color:#fff;font-size:17px;font-weight:100;line-height:48px}.ms-Persona-initials.ms-Persona-initials--blueLight{background-color:#00bcf2}.ms-Persona-initials.ms-Persona-initials--blue{background-color:#0078d7}.ms-Persona-initials.ms-Persona-initials--blueDark{background-color:#002050}.ms-Persona-initials.ms-Persona-initials--teal{background-color:#008272}.ms-Persona-initials.ms-Persona-initials--greenLight{background-color:#bad80a}.ms-Persona-initials.ms-Persona-initials--green{background-color:#107c10}.ms-Persona-initials.ms-Persona-initials--greenDark{background-color:#004b1c}.ms-Persona-initials.ms-Persona-initials--magentaLight{background-color:#e3008c}.ms-Persona-initials.ms-Persona-initials--magenta{background-color:#b4009e}.ms-Persona-initials.ms-Persona-initials--purpleLight{background-color:#b4a0ff}.ms-Persona-initials.ms-Persona-initials--purple{background-color:#5c2d91}.ms-Persona-initials.ms-Persona-initials--black{background-color:#000}.ms-Persona-initials.ms-Persona-initials--orange{background-color:#d83b01}.ms-Persona-initials.ms-Persona-initials--red{background-color:#e81123}.ms-Persona-initials.ms-Persona-initials--redDark{background-color:#a80000}.ms-Persona-image{position:absolute;top:0;left:0;height:48px;z-index:10;width:100%}.ms-Persona-image[src=""]{display:none}.ms-Persona-presence{background-color:#7fba00;position:absolute;height:12px;width:12px;border-radius:50%;top:auto;left:34px;bottom:-1px;border:2px solid #fff;text-align:center}@media screen and (-ms-high-contrast:active){.ms-Persona-presence{border-color:#000;box-shadow:inset 0 0 0 1px #1aebff;color:#000;background-color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Persona-presence{border-color:#fff;box-shadow:inset 0 0 0 1px #37006e;color:#fff;background-color:#000}}.ms-Persona-presenceIcon{color:#fff;font-size:8px;line-height:12px;vertical-align:top}.ms-Persona-details{padding:0 12px;vertical-align:middle;overflow:hidden;text-align:left;padding-left:60px;display:table-cell;width:100%}.ms-Persona-optionalText,.ms-Persona-primaryText,.ms-Persona-secondaryText,.ms-Persona-tertiaryText{display:block;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.ms-Persona-primaryText{color:#333;font-weight:400;font-size:17px;margin-top:-3px;line-height:1.4}.ms-Persona-optionalText,.ms-Persona-secondaryText,.ms-Persona-tertiaryText{color:#666;font-weight:400;font-size:12px;white-space:nowrap;line-height:1.3}.ms-Persona-secondaryText{padding-top:3px}.ms-Persona-optionalText,.ms-Persona-tertiaryText{padding-top:5px;display:none}.ms-Persona.ms-Persona--tiny{height:30px;display:inline-block}.ms-Persona.ms-Persona--tiny .ms-Persona-imageArea{overflow:visible;display:none}.ms-Persona.ms-Persona--tiny .ms-Persona-presence{right:auto;top:10px;left:0;border:0}@media screen and (-ms-high-contrast:active){.ms-Persona.ms-Persona--tiny .ms-Persona-presence{top:9px;border:1px solid #fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Persona.ms-Persona--tiny .ms-Persona-presence{border:1px solid #000}}.ms-Persona.ms-Persona--tiny .ms-Persona-details{padding-left:20px}.ms-Persona.ms-Persona--tiny .ms-Persona-primaryText{font-size:14px;padding-top:9px}.ms-Persona.ms-Persona--tiny .ms-Persona-secondaryText{display:none}.ms-Persona.ms-Persona--tiny.ms-Persona--readonly{padding:0;background-color:transparent}.ms-Persona.ms-Persona--tiny.ms-Persona--readonly .ms-Persona-primaryText:after{content:";"}.ms-Persona.ms-Persona--facePile,.ms-Persona.ms-Persona--token,.ms-Persona.ms-Persona--xs{height:32px}.ms-Persona.ms-Persona--facePile .ms-Persona-image,.ms-Persona.ms-Persona--facePile .ms-Persona-imageArea,.ms-Persona.ms-Persona--token .ms-Persona-image,.ms-Persona.ms-Persona--token .ms-Persona-imageArea,.ms-Persona.ms-Persona--xs .ms-Persona-image,.ms-Persona.ms-Persona--xs .ms-Persona-imageArea{max-width:32px;height:32px}.ms-Persona.ms-Persona--facePile .ms-Persona-placeholder,.ms-Persona.ms-Persona--token .ms-Persona-placeholder,.ms-Persona.ms-Persona--xs .ms-Persona-placeholder{font-size:28px;top:6px}.ms-Persona.ms-Persona--facePile .ms-Persona-initials,.ms-Persona.ms-Persona--token .ms-Persona-initials,.ms-Persona.ms-Persona--xs .ms-Persona-initials{font-size:12px;line-height:32px}.ms-Persona.ms-Persona--facePile .ms-Persona-presence,.ms-Persona.ms-Persona--token .ms-Persona-presence,.ms-Persona.ms-Persona--xs .ms-Persona-presence{left:19px}.ms-Persona.ms-Persona--facePile .ms-Persona-details,.ms-Persona.ms-Persona--token .ms-Persona-details,.ms-Persona.ms-Persona--xs .ms-Persona-details{padding-left:40px}.ms-Persona.ms-Persona--facePile .ms-Persona-primaryText,.ms-Persona.ms-Persona--token .ms-Persona-primaryText,.ms-Persona.ms-Persona--xs .ms-Persona-primaryText{font-size:14px;padding-top:3px}.ms-Persona.ms-Persona--facePile .ms-Persona-secondaryText,.ms-Persona.ms-Persona--token .ms-Persona-secondaryText,.ms-Persona.ms-Persona--xs .ms-Persona-secondaryText{display:none}.ms-Persona.ms-Persona--sm{height:40px}.ms-Persona.ms-Persona--sm .ms-Persona-image,.ms-Persona.ms-Persona--sm .ms-Persona-imageArea{max-width:40px;height:40px}.ms-Persona.ms-Persona--sm .ms-Persona-placeholder{font-size:38px;top:5px}.ms-Persona.ms-Persona--sm .ms-Persona-initials{font-size:14px;line-height:40px}.ms-Persona.ms-Persona--sm .ms-Persona-presence{left:27px}.ms-Persona.ms-Persona--sm .ms-Persona-details{padding-left:48px}.ms-Persona.ms-Persona--sm .ms-Persona-primaryText{font-size:14px}.ms-Persona.ms-Persona--sm .ms-Persona-primaryText,.ms-Persona.ms-Persona--sm .ms-Persona-secondaryText{padding-top:1px}.ms-Persona.ms-Persona--lg{height:72px}.ms-Persona.ms-Persona--lg .ms-Persona-image,.ms-Persona.ms-Persona--lg .ms-Persona-imageArea{max-width:72px;height:72px}.ms-Persona.ms-Persona--lg .ms-Persona-placeholder{font-size:67px;top:10px}.ms-Persona.ms-Persona--lg .ms-Persona-initials{font-size:28px;line-height:72px}.ms-Persona.ms-Persona--lg .ms-Persona-presence{left:49px;height:20px;width:20px;border-width:3px}.ms-Persona.ms-Persona--lg .ms-Persona-presenceIcon{line-height:20px;font-size:14px}.ms-Persona.ms-Persona--lg .ms-Persona-details{padding-left:84px}.ms-Persona.ms-Persona--lg .ms-Persona-secondaryText{padding-top:3px}.ms-Persona.ms-Persona--lg .ms-Persona-tertiaryText{padding-top:5px;display:block}.ms-Persona.ms-Persona--xl{height:100px}.ms-Persona.ms-Persona--xl .ms-Persona-image,.ms-Persona.ms-Persona--xl .ms-Persona-imageArea{max-width:100px;height:100px}.ms-Persona.ms-Persona--xl .ms-Persona-placeholder{font-size:95px;top:12px}.ms-Persona.ms-Persona--xl .ms-Persona-initials{font-size:42px;line-height:100px}.ms-Persona.ms-Persona--xl .ms-Persona-presence{height:28px;width:28px;left:71px;border-width:4px}.ms-Persona.ms-Persona--xl .ms-Persona-presenceIcon{line-height:28px;font-size:21px;position:relative;top:1px}.ms-Persona.ms-Persona--xl .ms-Persona-details{padding-left:120px}.ms-Persona.ms-Persona--xl .ms-Persona-primaryText{font-size:21px;font-weight:300;margin-top:0}.ms-Persona.ms-Persona--xl .ms-Persona-secondaryText{padding-top:2px}.ms-Persona.ms-Persona--xl .ms-Persona-optionalText,.ms-Persona.ms-Persona--xl .ms-Persona-tertiaryText{padding-top:5px;display:block}.ms-Persona.ms-Persona--darkText .ms-Persona-primaryText{color:#212121}.ms-Persona.ms-Persona--darkText .ms-Persona-optionalText,.ms-Persona.ms-Persona--darkText .ms-Persona-secondaryText,.ms-Persona.ms-Persona--darkText .ms-Persona-tertiaryText{color:#333}.ms-Persona.ms-Persona--selectable{cursor:pointer;padding:0 10px}.ms-Persona.ms-Persona--selectable:not(.ms-Persona--xl):focus,.ms-Persona.ms-Persona--selectable:not(.ms-Persona--xl):hover{background-color:#deecf9;outline:1px solid transparent}.ms-Persona.ms-Persona--available .ms-Persona-presence{background-color:#7fba00}.ms-Persona.ms-Persona--away .ms-Persona-presence{background-color:#fcd116}.ms-Persona.ms-Persona--away .ms-Persona-presenceIcon{position:relative;left:1px}.ms-Persona.ms-Persona--blocked .ms-Persona-presence{background-color:#fff}.ms-Persona.ms-Persona--blocked .ms-Persona-presence:before{content:"";width:100%;height:100%;position:absolute;top:0;left:0;box-shadow:inset 0 0 0 2px #d93b3b;border-radius:50%}.ms-Persona.ms-Persona--blocked .ms-Persona-presence:after{content:"";width:100%;height:2px;background-color:#d93b3b;transform:rotate(-45deg);position:absolute;top:5px;left:0}.ms-Persona.ms-Persona--blocked.ms-Persona--lg .ms-Persona-presence:after{top:9px}.ms-Persona.ms-Persona--blocked.ms-Persona--xl .ms-Persona-presence:after{top:13px}.ms-Persona.ms-Persona--busy .ms-Persona-presence{background-color:#d93b3b}@media screen and (-ms-high-contrast:active){.ms-Persona.ms-Persona--busy .ms-Persona-presence{background-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Persona.ms-Persona--busy .ms-Persona-presence{background-color:#37006e}}.ms-Persona.ms-Persona--dnd .ms-Persona-presence{background-color:#e81123}.ms-Persona.ms-Persona--offline .ms-Persona-presence{background-color:#93abbd}@media screen and (-ms-high-contrast:active){.ms-Persona.ms-Persona--offline .ms-Persona-presence{background-color:#000;box-shadow:inset 0 0 0 1px #fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Persona.ms-Persona--offline .ms-Persona-presence{background-color:#fff;box-shadow:inset 0 0 0 1px #000}}.ms-Persona.ms-Persona--facePile{display:inline-block;width:auto}.ms-Persona.ms-Persona--facePile:hover{cursor:pointer}.ms-Persona.ms-Persona--facePile .ms-Persona-imageArea{position:relative;width:100%;min-width:32px}.ms-Persona.ms-Persona--facePile .ms-Persona-initials{position:relative}.ms-Persona.ms-Persona--facePile .ms-Persona-details,.ms-Persona.ms-Persona--facePile .ms-Persona-presence{display:none}.ms-Persona.ms-Persona--token{display:-ms-inline-flexbox;display:inline-flex;width:auto;background-color:#f4f4f4;border-radius:20px;margin:4px}.ms-Persona.ms-Persona--token:hover{cursor:pointer}.ms-Persona.ms-Persona--token .ms-Persona-actionIcon{border-radius:20px;display:inline-block;width:32px;height:32px;padding:0;line-height:30px;transition:background-color .167s cubic-bezier(.1,.9,.2,1);text-align:center}.ms-Persona.ms-Persona--token .ms-Persona-actionIcon:hover{background-color:#eaeaea}.ms-Persona.ms-Persona--token .ms-Persona-imageArea{width:100%;min-width:32px}.ms-Persona.ms-Persona--token .ms-Persona-details{height:30px;display:inline-block;width:auto;padding-right:8px}.ms-Persona.ms-Persona--token .ms-Persona-primaryText{padding-top:0;line-height:34px}.ms-Persona.ms-Persona--token .ms-Persona-initials{position:relative}.ms-PersonaCard{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;animation-name:fadeIn,slideUpIn10;-webkit-animation-duration:.167s;-moz-animation-duration:.167s;-ms-animation-duration:.167s;-o-animation-duration:.167s;animation-timing-function:cubic-bezier(.1,.25,.75,.9);animation-fill-mode:both;color:#333;font-size:14px;font-weight:400;bottom:0;left:0;position:fixed;right:0;outline:1px solid transparent}.ms-PersonaCard-persona{background-color:#f4f4f4;padding-top:12px;padding-bottom:12px;padding-left:20px}.ms-PersonaCard-actions{box-sizing:border-box;position:relative;list-style:none;margin:0;padding:0 10px;background-color:#fff;height:48px}.ms-PersonaCard-actions:before{content:"";position:absolute;top:47px;left:0;width:100%;border-top:1px solid #c8c8c8}.ms-PersonaCard-action,.ms-PersonaCard-overflow{display:inline-block;cursor:pointer;font-size:16px;height:48px;line-height:48px;padding:0 10px;color:#666;outline:transparent;position:relative;box-sizing:border-box}.ms-PersonaCard-action:hover,.ms-PersonaCard-overflow:hover{color:#212121}.ms-PersonaCard-action:active,.ms-PersonaCard-overflow:active{color:#0078d7}.ms-PersonaCard-action:before,.ms-PersonaCard-overflow:before{content:"";position:absolute;width:100%;height:100%;background-color:transparent;top:0;left:0;z-index:100}.ms-PersonaCard-action.is-active,.ms-PersonaCard-overflow.is-active{color:#0078d7}.ms-PersonaCard-action.is-active:after,.ms-PersonaCard-overflow.is-active:after{box-sizing:border-box;transform:rotate(45deg);content:"";width:10px;height:10px;border:1px solid #c8c8c8;background-color:#fff;position:absolute;border-right:0;border-bottom:0;bottom:-4px;left:13px}.ms-PersonaCard-overflow{font-size:14px;color:#333;float:right;margin-top:-1px}.ms-PersonaCard-overflow:hover{color:#0078d7}.ms-PersonaCard-orgChart{position:absolute;right:12px;top:-95px}.ms-PersonaCard-actionDetailBox{min-height:48px;overflow-y:auto;overflow-x:hidden;background-color:#fff}.ms-PersonaCard-details{display:none;width:100%;margin:0;max-height:300px;min-height:48px;color:#666;padding:9px 20px;box-sizing:border-box}.ms-PersonaCard-details.is-active{display:block}.ms-PersonaCard-details.is-collapsed{height:30px;overflow:hidden}.ms-PersonaCard-details.is-collapsed .ms-PersonaCard-detailExpander:after{content:"\E70D"}.ms-PersonaCard-details[data-detail-id=org]{max-height:300px}.ms-PersonaCard-detailExpander{color:#333;cursor:pointer;font-size:16px;height:30px;line-height:30px;margin-top:2px;position:absolute;right:10px;text-align:center;width:30px}.ms-PersonaCard-detailExpander:after{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;speak:none;content:"\E70E"}.ms-PersonaCard-detailLine{color:#333;line-height:30px}.ms-PersonaCard-detailLabel{color:#666}.ms-PersonaCard-action.ms-PersonaCard-orgChart:after{display:none}@media (min-width:480px){.ms-PersonaCard{box-shadow:0 0 5px 0 rgba(0,0,0,.4);max-width:360px;position:relative}.ms-ContextualHost .ms-PersonaCard{box-shadow:none}}.ms-Pivot{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;font-size:14px;font-weight:400}.ms-Pivot-links{font-size:0;height:40px;list-style-type:none;padding:0;white-space:nowrap}.ms-Pivot-link{color:#333;display:inline-block;font-size:14px;font-weight:400;line-height:40px;margin-right:8px;padding:0 8px;text-align:center;vertical-align:top}.ms-Pivot-link:hover{cursor:pointer}.ms-Pivot-link:before{background-color:transparent;bottom:0;content:"";height:2px;left:8px;position:absolute;right:8px;transition:background-color .267s cubic-bezier(.1,.25,.75,.9)}.ms-Pivot-link:after{color:transparent;content:attr(title);display:block;font-weight:700;height:1px;overflow:hidden;visibility:hidden}.ms-Pivot-link.is-selected{font-weight:600;position:relative}.ms-Pivot-link.is-selected:before{background-color:#0078d7}.ms-Pivot-link.is-disabled{color:#a6a6a6}.ms-Pivot-link.ms-Pivot-link--overflow{color:#666}.ms-Pivot-link.ms-Pivot-link--overflow.is-selected{color:#0078d7}.ms-Pivot-link.ms-Pivot-link--overflow:focus:not(.is-selected),.ms-Pivot-link.ms-Pivot-link--overflow:hover:not(.is-selected){color:#212121}.ms-Pivot-link.ms-Pivot-link--overflow:active{color:#0078d7}.ms-Pivot-ellipsis{font-size:15px;position:relative;top:0}.ms-Pivot-content{display:none;margin-top:20px}.ms-Pivot.ms-Pivot--large .ms-Pivot-link{font-size:17px}.ms-Pivot.ms-Pivot--large .ms-Pivot-link.is-selected{font-weight:300}.ms-Pivot.ms-Pivot--large .ms-Pivot-link.ms-Pivot-link--overflow:after{font-size:17px}.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link{height:40px;background-color:#f4f4f4;line-height:40px;margin-right:-2px;padding:0 10px}.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link:focus:not(.is-selected):not(.ms-Pivot-link--overflow),.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link:hover:not(.is-selected):not(.ms-Pivot-link--overflow){color:#000}.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link:active{color:#fff;background-color:#0078d7}.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link.is-selected{background-color:#0078d7;color:#fff;font-weight:300}.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link.ms-Pivot-link--overflow:focus:not(.is-selected),.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link.ms-Pivot-link--overflow:hover:not(.is-selected){background-color:#fff}.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link.ms-Pivot-link--overflow:active{background-color:#0078d7}@media screen and (-ms-high-contrast:active){.ms-Pivot.ms-Pivot--tabs .ms-Pivot-link.is-selected{font-weight:600}}.ms-ProgressIndicator{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;font-weight:400}.ms-ProgressIndicator-itemName{color:#333;font-size:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-top:4px;line-height:20px}.ms-ProgressIndicator-itemDescription{color:#767676;font-size:11px;line-height:18px}.ms-ProgressIndicator-itemProgress{position:relative;width:180px;height:2px;padding:8px 0}.ms-ProgressIndicator-progressTrack{position:absolute;width:100%;height:2px;background-color:#eaeaea;outline:1px solid transparent}.ms-ProgressIndicator-progressBar{background-color:#0078d7;height:2px;position:absolute;transition:width .3s ease;width:0}@media screen and (-ms-high-contrast:active){.ms-ProgressIndicator-progressBar{background-color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-ProgressIndicator-progressBar{background-color:#000}}.ms-SearchBox{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;height:36px;color:#333;font-size:14px;font-weight:400;position:relative;margin-bottom:10px;display:inline-block;overflow:hidden;background-color:#fff}.ms-SearchBox.is-active{z-index:10}.ms-SearchBox.is-active .ms-SearchBox-label{display:none}.ms-SearchBox.is-active .ms-SearchBox-clear{display:block}.ms-SearchBox:hover{background-color:#deecf9}.ms-SearchBox:hover .ms-SearchBox-label{color:#000}.ms-SearchBox:hover .ms-SearchBox-label .ms-Icon{color:#333}.ms-SearchBox.is-disabled{background-color:#f4f4f4;pointer-events:none}.ms-SearchBox.is-disabled .ms-SearchBox-icon,.ms-SearchBox.is-disabled .ms-SearchBox-label{color:#a6a6a6}.ms-SearchBox.is-disabled .ms-SearchBox-field{color:#a6a6a6;background-color:transparent;border-color:#f4f4f4;cursor:default}.ms-SearchBox-clear{display:none;position:absolute;top:0;right:0;z-index:10}.ms-SearchBox-clear .ms-CommandButton-button{background-color:#0078d7;color:#fff;height:36px}.ms-SearchBox-clear .ms-CommandButton-icon{color:#fff}.ms-SearchBox-icon{position:relative;top:50%;transform:translateY(-50%);display:inline-block;font-size:16px;width:16px;margin-left:12px;margin-right:6px;color:#0078d7;vertical-align:top}.ms-SearchBox-field{position:relative;box-sizing:border-box;margin:0;padding:0;box-shadow:none;border:1px solid #69afe5;outline:1px solid transparent;font-weight:300;font-size:14px;color:#000;height:36px;padding:6px 3px 7px 45px;width:208px;background-color:transparent;z-index:5;transition:padding-left .167s}.ms-SearchBox-field:focus{padding:6px 32px 7px 10px;border-color:#0078d7;background-color:#deecf9}.ms-SearchBox-field::-ms-clear{display:none}.ms-SearchBox-label{position:absolute;top:0;left:0;height:36px;line-height:36px;color:#666}.ms-SearchBox.ms-SearchBox--commandBar{background-color:#fff;width:208px;height:40px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-field,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-label{height:40px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-field{transition:none;border:0}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-field:focus{background-color:transparent;padding:6px 3px 7px 45px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-clear,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-exit,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-filter{display:none;position:absolute;top:0;z-index:10;color:#a6a6a6}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-clear .ms-CommandButton-button,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-exit .ms-CommandButton-button,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-filter .ms-CommandButton-button{height:40px;background-color:transparent}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-clear,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-filter{right:8px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-filter .ms-CommandButton-icon{color:#0078d7}.ms-SearchBox.ms-SearchBox--commandBar:before{position:absolute;content:" ";right:0;bottom:0;left:0;margin:0 8px;border-bottom:1px solid #eaeaea}.ms-SearchBox.ms-SearchBox--commandBar:hover{background-color:#fff}.ms-SearchBox.ms-SearchBox--commandBar:hover .ms-SearchBox-label{color:#212121}.ms-SearchBox.ms-SearchBox--commandBar:hover .ms-SearchBox-icon{color:#0078d7}.ms-SearchBox.ms-SearchBox--commandBar:focus{background-color:transparent}.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-CommandButton .ms-SearchBox-exit,.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-CommandButton .ms-SearchBox-filter{display:block}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed{width:50px;min-height:40px;z-index:0;background-color:#f4f4f4}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed .ms-SearchBox-text{display:none}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed .ms-SearchBox-field{cursor:pointer;width:calc(100% - 50px)}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed:before{visibility:hidden}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active{width:100%}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active .ms-SearchBox-field{display:block;cursor:text}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active .ms-SearchBox-text{display:inline-block}@media only screen and (max-width:639px){.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active{width:100%}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active .ms-SearchBox-clear{display:inline-block;right:58px}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active .ms-SearchBox-filter{display:inline-block}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active.is-animated{transition:width .167s cubic-bezier(.1,.9,.2,1)}}.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active:before{visibility:visible}.ms-SearchBox.ms-SearchBox--commandBar.has-text .ms-SearchBox-clear{display:inline-block}.ms-SearchBox.ms-SearchBox--commandBar.has-text .ms-SearchBox-clear .ms-CommandButton-icon{color:#a6a6a6}.ms-SearchBox.ms-SearchBox--commandBar.has-text .ms-SearchBox-clear .ms-CommandButton-icon:active{color:#0078d7}@media only screen and (min-width:1024px){.ms-SearchBox.ms-SearchBox--commandBar{background-color:#fff;border-right:1px solid #eaeaea}}@media only screen and (max-width:639px){.ms-SearchBox.ms-SearchBox--commandBar{height:44px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-exit,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-field,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-icon,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-label{height:44px;line-height:44px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-clear,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-exit,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-filter,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-icon{font-size:20px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-clear .ms-CommandButton-button,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-exit .ms-CommandButton-button,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-filter .ms-CommandButton-button,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-icon .ms-CommandButton-button{height:44px}.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-field,.ms-SearchBox.ms-SearchBox--commandBar .ms-SearchBox-label{font-size:16px}}.ms-SearchBox.ms-SearchBox--commandBar.is-active{background-color:#fff}.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-SearchBox-label{display:block;line-height:40px;height:40px}.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-SearchBox-label .ms-SearchBox-text{display:none}.ms-SearchBox.ms-SearchBox--commandBar.is-active:before{visibility:visible}@media only screen and (max-width:639px){.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-SearchBox-field{width:100%;padding-right:100px}.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-SearchBox-icon{display:none}.ms-SearchBox.ms-SearchBox--commandBar.is-active .ms-SearchBox-exit{display:inline-block}.ms-SearchBox.ms-SearchBox--commandBar.is-active.has-text .ms-SearchBox-filter .ms-CommandButton-icon{color:#a6a6a6}}.ms-Spinner{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;position:relative;height:20px}.ms-Spinner.ms-Spinner--large{height:28px}.ms-Spinner.ms-Spinner--large .ms-Spinner-label{left:34px;top:6px}.ms-Spinner-circle{position:absolute;border-radius:100px;background-color:#0078d7;opacity:0}@media screen and (-ms-high-contrast:active){.ms-Spinner-circle{background-color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Spinner-circle{background-color:#000}}.ms-Spinner-label{position:relative;font-size:12px;font-weight:400;color:#0078d7;left:28px;top:2px}.ms-Spinner-label,.ms-Table{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased}.ms-Table{display:table;width:100%;border-collapse:collapse}.ms-Table--fixed{table-layout:fixed}.ms-Table-row,.ms-Table tr{display:table-row;line-height:30px;font-weight:300;font-size:12px;color:#333}.ms-Table-row.is-selected,.ms-Table tr.is-selected{background-color:#b3d6f2}.ms-Table-row.is-selected .ms-Table-rowCheck,.ms-Table tr.is-selected .ms-Table-rowCheck{background-color:#0078d7}.ms-Table-row.is-selected .ms-Table-rowCheck:before,.ms-Table tr.is-selected .ms-Table-rowCheck:before{display:none}.ms-Table-row.is-selected .ms-Table-rowCheck:after,.ms-Table tr.is-selected .ms-Table-rowCheck:after{content:"\E73A";color:#fff}.ms-Table-cell,.ms-Table td,.ms-Table th{display:table-cell;padding:0 10px}.ms-Table-head,.ms-Table thead th{font-weight:300;font-size:11px;color:#666}.ms-Table-head .ms-Table-cell,.ms-Table-head .ms-Table-rowCheck,.ms-Table-head td,.ms-Table-head th,.ms-Table thead .ms-Table-cell,.ms-Table thead .ms-Table-rowCheck,.ms-Table thead td,.ms-Table thead th{font-weight:400;text-align:left;border-bottom:1px solid #eaeaea}.ms-Table-rowCheck{display:table-cell;width:20px;position:relative;padding:0}.ms-Table-rowCheck:after{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;speak:none;content:"\E739";color:#a6a6a6;font-size:12px;position:absolute;left:4px;top:1px}.ms-Table--selectable .ms-Table-row:hover,.ms-Table--selectable tr:hover{background-color:#f4f4f4;cursor:pointer;outline:1px solid transparent}@media screen and (-ms-high-contrast:active){.ms-Table-row.is-selected .ms-Table-rowCheck{background:none}.ms-Table-row.is-selected .ms-Table-rowCheck:before{display:block}}.ms-TextField{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;margin:0;padding:0;box-shadow:none;color:#333;font-size:14px;font-weight:400;margin-bottom:8px}.ms-TextField .ms-Label{font-size:14px;font-weight:600}.ms-TextField.is-disabled .ms-TextField-field{background-color:#f4f4f4;border-color:#f4f4f4;pointer-events:none;cursor:default}.ms-TextField.is-disabled::-webkit-input-placeholder{color:#a6a6a6}.ms-TextField.is-disabled:-moz-placeholder,.ms-TextField.is-disabled::-moz-placeholder{color:#a6a6a6}.ms-TextField.is-disabled:-ms-input-placeholder{color:#a6a6a6}.ms-TextField.is-required .ms-Label:after{content:" *";color:#a80000}.ms-TextField.is-required::-webkit-input-placeholder:after{content:" *";color:#a80000}.ms-TextField.is-required:-moz-placeholder:after,.ms-TextField.is-required::-moz-placeholder:after{content:" *";color:#a80000}.ms-TextField.is-required:-ms-input-placeholder:after{content:" *";color:#a80000}.ms-TextField.is-active{border-color:#0078d7}.ms-TextField-field{box-sizing:border-box;margin:0;padding:0;box-shadow:none;border:1px solid #c8c8c8;border-radius:0;font-weight:300;font-size:14px;color:#333;height:32px;padding:6px 12px 7px;width:100%;min-width:180px;outline:0;text-overflow:ellipsis}.ms-TextField-field:hover{border-color:#767676}.ms-TextField-field:focus{border-color:#0078d7}@media screen and (-ms-high-contrast:active){.ms-TextField-field:focus,.ms-TextField-field:hover{border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-TextField-field:focus,.ms-TextField-field:hover{border-color:#37006e}}.ms-TextField-field[disabled]{background-color:#f4f4f4;border-color:#f4f4f4;pointer-events:none;cursor:default}.ms-TextField-field::-webkit-input-placeholder{color:#666}.ms-TextField-field:-moz-placeholder,.ms-TextField-field::-moz-placeholder{color:#666}.ms-TextField-field:-ms-input-placeholder{color:#666}.ms-TextField-description{color:#767676;font-size:11px}.ms-TextField.ms-TextField--placeholder{position:relative;background-color:#fff}.ms-TextField.ms-TextField--placeholder .ms-TextField-field{position:relative;background-color:transparent;z-index:5}.ms-TextField.ms-TextField--placeholder .ms-Label{position:absolute;font-weight:300;font-size:14px;color:#666;padding:6px 12px 7px;pointer-events:none;z-index:0}.ms-TextField.ms-TextField--placeholder.is-disabled,.ms-TextField.ms-TextField--placeholder.is-disabled .ms-Label{color:#a6a6a6}.ms-TextField.ms-TextField--underlined{border-bottom:1px solid #c8c8c8;display:table;width:100%;min-width:180px}.ms-TextField.ms-TextField--underlined:hover{border-color:#767676}@media screen and (-ms-high-contrast:active){.ms-TextField.ms-TextField--underlined:hover{border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-TextField.ms-TextField--underlined:hover{border-color:#37006e}}.ms-TextField.ms-TextField--underlined:active,.ms-TextField.ms-TextField--underlined:focus{border-color:#0078d7}.ms-TextField.ms-TextField--underlined .ms-Label{font-size:14px;margin-right:8px;display:table-cell;vertical-align:top;padding-left:12px;padding-top:9px;height:32px;width:1%;white-space:nowrap}.ms-TextField.ms-TextField--underlined .ms-TextField-field{border:0;float:left;display:table-cell;text-align:left;padding-top:8px;padding-bottom:3px}.ms-TextField.ms-TextField--underlined .ms-TextField-field:active,.ms-TextField.ms-TextField--underlined .ms-TextField-field:focus,.ms-TextField.ms-TextField--underlined .ms-TextField-field:hover{outline:0}.ms-TextField.ms-TextField--underlined.is-disabled{border-bottom-color:#eaeaea}.ms-TextField.ms-TextField--underlined.is-disabled .ms-Label{color:#a6a6a6}.ms-TextField.ms-TextField--underlined.is-disabled .ms-TextField-field{background-color:transparent;color:#a6a6a6}.ms-TextField.ms-TextField--underlined.is-active{border-color:#0078d7}@media screen and (-ms-high-contrast:active){.ms-TextField.ms-TextField--underlined.is-active{border-color:#1aebff}}@media screen and (-ms-high-contrast:black-on-white){.ms-TextField.ms-TextField--underlined.is-active{border-color:#37006e}}.ms-TextField.ms-TextField--multiline .ms-TextField-field{color:#666;font-size:14px;line-height:17px;min-height:60px;min-width:260px;padding-top:6px;overflow:auto}.ms-Label,.ms-TextField.ms-TextField--multiline .ms-TextField-field{-webkit-font-smoothing:antialiased;font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;font-weight:400}.ms-Label{margin:0;padding:0;box-shadow:none;color:#333;font-size:12px;box-sizing:border-box;display:block;padding:5px 0}.ms-Label.is-required:after{content:" *";color:#a80000}.ms-Label.is-disabled{color:#a6a6a6}.ms-Toggle{font-family:Segoe UI WestEuropean,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;font-weight:400;box-sizing:border-box;margin:0;padding:0;box-shadow:none;position:relative;display:block;margin-bottom:26px}.ms-Toggle .ms-Label{position:relative;top:-2px;padding:0 0 0 50px}.ms-Toggle .ms-Toggle-field:before{position:absolute;top:3px;width:10px;height:10px;border-radius:10px;content:"";left:4px;background-color:#666;outline:1px solid transparent;transition-property:background,left;transition-duration:.25s;transition-timing-function:cubic-bezier(.4,0,.23,1)}@media screen and (-ms-high-contrast:active){.ms-Toggle .ms-Toggle-field:before{border:2.5px solid #fff;height:15px;outline:0}}@media screen and (-ms-high-contrast:black-on-white){.ms-Toggle .ms-Toggle-field:before{border-color:#000}}.ms-Toggle .ms-Toggle-field:before{right:auto}.ms-Toggle .ms-Toggle-field .ms-Label--off{display:block}.ms-Toggle .ms-Toggle-field .ms-Label--on{display:none}.ms-Toggle .ms-Toggle-field.is-selected{background-color:#0078d7;border-color:#0078d7}.ms-Toggle .ms-Toggle-field.is-selected:before{position:absolute;top:3px;width:10px;height:10px;border-radius:10px;content:"";right:4px;background-color:#666;outline:1px solid transparent;transition-property:background,left;transition-duration:.25s;transition-timing-function:cubic-bezier(.4,0,.23,1)}@media screen and (-ms-high-contrast:active){.ms-Toggle .ms-Toggle-field.is-selected:before{border:2.5px solid #fff;height:15px;outline:0}}@media screen and (-ms-high-contrast:black-on-white){.ms-Toggle .ms-Toggle-field.is-selected:before{border-color:#000}}.ms-Toggle .ms-Toggle-field.is-selected:before{background-color:#fff;left:28px}.ms-Toggle .ms-Toggle-field.is-selected .ms-Label--off{display:none}.ms-Toggle .ms-Toggle-field.is-selected .ms-Label--on{display:block}@media screen and (-ms-high-contrast:active){.ms-Toggle .ms-Toggle-field.is-selected{background-color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.ms-Toggle .ms-Toggle-field.is-selected{background-color:#000}}.ms-Toggle:focus+.ms-Toggle-field,.ms-Toggle:hover+.ms-Toggle-field{border-color:#666}.ms-Toggle:focus+.ms-Toggle-field:before,.ms-Toggle:hover+.ms-Toggle-field:before{background-color:#333}.ms-Toggle:focus:checked+.ms-Toggle-field,.ms-Toggle:hover:checked+.ms-Toggle-field{background-color:#106ebe;border-color:#106ebe}.ms-Toggle:focus:checked+.ms-Toggle-field:before,.ms-Toggle:hover:checked+.ms-Toggle-field:before{background-color:#fff}.ms-Toggle:active:checked+.ms-Toggle-field{background-color:#005a9e;border-color:#005a9e}.ms-Toggle .ms-Toggle-field:focus,.ms-Toggle .ms-Toggle-field:hover{border-color:#333}.ms-Toggle .ms-Toggle-field.is-selected:focus,.ms-Toggle .ms-Toggle-field.is-selected:hover{background-color:#106ebe;border-color:#106ebe}.ms-Toggle .ms-Toggle-field .ms-Label{color:#000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ms-Toggle .ms-Toggle-field:hover .ms-Label{color:#000}.ms-Toggle .ms-Toggle-field:active .ms-Label{color:#333}.ms-Toggle.is-disabled .ms-Label{color:#a6a6a6}.ms-Toggle.is-disabled .ms-Toggle-field{background-color:#fff;border-color:#c8c8c8;pointer-events:none;cursor:default}.ms-Toggle.is-disabled .ms-Toggle-field:before{background-color:#c8c8c8}@media screen and (-ms-high-contrast:active){.ms-Toggle.is-disabled .ms-Toggle-field,.ms-Toggle.is-disabled .ms-Toggle-field:before{border-color:#0f0}}@media screen and (-ms-high-contrast:black-on-white){.ms-Toggle.is-disabled .ms-Toggle-field,.ms-Toggle.is-disabled .ms-Toggle-field:before{border-color:#600000}}.ms-Toggle-description{position:relative;font-size:14px;vertical-align:top;display:block;margin-bottom:8px}.ms-Toggle-field{position:relative;display:inline-block;width:45px;height:20px;box-sizing:border-box;border:2px solid #a6a6a6;border-radius:20px;cursor:pointer;transition-property:background,left,border-color;transition-duration:.25s;transition-timing-function:cubic-bezier(.4,0,.23,1);outline:0}.ms-Toggle-field:focus,.ms-Toggle-field:hover{border-color:#666}.ms-Toggle-input{display:none}.ms-Toggle.ms-Toggle--textLeft{width:225px;margin-bottom:40px}.ms-Toggle.ms-Toggle--textLeft .ms-Toggle-description{display:inline-block;max-width:150px;top:-3px;margin-bottom:0}.ms-Toggle.ms-Toggle--textLeft .ms-Toggle-field{float:right} \ No newline at end of file diff --git a/media/css/msteamsstyle.css b/media/css/msteamsstyle.css index 5d29c4b..e2a523f 100644 --- a/media/css/msteamsstyle.css +++ b/media/css/msteamsstyle.css @@ -89,6 +89,10 @@ a.ac-anchor { text-decoration: none; } +a.ac-textBlock { + color: slategray !important; +} + a.ac-anchor:link { color: slategray; } @@ -122,8 +126,7 @@ a.ac-anchor:visited:active { text-overflow: ellipsis; text-align: center; vertical-align: middle; - cursor: default; - font-family: "Segoe UI", sans-serif; + font-family: "Open Sans", sans-serif; font-size: 14px; padding: 4px 10px 5px 10px; -webkit-user-select: none; @@ -133,31 +136,32 @@ a.ac-anchor:visited:active { height: 34px; background-color: transparent; color: white; - border: 2px solid #6165A4; + border: 2px solid slategray; border-radius: 4px; + cursor:pointer; } .ac-pushButton:hover { - background-color: #6165A4; + background-color: #2D2B2C; border: 2px solid #A7A8DA; - color: black; + color: white; } .ac-pushButton:active { - background-color: #6165A4; + background-color: #2D2B2C; border: 2px solid #A7A8DA; - color: black; + color: white; } .ac-pushButton.expanded { - background-color: #6165A4; + background-color: slategray; border: 2px solid #A7A8DA; color: black; } .ac-pushButton.style-emphasis { - background-color: #6264A7; - border: 2px solid #6264A7; + background-color: slategray; + border: 2px solid slategray; color: white; } diff --git a/media/js/adaptivecards-fabric.js b/media/js/adaptivecards-fabric.js new file mode 100644 index 0000000..5e9668a --- /dev/null +++ b/media/js/adaptivecards-fabric.js @@ -0,0 +1,1041 @@ +var ACFabric = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./src/actions/ActionButton.tsx": +/*!**************************************!*\ + !*** ./src/actions/ActionButton.tsx ***! + \**************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var office_ui_fabric_react_1 = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +exports.ActionButton = function (props) { return (props.iconUrl ? + React.createElement(office_ui_fabric_react_1.CompoundButton, { className: props.className }, + React.createElement("div", { style: { + display: "flex", + flexDirection: props.iconPlacement === AC.ActionIconPlacement.LeftOfTitle ? "row" : "column", + justifyContent: "center", + } }, + React.createElement("img", { src: props.iconUrl, style: { + alignSelf: "center", + width: props.iconSize, + height: props.iconSize, + flex: "0 0 auto", + } }), + React.createElement("span", { style: { alignSelf: "center" } }, props.text))) : + React.createElement(office_ui_fabric_react_1.PrimaryButton, { className: props.className, text: props.text })); }; + + +/***/ }), + +/***/ "./src/actions/Actions.tsx": +/*!*********************************!*\ + !*** ./src/actions/Actions.tsx ***! + \*********************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var ReactDOM = __webpack_require__(/*! react-dom */ "react-dom"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var Shared = __webpack_require__(/*! ../utils/shared */ "./src/utils/shared.tsx"); +var ActionButton_1 = __webpack_require__(/*! ./ActionButton */ "./src/actions/ActionButton.tsx"); +exports.createActionDiv = function (title, iconUrl, baseCssClass, iconPlacement, iconSize) { + var div = Shared.getDiv(); + ReactDOM.render(React.createElement(ActionButton_1.ActionButton, { text: title, className: baseCssClass, iconUrl: iconUrl, iconPlacement: iconPlacement, iconSize: iconSize }), div); + return div; +}; +var OpenUrlActionFabric = /** @class */ (function (_super) { + __extends(OpenUrlActionFabric, _super); + function OpenUrlActionFabric() { + return _super !== null && _super.apply(this, arguments) || this; + } + Object.defineProperty(OpenUrlActionFabric.prototype, "renderedElement", { + get: function () { + return this.internalRenderedElement; + }, + enumerable: true, + configurable: true + }); + OpenUrlActionFabric.prototype.render = function (baseCssClass) { + var actionsConfig = this.parent.hostConfig.actions; + var div = exports.createActionDiv(this.title, this.iconUrl, baseCssClass, actionsConfig.iconPlacement, actionsConfig.iconSize); + this.internalRenderedElement = div; + }; + return OpenUrlActionFabric; +}(AC.OpenUrlAction)); +exports.OpenUrlActionFabric = OpenUrlActionFabric; +var SubmitActionFabric = /** @class */ (function (_super) { + __extends(SubmitActionFabric, _super); + function SubmitActionFabric() { + return _super !== null && _super.apply(this, arguments) || this; + } + Object.defineProperty(SubmitActionFabric.prototype, "renderedElement", { + get: function () { + return this.internalRenderedElement; + }, + enumerable: true, + configurable: true + }); + SubmitActionFabric.prototype.render = function (baseCssClass) { + var actionsConfig = this.parent.hostConfig.actions; + var div = exports.createActionDiv(this.title, this.iconUrl, baseCssClass, actionsConfig.iconPlacement, actionsConfig.iconSize); + this.internalRenderedElement = div; + }; + return SubmitActionFabric; +}(AC.SubmitAction)); +exports.SubmitActionFabric = SubmitActionFabric; +var ShowCardActionFabric = /** @class */ (function (_super) { + __extends(ShowCardActionFabric, _super); + function ShowCardActionFabric() { + return _super !== null && _super.apply(this, arguments) || this; + } + Object.defineProperty(ShowCardActionFabric.prototype, "renderedElement", { + get: function () { + return this.internalRenderedElement; + }, + enumerable: true, + configurable: true + }); + ShowCardActionFabric.prototype.render = function (baseCssClass) { + var actionsConfig = this.parent.hostConfig.actions; + var div = exports.createActionDiv(this.title, this.iconUrl, baseCssClass, actionsConfig.iconPlacement, actionsConfig.iconSize); + this.internalRenderedElement = div; + }; + return ShowCardActionFabric; +}(AC.ShowCardAction)); +exports.ShowCardActionFabric = ShowCardActionFabric; +var ToggleVisibilityActionFabric = /** @class */ (function (_super) { + __extends(ToggleVisibilityActionFabric, _super); + function ToggleVisibilityActionFabric() { + return _super !== null && _super.apply(this, arguments) || this; + } + Object.defineProperty(ToggleVisibilityActionFabric.prototype, "renderedElement", { + get: function () { + return this.internalRenderedElement; + }, + enumerable: true, + configurable: true + }); + ToggleVisibilityActionFabric.prototype.render = function (baseCssClass) { + var div = Shared.getDiv(); + ReactDOM.render(React.createElement(ActionButton_1.ActionButton, { text: this.title, className: baseCssClass }), div); + this.internalRenderedElement = div; + }; + return ToggleVisibilityActionFabric; +}(AC.ToggleVisibilityAction)); +exports.ToggleVisibilityActionFabric = ToggleVisibilityActionFabric; + + +/***/ }), + +/***/ "./src/actions/index.ts": +/*!******************************!*\ + !*** ./src/actions/index.ts ***! + \******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(__webpack_require__(/*! ./Actions */ "./src/actions/Actions.tsx")); + + +/***/ }), + +/***/ "./src/components/Fabric.tsx": +/*!***********************************!*\ + !*** ./src/components/Fabric.tsx ***! + \***********************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +Object.defineProperty(exports, "__esModule", { value: true }); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var office_ui_fabric_react_1 = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var Components = __webpack_require__(/*! . */ "./src/components/index.ts"); +var Actions = __webpack_require__(/*! ../actions */ "./src/actions/index.ts"); +var iconsInitialized = false; +exports.useFabricComponents = function () { + if (!iconsInitialized) { + office_ui_fabric_react_1.initializeIcons(); + iconsInitialized = true; + } + // add component extensions + AC.AdaptiveCard.elementTypeRegistry.registerType("Input.Date", function () { return new Components.InputDateFabric(); }); + AC.AdaptiveCard.elementTypeRegistry.registerType("Input.Text", function () { return new Components.InputTextFabric(); }); + AC.AdaptiveCard.elementTypeRegistry.registerType("Input.Time", function () { return new Components.InputTimeFabric(); }); + AC.AdaptiveCard.elementTypeRegistry.registerType("Input.Number", function () { return new Components.InputNumberFabric(); }); + AC.AdaptiveCard.elementTypeRegistry.registerType("Input.Toggle", function () { return new Components.InputToggleFabric(); }); + AC.AdaptiveCard.elementTypeRegistry.registerType("Input.ChoiceSet", function () { return new Components.InputChoiceSetFabric(); }); + // add actions extensions + AC.AdaptiveCard.actionTypeRegistry.registerType("Action.OpenUrl", function () { return new Actions.OpenUrlActionFabric(); }); + AC.AdaptiveCard.actionTypeRegistry.registerType("Action.Submit", function () { return new Actions.SubmitActionFabric(); }); + AC.AdaptiveCard.actionTypeRegistry.registerType("Action.ShowCard", function () { return new Actions.ShowCardActionFabric(); }); + AC.AdaptiveCard.actionTypeRegistry.registerType("Action.ToggleVisibility", function () { return new Actions.ToggleVisibilityActionFabric(); }); +}; + + +/***/ }), + +/***/ "./src/components/index.ts": +/*!*********************************!*\ + !*** ./src/components/index.ts ***! + \*********************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(__webpack_require__(/*! ./inputs */ "./src/components/inputs/index.ts")); +__export(__webpack_require__(/*! ./Fabric */ "./src/components/Fabric.tsx")); + + +/***/ }), + +/***/ "./src/components/inputs/InputChoiceSetFabric.tsx": +/*!********************************************************!*\ + !*** ./src/components/inputs/InputChoiceSetFabric.tsx ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var FabricUI = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var Shared = __webpack_require__(/*! ../../utils/shared */ "./src/utils/shared.tsx"); +var InputChoiceSetFabric = /** @class */ (function (_super) { + __extends(InputChoiceSetFabric, _super); + function InputChoiceSetFabric() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.selectedValues = []; + _this.parse = function (json, errors) { + _super.prototype.parse.call(_this, json, errors); + _this.value = _this.defaultValue; + _this.selectedValues = _this.defaultValueToArray(_this.value); + _this.isMultiSelect = AC.getBoolValue(json.isMultiSelect, false); + _this.title = AC.getStringValue(json.title); + _this.style = AC.getStringValue(json.style); + _this.parseChoises(json); + }; + _this.renderReact = function () { return (_this.isCompact() ? + React.createElement(_this.ComboBox, null) : + _this.createExpandedView()); }; + _this.getJsonTypeName = function () { return "Input.ChoiceSet"; }; + _this.toJSON = function () { + var result = _super.prototype.toJSON.call(_this); + if (_this.choices.length > 0) { + AC.setProperty(result, "choices", _this.choices.map(function (ch) { return ch.toJSON(); })); + } + if (!_this.isCompact()) { + AC.setProperty(result, "style", "expanded", false); + } + AC.setProperty(result, "isMultiSelect", _this.isMultiSelect, false); + return result; + }; + _this.parseChoises = function (json) { + _this.choices = Array.isArray(json.choices) ? + json.choices.map(function (ch) { + var choice = new AC.Choice(); + choice.parse(ch); + return choice; + }) : + []; + }; + _this.isCompact = function () { return _this.style === "compact"; }; + _this.ComboBox = function () { return (React.createElement(FabricUI.ComboBox, { onChange: _this.handleComboBoxChange, id: _this.id, options: _this.inputChoicesToComboBoxOptions(_this.choices), multiSelect: _this.isMultiSelect, selectedKey: _this.defaultValueToArray(_this.value) })); }; + _this.createExpandedView = function () { + return _this.isMultiSelect ? + _this.inputChoicesToCheckbox() : + _this.createChoiceGroup(); + }; + _this.createChoiceGroup = function () { return (React.createElement(FabricUI.ChoiceGroup, { id: _this.id, onChange: _this.handleChoiceGroupChange, options: _this.inputChoicesToChoiceGroupOptions(_this.choices, _this.defaultValueToArray(_this.value)), multiple: _this.isMultiSelect })); }; + _this.inputChoicesToCheckbox = function () { return (React.createElement(React.Fragment, null, _this.choices.map(function (c, i) { + return React.createElement(FabricUI.Checkbox, { key: c.value, label: c.title, defaultChecked: _this.defaultValueToArray(_this.value).includes(c.value), onChange: function (ev, checked) { + _this.updateMultiselectData(checked, c.value); + ev.stopPropagation(); + ev.preventDefault(); + }, styles: { + root: { + paddingTop: i > 0 ? _this.hostConfig.spacing.default : 0, + }, + } }); + }))); }; + _this.defaultValueToArray = function (value) { + if (value) { + return value.split(","); + } + return []; + }; + _this.inputChoicesToComboBoxOptions = function (choices) { + return choices.map(function (c) { return ({ key: c.value, text: c.title }); }); + }; + _this.inputChoicesToChoiceGroupOptions = function (choices, value) { + return choices.map(function (c) { return ({ key: c.value, text: c.title, checked: value.includes(c.value) }); }); + }; + _this.handleChoiceGroupChange = function (ev, option) { + _this.value = option.key; + ev.stopPropagation(); + ev.preventDefault(); + }; + _this.handleComboBoxChange = function (event, option, index, value) { + if (_this.isMultiSelect) { + _this.updateMultiselectData(option.selected, option.key); + } + else { + _this.value = "" + option.key; + } + event.stopPropagation(); + event.preventDefault(); + }; + _this.updateMultiselectData = function (selected, key) { + _this.updateSelectedValues(selected, key); + _this.value = _this.selectedValues.join(","); + }; + _this.updateSelectedValues = function (selected, key) { + selected ? _this.selectedValues.push(key) : _this.removeItemFromArray(_this.selectedValues, key); + }; + _this.removeItemFromArray = function (arr, item) { + var index = arr.indexOf(item); + arr.splice(index, 1); + }; + return _this; + } + return InputChoiceSetFabric; +}(Shared.ReactInputElement)); +exports.InputChoiceSetFabric = InputChoiceSetFabric; + + +/***/ }), + +/***/ "./src/components/inputs/InputDateFabric.tsx": +/*!***************************************************!*\ + !*** ./src/components/inputs/InputDateFabric.tsx ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var FabricUI = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var Shared = __webpack_require__(/*! ../../utils/shared */ "./src/utils/shared.tsx"); +var InputDateFabric = /** @class */ (function (_super) { + __extends(InputDateFabric, _super); + function InputDateFabric() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.renderReact = function () { + return _this.buildDatePicker(); + }; + _this.getJsonTypeName = function () { return "Input.Date"; }; + _this.parse = function (json, errors) { + _super.prototype.parse.call(_this, json, errors); + _this.placeholder = AC.getStringValue(json.placeholder); + _this.parseDates(json, errors); + }; + _this.toJSON = function () { + var result = _super.prototype.toJSON.call(_this); + AC.setProperty(result, "min", _this.minDate); + AC.setProperty(result, "max", _this.maxDate); + AC.setProperty(result, "placeholder", _this.placeholder); + return result; + }; + _this.parseDates = function (json, errors) { + _this.value = _this.defaultValue; + _this.date = _this.value ? _this.getDate(_this.value) : new Date(); + _this.minDate = json.min ? _this.getDate(AC.getStringValue(json.min)) : undefined; + _this.maxDate = json.max ? _this.getDate(AC.getStringValue(json.max)) : undefined; + }; + _this.getDate = function (dateString, errors) { + try { + return new Date(dateString); + } + catch (error) { + Shared.raiseParseError({ + error: AC.ValidationError.InvalidPropertyValue, + message: error, + }, errors); + return undefined; + } + }; + _this.buildDatePicker = function () { + return (React.createElement(FabricUI.DatePicker, { id: _this.id, onSelectDate: _this.handleSelectDate, value: _this.date, placeholder: _this.placeholder, allowTextInput: true, minDate: _this.minDate, maxDate: _this.maxDate })); + }; + _this.handleSelectDate = function (date) { + _this.value = date.toLocaleDateString("en-US"); + }; + return _this; + } + return InputDateFabric; +}(Shared.ReactInputElement)); +exports.InputDateFabric = InputDateFabric; + + +/***/ }), + +/***/ "./src/components/inputs/InputNumberFabric.tsx": +/*!*****************************************************!*\ + !*** ./src/components/inputs/InputNumberFabric.tsx ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var FabricUI = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var Shared = __webpack_require__(/*! ../../utils/shared */ "./src/utils/shared.tsx"); +var InputNumberFabric = /** @class */ (function (_super) { + __extends(InputNumberFabric, _super); + function InputNumberFabric() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.parse = function (json, errors) { + _super.prototype.parse.call(_this, json, errors); + _this.value = _this.defaultValue; + _this.min = Shared.getIntValue(json.min); + _this.max = Shared.getIntValue(json.max); + _this.placeholder = AC.getStringValue(json.placeholder); + }; + _this.renderReact = function () { return (React.createElement(FabricUI.TextField, { id: _this.id, placeholder: "" + _this.placeholder, value: "" + _this.defaultValue, type: "number", max: _this.max, min: _this.min, onChange: _this.handleChange })); }; + _this.getJsonTypeName = function () { return "Input.Number"; }; + _this.toJSON = function () { + var result = _super.prototype.toJSON.call(_this); + AC.setProperty(result, "placeholder", _this.placeholder); + AC.setProperty(result, "min", _this.min); + AC.setProperty(result, "max", _this.max); + return result; + }; + return _this; + } + return InputNumberFabric; +}(Shared.ReactInputElement)); +exports.InputNumberFabric = InputNumberFabric; + + +/***/ }), + +/***/ "./src/components/inputs/InputTextFabric.tsx": +/*!***************************************************!*\ + !*** ./src/components/inputs/InputTextFabric.tsx ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var office_ui_fabric_react_1 = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var Shared = __webpack_require__(/*! ../../utils/shared */ "./src/utils/shared.tsx"); +var InputTextFabric = /** @class */ (function (_super) { + __extends(InputTextFabric, _super); + function InputTextFabric() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.style = AC.InputTextStyle.Text; + _this.renderReact = function () { + return _this.buildInput(); + }; + _this.getJsonTypeName = function () { return "Input.Text"; }; + _this.parse = function (json, errors) { + _super.prototype.parse.call(_this, json, errors); + _this.value = _this.defaultValue; + _this.isMultiline = AC.getBoolValue(json.isMultiline, false); + _this.maxLength = Shared.getIntValue(json.maxLength); + _this.placeholder = AC.getStringValue(json.placeholder); + _this.label = AC.getStringValue(json.label); + _this.style = AC.getEnumValue(AC.InputTextStyle, json.style, AC.InputTextStyle.Text); + _this.inlineAction = AC.createActionInstance(_this, json.inlineAction, [AC.ShowCardAction.JsonTypeName], false, errors); + }; + _this.toJSON = function () { + var result = _super.prototype.toJSON.call(_this); + AC.setProperty(result, "placeholder", _this.placeholder); + AC.setProperty(result, "maxLength", _this.maxLength, 0); + AC.setProperty(result, "isMultiline", _this.isMultiline, false); + AC.setEnumProperty(AC.InputTextStyle, result, "style", _this.style, AC.InputTextStyle.Text); + if (_this.inlineAction) { + AC.setProperty(result, "inlineAction", _this.inlineAction.toJSON()); + } + return result; + }; + _this.buildInput = function () { + return (React.createElement(office_ui_fabric_react_1.TextField, { id: _this.id, type: AC.InputTextStyle[_this.style].toLowerCase(), value: _this.defaultValue, multiline: _this.isMultiline, maxLength: _this.maxLength, placeholder: _this.placeholder, label: _this.label, onChange: _this.handleChange, onKeyDown: _this.handleKeyDown })); + }; + _this.handleKeyDown = function (e) { + // Enter pressed + if (e.keyCode === 13 && _this.inlineAction) { + _this.inlineAction.execute(); + } + }; + return _this; + } + return InputTextFabric; +}(Shared.ReactInputElement)); +exports.InputTextFabric = InputTextFabric; + + +/***/ }), + +/***/ "./src/components/inputs/InputTimeFabric.tsx": +/*!***************************************************!*\ + !*** ./src/components/inputs/InputTimeFabric.tsx ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var FabricUI = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var Shared = __webpack_require__(/*! ../../utils/shared */ "./src/utils/shared.tsx"); +var InputTimeFabric = /** @class */ (function (_super) { + __extends(InputTimeFabric, _super); + function InputTimeFabric() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.parse = function (json, errors) { + _super.prototype.parse.call(_this, json, errors); + _this.value = _this.defaultValue; + _this.placeholder = AC.getStringValue(json.placeholder); + _this.min = AC.getStringValue(json.min); + _this.max = AC.getStringValue(json.max); + }; + _this.renderReact = function () { + return (React.createElement(FabricUI.TextField, { id: _this.id, placeholder: "" + _this.placeholder, value: "" + _this.defaultValue, type: "time", onChange: _this.handleChange, max: _this.max, min: _this.min })); + }; + _this.getJsonTypeName = function () { return "Input.Time"; }; + _this.toJSON = function () { + var result = _super.prototype.toJSON.call(_this); + AC.setProperty(result, "min", _this.min); + AC.setProperty(result, "max", _this.max); + return result; + }; + return _this; + } + return InputTimeFabric; +}(Shared.ReactInputElement)); +exports.InputTimeFabric = InputTimeFabric; + + +/***/ }), + +/***/ "./src/components/inputs/InputToggleFabric.tsx": +/*!*****************************************************!*\ + !*** ./src/components/inputs/InputToggleFabric.tsx ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var FabricUI = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +var Shared = __webpack_require__(/*! ../../utils/shared */ "./src/utils/shared.tsx"); +var InputToggleFabric = /** @class */ (function (_super) { + __extends(InputToggleFabric, _super); + function InputToggleFabric() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.parse = function (json, errors) { + _super.prototype.parse.call(_this, json, errors); + _this.value = _this.defaultValue; + _this.valueOn = AC.getStringValue(json.valueOn); + _this.valueOff = AC.getStringValue(json.valueOff); + _this.title = AC.getStringValue(json.title); + }; + _this.renderReact = function () { return (React.createElement(FabricUI.Toggle, { id: _this.id, inlineLabel: true, onChange: _this.handleToggleChange, defaultChecked: _this.defaultValue === _this.valueOn, label: _this.title, styles: { + root: { + marginBottom: 0, + marginTop: 0, + }, + } })); }; + _this.getJsonTypeName = function () { return "Input.Toggle"; }; + _this.toJSON = function () { + var result = _super.prototype.toJSON.call(_this); + AC.setProperty(result, "valueOn", _this.valueOn, "true"); + AC.setProperty(result, "valueOff", _this.valueOff, "false"); + return result; + }; + _this.handleToggleChange = function (event, checked) { + _this.value = checked ? _this.valueOn : _this.valueOff; + }; + return _this; + } + return InputToggleFabric; +}(Shared.ReactInputElement)); +exports.InputToggleFabric = InputToggleFabric; + + +/***/ }), + +/***/ "./src/components/inputs/index.ts": +/*!****************************************!*\ + !*** ./src/components/inputs/index.ts ***! + \****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(__webpack_require__(/*! ./InputChoiceSetFabric */ "./src/components/inputs/InputChoiceSetFabric.tsx")); +__export(__webpack_require__(/*! ./InputDateFabric */ "./src/components/inputs/InputDateFabric.tsx")); +__export(__webpack_require__(/*! ./InputNumberFabric */ "./src/components/inputs/InputNumberFabric.tsx")); +__export(__webpack_require__(/*! ./InputTextFabric */ "./src/components/inputs/InputTextFabric.tsx")); +__export(__webpack_require__(/*! ./InputTimeFabric */ "./src/components/inputs/InputTimeFabric.tsx")); +__export(__webpack_require__(/*! ./InputToggleFabric */ "./src/components/inputs/InputToggleFabric.tsx")); + + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(__webpack_require__(/*! ./components */ "./src/components/index.ts")); +__export(__webpack_require__(/*! ./actions */ "./src/actions/index.ts")); +__export(__webpack_require__(/*! ./utils/shared */ "./src/utils/shared.tsx")); + + +/***/ }), + +/***/ "./src/utils/shared.tsx": +/*!******************************!*\ + !*** ./src/utils/shared.tsx ***! + \******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(/*! react */ "react"); +var ReactDOM = __webpack_require__(/*! react-dom */ "react-dom"); +var AC = __webpack_require__(/*! adaptivecards */ "adaptivecards"); +var office_ui_fabric_react_1 = __webpack_require__(/*! office-ui-fabric-react */ "office-ui-fabric-react"); +exports.getDiv = function () { return document.createElement("div"); }; +var sharedInternalRender = function (renderReact) { + var div = exports.getDiv(); + ReactDOM.render(renderReact(), div); + return div; +}; +var ReactCardElement = /** @class */ (function (_super) { + __extends(ReactCardElement, _super); + function ReactCardElement() { + return _super !== null && _super.apply(this, arguments) || this; + } + ReactCardElement.prototype.internalRender = function () { + return sharedInternalRender(this.renderReact); + }; + return ReactCardElement; +}(AC.CardElement)); +exports.ReactCardElement = ReactCardElement; +var ReactCardElementContainer = /** @class */ (function (_super) { + __extends(ReactCardElementContainer, _super); + function ReactCardElementContainer() { + return _super !== null && _super.apply(this, arguments) || this; + } + ReactCardElementContainer.prototype.internalRender = function () { + return sharedInternalRender(this.renderReact); + }; + return ReactCardElementContainer; +}(AC.Container)); +exports.ReactCardElementContainer = ReactCardElementContainer; +var inlineButtonRootStyle = { + marginLeft: 8, +}; +var ReactInputElement = /** @class */ (function (_super) { + __extends(ReactInputElement, _super); + function ReactInputElement() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.handleChange = function (event, newValue) { + _this._value = newValue; + }; + _this.buildInlineActionButton = function () { + return sharedInternalRender(AC.isNullOrEmpty(_this.inlineAction.iconUrl) ? + _this.buildTextOnlyInlineActionActionButton : + _this.inlineIconActionButton); + }; + _this.inlineActionClickHandler = function (e) { + e.stopPropagation(); + e.preventDefault(); + _this._inlineAction.execute(); + }; + _this.inlineIconActionButton = function () { return (React.createElement(office_ui_fabric_react_1.IconButton, { default: true, text: _this._inlineAction.title, className: _this.hostConfig.makeCssClassName("ac-inlineActionButton", "iconOnly"), styles: { + icon: { + height: "100%", + }, + root: inlineButtonRootStyle, + }, iconProps: { + iconType: office_ui_fabric_react_1.IconType.image, + imageProps: { + height: "100%", + src: _this._inlineAction.iconUrl, + }, + }, onClick: _this.inlineActionClickHandler })); }; + _this.buildTextOnlyInlineActionActionButton = function () { return (React.createElement(office_ui_fabric_react_1.PrimaryButton, { className: _this.hostConfig.makeCssClassName("ac-inlineActionButton", "textOnly"), text: _this._inlineAction.title, onClick: _this.inlineActionClickHandler, styles: { + root: inlineButtonRootStyle, + } })); }; + return _this; + } + ReactInputElement.prototype.internalRender = function () { + var element = sharedInternalRender(this.renderReact); + element.style.width = "100%"; + return element; + }; + ReactInputElement.prototype.overrideInternalRender = function () { + var inputControl = _super.prototype.overrideInternalRender.call(this); + if (this._inlineAction) { + this.inputControlContainerElement.appendChild(this.buildInlineActionButton()); + } + return inputControl; + }; + Object.defineProperty(ReactInputElement.prototype, "value", { + get: function () { + return this._value; + }, + set: function (value) { + this._value = value; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(ReactInputElement.prototype, "inlineAction", { + get: function () { + return this._inlineAction; + }, + set: function (action) { + this._inlineAction = action; + if (this._inlineAction) { + this._inlineAction.setParent(this); + } + }, + enumerable: true, + configurable: true + }); + return ReactInputElement; +}(AC.Input)); +exports.ReactInputElement = ReactInputElement; +exports.raiseParseError = function (error, errors) { + if (errors) { + errors.push(error); + } + if (AC.AdaptiveCard.onParseError != null) { + AC.AdaptiveCard.onParseError(error); + } +}; +exports.getIntValue = function (val, errors, defaultValue) { + if (defaultValue === void 0) { defaultValue = undefined; } + try { + return val ? parseInt(val, 10) : defaultValue; + } + catch (error) { + exports.raiseParseError({ + error: AC.ValidationError.InvalidPropertyValue, + message: error, + }, errors); + } +}; + + +/***/ }), + +/***/ "adaptivecards": +/*!********************************!*\ + !*** external "AdaptiveCards" ***! + \********************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +module.exports = AdaptiveCards; + +/***/ }), + +/***/ "office-ui-fabric-react": +/*!*************************!*\ + !*** external "fabric" ***! + \*************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +module.exports = fabric; + +/***/ }), + +/***/ "react": +/*!************************!*\ + !*** external "React" ***! + \************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +module.exports = React; + +/***/ }), + +/***/ "react-dom": +/*!***************************!*\ + !*** external "ReactDOM" ***! + \***************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +module.exports = ReactDOM; + +/***/ }) + +/******/ }); +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BQ0ZhYnJpYy93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9BQ0ZhYnJpYy8uL3NyYy9hY3Rpb25zL0FjdGlvbkJ1dHRvbi50c3giLCJ3ZWJwYWNrOi8vQUNGYWJyaWMvLi9zcmMvYWN0aW9ucy9BY3Rpb25zLnRzeCIsIndlYnBhY2s6Ly9BQ0ZhYnJpYy8uL3NyYy9hY3Rpb25zL2luZGV4LnRzIiwid2VicGFjazovL0FDRmFicmljLy4vc3JjL2NvbXBvb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BzIHtcclxuICAgIHRleHQ6IHN0cmluZztcclxuICAgIGNsYXNzTmFtZT86IHN0cmluZztcclxuICAgIGljb25Vcmw/OiBzdHJpbmc7XHJcbiAgICBpY29uUGxhY2VtZW50PzogQUMuQWN0aW9uSWNvblBsYWNlbWVudDtcclxuICAgIGljb25TaXplPzogbnVtYmVyO1xyXG59XHJcblxyXG5leHBvcnQgY29uc3QgQWN0aW9uQnV0dG9uID0gKHByb3BzOiBBY3Rpb25CdXR0b25Qcm9wcykgPT4gKFxyXG4gICAgcHJvcHMuaWNvblVybCA/XHJcbiAgICAgICAgPENvbXBvdW5kQnV0dG9uIGNsYXNzTmFtZT17cHJvcHMuY2xhc3NOYW1lfSA+XHJcbiAgICAgICAgICAgIDxkaXYgc3R5bGU9e1xyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxyXG4gICAgICAgICAgICAgICAgICAgIGZsZXhEaXJlY3Rpb246IHByb3BzLmljb25QbGFjZW1lbnQgPT09IEFDLkFjdGlvbkljb25QbGFjZW1lbnQuTGVmdE9mVGl0bGUgPyBcInJvd1wiIDogXCJjb2x1bW5cIixcclxuICAgICAgICAgICAgICAgICAgICBqdXN0aWZ5Q29udGVudDogXCJjZW50ZXJcIixcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfT48aW1nIHNyYz17cHJvcHMuaWNvblVybH1cclxuICAgICAgICAgICAgICAgIHN0eWxlPXtcclxuICAgICAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWduU2VsZjogXCJjZW50ZXJcIixcclxuICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IHByb3BzLmljb25TaXplLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IHByb3BzLmljb25TaXplLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmbGV4OiBcIjAgMCBhdXRvXCIsXHJcbi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IG11bHRpcGxlPXt0aGlzLmlzTXVsdGlTZWxlY3R9XHJcbiAgICAgICAgLz5cclxuICAgIClcclxuXHJcbiAgICBwcml2YXRlIGlucHV0Q2hvaWNlc1RvQ2hlY2tib3ggPSAoKTogSlNYLkVsZW1lbnQgPT4gKFxyXG4gICAgICAgIDxSZWFjdC5GcmFnbWVudD5cclxuICAgICAgICAgICAge3RoaXMuY2hvaWNlcy5tYXAoKGMsIGkpID0+XHJcbiAgICAgICAgICAgICAgICA8RmFicmljVUkuQ2hlY2tib3hcclxuICAgICAgICAgICAgICAgICAgICBrZXk9e2MudmFsdWV9XHJcbiAgICAgICAgICAgICAgICAgICAgbGFiZWw9e2MudGl0bGV9XHJcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdENoZWNrZWQ9e3RoaXMuZGVmYXVsdFZhbHVlVG9BcnJheSh0aGlzLnZhbHVlKS5pbmNsdWRlcyhjLnZhbHVlKX1cclxuICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZT17KGV2LCBjaGVja2VkKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlTXVsdGlzZWxlY3REYXRhKGNoZWNrZWQsIGMudmFsdWUpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBldi5zdG9wUHJvcGFnYXRpb24oKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgZXYucHJldmVudERlZmF1bHQoKTtcclxuICAgICAgICAgICAgICAgICAgICB9fVxyXG4gICAgICAgICAgICAgICAgICAgIHN0eWxlcz17e1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByb290OiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nVG9wOiBpID4gMCA/IHRoaXMuaG9zdENvbmZpZy5zcGFjaW5nLmRlZmF1bHQgOiAwLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgICAgIH19XHJcbiAgICAgICAgICAgICAgICAvPix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hcmVkLlJlYWN0SW5wdXRFbGVtZW50IHtcclxuXHJcbiAgICBwcml2YXRlIHZhbHVlT246IHN0cmluZztcclxuICAgIHByaXZhdGUgdmFsdWVPZmY6IHN0cmluZztcclxuXHJcbiAgICBwdWJsaWMgcGFyc2UgPSAoanNvbjogYW55LCBlcnJvcnM/OiBBQy5JVmFsaWRhdGlvbkVycm9yW10pID0+IHtcclxuICAgICAgICBzdXBlci5wYXJzZShqc29uLCBlcnJvcnMpO1xyXG4gICAgICAgIHRoaXMudmFsdWUgPSB0aGlzLmRlZmF1bHRWYWx1ZTtcclxuICAgICAgICB0aGlzLnZhbHVlT24gPSBBQy5nZXRTdHJpbmdWYWx1ZShqc29uLnZhbHVlT24pO1xyXG4gICAgICAgIHRoaXMudmFsdWVPZmYgPSBBQy5nZXRTdHJpbmdWYWx1ZShqc29uLnZhbHVlT2ZmKTtcclxuICAgICAgICB0aGlzLnRpdGxlID0gQUMuZ2V0U3RyaW5nVmFsdWUoanNvbi50aXRsZSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJvdGVjdGVkIHJlbmRlclJlYWN0ID0gKCk6IEpTWC5FbGVtZW50ID0+IChcclxuICAgICAgICA8RmFicmljVUkuVG9nZ2xlXHJcbiAgICAgICAgICAgIGlkPXt0aGlzLmlkfVxyXG4gICAgICAgICAgICBpbmxpbmVMYWJlbD17dHJ1ZX1cclxuICAgICAgICAgICAgb25DaGFuZ2U9e3RoaXMuaGFuZGxlVG9nZ2xlQ2hhbmdlfVxyXG4gICAgICAgICAgICBkZWZhdWx0Q2hlY2tlZD17dGhpcy5kZWZhdWx0VmFsdWUgPT09IHRoaXMudmFsdWVPbn1cclxuICAgICAgICAgICAgbGFiZWw9e3RoaXMudGl0bGV9XHJcbiAgICAgICAgICAgIHN0eWxlcz17e1xyXG4gICAgICAgICAgICAgICAgcm9vdDoge1xyXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbkJvdHRvbTogMCxcclxuICAgICAgICAgICAgICAgICAgIC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W9uQnV0dG9uID0gKCk6IEpTWC5FbGVtZW50ID0+IChcclxuICAgICAgICA8SWNvbkJ1dHRvblxyXG4gICAgICAgICAgICBkZWZhdWx0PXt0cnVlfVxyXG4gICAgICAgICAgICB0ZXh0PXt0aGlzLl9pbmxpbmVBY3Rpb24udGl0bGV9XHJcbiAgICAgICAgICAgIGNsYXNzTmFtZT17dGhpcy5ob3N0Q29uZmlnLm1ha2VDc3NDbGFzc05hbWUoXCJhYy1pbmxpbmVBY3Rpb25CdXR0b25cIiwgXCJpY29uT25seVwiKX1cclxuICAgICAgICAgICAgc3R5bGVzPXt7XHJcbiAgICAgICAgICAgICAgICBpY29uOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiBgMTAwJWAsXHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgcm9vdDogaW5saW5lQnV0dG9uUm9vdFN0eWxlLFxyXG4gICAgICAgICAgICB9fVxyXG4gICAgICAgICAgICBpY29uUHJvcHM9e3tcclxuICAgICAgICAgICAgICAgIGljb25UeXBlOiBJY29uVHlwZS5pbWFnZSxcclxuICAgICAgICAgICAgICAgIGltYWdlUHJvcHM6IHtcclxuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IFwiMTAwJVwiLFxyXG4gICAgICAgICAgICAgICAgICAgIHNyYzogdGhpcy5faW5saW5lQWN0aW9uLmljb25VcmwsXHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICB9fVxyXG4gICAgICAgICAgICBvbkNsaWNrPXt0aGlzLmlubGluZUFjdGlvbkNsaWNrSGFuZGxlcn1cclxuICAgICAgICAvPlxyXG4gICAgKVxyXG5cclxuICAgIHByaXZhdGUgYnVpbGRUZXh0T25seUlubGluZUFjdGlvbkFjdGlvbkJ1dHRvbiA9ICgpOiBKU1guRWxlbWVudCA9PiAoXHJcbiAgICAgICAgPFByaW1hcnlCdXR0b25cclxuICAgICAgICAgICAgY2xhc3NOYW1lPXt0a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AgICAgICAgZXJyb3I6IEFDLlZhbGlkYXRpb25FcnJvci5JbnZhbGlkUHJvcGVydHlWYWx1ZSxcclxuICAgICAgICAgICAgbWVzc2FnZTogZXJyb3IsXHJcbiAgICAgICAgfSwgZXJyb3JzKTtcclxuICAgIH1cclxufTtcclxuIiwibW9kdWxlLmV4cG9ydHMgPSBBZGFwdGl2ZUNhcmRzOyIsIm1vZHVsZS5leHBvcnRzID0gZmFicmljOyIsIm1vZHVsZS5leHBvcnRzID0gUmVhY3Q7IiwibW9kdWxlLmV4cG9ydHMgPSBSZWFjdERPTTsiXSwic291cmNlUm9vdCI6IiJ9 \ No newline at end of file diff --git a/media/js/adaptivecards-fabric.min.js b/media/js/adaptivecards-fabric.min.js new file mode 100644 index 0000000..74d118a --- /dev/null +++ b/media/js/adaptivecards-fabric.min.js @@ -0,0 +1,2 @@ +var ACFabric=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t){e.exports=AdaptiveCards},function(e,t){e.exports=React},function(e,t){e.exports=fabric},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(5),u=n(0),l=n(2);t.getDiv=function(){return document.createElement("div")};var c=function(e){var n=t.getDiv();return a.render(e(),n),n},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.internalRender=function(){return c(this.renderReact)},t}(u.CardElement);t.ReactCardElement=p;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.internalRender=function(){return c(this.renderReact)},t}(u.Container);t.ReactCardElementContainer=s;var f={marginLeft:8},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleChange=function(e,n){t._value=n},t.buildInlineActionButton=function(){return c(u.isNullOrEmpty(t.inlineAction.iconUrl)?t.buildTextOnlyInlineActionActionButton:t.inlineIconActionButton)},t.inlineActionClickHandler=function(e){e.stopPropagation(),e.preventDefault(),t._inlineAction.execute()},t.inlineIconActionButton=function(){return i.createElement(l.IconButton,{default:!0,text:t._inlineAction.title,className:t.hostConfig.makeCssClassName("ac-inlineActionButton","iconOnly"),styles:{icon:{height:"100%"},root:f},iconProps:{iconType:l.IconType.image,imageProps:{height:"100%",src:t._inlineAction.iconUrl}},onClick:t.inlineActionClickHandler})},t.buildTextOnlyInlineActionActionButton=function(){return i.createElement(l.PrimaryButton,{className:t.hostConfig.makeCssClassName("ac-inlineActionButton","textOnly"),text:t._inlineAction.title,onClick:t.inlineActionClickHandler,styles:{root:f}})},t}return o(t,e),t.prototype.internalRender=function(){var e=c(this.renderReact);return e.style.width="100%",e},t.prototype.overrideInternalRender=function(){var t=e.prototype.overrideInternalRender.call(this);return this._inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),t},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inlineAction",{get:function(){return this._inlineAction},set:function(e){this._inlineAction=e,this._inlineAction&&this._inlineAction.setParent(this)},enumerable:!0,configurable:!0}),t}(u.Input);t.ReactInputElement=d,t.raiseParseError=function(e,t){t&&t.push(e),null!=u.AdaptiveCard.onParseError&&u.AdaptiveCard.onParseError(e)},t.getIntValue=function(e,n,r){void 0===r&&(r=void 0);try{return e?parseInt(e,10):r}catch(e){t.raiseParseError({error:u.ValidationError.InvalidPropertyValue,message:e},n)}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(8)),r(n(15))},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(16))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(4)),r(n(6)),r(n(3))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(9)),r(n(10)),r(n(11)),r(n(12)),r(n(13)),r(n(14))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),u=n(2),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectedValues=[],t.parse=function(n,r){e.prototype.parse.call(t,n,r),t.value=t.defaultValue,t.selectedValues=t.defaultValueToArray(t.value),t.isMultiSelect=a.getBoolValue(n.isMultiSelect,!1),t.title=a.getStringValue(n.title),t.style=a.getStringValue(n.style),t.parseChoises(n)},t.renderReact=function(){return t.isCompact()?i.createElement(t.ComboBox,null):t.createExpandedView()},t.getJsonTypeName=function(){return"Input.ChoiceSet"},t.toJSON=function(){var n=e.prototype.toJSON.call(t);return t.choices.length>0&&a.setProperty(n,"choices",t.choices.map(function(e){return e.toJSON()})),t.isCompact()||a.setProperty(n,"style","expanded",!1),a.setProperty(n,"isMultiSelect",t.isMultiSelect,!1),n},t.parseChoises=function(e){t.choices=Array.isArray(e.choices)?e.choices.map(function(e){var t=new a.Choice;return t.parse(e),t}):[]},t.isCompact=function(){return"compact"===t.style},t.ComboBox=function(){return i.createElement(u.ComboBox,{onChange:t.handleComboBoxChange,id:t.id,options:t.inputChoicesToComboBoxOptions(t.choices),multiSelect:t.isMultiSelect,selectedKey:t.defaultValueToArray(t.value)})},t.createExpandedView=function(){return t.isMultiSelect?t.inputChoicesToCheckbox():t.createChoiceGroup()},t.createChoiceGroup=function(){return i.createElement(u.ChoiceGroup,{id:t.id,onChange:t.handleChoiceGroupChange,options:t.inputChoicesToChoiceGroupOptions(t.choices,t.defaultValueToArray(t.value)),multiple:t.isMultiSelect})},t.inputChoicesToCheckbox=function(){return i.createElement(i.Fragment,null,t.choices.map(function(e,n){return i.createElement(u.Checkbox,{key:e.value,label:e.title,defaultChecked:t.defaultValueToArray(t.value).includes(e.value),onChange:function(n,r){t.updateMultiselectData(r,e.value),n.stopPropagation(),n.preventDefault()},styles:{root:{paddingTop:n>0?t.hostConfig.spacing.default:0}}})}))},t.defaultValueToArray=function(e){return e?e.split(","):[]},t.inputChoicesToComboBoxOptions=function(e){return e.map(function(e){return{key:e.value,text:e.title}})},t.inputChoicesToChoiceGroupOptions=function(e,t){return e.map(function(e){return{key:e.value,text:e.title,checked:t.includes(e.value)}})},t.handleChoiceGroupChange=function(e,n){t.value=n.key,e.stopPropagation(),e.preventDefault()},t.handleComboBoxChange=function(e,n,r,o){t.isMultiSelect?t.updateMultiselectData(n.selected,n.key):t.value=""+n.key,e.stopPropagation(),e.preventDefault()},t.updateMultiselectData=function(e,n){t.updateSelectedValues(e,n),t.value=t.selectedValues.join(",")},t.updateSelectedValues=function(e,n){e?t.selectedValues.push(n):t.removeItemFromArray(t.selectedValues,n)},t.removeItemFromArray=function(e,t){var n=e.indexOf(t);e.splice(n,1)},t}return o(t,e),t}(n(3).ReactInputElement);t.InputChoiceSetFabric=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),u=n(0),l=n(3),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderReact=function(){return t.buildDatePicker()},t.getJsonTypeName=function(){return"Input.Date"},t.parse=function(n,r){e.prototype.parse.call(t,n,r),t.placeholder=u.getStringValue(n.placeholder),t.parseDates(n,r)},t.toJSON=function(){var n=e.prototype.toJSON.call(t);return u.setProperty(n,"min",t.minDate),u.setProperty(n,"max",t.maxDate),u.setProperty(n,"placeholder",t.placeholder),n},t.parseDates=function(e,n){t.value=t.defaultValue,t.date=t.value?t.getDate(t.value):new Date,t.minDate=e.min?t.getDate(u.getStringValue(e.min)):void 0,t.maxDate=e.max?t.getDate(u.getStringValue(e.max)):void 0},t.getDate=function(e,t){try{return new Date(e)}catch(e){return void l.raiseParseError({error:u.ValidationError.InvalidPropertyValue,message:e},t)}},t.buildDatePicker=function(){return i.createElement(a.DatePicker,{id:t.id,onSelectDate:t.handleSelectDate,value:t.date,placeholder:t.placeholder,allowTextInput:!0,minDate:t.minDate,maxDate:t.maxDate})},t.handleSelectDate=function(e){t.value=e.toLocaleDateString("en-US")},t}return o(t,e),t}(l.ReactInputElement);t.InputDateFabric=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),u=n(2),l=n(3),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.parse=function(n,r){e.prototype.parse.call(t,n,r),t.value=t.defaultValue,t.min=l.getIntValue(n.min),t.max=l.getIntValue(n.max),t.placeholder=a.getStringValue(n.placeholder)},t.renderReact=function(){return i.createElement(u.TextField,{id:t.id,placeholder:""+t.placeholder,value:""+t.defaultValue,type:"number",max:t.max,min:t.min,onChange:t.handleChange})},t.getJsonTypeName=function(){return"Input.Number"},t.toJSON=function(){var n=e.prototype.toJSON.call(t);return a.setProperty(n,"placeholder",t.placeholder),a.setProperty(n,"min",t.min),a.setProperty(n,"max",t.max),n},t}return o(t,e),t}(l.ReactInputElement);t.InputNumberFabric=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(2),u=n(0),l=n(3),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=u.InputTextStyle.Text,t.renderReact=function(){return t.buildInput()},t.getJsonTypeName=function(){return"Input.Text"},t.parse=function(n,r){e.prototype.parse.call(t,n,r),t.value=t.defaultValue,t.isMultiline=u.getBoolValue(n.isMultiline,!1),t.maxLength=l.getIntValue(n.maxLength),t.placeholder=u.getStringValue(n.placeholder),t.label=u.getStringValue(n.label),t.style=u.getEnumValue(u.InputTextStyle,n.style,u.InputTextStyle.Text),t.inlineAction=u.createActionInstance(t,n.inlineAction,[u.ShowCardAction.JsonTypeName],!1,r)},t.toJSON=function(){var n=e.prototype.toJSON.call(t);return u.setProperty(n,"placeholder",t.placeholder),u.setProperty(n,"maxLength",t.maxLength,0),u.setProperty(n,"isMultiline",t.isMultiline,!1),u.setEnumProperty(u.InputTextStyle,n,"style",t.style,u.InputTextStyle.Text),t.inlineAction&&u.setProperty(n,"inlineAction",t.inlineAction.toJSON()),n},t.buildInput=function(){return i.createElement(a.TextField,{id:t.id,type:u.InputTextStyle[t.style].toLowerCase(),value:t.defaultValue,multiline:t.isMultiline,maxLength:t.maxLength,placeholder:t.placeholder,label:t.label,onChange:t.handleChange,onKeyDown:t.handleKeyDown})},t.handleKeyDown=function(e){13===e.keyCode&&t.inlineAction&&t.inlineAction.execute()},t}return o(t,e),t}(l.ReactInputElement);t.InputTextFabric=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),u=n(2),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.parse=function(n,r){e.prototype.parse.call(t,n,r),t.value=t.defaultValue,t.placeholder=a.getStringValue(n.placeholder),t.min=a.getStringValue(n.min),t.max=a.getStringValue(n.max)},t.renderReact=function(){return i.createElement(u.TextField,{id:t.id,placeholder:""+t.placeholder,value:""+t.defaultValue,type:"time",onChange:t.handleChange,max:t.max,min:t.min})},t.getJsonTypeName=function(){return"Input.Time"},t.toJSON=function(){var n=e.prototype.toJSON.call(t);return a.setProperty(n,"min",t.min),a.setProperty(n,"max",t.max),n},t}return o(t,e),t}(n(3).ReactInputElement);t.InputTimeFabric=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),u=n(2),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.parse=function(n,r){e.prototype.parse.call(t,n,r),t.value=t.defaultValue,t.valueOn=a.getStringValue(n.valueOn),t.valueOff=a.getStringValue(n.valueOff),t.title=a.getStringValue(n.title)},t.renderReact=function(){return i.createElement(u.Toggle,{id:t.id,inlineLabel:!0,onChange:t.handleToggleChange,defaultChecked:t.defaultValue===t.valueOn,label:t.title,styles:{root:{marginBottom:0,marginTop:0}}})},t.getJsonTypeName=function(){return"Input.Toggle"},t.toJSON=function(){var n=e.prototype.toJSON.call(t);return a.setProperty(n,"valueOn",t.valueOn,"true"),a.setProperty(n,"valueOff",t.valueOff,"false"),n},t.handleToggleChange=function(e,n){t.value=n?t.valueOn:t.valueOff},t}return o(t,e),t}(n(3).ReactInputElement);t.InputToggleFabric=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2),i=n(4),a=n(6),u=!1;t.useFabricComponents=function(){u||(o.initializeIcons(),u=!0),r.AdaptiveCard.elementTypeRegistry.registerType("Input.Date",function(){return new i.InputDateFabric}),r.AdaptiveCard.elementTypeRegistry.registerType("Input.Text",function(){return new i.InputTextFabric}),r.AdaptiveCard.elementTypeRegistry.registerType("Input.Time",function(){return new i.InputTimeFabric}),r.AdaptiveCard.elementTypeRegistry.registerType("Input.Number",function(){return new i.InputNumberFabric}),r.AdaptiveCard.elementTypeRegistry.registerType("Input.Toggle",function(){return new i.InputToggleFabric}),r.AdaptiveCard.elementTypeRegistry.registerType("Input.ChoiceSet",function(){return new i.InputChoiceSetFabric}),r.AdaptiveCard.actionTypeRegistry.registerType("Action.OpenUrl",function(){return new a.OpenUrlActionFabric}),r.AdaptiveCard.actionTypeRegistry.registerType("Action.Submit",function(){return new a.SubmitActionFabric}),r.AdaptiveCard.actionTypeRegistry.registerType("Action.ShowCard",function(){return new a.ShowCardActionFabric}),r.AdaptiveCard.actionTypeRegistry.registerType("Action.ToggleVisibility",function(){return new a.ToggleVisibilityActionFabric})}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(5),u=n(0),l=n(3),c=n(17);t.createActionDiv=function(e,t,n,r,o){var u=l.getDiv();return a.render(i.createElement(c.ActionButton,{text:e,className:n,iconUrl:t,iconPlacement:r,iconSize:o}),u),u};var p=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),Object.defineProperty(n.prototype,"renderedElement",{get:function(){return this.internalRenderedElement},enumerable:!0,configurable:!0}),n.prototype.render=function(e){var n=this.parent.hostConfig.actions,r=t.createActionDiv(this.title,this.iconUrl,e,n.iconPlacement,n.iconSize);this.internalRenderedElement=r},n}(u.OpenUrlAction);t.OpenUrlActionFabric=p;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),Object.defineProperty(n.prototype,"renderedElement",{get:function(){return this.internalRenderedElement},enumerable:!0,configurable:!0}),n.prototype.render=function(e){var n=this.parent.hostConfig.actions,r=t.createActionDiv(this.title,this.iconUrl,e,n.iconPlacement,n.iconSize);this.internalRenderedElement=r},n}(u.SubmitAction);t.SubmitActionFabric=s;var f=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),Object.defineProperty(n.prototype,"renderedElement",{get:function(){return this.internalRenderedElement},enumerable:!0,configurable:!0}),n.prototype.render=function(e){var n=this.parent.hostConfig.actions,r=t.createActionDiv(this.title,this.iconUrl,e,n.iconPlacement,n.iconSize);this.internalRenderedElement=r},n}(u.ShowCardAction);t.ShowCardActionFabric=f;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this.internalRenderedElement},enumerable:!0,configurable:!0}),t.prototype.render=function(e){var t=l.getDiv();a.render(i.createElement(c.ActionButton,{text:this.title,className:e}),t),this.internalRenderedElement=t},t}(u.ToggleVisibilityAction);t.ToggleVisibilityActionFabric=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(2),i=n(0);t.ActionButton=function(e){return e.iconUrl?r.createElement(o.CompoundButton,{className:e.className},r.createElement("div",{style:{display:"flex",flexDirection:e.iconPlacement===i.ActionIconPlacement.LeftOfTitle?"row":"column",justifyContent:"center"}},r.createElement("img",{src:e.iconUrl,style:{alignSelf:"center",width:e.iconSize,height:e.iconSize,flex:"0 0 auto"}}),r.createElement("span",{style:{alignSelf:"center"}},e.text))):r.createElement(o.PrimaryButton,{className:e.className,text:e.text})}}]); +//# sourceMappingURL=adaptivecards-fabric.min.js.map \ No newline at end of file diff --git a/media/js/fabric.min.js b/media/js/fabric.min.js new file mode 100644 index 0000000..c0e2a33 --- /dev/null +++ b/media/js/fabric.min.js @@ -0,0 +1,17 @@ +var fabric=function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=14)}([function(e,t){e.exports=React},function(e,t,o){"use strict";(function(e){var o,n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o0&&u(t)})}function u(e,t){r.loadStyles?r.loadStyles(g(e).styleString,e):o?function(e,t){var o=document.getElementsByTagName("head")[0],n=r.registeredStyles,i=r.lastStyleElement,s=i?i.styleSheet:void 0,l=s?s.cssText:"",c=n[n.length-1],d=g(e).styleString;(!i||l.length+d.length>a)&&((i=document.createElement("style")).type="text/css",t?(o.replaceChild(i,t.styleElement),t.styleElement=i):o.appendChild(i),t||(c={styleElement:i,themableStyle:e},n.push(c)));i.styleSheet.cssText+=m(d),Array.prototype.push.apply(c.themableStyle,e),r.lastStyleElement=i}(e,t):function(e){var t=document.getElementsByTagName("head")[0],o=document.createElement("style"),n=g(e),i=n.styleString,s=n.themable;o.type="text/css",o.appendChild(document.createTextNode(i)),r.perf.count++,t.appendChild(o);var a={styleElement:o,themableStyle:e};s?r.registeredThemableStyles.push(a):r.registeredStyles.push(a)}(e)}function p(e){void 0===e&&(e=3),3!==e&&2!==e||(h(r.registeredStyles),r.registeredStyles=[]),3!==e&&1!==e||(h(r.registeredThemableStyles),r.registeredThemableStyles=[])}function h(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function m(e){return e&&(e=g(f(e)).styleString),e}function g(e){var t=r.theme,o=!1;return{styleString:(e||[]).map(function(e){var n=e.theme;if(n){o=!0;var i=t?t[n]:void 0,r=e.defaultValue||"inherit";return!t||i||!console||n in t||"undefined"==typeof DEBUG||!DEBUG||console.warn('Theming value not provided for "'+n+'". Falling back to "'+r+'".'),i||r}return e.rawString}).join(""),themable:o}}function f(e){var t=[];if(e){for(var o=0,n=void 0;n=s.exec(e);){var i=n.index;i>o&&t.push({rawString:e.substring(o,i)}),t.push({theme:n[1],defaultValue:n[2]}),o=s.lastIndex}t.push({rawString:e.substring(o)})}return t}t.loadStyles=function(e,t){void 0===t&&(t=!1),c(function(){var n=Array.isArray(e)?e:f(e);void 0===o&&(o=function(){var e=!1;if("undefined"!=typeof document){var t=document.createElement("style");t.type="text/css",e=!!t.styleSheet}return e}());var i=r.runState,s=i.mode,a=i.buffer,l=i.flushTimer;t||1===s?(a.push(n),l||(r.runState.flushTimer=setTimeout(function(){r.runState.flushTimer=0,d()},0))):u(n)})},t.configureLoadStyles=function(e){r.loadStyles=e},t.configureRunMode=function(e){r.runState.mode=e},t.flush=d,t.loadTheme=function(e){r.theme=e,function(){if(r.theme){for(var e=[],t=0,o=r.registeredThemableStyles;t0&&(p(1),u([].concat.apply([],e)))}}()},t.clearStyles=p,t.detokenize=m,t.splitStyles=f}).call(this,o(11))},function(e,t){e.exports=ReactDOM},function(e,t,o){e.exports=o(12)()},,,,,,,,function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,o){"use strict";var n=o(13);function i(){}e.exports=function(){function e(e,t,o,i,r,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=i,o.PropTypes=o,o}},function(e,t,o){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,o){"use strict";o.r(t);var n={};o.r(n),o.d(n,"root",function(){return Cd}),o.d(n,"picker",function(){return kd}),o.d(n,"holder",function(){return wd}),o.d(n,"pickerIsOpened",function(){return Id}),o.d(n,"frame",function(){return Dd}),o.d(n,"wrap",function(){return Pd}),o.d(n,"goTodaySpacing",function(){return Td}),o.d(n,"dayPicker",function(){return Ed}),o.d(n,"header",function(){return Md}),o.d(n,"divider",function(){return Rd}),o.d(n,"monthAndYear",function(){return Nd}),o.d(n,"year",function(){return Bd}),o.d(n,"decade",function(){return Fd}),o.d(n,"currentYear",function(){return Ld}),o.d(n,"currentDecade",function(){return Ad}),o.d(n,"table",function(){return Od}),o.d(n,"dayWrapper",function(){return Hd}),o.d(n,"weekday",function(){return Wd}),o.d(n,"day",function(){return zd}),o.d(n,"daySelection",function(){return Vd}),o.d(n,"dayIsToday",function(){return Kd}),o.d(n,"dayIsDisabled",function(){return Ud}),o.d(n,"dayIsUnfocused",function(){return Gd}),o.d(n,"dayIsFocused",function(){return Yd}),o.d(n,"dayIsHighlighted",function(){return jd}),o.d(n,"pickerIsFocused",function(){return qd}),o.d(n,"dayDisabled",function(){return Zd}),o.d(n,"dayBackground",function(){return Xd}),o.d(n,"dayHover",function(){return Qd}),o.d(n,"dayPress",function(){return $d}),o.d(n,"weekBackground",function(){return Jd}),o.d(n,"showWeekNumbers",function(){return eu}),o.d(n,"weekNumbers",function(){return tu}),o.d(n,"weekIsHighlighted",function(){return ou}),o.d(n,"showWeekNumbersRTL",function(){return nu}),o.d(n,"monthComponents",function(){return iu}),o.d(n,"yearComponents",function(){return ru}),o.d(n,"decadeComponents",function(){return su}),o.d(n,"closeButton",function(){return au}),o.d(n,"prevMonth",function(){return lu}),o.d(n,"nextMonth",function(){return cu}),o.d(n,"prevYear",function(){return du}),o.d(n,"nextYear",function(){return uu}),o.d(n,"prevDecade",function(){return pu}),o.d(n,"nextDecade",function(){return hu}),o.d(n,"prevMonthIsDisabled",function(){return mu}),o.d(n,"nextMonthIsDisabled",function(){return gu}),o.d(n,"prevYearIsDisabled",function(){return fu}),o.d(n,"nextYearIsDisabled",function(){return vu}),o.d(n,"prevDecadeIsDisabled",function(){return _u}),o.d(n,"nextDecadeIsDisabled",function(){return yu}),o.d(n,"headerToggleView",function(){return bu}),o.d(n,"optionGrid",function(){return xu}),o.d(n,"monthOption",function(){return Su}),o.d(n,"yearOption",function(){return Cu}),o.d(n,"isHighlighted",function(){return ku}),o.d(n,"monthOptionIsDisabled",function(){return wu}),o.d(n,"yearOptionIsDisabled",function(){return Iu}),o.d(n,"goToday",function(){return Du}),o.d(n,"goToTodayIsDisabled",function(){return Pu}),o.d(n,"goTodayInlineMonth",function(){return Tu}),o.d(n,"isPickingYears",function(){return Eu}),o.d(n,"monthPicker",function(){return Mu}),o.d(n,"yearPicker",function(){return Ru}),o.d(n,"monthPickerVisible",function(){return Nu}),o.d(n,"toggleMonthView",function(){return Bu}),o.d(n,"calendarsInline",function(){return Fu}),o.d(n,"monthPickerOnly",function(){return Lu}),o.d(n,"monthPickerAsOverlay",function(){return Au}),o.d(n,"holderWithButton",function(){return Ou}),o.d(n,"monthIsHighlighted",function(){return Hu}),o.d(n,"monthIsCurrentMonth",function(){return Wu}),o.d(n,"yearIsHighlighted",function(){return zu}),o.d(n,"yearIsCurrentYear",function(){return Vu}),o.d(n,"topLeftCornerDate",function(){return Ku}),o.d(n,"topRightCornerDate",function(){return Uu}),o.d(n,"bottomLeftCornerDate",function(){return Gu}),o.d(n,"bottomRightCornerDate",function(){return Yu}),o.d(n,"weekSelection",function(){return ju}),o.d(n,"monthSelection",function(){return qu}),o.d(n,"topDate",function(){return Zu}),o.d(n,"rightDate",function(){return Xu}),o.d(n,"bottomDate",function(){return Qu}),o.d(n,"leftdate",function(){return $u});var i={};o.r(i),o.d(i,"pickerText",function(){return ty}),o.d(i,"pickerInput",function(){return oy});var r={};o.r(r),o.d(r,"callout",function(){return Cy});var s={};o.r(s),o.d(s,"root",function(){return ky}),o.d(s,"suggestionsItem",function(){return wy}),o.d(s,"closeButton",function(){return Iy}),o.d(s,"suggestionsItemIsSuggested",function(){return Dy}),o.d(s,"itemButton",function(){return Py}),o.d(s,"actionButton",function(){return Ty}),o.d(s,"buttonSelected",function(){return Ey}),o.d(s,"suggestionsTitle",function(){return My}),o.d(s,"suggestionsContainer",function(){return Ry}),o.d(s,"suggestionsNone",function(){return Ny}),o.d(s,"suggestionsSpinner",function(){return By}),o.d(s,"suggestionsAvailable",function(){return Fy});var a={};o.r(a),o.d(a,"suggestionsContainer",function(){return Hy});var l={};o.r(l),o.d(l,"root",function(){return Ky}),o.d(l,"actionButton",function(){return Uy}),o.d(l,"buttonSelected",function(){return Gy}),o.d(l,"suggestionsTitle",function(){return Yy}),o.d(l,"suggestionsSpinner",function(){return jy}),o.d(l,"itemButton",function(){return qy}),o.d(l,"screenReaderOnly",function(){return Zy});var c={};o.r(c),o.d(c,"pickerText",function(){return Kx}),o.d(c,"inputFocused",function(){return Ux}),o.d(c,"pickerInput",function(){return Gx}),o.d(c,"pickerItems",function(){return Yx}),o.d(c,"screenReaderOnly",function(){return jx});var d={};o.r(d),o.d(d,"personaContainer",function(){return aC}),o.d(d,"hover",function(){return lC}),o.d(d,"actionButton",function(){return cC}),o.d(d,"personaContainerIsSelected",function(){return dC}),o.d(d,"validationError",function(){return uC}),o.d(d,"itemContent",function(){return pC}),o.d(d,"removeButton",function(){return hC}),o.d(d,"expandButton",function(){return mC}),o.d(d,"personaWrapper",function(){return gC}),o.d(d,"personaDetails",function(){return fC}),o.d(d,"itemContainer",function(){return vC});var u={};o.r(u),o.d(u,"editingInput",function(){return CC}),o.d(u,"editingContainer",function(){return kC}); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function h(e,t){function o(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var m=function(){return(m=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s}var v,_=o(0),y={none:0,insertNode:1,appendChild:2},b={};try{b=window}catch(e){}var x,S=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=m({injectionMode:y.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(v=b.__stylesheet__)||v._lastStyleElement&&v._lastStyleElement.ownerDocument!==document){var t=b&&b.FabricConfig||{};v=b.__stylesheet__=new e(t.mergeStyles)}return v},e.prototype.setConfig=function(e){this._config=m({},this._config,e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,o,n){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:o,rules:n}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var o=this._config.injectionMode!==y.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),o)switch(this._config.injectionMode){case y.insertNode:var n=o.sheet;try{n.insertRule(e,n.cssRules.length)}catch(e){}break;case y.appendChild:o.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var e=document.createElement("style");e.setAttribute("data-merge-styles","true"),e.type="text/css";var t=this._config.cspSettings;return t&&t.nonce&&e.setAttribute("nonce",t.nonce),this._lastStyleElement&&this._lastStyleElement.nextElementSibling?document.head.insertBefore(e,this._lastStyleElement.nextElementSibling):document.head.appendChild(e),this._lastStyleElement=e,e},e}(),C={MozOsxFontSmoothing:"-moz-osx-font-smoothing",MsHighContrastAdjust:"-ms-high-contrast-adjust",WebkitFontSmoothing:"-webkit-font-smoothing",WebkitOverflowScrolling:"-webkit-overflow-scrolling",WebkitTapHighlightColor:"-webkit-tap-highlight-color",alignContent:"align-content",alignItems:"align-items",alignSelf:"align-self",animation:"animation",animationDelay:"animation-delay",animationDirection:"animation-direction",animationDuration:"animation-duration",animationFillMode:"animation-fill-mode",animationIterationCount:"animation-iteration-count",animationName:"animation-name",animationTimingFunction:"animation-timing-function",background:"background",backgroundClip:"background-clip",backgroundColor:"background-color",backgroundImage:"background-image",backgroundPosition:"background-position",border:"border",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomStyle:"border-bottom-style",borderBottomWidth:"border-bottom-width",borderCollapse:"border-collapse",borderColor:"border-color",borderLeft:"border-left",borderRadius:"border-radius",borderRight:"border-right",borderStyle:"border-style",borderTop:"border-top",borderTopColor:"border-top-color",borderTopLeftRadius:"border-top-left-radius",borderTopRightRadius:"border-top-right-radius",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderWidth:"border-width",bordercolor:"bordercolor",bottom:"bottom",boxShadow:"box-shadow",boxSizing:"box-sizing",clear:"clear",color:"color",content:"content",cursor:"cursor",display:"display",fill:"fill",flex:"flex",flexBasis:"flex-basis",flexDirection:"flex-direction",flexGrow:"flex-grow",flexShrink:"flex-shrink",flexWrap:"flex-wrap",float:"float",font:"font",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",height:"height",justifyContent:"justify-content",left:"left",lineHeight:"line-height",listStyle:"list-style",listStyleType:"list-style-type",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",maxHeight:"max-height",maxWidth:"max-width",minHeight:"min-height",minWidth:"min-width",mozOsxFontSmoothing:"moz-osx-font-smoothing",objectFit:"object-fit",opacity:"opacity",order:"order",outline:"outline",outlineColor:"outline-color",outlineOffset:"outline-offset",overflow:"overflow",overflowWrap:"overflow-wrap",overflowX:"overflow-x",overflowY:"overflow-y",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",perspective:"perspective",pointerEvents:"pointer-events",position:"position",resize:"resize",right:"right",speak:"speak",src:"src",tableLayout:"table-layout",textAlign:"text-align",textDecoration:"text-decoration",textOverflow:"text-overflow",textTransform:"text-transform",top:"top",transform:"transform",transformOrigin:"transform-origin",transition:"transition",transitionDelay:"transition-delay",transitionDuration:"transition-duration",transitionProperty:"transition-property",transitionTimingFunction:"transition-timing-function",userSelect:"user-select",verticalAlign:"vertical-align",visibility:"visibility",webkitFontSmoothing:"webkit-font-smoothing",whiteSpace:"white-space",width:"width",wordBreak:"word-break",wordWrap:"word-wrap",zIndex:"z-index"};var k={"user-select":1};function w(e,t){var o=function(){if(!x){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,o=t?t.userAgent.toLowerCase():void 0;x=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return x}(),n=e[t];if(k[n]){var i=e[t+1];k[n]&&(o.isWebkit&&e.push("-webkit-"+n,i),o.isMoz&&e.push("-moz-"+n,i),o.isMs&&e.push("-ms-"+n,i),o.isOpera&&e.push("-o-"+n,i))}}var I=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function D(e,t){var o=e[t],n=e[t+1];if("number"==typeof n){var i=-1===I.indexOf(o)?"px":"";e[t+1]=""+n+i}}var P,T="left",E="right",M="@noflip",R=((P={})[T]=E,P[E]=T,P),N={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},B=L();function F(e){B!==e&&(S.getInstance().resetKeys(),B=e)}function L(){return void 0===B&&(B="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),B}function A(e,t){if(L()){var o=e[t];if(!o)return;var n=e[t+1];if("string"==typeof n&&n.indexOf(M)>=0)e[t+1]=n.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(T)>=0)e[t]=o.replace(T,E);else if(o.indexOf(E)>=0)e[t]=o.replace(E,T);else if(String(n).indexOf(T)>=0)e[t+1]=n.replace(T,E);else if(String(n).indexOf(E)>=0)e[t+1]=n.replace(E,T);else if(R[o])e[t]=R[o];else if(N[n])e[t+1]=N[n];else switch(o){case"margin":case"padding":e[t+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(n);break;case"box-shadow":e[t+1]=function(e,t){var o=e.split(" "),n=parseInt(o[t],10);return o[0]=o[0].replace(String(n),String(-1*n)),o.join(" ")}(n,0)}}}var O="displayName";var H=/\:global\((.+?)\)/g;function W(e){if(!H.test(e))return e;for(var t=[],o=/\:global\((.+?)\)/g,n=null;n=o.exec(e);)n[1].indexOf(",")>-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var o=t[0],n=t[1],i=t[2];return e.slice(0,o)+i+e.slice(n)},e)}function z(e,t){return e.indexOf(":global(")>=0?e.replace(H,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function V(e,t,o){var n="string"==typeof o?o.split(" "):[o];e[t+"Top"]=n[0],e[t+"Right"]=n[1]||n[0],e[t+"Bottom"]=n[2]||n[0],e[t+"Left"]=n[3]||n[1]||n[0]}function K(e){if(!e)return"";var t,o,n,i=[];for(var r in e)e.hasOwnProperty(r)&&r!==O&&void 0!==e[r]&&i.push(r,e[r]);for(var s=0;s-1?e([h],o,W(p).split(/,/g).map(function(e){return e.trim()}).map(function(e){return z(e,n)}).join(", ")):e([h],o,z(p,n))}}else void 0!==l[d]&&("margin"===d||"padding"===d?V(r,d,l[d]):r[d]=l[d])}return o}(e),n=function(e){for(var t=[],o=!1,n=0,i=e.__order;n=0)e(a.split(" "));else{var l=i.argsFromClassName(a);l?e(l):-1===o.indexOf(a)&&o.push(a)}else Array.isArray(a)?e(a):"object"==typeof a&&n.push(a)}}(e),{classes:o,objects:n}}function j(){for(var e=[],t=0;t0){o.subComponentStyles={};var p=o.subComponentStyles,h=function(e){if(n.hasOwnProperty(e)){var t=n[e];p[e]=function(e){return q.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var c in n)h(c)}return o}function Z(){for(var e=[],t=0;t10?" (+ "+(Se.length-10)+" more)":"")),Ce=void 0,Se=[]},2e3)))}var we={display:"inline-block"};function Ie(e){var t="",o=be(e);return o&&(t=j(o.subset.className,we,{selectors:{"::before":{content:'"'+o.code+'"'}}})),t}var De="cubic-bezier(.1,.9,.2,1)",Pe="cubic-bezier(.1,.25,.75,.9)",Te=Q({from:{opacity:0},to:{opacity:1}}),Ee=Q({from:{opacity:1},to:{opacity:0}}),Me=dt(-10),Re=dt(-20),Ne=dt(-40),Be=dt(-400),Fe=dt(10),Le=dt(20),Ae=dt(40),Oe=dt(400),He=ut(10),We=ut(20),ze=ut(-10),Ve=ut(-20),Ke=pt(10),Ue=pt(20),Ge=pt(40),Ye=pt(400),je=pt(-10),qe=pt(-20),Ze=pt(-40),Xe=pt(-400),Qe=ht(-10),$e=ht(-20),Je=ht(10),et=ht(20),tt=Q({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),ot=Q({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),nt=Q({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),it=Q({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),rt=Q({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),st=Q({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),at={easeFunction1:De,easeFunction2:Pe,durationValue1:"0.167s",durationValue2:"0.267s",durationValue3:"0.367s",durationValue4:"0.467s"},lt={slideRightIn10:ct(Te+","+Me,"0.367s",De),slideRightIn20:ct(Te+","+Re,"0.367s",De),slideRightIn40:ct(Te+","+Ne,"0.367s",De),slideRightIn400:ct(Te+","+Be,"0.367s",De),slideLeftIn10:ct(Te+","+Fe,"0.367s",De),slideLeftIn20:ct(Te+","+Le,"0.367s",De),slideLeftIn40:ct(Te+","+Ae,"0.367s",De),slideLeftIn400:ct(Te+","+Oe,"0.367s",De),slideUpIn10:ct(Te+","+He,"0.367s",De),slideUpIn20:ct(Te+","+We,"0.367s",De),slideDownIn10:ct(Te+","+ze,"0.367s",De),slideDownIn20:ct(Te+","+Ve,"0.367s",De),slideRightOut10:ct(Ee+","+Ke,"0.367s",De),slideRightOut20:ct(Ee+","+Ue,"0.367s",De),slideRightOut40:ct(Ee+","+Ge,"0.367s",De),slideRightOut400:ct(Ee+","+Ye,"0.367s",De),slideLeftOut10:ct(Ee+","+je,"0.367s",De),slideLeftOut20:ct(Ee+","+qe,"0.367s",De),slideLeftOut40:ct(Ee+","+Ze,"0.367s",De),slideLeftOut400:ct(Ee+","+Xe,"0.367s",De),slideUpOut10:ct(Ee+","+Qe,"0.367s",De),slideUpOut20:ct(Ee+","+$e,"0.367s",De),slideDownOut10:ct(Ee+","+Je,"0.367s",De),slideDownOut20:ct(Ee+","+et,"0.367s",De),scaleUpIn100:ct(Te+","+tt,"0.367s",De),scaleDownIn100:ct(Te+","+nt,"0.367s",De),scaleUpOut103:ct(Ee+","+it,"0.167s",Pe),scaleDownOut98:ct(Ee+","+ot,"0.167s",Pe),fadeIn100:ct(Te,"0.167s",Pe),fadeIn200:ct(Te,"0.267s",Pe),fadeIn400:ct(Te,"0.367s",Pe),fadeIn500:ct(Te,"0.467s",Pe),fadeOut100:ct(Ee,"0.167s",Pe),fadeOut200:ct(Ee,"0.267s",Pe),fadeOut400:ct(Ee,"0.367s",Pe),fadeOut500:ct(Ee,"0.467s",Pe),rotate90deg:ct(rt,"0.1s",Pe),rotateN90deg:ct(st,"0.1s",Pe)};function ct(e,t,o){return{animationName:e,animationDuration:t,animationTimingFunction:o,animationFillMode:"both"}}function dt(e){return Q({from:{transform:"translate3d("+e+"px,0,0)"},to:{transform:"translate3d(0,0,0)"}})}function ut(e){return Q({from:{transform:"translate3d(0,"+e+"px,0)"},to:{transform:"translate3d(0,0,0)"}})}function pt(e){return Q({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function ht(e){return Q({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var mt,gt,ft={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#212121",neutralPrimary:"#333333",neutralPrimaryAlt:"#3c3c3c",neutralSecondary:"#666666",neutralSecondaryAlt:"#767676",neutralTertiary:"#a6a6a6",neutralTertiaryAlt:"#c8c8c8",neutralQuaternary:"#d0d0d0",neutralQuaternaryAlt:"#dadada",neutralLight:"#eaeaea",neutralLighter:"#f4f4f4",neutralLighterAlt:"#f8f8f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a80000",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},vt="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web"}(mt||(mt={})),function(e){e.Arabic="'"+mt.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+mt.Cyrillic+"'",e.EastEuropean="'"+mt.EastEuropean+"'",e.Greek="'"+mt.Greek+"'",e.Hebrew="'"+mt.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+mt.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+mt.Vietnamese+"'",e.WestEuropean="'"+mt.WestEuropean+"'"}(gt||(gt={}));var _t,yt,bt,xt,St="'Segoe UI', '"+mt.WestEuropean+"'",Ct={ar:gt.Arabic,bg:gt.Cyrillic,cs:gt.EastEuropean,el:gt.Greek,et:gt.EastEuropean,he:gt.Hebrew,hi:gt.Hindi,hr:gt.EastEuropean,hu:gt.EastEuropean,ja:gt.Japanese,kk:gt.EastEuropean,ko:gt.Korean,lt:gt.EastEuropean,lv:gt.EastEuropean,pl:gt.EastEuropean,ru:gt.Cyrillic,sk:gt.EastEuropean,"sr-latn":gt.EastEuropean,th:gt.Thai,tr:gt.EastEuropean,uk:gt.Cyrillic,vi:gt.Vietnamese,"zh-hans":gt.ChineseSimplified,"zh-hant":gt.ChineseTraditional};function kt(e){return e+", "+vt}function wt(e){var t=function(e){for(var t in Ct)if(Ct.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Ct[t];return St}(e),o=kt(t),n=o;return t===St&&(n=kt(gt.WestEuropean)),{tiny:It(_t.mini,yt.semibold,o),xSmall:It(_t.xSmall,yt.regular,o),small:It(_t.small,yt.regular,o),smallPlus:It(_t.smallPlus,yt.regular,o),medium:It(_t.medium,yt.regular,o),mediumPlus:It(_t.mediumPlus,yt.regular,o),large:It(_t.large,yt.semilight,n),xLarge:It(_t.xLarge,yt.light,o),xLargePlus:It(_t.xLargePlus,yt.light,o),xxLarge:It(_t.xxLarge,yt.light,o),xxLargePlus:It(_t.xxLargePlus,yt.light,o),superLarge:It(_t.superLarge,yt.light,o),mega:It(_t.mega,yt.light,o)}}function It(e,t,o){return{fontFamily:o,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function Dt(e){return oe||"undefined"==typeof document?void 0:e&&e.ownerDocument?e.ownerDocument:document}function Pt(){if(void 0===xt){var e=Dt(),t=function(e){var t=null;try{var o=re();t=o?o.localStorage.getItem(e):null}catch(e){}return t}("language");null!==t&&(xt=t),void 0===xt&&e&&(xt=e.documentElement.getAttribute("lang")),void 0===xt&&(xt="en")}return xt}function Tt(e,t){void 0===t&&(t=!1);var o=Dt();o&&o.documentElement.setAttribute("lang",e),t||function(e,t){try{var o=re();o&&o.localStorage.setItem(e,t)}catch(e){}}("language",e),xt=e}!function(e){e.mini="10px",e.xSmall="11px",e.small="12px",e.smallPlus="13px",e.medium="14px",e.mediumPlus="15px",e.icon="16px",e.large="17px",e.xLarge="21px",e.xLargePlus="21px",e.xxLarge="28px",e.xxLargePlus="28px",e.superLarge="42px",e.mega="72px"}(_t||(_t={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(yt||(yt={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(bt||(bt={}));var Et,Mt,Rt="https://static2.sharepointonline.com/files/fabric/assets",Nt=wt(Pt());function Bt(e,t,o,n){X({fontFamily:e="'"+e+"'",src:(void 0!==n?"local('"+n+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:o,fontStyle:"normal"})}function Ft(e,t,o,n,i){void 0===n&&(n="segoeui");var r=e+"/"+o+"/"+n;Bt(t,r+"-light",yt.light,i&&i+" Light"),Bt(t,r+"-semilight",yt.semilight,i&&i+" SemiLight"),Bt(t,r+"-regular",yt.regular,i),Bt(t,r+"-semibold",yt.semibold,i&&i+" SemiBold")}function Lt(e){if(e){var t=e+"/fonts";Ft(t,mt.Thai,"leelawadeeui-thai","leelawadeeui"),Ft(t,mt.Arabic,"segoeui-arabic"),Ft(t,mt.Cyrillic,"segoeui-cyrillic"),Ft(t,mt.EastEuropean,"segoeui-easteuropean"),Ft(t,mt.Greek,"segoeui-greek"),Ft(t,mt.Hebrew,"segoeui-hebrew"),Ft(t,mt.Vietnamese,"segoeui-vietnamese"),Ft(t,mt.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Ft(t,gt.Selawik,"selawik","selawik"),Bt("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",yt.light),Bt("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",yt.semibold)}}Lt((Et=re(),(Mt=Et?Et.FabricConfig:void 0)&&void 0!==Mt.fontBaseUrl?Mt.fontBaseUrl:Rt));var At="@media screen and (-ms-high-contrast: active)",Ot="@media screen and (-ms-high-contrast: black-on-white)";function Ht(e,t){return"@media only screen and (min-width: "+e+"px) and (max-width: "+t+"px)"}var Wt,zt={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},Vt=((Wt={})[zt.up]=1,Wt[zt.down]=1,Wt[zt.left]=1,Wt[zt.right]=1,Wt[zt.home]=1,Wt[zt.end]=1,Wt[zt.tab]=1,Wt[zt.pageUp]=1,Wt[zt.pageDown]=1,Wt);function Kt(e){return!!Vt[e]}function Ut(e){Vt[e]=1}var Gt,Yt="ms-Fabric--isFocusVisible";function jt(e){var t=e||re();t&&!t.__hasInitializeFocusRects__&&(t.__hasInitializeFocusRects__=!0,t.addEventListener("mousedown",qt,!0),t.addEventListener("keydown",Zt,!0))}function qt(e){var t=re(e.target);if(t){var o=t.document.body.classList;o.contains(Yt)&&o.remove(Yt)}}function Zt(e){var t=re(e.target);if(t){var o=t.document.body.classList;Kt(e.which)&&!o.contains(Yt)&&o.add(Yt)}}function Xt(e,t,o,n,i,r,s){return Qt(e,"number"!=typeof t&&t?t:{inset:t,position:o,highContrastStyle:n,borderColor:i,outlineColor:r,isFocusedOnly:s})}function Qt(e,t){void 0===t&&(t={});var o,n,i=t.inset,r=void 0===i?0:i,s=t.width,a=void 0===s?1:s,l=t.position,c=void 0===l?"relative":l,d=t.highContrastStyle,u=t.borderColor,p=void 0===u?e.palette.white:u,h=t.outlineColor,m=void 0===h?e.palette.neutralSecondary:h,g=t.isFocusedOnly;return{outline:"transparent",position:c,selectors:(o={"::-moz-focus-inner":{border:"0"}},o["."+Yt+" &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:r+1,top:r+1,bottom:r+1,right:r+1,border:a+"px solid "+p,outline:a+"px solid "+m,zIndex:Gt.FocusStyle,selectors:(n={},n[At]=d,n)},o)}}function $t(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}function Jt(e,t,o,n){return void 0===t&&(t=0),void 0===o&&(o=1),{selectors:(i={},i[":global("+Yt+") &:focus"]={outline:o+" solid "+(n||e.palette.neutralSecondary),outlineOffset:-t+"px"},i)};var i}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Gt||(Gt={}));var eo={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"},to="14s",oo="2s",no="1";function io(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function ro(e){return{opacity:1,borderWidth:e}}function so(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function ao(e,t){return m({},io(e,t),{opacity:0})}var lo={continuousPulseAnimationDouble:function(e,t,o,n,i){return Q({"0%":io(e,o),"1.42%":ro(i),"3.57%":{opacity:1},"7.14%":so(t,n),"8%":ao(e,o),"29.99%":ao(e,o),"30%":io(e,o),"31.42%":ro(i),"33.57%":{opacity:1},"37.14%":so(t,n),"38%":ao(e,o),"79.42%":ao(e,o),79.43:io(e,o),81.85:ro(i),83.42:{opacity:1},"87%":so(t,n),"100%":{}})},continuousPulseAnimationSingle:function(e,t,o,n,i){return Q({"0%":io(e,o),"14.2%":ro(i),"35.7%":{opacity:1},"71.4%":so(t,n),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:no,animationDuration:to,animationDelay:t||oo}}},co=S.getInstance();co&&co.onReset&&S.getInstance().onReset(fo);var uo=0,po={empty:!0},ho={},mo="undefined"==typeof WeakMap?null:WeakMap;function go(e){mo=e}function fo(){uo++}function vo(e,t,o){var n=_o(o.value&&o.value.bind(null));return{configurable:!0,get:function(){return n}}}function _o(e,t){if(void 0===t&&(t=100),!mo)return e;var o,n=0,i=uo;return function(){for(var r=[],s=0;s0&&n>t)&&(o=bo(),n=0,i=uo),a=o;for(var l=0;l-1;e[n]=r?i:Ro(e[n]||{},i,o)}else e[n]=i}return o.pop(),e}var No,Bo={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},Fo=o(1),Lo={elevation4:"0 0 5px 0 rgba(0,0,0,.4)",elevation8:"0 0 5px 0 rgba(0,0,0,.4)",elevation16:"0 0 5px 0 rgba(0,0,0,.4)",elevation64:"0 0 5px 0 rgba(0,0,0,.4)",roundedCorner2:"0px"},Ao=Go({palette:ft,semanticColors:Yo(ft,!1,!1),fonts:Nt,isInverted:!1,disableGlobalClassNames:!1}),Oo=[],Ho="theme";if(!Io.getSettings([Ho]).theme){var Wo=re();Wo&&Wo.FabricConfig&&Wo.FabricConfig.theme&&(Ao=Go(Wo.FabricConfig.theme)),Io.applySettings(((No={})[Ho]=Ao,No))}function zo(e){return void 0===e&&(e=!1),!0===e&&(Ao=Go({},e)),Ao}function Vo(e){-1===Oo.indexOf(e)&&Oo.push(e)}function Ko(e){var t=Oo.indexOf(e);-1!==t&&Oo.splice(t,1)}function Uo(e,t){return void 0===t&&(t=!1),Ao=Go(e,t),Object(Fo.loadTheme)(m({},Ao.palette,Ao.semanticColors,Ao.effects,function(e){for(var t={},o=0,n=Object.keys(e.fonts);odn&&(t.clear(),o=0,e.disableCaching=!0),s[hn]}}function gn(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function fn(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var o=0,n=t.__cachedInputs__;o1?o.charAt(1)+o.charAt(0):o}(e,t)):""}var Dn="__currentId__",Pn="id__",Tn=re()||{};function En(e,t){for(var o in e)if(e.hasOwnProperty(o)&&(!t.hasOwnProperty(o)||t[o]!==e[o]))return!1;return!0}function Mn(e,t){return En(e,t)&&En(t,e)}function Rn(e){for(var t=[],o=1;o=0)},{},e)}var ui=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var o=this,n=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),n=setTimeout(function(){try{o._timeoutIds&&delete o._timeoutIds[n],e.apply(o._parent)}catch(e){o._onErrorHandler&&o._onErrorHandler(e)}},t),this._timeoutIds[n]=!0),n},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e){var t=this,o=0;if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var n=function(){try{t._immediateIds&&delete t._immediateIds[o],e.apply(t._parent)}catch(e){t._logError(e)}};o=window.setImmediate?window.setImmediate(n):window.setTimeout(n,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(e){this._immediateIds&&this._immediateIds[e]&&(window.clearImmediate?window.clearImmediate(e):window.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var o=this,n=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),n=setInterval(function(){try{e.apply(o._parent)}catch(e){o._logError(e)}},t),this._intervalIds[n]=!0),n},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,o){var n=this;if(this._isDisposed)return this._noop;var i,r,s=t||0,a=!0,l=!0,c=0,d=null;o&&"boolean"==typeof o.leading&&(a=o.leading),o&&"boolean"==typeof o.trailing&&(l=o.trailing);var u=function(t){var o=(new Date).getTime(),p=o-c,h=a?s-p:s;return p>=s&&(!t||a)?(c=o,d&&(n.clearTimeout(d),d=null),i=e.apply(n._parent,r)):null===d&&l&&(d=n.setTimeout(u,h)),i};return function(){for(var e=[],t=0;t=a&&(o=!0),u=t);var i=t-u,s=a-i,m=t-p,v=!1;return null!==d&&(m>=d&&h?v=!0:s=Math.min(s,d-m)),i>=a||v||o?g(t):null!==h&&e||!c||(h=n.setTimeout(f,s)),r},v=function(){return!!h},_=function(){for(var e=[],t=0;t-1)for(var s=o.split(/[ ,]+/),a=0;a1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new ui(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new pi(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(o){return t[e]=o}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,o){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(_.Component);function xi(e,t,o){var n=e[o],i=t[o];(n||i)&&(e[o]=function(){var e;return i&&(e=i.apply(this,arguments)),n!==i&&(e=n.apply(this,arguments)),e})}function Si(){return null}!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(fi||(fi={})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(vi||(vi={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(_i||(_i={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(yi||(yi={}));var Ci,ki,wi,Ii,Di,Pi,Ti=mn(),Ei=function(e){function t(t){var o=e.call(this,t)||this;return o._coverStyle=_i.portrait,o._imageElement=_.createRef(),o._frameElement=_.createRef(),o._onImageLoaded=function(e){var t=o.props,n=t.src,i=t.onLoad;i&&i(e),o._computeCoverStyle(o.props),n&&o.setState({loadState:yi.loaded})},o._onImageError=function(e){o.props.onError&&o.props.onError(e),o.setState({loadState:yi.error})},o.state={loadState:yi.notLoaded},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){e.src!==this.props.src?this.setState({loadState:yi.notLoaded}):this.state.loadState===yi.loaded&&this._computeCoverStyle(e)},t.prototype.componentDidUpdate=function(e,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},t.prototype.render=function(){var e=di(this.props,li,["width","height"]),t=this.props,o=t.src,n=t.alt,i=t.width,r=t.height,s=t.shouldFadeIn,a=t.shouldStartVisible,l=t.className,c=t.imageFit,d=t.role,u=t.maximizeFrame,p=t.styles,h=t.theme,g=this.state.loadState,f=void 0!==this.props.coverStyle?this.props.coverStyle:this._coverStyle,v=Ti(p,{theme:h,className:l,width:i,height:r,maximizeFrame:u,shouldFadeIn:s,shouldStartVisible:a,isLoaded:g===yi.loaded||g===yi.notLoaded&&this.props.shouldStartVisible,isLandscape:f===_i.landscape,isCenter:c===vi.center,isCenterContain:c===vi.centerContain,isCenterCover:c===vi.centerCover,isContain:c===vi.contain,isCover:c===vi.cover,isNone:c===vi.none,isError:g===yi.error,isNotImageFit:void 0===c});return _.createElement("div",{className:v.root,style:{width:i,height:r},ref:this._frameElement},_.createElement("img",m({},e,{onLoad:this._onImageLoaded,onError:this._onImageError,key:"fabricImage"+this.props.src||"",className:v.image,ref:this._imageElement,src:o,alt:n,role:d})))},t.prototype._checkImageLoaded=function(){var e=this.props.src;this.state.loadState===yi.notLoaded&&(!!this._imageElement.current&&(e&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:yi.loaded})))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,o=e.width,n=e.height;if((t===vi.cover||t===vi.contain||t===vi.centerContain||t===vi.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var i=void 0;i=o&&n&&t!==vi.centerContain&&t!==vi.centerCover?o/n:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var r=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=r>i?_i.landscape:_i.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(_.Component),Mi={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Ri=cn(Ei,function(e){var t=e.className,o=e.width,n=e.height,i=e.maximizeFrame,r=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,d=e.isContain,u=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,g=e.isError,f=e.isNotImageFit,v=e.theme,_=So(Mi,v),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},b=re(),x=void 0!==b&&void 0===b.navigator.msMaxTouchPoints,S=d&&l||u&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_.root,v.fonts.medium,{overflow:"hidden"},i&&[_.rootMaximizeFrame,{height:"100%",width:"100%"}],r&&s&&!a&&Jo.fadeIn400,(c||d||u||p||h)&&{position:"relative"},t],image:[_.image,{display:"block",opacity:0},r&&["is-loaded",{opacity:1}],c&&[_.imageCenter,y],d&&[_.imageContain,x&&{width:"100%",height:"100%",objectFit:"contain"},!x&&S,y],u&&[_.imageCover,x&&{width:"100%",height:"100%",objectFit:"cover"},!x&&S,y],p&&[_.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],h&&[_.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],m&&[_.imageNone,{width:"auto",height:"auto"}],f&&[!!o&&!n&&{height:"auto",width:"100%"},!o&&!!n&&{height:"100%",width:"auto"},!!o&&!!n&&{height:"100%",width:"100%"}],l&&_.imageLandscape,!l&&_.imagePortrait,!r&&"is-notLoaded",s&&"is-fadeIn",g&&"is-error"]}},void 0,{scope:"Image"},!0),Ni=mn({disableCaching:!0}),Bi=function(e){function t(t){var o=e.call(this,t)||this;return o.onImageLoadingStateChange=function(e){o.props.imageProps&&o.props.imageProps.onLoadingStateChange&&o.props.imageProps.onLoadingStateChange(e),e===yi.error&&o.setState({imageLoadError:!0})},o.state={imageLoadError:!1},o}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.ariaLabel,o=e.className,n=e.styles,i=e.iconName,r=e.imageErrorAs,s=e.theme,a="string"==typeof i&&0===i.length,l=this.props.iconType===fi.image||this.props.iconType===fi.Image,c=this._getIconContent(i),d=c.iconClassName,u=c.children,p=Ni(n,{theme:s,className:o,iconClassName:d,isImage:l,isPlaceholder:a}),h=l?"div":"i",g=di(this.props,zn),f=this.state.imageLoadError,v=m({},this.props.imageProps,{onLoadingStateChange:this.onImageLoadingStateChange}),y=f&&r||Ri,b=t?{"aria-label":t}:{role:"presentation","aria-hidden":!v.alt&&!v["aria-labelledby"]};return _.createElement(h,m({"data-icon-name":i},b,g,{className:p.root}),l?_.createElement(y,m({},v)):u)},t.prototype._getIconContent=function(e){var t=be(e)||{subset:{className:void 0},code:void 0};return{children:t.code,iconClassName:t.subset.className}},t}(_.Component),Fi=cn(Bi,function(e){var t=e.className,o=e.iconClassName,n=e.isPlaceholder,i=e.isImage,r=e.styles;return{root:[i&&"ms-Icon-imageContainer",n&&"ms-Icon-placeHolder",{display:"inline-block"},n&&{width:"1em"},i&&{overflow:"hidden"},o,t,r&&r.root,r&&r.imageContainer]}},void 0,{scope:"Icon"},!0);!function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size28=7]="size28",e[e.size16=8]="size16",e[e.size10=9]="size10",e[e.size24=10]="size24",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size72=14]="size72",e[e.size100=15]="size100"}(Ci||(Ci={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(ki||(ki={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet"}(wi||(wi={})),(Di=Ii||(Ii={})).size10="20px",Di.size16="16px",Di.size24="24px",Di.size28="28px",Di.size32="32px",Di.size40="40px",Di.size48="48px",Di.size72="72px",Di.size100="100px",function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size20="20px",e.size28="28px",e.border="2px"}(Pi||(Pi={}));var Li,Ai=function(e){return{isSize10:e===Ci.size10||e===Ci.tiny,isSize16:e===Ci.size16,isSize24:e===Ci.size24||e===Ci.extraExtraSmall,isSize28:e===Ci.size28||e===Ci.extraSmall,isSize32:e===Ci.size32,isSize40:e===Ci.size40||e===Ci.small,isSize48:e===Ci.size48||e===Ci.regular,isSize72:e===Ci.size72||e===Ci.large,isSize100:e===Ci.size100||e===Ci.extraLarge}},Oi=((Li={})[Ci.tiny]=10,Li[Ci.extraExtraSmall]=24,Li[Ci.extraSmall]=28,Li[Ci.small]=40,Li[Ci.regular]=48,Li[Ci.large]=72,Li[Ci.extraLarge]=100,Li[Ci.size10]=10,Li[Ci.size16]=16,Li[Ci.size24]=24,Li[Ci.size28]=28,Li[Ci.size32]=32,Li[Ci.size40]=40,Li[Ci.size48]=48,Li[Ci.size72]=72,Li[Ci.size100]=100,Li),Hi=function(e){return{isAvailable:e===ki.online,isAway:e===ki.away,isBlocked:e===ki.blocked,isBusy:e===ki.busy,isDoNotDisturb:e===ki.dnd,isOffline:e===ki.offline}},Wi=mn(),zi=function(e){function t(t){var o=e.call(this,t)||this;return o._onRenderIcon=function(e,t){return _.createElement(Fi,{className:e,iconName:Vi(o.props.presence,o.props.isOutOfOffice),style:t})},o}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.coinSize,o=e.isOutOfOffice,n=e.styles,i=e.presence,r=e.theme,s=Ai(this.props.size),a=!(s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&(!t||t>32),l=t?t/3<40?t/3+"px":"40px":"",c=t?{fontSize:t?t/6<20?t/6+"px":"20px":"",lineHeight:l}:void 0,d=t?{width:l,height:l}:void 0,u=Wi(n,{theme:r,presence:i,size:this.props.size,isOutOfOffice:o});return i===ki.none?null:_.createElement("div",{className:u.presence,style:d},a&&this._onRenderIcon(u.presenceIcon,c))},t}(bi);function Vi(e,t){if(e){switch(ki[e]){case"online":return"SkypeCheck";case"away":return t?"SkypeArrow":"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?"SkypeArrow":""}return""}}var Ki={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function Ui(e){return{color:e,borderColor:e}}function Gi(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function Yi(e){return{height:e,width:e}}function ji(e){return{backgroundColor:e}}var qi=cn(zi,function(e){var t,o,n,i,r,s,a=e.theme,l=a.semanticColors,c=So(Ki,a),d=Ai(e.size),u=Hi(e.presence),p=u.isOffline||e.isOutOfOffice&&(u.isAvailable||u.isBusy||u.isAway||u.isDoNotDisturb),h=d.isSize72||d.isSize100?"2px":"1px";return{presence:[c.presence,{position:"absolute",height:Pi.size12,width:Pi.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+l.bodyBackground,textAlign:"center",boxSizing:"content-box",backgroundClip:"content-box",MsHighContrastAdjust:"none",selectors:(t={},t[At]={borderColor:"Window",backgroundColor:"WindowText"},t)},d.isSize10&&{right:"auto",top:"7px",left:0,border:0,selectors:(o={},o[At]={top:"9px",border:"1px solid WindowText"},o)},(d.isSize10||d.isSize24||d.isSize28||d.isSize32)&&Yi(Pi.size8),(d.isSize40||d.isSize48)&&Yi(Pi.size12),d.isSize16&&{height:Pi.size6,width:Pi.size6,borderWidth:"1.5px"},d.isSize72&&Yi(Pi.size20),d.isSize100&&Yi(Pi.size28),u.isAvailable&&{backgroundColor:"#7FBA00",selectors:(n={},n[At]=ji("Highlight"),n)},u.isAway&&ji("#FCD116"),u.isBlocked&&[{selectors:(i={":after":d.isSize40||d.isSize48||d.isSize72||d.isSize100?{content:'""',width:"100%",height:h,backgroundColor:"#D93B3B",transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},i[At]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},i)}],u.isBusy&&ji("#D93B3B"),u.isDoNotDisturb&&ji("#E81123"),u.isOffline&&ji("#93ABBD"),(p||u.isBlocked)&&[{backgroundColor:l.bodyBackground,selectors:(r={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:h+" solid #D93B3B",borderRadius:"50%",boxSizing:"border-box"}},r[At]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},r)}],p&&u.isAvailable&&Gi(h,"#7FBA00"),p&&u.isBusy&&Gi(h,"#D93B3B"),p&&u.isAway&&Gi(h,"#B4009E"),p&&u.isDoNotDisturb&&Gi(h,"#E81123"),p&&u.isOffline&&Gi(h,"#93ABBD"),p&&u.isOffline&&e.isOutOfOffice&&Gi(h,"#B4009E")],presenceIcon:[c.presenceIcon,{color:l.bodyBackground,fontSize:"6px",lineHeight:Pi.size12,verticalAlign:"top",selectors:(s={},s[At]={color:"Window"},s)},d.isSize72&&{fontSize:_t.small,lineHeight:Pi.size20},d.isSize100&&{fontSize:_t.medium,lineHeight:Pi.size28},u.isAway&&{position:"relative",left:p?void 0:"1px"},p&&u.isAvailable&&Ui("#7FBA00"),p&&u.isBusy&&Ui("#D93B3B"),p&&u.isAway&&Ui("#B4009E"),p&&u.isDoNotDisturb&&Ui("#E81123"),p&&u.isOffline&&Ui("#93ABBD"),p&&u.isOffline&&e.isOutOfOffice&&Ui("#B4009E")]}},void 0,{scope:"PersonaPresence"}),Zi=[wi.lightGreen,wi.lightBlue,wi.lightPink,wi.green,wi.darkGreen,wi.pink,wi.magenta,wi.purple,wi.violet,wi.teal,wi.blue,wi.darkBlue,wi.orange,wi.darkRed],Xi=Zi.length;function Qi(e){var t=e.primaryText,o=e.text,n=e.initialsColor;return"string"==typeof n?n:function(e){switch(e){case wi.lightBlue:return"#6BA5E7";case wi.blue:return"#2D89EF";case wi.darkBlue:return"#2B5797";case wi.teal:return"#00ABA9";case wi.lightGreen:return"#99B433";case wi.green:return"#00A300";case wi.darkGreen:return"#1E7145";case wi.lightPink:return"#E773BD";case wi.pink:return"#FF0097";case wi.magenta:return"#7E3878";case wi.purple:return"#603CBA";case wi.black:return"#1D1D1D";case wi.orange:return"#DA532C";case wi.red:return"#EE1111";case wi.darkRed:return"#B91D47";case wi.transparent:return"transparent";case wi.violet:return"#5E4B8B"}}(n=void 0!==n?n:function(e){var t=wi.blue;if(!e)return t;for(var o=0,n=e.length-1;n>=0;n--){var i=e.charCodeAt(n),r=n%8;o^=(i<>8-r)}return t=Zi[o%Xi]}(o||t))}var $i,Ji=mn(),er=function(e){function t(t){var o=e.call(this,t)||this;return o._onRenderCoin=function(e){var t=o.props,n=t.coinSize,i=t.styles,r=t.imageUrl,s=t.imageAlt,a=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,d=t.showUnknownPersonaCoin;if(!r)return null;var u=o.props.size,p=Ji(i,{theme:c,size:u,showUnknownPersonaCoin:d}),h=n||Oi[u];return _.createElement(Ri,{className:p.image,imageFit:vi.cover,src:r,width:h,height:h,alt:s,shouldFadeIn:a,shouldStartVisible:l,onLoadingStateChange:o._onPhotoLoadingStateChange})},o._onRenderInitials=function(e){var t=e.imageInitials,n=e.allowPhoneInitials;if(e.showUnknownPersonaCoin)return _.createElement(Fi,{iconName:"Help"});var i=yn();return""!==(t=t||In(o._getText(),i,n))?_.createElement("span",null,t):_.createElement(Fi,{iconName:"Contact"})},o._onPhotoLoadingStateChange=function(e){o.setState({isImageLoaded:e===yi.loaded,isImageError:e===yi.error}),o.props.onPhotoLoadingStateChange&&o.props.onPhotoLoadingStateChange(e)},o._warnDeprecations({primaryText:"text"}),o.state={isImageLoaded:!1,isImageError:!1},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){e.imageUrl!==this.props.imageUrl&&this.setState({isImageLoaded:!1,isImageError:!1})},t.prototype.render=function(){var e=this.props,t=e.className,o=e.coinProps,n=e.showUnknownPersonaCoin,i=e.coinSize,r=e.styles,s=e.imageUrl,a=e.isOutOfOffice,l=e.onRenderCoin,c=void 0===l?this._onRenderCoin:l,d=e.onRenderInitials,u=void 0===d?this._onRenderInitials:d,p=e.presence,h=e.showInitialsUntilImageLoads,g=e.theme,f=this.props.size,v=di(this.props,ci),y=di(o||{},ci),b=i?{width:i,height:i}:void 0,x=n,S={coinSize:i,isOutOfOffice:a,presence:p,size:f,theme:g},C=Ji(r,{theme:g,className:o&&o.className?o.className:t,size:f,coinSize:i,showUnknownPersonaCoin:n}),k=Boolean(!this.state.isImageLoaded&&(h&&s||!s||this.state.isImageError||x));return _.createElement("div",m({},v,{className:C.coin}),f!==Ci.size10&&f!==Ci.tiny?_.createElement("div",m({},y,{className:C.imageArea,style:b}),k&&_.createElement("div",{className:j(C.initials,!n&&{backgroundColor:Qi(this.props)}),style:b,"aria-hidden":"true"},u(this.props,this._onRenderInitials)),!x&&c(this.props,this._onRenderCoin),_.createElement(qi,m({},S))):this.props.presence?_.createElement(qi,m({},S)):_.createElement(Fi,{iconName:"Contact",className:C.size10WithoutPresenceIcon}),this.props.children)},t.prototype._getText=function(){return this.props.text||this.props.primaryText||""},t.defaultProps={size:Ci.size48,presence:ki.none,imageAlt:""},t}(bi),tr={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size72:"ms-Persona--size72",size100:"ms-Persona--size100"},or=cn(er,function(e){var t,o=e.className,n=e.theme,i=e.coinSize,r=n.palette,s=Ai(e.size),a=So(tr,n),l=i||e.size&&Oi[e.size]||48;return{coin:[a.coin,n.fonts.medium,s.isSize10&&a.size10,s.isSize16&&a.size16,s.isSize24&&a.size24,s.isSize28&&a.size28,s.isSize32&&a.size32,s.isSize40&&a.size40,s.isSize48&&a.size48,s.isSize72&&a.size72,s.isSize100&&a.size100,o],size10WithoutPresenceIcon:{fontSize:"10px",position:"absolute",top:"5px",right:"auto",left:0},imageArea:[a.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:l,width:l},l<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[a.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},l<=10&&{overflow:"visible",background:"transparent",height:0,width:0},l>10&&{height:l,width:l}],initials:[a.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":r.white,fontSize:_t.large,fontWeight:yt.regular,lineHeight:48===l?46:l,height:l,selectors:(t={},t[At]={border:"1px solid WindowText",MsHighContrastAdjust:"none",color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},l<32&&{fontSize:_t.xSmall},l>=32&&l<48&&{fontSize:_t.medium},l>=72&&l<100&&{fontSize:_t.xxLarge},l>=100&&{fontSize:_t.superLarge}]}},void 0,{scope:"PersonaCoin"}),nr=function(e){function t(t){var o=e.call(this,t)||this;return o._onRenderIcon=function(e){return e.activityPersonas?o._onRenderPersonaArray(e):o.props.activityIcon},o._onRenderActivityDescription=function(e){var t=o._getClassNames(e),n=e.activityDescription||e.activityDescriptionText;return n?_.createElement("span",{className:t.activityText},n):null},o._onRenderComments=function(e){var t=o._getClassNames(e),n=e.comments||e.commentText;return!e.isCompact&&n?_.createElement("div",{className:t.commentText},n):null},o._onRenderTimeStamp=function(e){var t=o._getClassNames(e);return!e.isCompact&&e.timeStamp?_.createElement("div",{className:t.timeStamp},e.timeStamp):null},o._onRenderPersonaArray=function(e){var t=o._getClassNames(e),n=null,i=e.activityPersonas;if(i[0].imageUrl||i[0].imageInitials){var r=[],s=i.length>1||e.isCompact,a=e.isCompact?3:4,l=void 0;e.isCompact&&(l={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),i.filter(function(e,t){return t0&&this._inputElement.current&&this._inputElement.current.setSelectionRange(i,o.length,"backward")}}},t.prototype.render=function(){var e=this.state.displayValue,t=di(this.props,Zn);return _.createElement("input",m({},t,{ref:this._inputElement,value:e,autoCapitalize:"off",autoComplete:"off",onCompositionStart:this._onCompositionStart,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue(""),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,o,n){!o&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||n)&&(this._autoFillEnabled=!0)},t.prototype._notifyInputChange=function(e){this.props.onInputValueChange&&this.props.onInputValueChange(e)},t.prototype._getDisplayValue=function(e,t){var o=e;return t&&e&&this._doesTextStartWith(t,o)&&this._autoFillEnabled&&(o=t),o},t.prototype._doesTextStartWith=function(e,t){return!(!e||!t)&&0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())},t.defaultProps={enableAutofillOnKeyPress:[zt.down,zt.up]},t}(bi),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(ir),sr=function(e){function t(t){var o=e.call(this,t)||this;return o.state={isRendered:!1},o}return h(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=setTimeout(function(){e.setState({isRendered:!0})},t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?_.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(_.Component),ar=mn(),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.message,o=e.styles;return this._classNames=ar(o),_.createElement("div",m({role:"status"},di(this.props,ci)),_.createElement(sr,null,_.createElement("div",{className:this._classNames.screenReaderText},t)))},t.defaultProps={"aria-live":"assertive"},t}(_.Component),cr=cn(lr,function(){return{screenReaderText:eo}}),dr={none:0,all:1,inputOnly:2};function ur(e){return e&&!!e._virtual}function pr(e){var t;return e&&ur(e)&&(t=e._virtual.parent),t}function hr(e,t){return void 0===t&&(t=!0),e&&(t&&pr(e)||e.parentNode&&e.parentNode)}function mr(e,t){return e&&e!==document.body?t(e)?e:mr(hr(e),t):null}function gr(e,t){var o=mr(e,function(e){return e.hasAttribute(t)});return o&&o.getAttribute(t)}function fr(e,t,o){void 0===o&&(o=!0);var n=!1;if(e&&t)if(o)for(n=!1;t;){var i=hr(t);if(i===e){n=!0;break}t=i}else e.contains&&(n=e.contains(t));return n}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional"}($i||($i={}));var vr="data-is-focusable",_r="data-is-visible",yr="data-focuszone-id",br="data-is-sub-focuszone";function xr(e,t,o){return Dr(e,t,!0,!1,!1,o)}function Sr(e,t,o){return Ir(e,t,!0,!1,!0,o)}function Cr(e,t,o,n){return void 0===n&&(n=!0),Dr(e,t,n,!1,!1,o,!1,!0)}function kr(e,t,o,n){return void 0===n&&(n=!0),Ir(e,t,n,!1,!0,o,!1,!0)}function wr(e){var t=Dr(e,e,!0,!1,!1,!0);return!!t&&(Fr(t),!0)}function Ir(e,t,o,n,i,r,s,a){if(!t||!s&&t===e)return null;var l=Pr(t);if(i&&l&&(r||!Er(t)&&!Mr(t))){var c=Ir(e,t.lastElementChild,!0,!0,!0,r,s,a);if(c){if(a&&Tr(c,!0)||!a)return c;var d=Ir(e,c.previousElementSibling,!0,!0,!0,r,s,a);if(d)return d;for(var u=c.parentElement;u&&u!==t;){var p=Ir(e,u.previousElementSibling,!0,!0,!0,r,s,a);if(p)return p;u=u.parentElement}}}if(o&&l&&Tr(t,a))return t;var h=Ir(e,t.previousElementSibling,!0,!0,!0,r,s,a);return h||(n?null:Ir(e,t.parentElement,!0,!1,!1,r,s,a))}function Dr(e,t,o,n,i,r,s,a){if(!t||t===e&&i&&!s)return null;var l=Pr(t);if(o&&l&&Tr(t,a))return t;if(!i&&l&&(r||!Er(t)&&!Mr(t))){var c=Dr(e,t.firstElementChild,!0,!0,!1,r,s,a);if(c)return c}if(t===e)return null;var d=Dr(e,t.nextElementSibling,!0,!0,!1,r,s,a);return d||(n?null:Dr(e,t.parentElement,!1,!1,!0,r,s,a))}function Pr(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(_r);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Tr(e,t){if(!e||e.disabled)return!1;var o=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"))&&(o=parseInt(n,10));var i=e.getAttribute?e.getAttribute(vr):null,r=null!==n&&o>=0,s=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===i||r);return t?-1!==o&&s:s}function Er(e){return!!(e&&e.getAttribute&&e.getAttribute(yr))}function Mr(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(br))}function Rr(e){var t=Dt(e),o=t&&t.activeElement;return!(!o||!fr(e,o))}function Nr(e,t){return"true"!==gr(e,t)}var Br=void 0;function Fr(e){if(e){if(Br)return void(Br=e);Br=e;var t=re(e);t&&t.requestAnimationFrame(function(){Br&&Br.focus(),Br=void 0})}}function Lr(e,t){for(var o=e,n=0,i=t;n-1&&(-1===r||d=0&&d<0)break}}while(i);if(s&&s!==this._activeElement)a=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&n)return e?this.focusElement(Dr(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ir(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},t.prototype._moveFocusDown=function(){var e=this,t=-1,o=this._focusAlignment.left;return!!this._moveFocus(!0,function(n,i){var r=-1,s=Math.floor(i.top),a=Math.floor(n.bottom);return s=a||s===t)&&(t=s,r=o>=i.left&&o<=i.left+i.width?0:Math.abs(i.left+i.width/2-o)),r)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,o=this._focusAlignment.left;return!!this._moveFocus(!1,function(n,i){var r=-1,s=Math.floor(i.bottom),a=Math.floor(i.top),l=Math.floor(n.top);return s>l?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&s<=l||a===t)&&(t=a,r=o>=i.left&&o<=i.left+i.width?0:Math.abs(i.left+i.width/2-o)),r)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,$r);return!!this._moveFocus(yn(),function(o,n){var i=-1;return(yn()?n.top.toFixed(3)o.top.toFixed(3))&&n.right<=o.right&&e.props.direction!==$i.vertical?i=o.right-n.right:t||(i=-999999999),i},void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,$r);return!!this._moveFocus(!yn(),function(o,n){var i=-1;return(yn()?n.bottom.toFixed(3)>o.top.toFixed(3):n.top.toFixed(3)=o.left&&e.props.direction!==$i.vertical?i=n.left-o.left:t||(i=-999999999),i},void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._setFocusAlignment=function(e,t,o){if(this.props.direction===$i.bidirectional&&(!this._focusAlignment||t||o)){var n=e.getBoundingClientRect(),i=n.left+n.width/2,r=n.top+n.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:r}),t&&(this._focusAlignment.left=i),o&&(this._focusAlignment.top=r)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=hr(e,ns);t&&t!==this._root.current&&t!==document.body;){if(Er(t))return t;t=hr(t,ns)}return t},t.prototype._updateTabIndexes=function(e){!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!fr(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Tr(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,o=0;t&&o-1){var o=e.selectionStart,n=o!==e.selectionEnd,i=e.value;if(n||o>0&&!t||o!==i.length&&t||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Nr(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Xr(e,this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:$i.bidirectional},t}(_.Component);function rs(){for(var e=[],t=0;t=0&&(n.keytip.visible=this.keytips[i].keytip.visible,this.keytips=us(this.keytips,n,i),pi.raise(this,gs.KEYTIP_UPDATED,{keytip:n.keytip,uniqueID:n.uniqueID}))},e.prototype.unregister=function(e,t,o){void 0===o&&(o=!1),o?this.persistedKeytips=this.persistedKeytips.filter(function(e){return e.uniqueID!==t}):this.keytips=this.keytips.filter(function(e){return e.uniqueID!==t});var n=o?gs.PERSISTED_KEYTIP_REMOVED:gs.KEYTIP_REMOVED;pi.raise(this,n,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){pi.raise(this,gs.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){pi.raise(this,gs.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){return this.keytips.map(function(e){return e.keytip})},e.prototype.addParentOverflow=function(e){var t=e.keySequences.slice();if(t.pop(),0!==t.length){var o=as(this.getKeytips(),function(e){return ms(t,e.keySequences)});if(o&&o.overflowSetSequence)return m({},e,{overflowSetSequence:o.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){pi.raise(this,gs.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Fn()),{keytip:m({},e),uniqueID:t}},e._instance=new e,e}();function Ss(e){return e.reduce(function(e,t){return e+vs+t.split("").join(vs)},fs)}function Cs(e,t){var o=t.length,n=t.slice().pop();return ps(e.slice(),o-1,n)}function ks(e){return"["+_s+'="'+Ss(e)+'"]'}var ws,Is,Ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._keytipManager=xs.getInstance(),t}return h(t,e),t.prototype.componentDidMount=function(){this.props.keytipProps&&(this._uniqueId=this._keytipManager.register(this._getKtpProps()))},t.prototype.componentWillUnmount=function(){this.props.keytipProps&&this._keytipManager.unregister(this._getKtpProps(),this._uniqueId)},t.prototype.componentDidUpdate=function(){this.props.keytipProps&&this._keytipManager.update(this._getKtpProps(),this._uniqueId)},t.prototype.render=function(){var e=this.props,t=e.children,o=e.keytipProps,n=e.ariaDescribedBy,i={};return o&&(i=this._getKtpAttrs(o,n)),t(i)},t.prototype._getKtpProps=function(){return m({disabled:this.props.disabled},this.props.keytipProps)},t.prototype._getKtpAttrs=function(e,t){if(e){var o=this._keytipManager.addParentOverflow(e),n=function(e){var t=" "+bs;return e.length?t+" "+Ss(e):t}(o.keySequences),i=o.keySequences.slice();o.overflowSetSequence&&(i=Cs(i,o.overflowSetSequence));var r=Ss(i);return{"aria-describedby":rs(t,n),"data-ktp-target":r,"data-ktp-execute-target":r}}},t}(_.Component),Ps=mn(),Ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._link=_.createRef(),t._onClick=function(e){var o=t.props,n=o.onClick;o.disabled?e.preventDefault():n&&n(e)},t}return h(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.disabled,n=t.children,i=t.className,r=t.href,s=t.theme,a=t.styles,l=t.keytipProps,c=Ps(a,{className:i,isButton:!r,isDisabled:o,theme:s}),d=this._getRootType(this.props);return _.createElement(Ds,{keytipProps:l,ariaDescribedBy:this.props["aria-describedby"],disabled:o},function(t){return _.createElement(d,m({},t,e._adjustPropsForRootType(d,e.props),{className:c.root,onClick:e._onClick,ref:e._link,"aria-disabled":o}),n)})},t.prototype.focus=function(){var e=this._link.current;e&&e.focus&&e.focus()},t.prototype._adjustPropsForRootType=function(e,t){t.children,t.as;var o=t.disabled,n=t.target,i=t.href,r=(t.theme,t.getStyles,t.styles,t.componentRef,g(t,["children","as","disabled","target","href","theme","getStyles","styles","componentRef"]));return"string"==typeof e?"a"===e?m({target:n,href:o?void 0:i},r):"button"===e?m({type:"button",disabled:o},r):m({},r,{disabled:o}):m({target:n,href:i,disabled:o},r)},t.prototype._getRootType=function(e){return e.as?e.as:e.href?"a":"button"},t}(bi),Es={root:"ms-Link"},Ms=cn(Ts,function(e){var t,o,n,i,r=e.className,s=e.isButton,a=e.isDisabled,l=e.theme,c=l.semanticColors,d=So(Es,l);return{root:[d.root,l.fonts.medium,{color:c.link,outline:"none",fontSize:"inherit",fontWeight:"inherit",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+l.palette.neutralSecondary+" inset",selectors:(o={},o[At]={outline:"1px solid WindowText"},o)}},t[At]={borderBottom:"none"},t)},s&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(n={},n["@media screen and (-ms-high-contrast: white-on-black)"]={color:"#FFFF00"},n[Ot]={color:"#00009F"},n)},!s&&{textDecoration:"none"},a&&["is-disabled",{color:c.disabledText,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!a&&{selectors:{"&:active, &:hover, &:active:hover":{color:c.linkHovered,selectors:(i={},i[At]={textDecoration:"underline"},i)},"&:focus":{color:c.link}}},d.root,r]}},void 0,{scope:"Link"}),Rs={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function Ns(e){if(void 0===Is||e){var t=re(),o=t&&t.navigator.userAgent;Is=!!o&&-1!==o.indexOf("Macintosh")}return!!Is}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(ws||(ws={}));var Bs=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function Fs(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Ls(e){return!(!e.subMenuProps&&!e.items)}function As(e){return!(!e.isDisabled&&!e.disabled)}var Os=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function Hs(e,t,o){void 0===o&&(o=Os);var n=[],i=function(i){"function"!=typeof t[i]||void 0!==e[i]||o&&-1!==o.indexOf(i)||(n.push(i),e[i]=function(){t[i].apply(t,arguments)})};for(var r in t)i(r);return n}function Ws(e,t){t.forEach(function(t){return delete e[t]})}var zs,Vs=function(e){function t(t){var o=e.call(this,t)||this;return o._skipComponentRefResolution=!0,o._updateComposedComponentRef=o._updateComposedComponentRef.bind(o),o}return h(t,e),t.prototype._updateComposedComponentRef=function(e){this._composedComponentInstance=e,e?this._hoisted=Hs(this,e):this._hoisted&&Ws(this,this._hoisted)},t}(bi);function Ks(e,t){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge"}(zs||(zs={}));var Us,Gs,Ys,js=[479,639,1023,1365,1919,99999999];function qs(e){var t=function(t){function o(e){var o=t.call(this,e)||this;return o._updateComposedComponentRef=o._updateComposedComponentRef.bind(o),o.state={responsiveMode:o._getResponsiveMode()},o}return h(o,t),o.prototype.componentDidMount=function(){var e=this;this._events.on(window,"resize",function(){var t=e._getResponsiveMode();t!==e.state.responsiveMode&&e.setState({responsiveMode:t})})},o.prototype.componentWillUnmount=function(){this._events.dispose()},o.prototype.render=function(){var t=this.state.responsiveMode;return _.createElement(e,m({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},o.prototype._getResponsiveMode=function(){var e=zs.small,t=re();if(void 0!==t)try{for(;t.innerWidth>js[e];)e++}catch(t){e=zs.large}else{if(void 0===Us)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");e=Us}return e},o}(Vs);return Ks(e,t)}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Gs||(Gs={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Ys||(Ys={}));var Zs,Xs,Qs,$s,Js,ea=function(){function e(e,t,o,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===o&&(o=0),void 0===n&&(n=0),this.top=o,this.bottom=n,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}(),ta=0,oa=j({overflow:"hidden !important"}),na="data-is-scrollable",ia=(Xs=0,Qs=null,$s=function(e){1===e.targetTouches.length&&(Xs=e.targetTouches[0].clientY)},Js=function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),Qs)){var t=e.targetTouches[0].clientY-Xs,o=ca(e.target);o&&(Qs=o),0===Qs.scrollTop&&t>0&&e.preventDefault(),Qs.scrollHeight-Qs.scrollTop<=Qs.clientHeight&&t<0&&e.preventDefault()}},function(e,t){e&&(t.on(e,"touchstart",$s,{passive:!1}),t.on(e,"touchmove",Js,{passive:!1}),Qs=e)}),ra=function(e){e.preventDefault()};function sa(){var e=Dt();e&&e.body&&!ta&&(e.body.classList.add(oa),e.body.addEventListener("touchmove",ra,{passive:!1,capture:!1})),ta++}function aa(){if(ta>0){var e=Dt();e&&e.body&&1===ta&&(e.body.classList.remove(oa),e.body.removeEventListener("touchmove",ra)),ta--}}function la(){if(void 0===Zs){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Zs=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Zs}function ca(e){for(var t=e;t&&t!==document.body;){if("true"===t.getAttribute(na))return t;t=t.parentElement}for(t=e;t&&t!==document.body;){if("false"!==t.getAttribute(na)){var o=getComputedStyle(t),n=o?o.getPropertyValue("overflow-y"):"";if(n&&("scroll"===n||"auto"===n))return t}t=t.parentElement}return t&&t!==document.body||(t=window),t}var da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(ea);function ua(e,t,o){return{targetEdge:e,alignmentEdge:t,isAuto:o}}var pa=((Wa={})[Rs.topLeftEdge]=ua(Gs.top,Gs.left),Wa[Rs.topCenter]=ua(Gs.top),Wa[Rs.topRightEdge]=ua(Gs.top,Gs.right),Wa[Rs.topAutoEdge]=ua(Gs.top,void 0,!0),Wa[Rs.bottomLeftEdge]=ua(Gs.bottom,Gs.left),Wa[Rs.bottomCenter]=ua(Gs.bottom),Wa[Rs.bottomRightEdge]=ua(Gs.bottom,Gs.right),Wa[Rs.bottomAutoEdge]=ua(Gs.bottom,void 0,!0),Wa[Rs.leftTopEdge]=ua(Gs.left,Gs.top),Wa[Rs.leftCenter]=ua(Gs.left),Wa[Rs.leftBottomEdge]=ua(Gs.left,Gs.bottom),Wa[Rs.rightTopEdge]=ua(Gs.right,Gs.top),Wa[Rs.rightCenter]=ua(Gs.right),Wa[Rs.rightBottomEdge]=ua(Gs.right,Gs.bottom),Wa);function ha(e,t){return!(e.topt.bottom)&&(!(e.leftt.right)))}function ma(e,t){var o=new Array;return e.topt.bottom&&o.push(Gs.bottom),e.leftt.right&&o.push(Gs.right),o}function ga(e,t){return e[Gs[t]]}function fa(e,t,o){return e[Gs[t]]=o,e}function va(e,t){var o=Da(t);return(ga(e,o.positiveEdge)+ga(e,o.negativeEdge))/2}function _a(e,t){return e>0?t:-1*t}function ya(e,t){return _a(e,ga(t,e))}function ba(e,t,o){return _a(o,ga(e,o)-ga(t,o))}function xa(e,t,o){var n=ga(e,t)-o;return e=fa(e,t,o),e=fa(e,-1*t,ga(e,-1*t)-n)}function Sa(e,t,o,n){return void 0===n&&(n=0),xa(e,o,ga(t,o)+_a(o,n))}function Ca(e,t,o){return ya(o,e)>ya(o,t)}function ka(e,t,o,n,i,r,s){void 0===i&&(i=0);var a=n.alignmentEdge,l=n.alignTargetEdge,c={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:a};r||s||(c=function(e,t,o,n,i){void 0===i&&(i=0);for(var r=[Gs.left,Gs.right,Gs.bottom,Gs.top],s=e,a=n.targetEdge,l=n.alignmentEdge,c=0;c<4;c++){if(Ca(s,o,a))return{elementRectangle:s,targetEdge:a,alignmentEdge:l};r.splice(r.indexOf(a),1),r.indexOf(-1*a)>-1?a*=-1:(l=a,a=r.slice(-1)[0]),s=Ia(e,t,{targetEdge:a,alignmentEdge:l},i)}return{elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:l}}(e,t,o,n,i));var d=ma(e,o);if(l){if(c.alignmentEdge&&d.indexOf(-1*c.alignmentEdge)>-1){var u=function(e,t,o,n){var i=e.alignmentEdge,r=e.targetEdge,s=-1*i;return{elementRectangle:Ia(e.elementRectangle,t,{targetEdge:r,alignmentEdge:s},o,n),targetEdge:r,alignmentEdge:s}}(c,t,i,s);if(ha(u.elementRectangle,o))return u}}else for(var p=0,h=d;pMath.abs(ba(e,o,-1*t))?-1*t:t}function Ta(e){return Math.sqrt(e*e*2)}function Ea(e,t,o){if(void 0===e&&(e=Rs.bottomAutoEdge),o)return{alignmentEdge:o.alignmentEdge,isAuto:o.isAuto,targetEdge:o.targetEdge};var n=m({},pa[e]);return yn()?(n.alignmentEdge&&n.alignmentEdge%2==0&&(n.alignmentEdge=-1*n.alignmentEdge),void 0!==t?pa[t]:n):n}function Ma(e,t,o){var n=va(t,e),i=va(o,e),r=Da(e),s=r.positiveEdge,a=r.negativeEdge;return n<=i?s:a}function Ra(e,t,o,n,i,r,s){var a=Ia(e,t,n,i,s);return ha(a,o)?{elementRectangle:a,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:ka(e,t,o,n,i,r,s)}function Na(e,t,o){var n=-1*e.targetEdge,i=new da(0,e.elementRectangle.width,0,e.elementRectangle.height),r={},s=Pa(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Da(n).positiveEdge,o);return r[Gs[n]]=ga(t,n),r[Gs[s]]=ba(t,i,s),{elementPosition:m({},r),closestEdge:Ma(e.targetEdge,t,i),targetEdge:n}}function Ba(e,t){var o=t.targetRectangle,n=Da(t.targetEdge),i=n.positiveEdge,r=n.negativeEdge,s=va(o,t.targetEdge),a=new da(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new da(0,e,0,e);return Ca(l=wa(l=xa(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,s-ya(i,t.elementRectangle)),a,i)?Ca(l,a,r)||(l=Sa(l,a,r)):l=Sa(l,a,i),l}function Fa(e){var t=e.getBoundingClientRect();return new da(t.left,t.right,t.top,t.bottom)}function La(e){return new da(e.left,e.right,e.top,e.bottom)}function Aa(e,t,o,n,i){var r=0,s=pa[t],a=i?-1*s.targetEdge:s.targetEdge;return(r=a===Gs.top?ga(e,s.targetEdge)-n.top-o:a===Gs.bottom?n.bottom-ga(e,s.targetEdge)-o:n.bottom-e.top-o)>0?r:n.height}function Oa(e,t,o,n){var i=e.gapSpace?e.gapSpace:0,r=function(e,t){var o;if(t){if(t.preventDefault){var n=t;o=new da(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)o=Fa(t);else{var i=t;o=new da(i.x,i.x,i.y,i.y)}if(!ha(o,e))for(var r=0,s=ma(o,e);r0&&o>t&&(e=o-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(_.Component),Ya=((Ua={})[Gs.top]=Jo.slideUpIn10,Ua[Gs.bottom]=Jo.slideDownIn10,Ua[Gs.left]=Jo.slideLeftIn10,Ua[Gs.right]=Jo.slideRightIn10,Ua),ja=mn({disableCaching:!0}),qa=0,Za=0,Xa={opacity:0,filter:"opacity(0)"},Qa=["role","aria-roledescription"],$a=function(e){function t(t){var o=e.call(this,t)||this;return o._hostElement=_.createRef(),o._calloutElement=_.createRef(),o._hasListeners=!1,o._disposables=[],o.dismiss=function(e){var t=o.props.onDismiss;t&&t(e)},o._dismissOnScroll=function(e){var t=o.props.preventDismissOnScroll;o.state.positions&&!t&&o._dismissOnClickOrScroll(e)},o._dismissOnResize=function(e){o.props.preventDismissOnResize||o.dismiss(e)},o._dismissOnLostFocus=function(e){o.props.preventDismissOnLostFocus||o._dismissOnClickOrScroll(e)},o._setInitialFocus=function(){o.props.setInitialFocus&&!o._didSetInitialFocus&&o.state.positions&&o._calloutElement.current&&(o._didSetInitialFocus=!0,o._async.requestAnimationFrame(function(){return wr(o._calloutElement.current)}))},o._onComponentDidMount=function(){o._addListeners(),o.props.onLayerMounted&&o.props.onLayerMounted(),o._updateAsyncPosition(),o._setHeightOffsetEveryFrame()},o._async=new ui(o),o._didSetInitialFocus=!1,o.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},o._positionAttempts=0,o}return h(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return(!this.props.hidden||!e.hidden)&&(!Mn(this.props,e)||!Mn(this.state,t))},t.prototype.componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(e){return e()})},t.prototype.componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),e.hidden||e.hidden===this.props.hidden||(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,o=t.styles,n=t.style,i=t.ariaLabel,r=t.ariaDescribedBy,s=t.ariaLabelledBy,a=t.className,l=t.isBeakVisible,c=t.children,d=t.beakWidth,u=t.calloutWidth,p=t.calloutMaxWidth,h=t.finalHeight,g=t.hideOverflow,f=void 0===g?!!h:g,v=t.backgroundColor,y=t.calloutMaxHeight,b=t.onScroll;e=this._getTarget();var x=this.state.positions,S=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,C=y&&S&&y0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds;e||(e={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-2*this.props.minPagePadding,height:this._targetWindow.innerHeight-2*this.props.minPagePadding}),this._bounds=e}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,o=(this.props.gapSpace?this.props.gapSpace:0)+t+2;this._async.requestAnimationFrame(function(){e._target&&(e._maxHeight=Ka(e._target,e.props.directionalHint,o,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())})}else this._maxHeight=this._getBounds().height-2;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var o in t)if(t.hasOwnProperty(o)){var n=e[o],i=t[o];if(void 0===n||void 0===i)return!1;if(n.toFixed(2)!==i.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){if(e)if("string"==typeof e){var t=Dt();this._target=t?t.querySelector(e):null,this._targetWindow=re()}else if(e.stopPropagation)this._targetWindow=re(e.toElement),this._target=e;else if(e.getBoundingClientRect){var o=e;this._targetWindow=re(o),this._target=e}else this._targetWindow=re(),this._target=e;else this._targetWindow=re()},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var o=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+o}),t.offsetHeight-1&&i._virtual.children.splice(r,1)}o._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(o))}function ul(e,t,o){return function(n){var i,r=((i=function(i){function r(e){var t=i.call(this,e)||this;return t._onSettingChanged=t._onSettingChanged.bind(t),t}return h(r,i),r.prototype.componentDidMount=function(){Io.observe(this._onSettingChanged)},r.prototype.componentWillUnmount=function(){Io.unobserve(this._onSettingChanged)},r.prototype.render=function(){var i=this;return _.createElement(an.Consumer,null,function(r){var s=Io.getSettings(t,e,r.customizations),a=i.props;if(s.styles&&"function"==typeof s.styles&&(s.styles=s.styles(m({},s,a))),o&&(s.styles||a.styles)){var l=q(s.styles,a.styles);return _.createElement(n,m({},s,a,{styles:l}))}return _.createElement(n,m({},s,a))})},r.prototype._onSettingChanged=function(){this.forceUpdate()},r}(_.Component)).displayName="Customized"+e,i);return Ks(n,r)}}var pl,hl={};function ml(e){hl[e]&&hl[e].forEach(function(e){return e.forceUpdate()})}var gl=mn(),fl=function(e){function t(t){var o,n,i=e.call(this,t)||this;return i._rootElement=cl(),i._handleRootElementRef=function(e){i._rootElement(e),e&&i._setVirtualParent()},i._filterEvent=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&e.stopPropagation()},i.state={hasMounted:!1},i.props.hostId&&(o=i.props.hostId,n=i,hl[o]||(hl[o]=[]),hl[o].push(n)),i}return h(t,e),t.prototype.componentWillMount=function(){this._layerElement=this._getLayerElement()},t.prototype.componentWillUpdate=function(){this._layerElement||(this._layerElement=this._getLayerElement())},t.prototype.componentDidMount=function(){this.setState({hasMounted:!0}),this._setVirtualParent();var e=this.props,t=e.onLayerDidMount,o=e.onLayerMounted;o&&o(),t&&t()},t.prototype.componentWillUnmount=function(){this._removeLayerElement();var e=this.props,t=e.onLayerWillUnmount,o=e.hostId;t&&t(),o&&function(e,t){if(hl[e]){var o=hl[e].indexOf(t);o>=0&&(hl[e].splice(o,1),0===hl[e].length&&delete hl[e])}}(o,this)},t.prototype.componentDidUpdate=function(){this._setVirtualParent()},t.prototype.render=function(){var e=this._getClassNames(),t=this.props.eventBubblingEnabled,o=this.state.hasMounted;return _.createElement("span",{className:"ms-layer",ref:this._handleRootElementRef},this._layerElement&&o&&ol.createPortal(t?_.createElement(ll,{className:e.content},this.props.children):_.createElement(ll,{className:e.content,onClick:this._filterEvent,onContextMenu:this._filterEvent,onDoubleClick:this._filterEvent,onDrag:this._filterEvent,onDragEnd:this._filterEvent,onDragEnter:this._filterEvent,onDragExit:this._filterEvent,onDragLeave:this._filterEvent,onDragOver:this._filterEvent,onDragStart:this._filterEvent,onDrop:this._filterEvent,onMouseDown:this._filterEvent,onMouseEnter:this._filterEvent,onMouseLeave:this._filterEvent,onMouseMove:this._filterEvent,onMouseOver:this._filterEvent,onMouseOut:this._filterEvent,onMouseUp:this._filterEvent,onKeyDown:this._filterEvent,onKeyPress:this._filterEvent,onKeyUp:this._filterEvent,onFocus:this._filterEvent,onBlur:this._filterEvent,onChange:this._filterEvent,onInput:this._filterEvent,onInvalid:this._filterEvent,onSubmit:this._filterEvent},this.props.children),this._layerElement))},t.prototype._getClassNames=function(){var e=this.props,t=e.className,o=e.styles,n=e.theme;return gl(o,{theme:n,className:t,isNotHost:!this.props.hostId})},t.prototype._setVirtualParent=function(){this._rootElement&&this._rootElement.current&&this._layerElement&&dl(this._layerElement,this._rootElement.current)},t.prototype._getLayerElement=function(){var e=this._getHost(),t=this._getClassNames();if(e!==this._host&&this._removeLayerElement(),e&&(this._host=e,!this._layerElement)){var o=Dt();if(!o)return;this._layerElement=o.createElement("div"),this._layerElement.className=t.root,Zr(this._layerElement),this.props.insertFirst?e.insertBefore(this._layerElement,e.firstChild):e.appendChild(this._layerElement)}return this._layerElement},t.prototype._removeLayerElement=function(){if(this._layerElement){this.props.onLayerWillUnmount();var e=this._layerElement.parentNode;e&&e.removeChild(this._layerElement),this._layerElement=void 0}},t.prototype._getHost=function(){var e=this.props.hostId,t=Dt();if(t){if(e)return t.getElementById(e);var o=pl;return o?t.querySelector(o):t.body}},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=f([ul("Layer",["theme","hostId"])],t)}(_.Component),vl={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},_l=cn(fl,function(e){var t=e.className,o=e.isNotHost,n=e.theme,i=So(vl,n);return{root:[i.root,n.fonts.medium,o&&[i.rootNoHost,{position:"fixed",zIndex:Gt.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}},void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,o=g(e,["layerProps"]),n=_.createElement(tl,m({},o));return this.props.doNotLayer?n:_.createElement(_l,m({},t),n)},t}(_.Component),bl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openSubMenu=function(){var e=t.props,o=e.item,n=e.openSubMenu,i=e.getSubmenuTarget;if(i){var r=i();Ls(o)&&n&&r&&n(o,r)}},t.dismissSubMenu=function(){var e=t.props,o=e.item,n=e.dismissSubMenu;Ls(o)&&n&&n()},t.dismissMenu=function(e){var o=t.props.dismissMenu;o&&o(void 0,e)},t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.item,o=e.classNames;return _.createElement("div",{className:t.split?o.linkContentMenu:o.linkContent},function(e){var t=e.onCheckmarkClick,o=e.item,n=e.classNames,i=Fs(o);if(t)return _.createElement(Fi,{iconName:i?"CheckMark":"",className:n.checkmarkIcon,onClick:function(e){return t(o,e)}});return null}(this.props),function(e){var t=e.item,o=e.hasIcons,n=e.classNames,i=t.iconProps;return o?t.onRenderIcon?t.onRenderIcon(e):_.createElement(Fi,m({},i,{className:n.icon})):null}(this.props),function(e){var t=e.item,o=e.classNames;return t.text||t.name?_.createElement("span",{className:o.label},t.text||t.name):null}(this.props),function(e){var t=e.item,o=e.classNames;return t.secondaryText?_.createElement("span",{className:o.secondaryText},t.secondaryText):null}(this.props),function(e){var t=e.item,o=e.classNames;return Ls(t)?_.createElement(Fi,m({iconName:yn()?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:o.subMenuIcon})):null}(this.props))},t}(bi),xl=_o(function(e){return Z({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),Sl=Ht(0,639),Cl=_o(function(){return{selectors:(e={},e[At]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)};var e}),kl=_o(function(e){var t,o,n,i,r,s,a=e.semanticColors,l=e.fonts,c=a.menuItemBackgroundHovered,d=a.menuItemBackgroundChecked,u=a.bodyDivider;return q({item:[l.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:u,position:"relative"},root:[Xt(e),l.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:"32px",lineHeight:"32px",display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[At]={color:"GrayText",opacity:1},t)},rootHovered:m({backgroundColor:c},Cl()),rootFocused:m({backgroundColor:c},Cl()),rootChecked:m({},Cl()),rootPressed:m({backgroundColor:d},Cl()),rootExpanded:m({backgroundColor:d,color:a.bodyTextChecked},Cl()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:"32px",width:"14px",margin:"0 4px",verticalAlign:"middle",flexShrink:"0"},iconColor:{color:a.menuIcon,selectors:(o={},o[At]={color:"inherit"},o["$root:hover &"]={selectors:(n={},n[At]={color:"HighlightText"},n)},o["$root:focus &"]={selectors:(i={},i[At]={color:"HighlightText"},i)},o)},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext,selectors:(r={},r[At]={color:"HighlightText"},r)},subMenuIcon:{height:"32px",lineHeight:"32px",textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:_t.small,selectors:(s={},s[Sl]={fontSize:_t.icon},s)},splitButtonFlexContainer:[Xt(e),{display:"flex",height:"32px",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"}]})}),wl=Ht(0,639),Il=_o(function(e){return Z(xl(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[wl]={right:32},t)},divider:{height:16,width:1}});var t}),Dl={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText"},Pl=_o(function(e,t,o,n,i,r,s,a,l,c,d,u){var p,h,m,g,f=kl(e),v=So(Dl,e);return Z({item:[v.item,f.item,s],divider:[v.divider,f.divider,a],root:[v.root,f.root,n&&[v.isChecked,f.rootChecked],i&&f.anchorLink,o&&[v.isExpanded,f.rootExpanded],t&&[v.isDisabled,f.rootDisabled],!t&&!o&&[{selectors:(p={":hover":f.rootHovered,":active":f.rootPressed},p["."+Yt+" &:focus, ."+Yt+" &:focus:hover"]=f.rootFocused,p["."+Yt+" &:hover"]={background:"inherit;"},p)}],u],splitPrimary:[f.root,n&&["is-checked",f.rootChecked],(t||d)&&["is-disabled",f.rootDisabled],!(t||d)&&!n&&[{selectors:(h={":hover":f.rootHovered,":hover ~ $splitMenu":f.rootHovered,":active":f.rootPressed},h["."+Yt+" &:focus, ."+Yt+" &:focus:hover"]=f.rootFocused,h["."+Yt+" &:hover"]={background:"inherit;"},h)}]],splitMenu:[f.root,{flexBasis:"0",padding:"0 8px",minWidth:28},o&&["is-expanded",f.rootExpanded],t&&["is-disabled",f.rootDisabled],!t&&!o&&[{selectors:(m={":hover":f.rootHovered,":active":f.rootPressed},m["."+Yt+" &:focus, ."+Yt+" &:focus:hover"]=f.rootFocused,m["."+Yt+" &:hover"]={background:"inherit;"},m)}]],anchorLink:f.anchorLink,linkContent:[v.linkContent,f.linkContent],linkContentMenu:[v.linkContentMenu,f.linkContent,{justifyContent:"center"}],icon:[v.icon,r&&f.iconColor,f.icon,l,t&&[v.isDisabled,f.iconDisabled]],iconColor:f.iconColor,checkmarkIcon:[v.checkmarkIcon,r&&f.checkmarkIcon,f.icon,l],subMenuIcon:[v.subMenuIcon,f.subMenuIcon,c],label:[v.label,f.label],secondaryText:[v.secondaryText,f.secondaryText],splitContainer:[f.splitButtonFlexContainer,{alignItems:"flex-start"},!t&&!n&&[{selectors:(g={},g["."+Yt+" &:focus, ."+Yt+" &:focus:hover"]=f.rootFocused,g)}]]})}),Tl=function(e){var t=e.theme,o=e.disabled,n=e.expanded,i=e.checked,r=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,d=e.subMenuClassName,u=e.primaryDisabled,p=e.className;return Pl(t,o,n,i,r,s,a,l,c,d,u,p)},El=cn(bl,Tl,void 0,{scope:"ContextualMenuItem"}),Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemMouseEnter=function(e){var o=t.props,n=o.item,i=o.onItemMouseEnter;i&&i(n,e,e.currentTarget)},t._onItemClick=function(e){var o=t.props,n=o.item,i=o.onItemClickBase;i&&i(n,e,e.currentTarget)},t._onItemMouseLeave=function(e){var o=t.props,n=o.item,i=o.onItemMouseLeave;i&&i(n,e)},t._onItemKeyDown=function(e){var o=t.props,n=o.item,i=o.onItemKeyDown;i&&i(n,e)},t._onItemMouseMove=function(e){var o=t.props,n=o.item,i=o.onItemMouseMove;i&&i(n,e,e.currentTarget)},t._getSubMenuId=function(e){var o=t.props.getSubMenuId;if(o)return o(e)},t._getSubmenuTarget=function(){},t}return h(t,e),t.prototype.shouldComponentUpdate=function(e){return!Mn(e,this.props)},t}(bi),Rl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=_.createRef(),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var o=t.props,n=o.item,i=o.onItemClick;i&&i(n,e)},t}return h(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.item,n=t.classNames,i=t.index,r=t.focusableElementIndex,s=t.totalItemCount,a=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=void 0===c?El:c,u=t.expandedMenuItemKey,p=t.onItemClick,h=t.openSubMenu,g=t.dismissSubMenu,f=t.dismissMenu,v=o.rel;o.target&&"_blank"===o.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=this._getSubMenuId(o),b=Ls(o),x=di(o,jn),S=As(o),C=o.itemProps,k=o.keytipProps;return k&&b&&(k=m({},k,{hasMenu:!0})),_.createElement("div",null,_.createElement(Ds,{keytipProps:o.keytipProps,ariaDescribedBy:x["aria-describedby"],disabled:S},function(t){return _.createElement("a",m({},x,t,{ref:e._anchor,href:o.href,target:o.target,rel:v,className:n.root,role:"menuitem","aria-owns":o.key===u?y:void 0,"aria-haspopup":b||void 0,"aria-expanded":b?o.key===u:void 0,"aria-posinset":r+1,"aria-setsize":s,"aria-disabled":As(o),style:o.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:b?e._onItemKeyDown:void 0}),_.createElement(d,m({componentRef:o.componentRef,item:o,classNames:n,index:i,onCheckmarkClick:a&&p?p:void 0,hasIcons:l,openSubMenu:h,dismissSubMenu:g,dismissMenu:f,getSubmenuTarget:e._getSubmenuTarget},C)))}))},t}(Ml),Nl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=_.createRef(),t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return h(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.item,n=t.classNames,i=t.index,r=t.focusableElementIndex,s=t.totalItemCount,a=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=void 0===c?El:c,u=t.expandedMenuItemKey,p=t.onItemMouseDown,h=t.onItemClick,g=t.openSubMenu,f=t.dismissSubMenu,v=t.dismissMenu,y=this._getSubMenuId(o),b=Fs(o),x=null!==b,S=x?"menuitemcheckbox":"menuitem",C=Ls(o),k=o.itemProps,w=o.ariaLabel,I=di(o,qn);delete I.disabled;var D={className:n.root,onClick:this._onItemClick,onKeyDown:C?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return p?p(o,e):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":w,"aria-haspopup":C||void 0,"aria-owns":o.key===u?y:void 0,"aria-expanded":C?o.key===u:void 0,"aria-checked":x?!!b:void 0,"aria-posinset":r+1,"aria-setsize":s,"aria-disabled":As(o),role:o.role||S,style:o.style},P=o.keytipProps;return P&&C&&(P=m({},P,{hasMenu:!0})),_.createElement(Ds,{keytipProps:P,ariaDescribedBy:I["aria-describedby"],disabled:As(o)},function(t){return _.createElement("button",m({ref:e._btn},I,D,t),_.createElement(d,m({componentRef:o.componentRef,item:o,classNames:n,index:i,onCheckmarkClick:a&&h?h:void 0,hasIcons:l,openSubMenu:g,dismissSubMenu:f,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},k)))})},t}(Ml),Bl=mn(),Fl=cn(function(e){var t=e.styles,o=e.theme,n=e.getClassNames,i=e.className,r=Bl(t,{theme:o,getClassNames:n,className:i});return _.createElement("span",{className:r.wrapper},_.createElement("span",{className:r.divider}))},function(e){var t=e.theme,o=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(o){var i=o(t);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},void 0,{scope:"VerticalDivider"}),Ll=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemKeyDown=function(e){var o=t.props,n=o.item,i=o.onItemKeyDown;e.which===zt.enter?(t._executeItemClick(e),e.preventDefault(),e.stopPropagation()):i&&i(n,e)},t._getSubmenuTarget=function(){return t._splitButton},t._onItemMouseEnterPrimary=function(e){var o=t.props,n=o.item,i=o.onItemMouseEnter;i&&i(m({},n,{subMenuProps:void 0,items:void 0}),e,t._splitButton)},t._onItemMouseEnterIcon=function(e){var o=t.props,n=o.item,i=o.onItemMouseEnter;i&&i(n,e,t._splitButton)},t._onItemMouseMovePrimary=function(e){var o=t.props,n=o.item,i=o.onItemMouseMove;i&&i(m({},n,{subMenuProps:void 0,items:void 0}),e,t._splitButton)},t._onItemMouseMoveIcon=function(e){var o=t.props,n=o.item,i=o.onItemMouseMove;i&&i(n,e,t._splitButton)},t._onIconItemClick=function(e){var o=t.props,n=o.item,i=o.onItemClickBase;i&&i(n,e,t._splitButton?t._splitButton:e.currentTarget)},t._executeItemClick=function(e){var o=t.props,n=o.item,i=o.executeItemClick,r=o.onItemClick;if(!n.disabled&&!n.isDisabled)return t._processingTouch&&r?r(n,e):void(i&&i(n,e))},t._onTouchStart=function(e){!t._splitButton||"onpointerdown"in t._splitButton||t._handleTouchAndPointerEvent(e)},t._onPointerDown=function(e){"touch"===e.pointerType&&(t._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},t}return h(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.render=function(){var e=this,t=this.props,o=t.item,n=t.classNames,i=t.index,r=t.focusableElementIndex,s=t.totalItemCount,a=t.hasCheckmarks,l=t.hasIcons,c=t.onItemMouseLeave,d=t.expandedMenuItemKey,u=Ls(o),p=o.keytipProps;return p&&(p=m({},p,{hasMenu:!0})),_.createElement(Ds,{keytipProps:p,disabled:As(o)},function(t){return _.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:"menuitem","aria-label":o.ariaLabel,className:n.splitContainer,"aria-disabled":As(o),"aria-expanded":u?o.key===d:void 0,"aria-haspopup":!0,"aria-describedby":rs(o.ariaDescription,t["aria-describedby"]),"aria-checked":o.isChecked||o.checked,"aria-posinset":r+1,"aria-setsize":s,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,m({},o,{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":o["aria-roledescription"]},e._renderSplitPrimaryButton(o,n,i,a,l),e._renderSplitDivider(o),e._renderSplitIconButton(o,n,i,t))})},t.prototype._renderSplitPrimaryButton=function(e,t,o,n,i){var r=this.props,s=r.contextualMenuItemAs,a=void 0===s?El:s,l=r.onItemClick,c={key:e.key,disabled:As(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,"data-is-focusable":!1,"aria-hidden":!0},d=e.itemProps;return _.createElement("button",m({},di(c,qn)),_.createElement(a,m({"data-is-focusable":!1,item:c,classNames:t,index:o,onCheckmarkClick:n&&l?l:void 0,hasIcons:i},d)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Il;return _.createElement(Fl,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,o,n){var i=this.props,r=i.contextualMenuItemAs,s=void 0===r?El:r,a=i.onItemMouseLeave,l=i.onItemMouseDown,c=i.openSubMenu,d=i.dismissSubMenu,u=i.dismissMenu,p={onClick:this._onIconItemClick,disabled:As(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},h=m({},di(p,qn),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,e):void 0,onMouseDown:function(t){return l?l(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":n["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return _.createElement("button",m({},h),_.createElement(s,m({componentRef:e.componentRef,item:p,classNames:t,index:o,hasIcons:!1,openSubMenu:c,dismissSubMenu:d,dismissMenu:u,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,o=this.props.onTap;o&&o(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},500)},t}(Ml),Al=mn({disableCaching:!0}),Ol=mn({disableCaching:!0});function Hl(e){return e.subMenuProps?e.subMenuProps.items:e.items}function Wl(e){return e.some(function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some(function(e){return!0===e.canCheck}))})}var zl,Vl=250,Kl=function(e){function t(t){var o=e.call(this,t)||this;return o._mounted=!1,o.dismiss=function(e,t){var n=o.props.onDismiss;n&&n(e,t)},o._onRenderMenuList=function(e,t){var n=0;return _.createElement("ul",{className:o._classNames.list,onKeyDown:o._onKeyDown,onKeyUp:o._onKeyUp,role:"menu"},e.items.map(function(t,i){var r=o._renderMenuItem(t,i,n,e.totalItemCount,e.hasCheckmarks,e.hasIcons);if(t.itemType!==ws.Divider&&t.itemType!==ws.Header){var s=t.customOnRenderListLength?t.customOnRenderListLength:1;n+=s}return r}))},o._onKeyDown=function(e){o._lastKeyDownWasAltOrMeta=o._isAltOrMeta(e);var t=e.which===zt.escape&&(Ns()||Bs());return o._keyHandler(e,o._shouldHandleKeyDown,t)},o._shouldHandleKeyDown=function(e){return e.which===zt.escape||o._shouldCloseSubMenu(e)||e.which===zt.up&&(e.altKey||e.metaKey)},o._onMenuFocusCapture=function(e){o.props.delayUpdateFocusOnHover&&(o._shouldUpdateFocusOnMouseEvent=!0)},o._onKeyUp=function(e){return o._keyHandler(e,o._shouldHandleKeyUp,!0)},o._shouldHandleKeyUp=function(e){var t=o._lastKeyDownWasAltOrMeta&&o._isAltOrMeta(e);return o._lastKeyDownWasAltOrMeta=!1,!!t&&!(Bs()||Ns())},o._keyHandler=function(e,t,n){var i=!1;return t(e)&&(o._isFocusingPreviousElement=!0,e.preventDefault(),e.stopPropagation(),o.dismiss(e,n),i=!0),i},o._shouldCloseSubMenu=function(e){var t=yn()?zt.right:zt.left;return!(e.which!==t||!o.props.isSubMenu)&&(o._adjustedFocusZoneProps.direction===$i.vertical||!!o._adjustedFocusZoneProps.checkForNoWrap&&!Nr(e.target,"data-no-horizontal-wrap"))},o._onMenuKeyDown=function(e){if(!o._onKeyDown(e)&&o._host){var t=!(!e.altKey&&!e.metaKey),n=e.which===zt.up,i=e.which===zt.down;if(!t&&(n||i)){var r=n?Sr(o._host,o._host.lastChild,!0):xr(o._host,o._host.firstChild,!0);r&&(r.focus(),e.preventDefault(),e.stopPropagation())}}},o._onScroll=function(){o._isScrollIdle||void 0===o._scrollIdleTimeoutId?o._isScrollIdle=!1:(o._async.clearTimeout(o._scrollIdleTimeoutId),o._scrollIdleTimeoutId=void 0),o._scrollIdleTimeoutId=o._async.setTimeout(function(){o._isScrollIdle=!0},Vl)},o._onItemMouseEnterBase=function(e,t,n){o._shouldIgnoreMouseEvent()||o._updateFocusOnMouseEvent(e,t,n)},o._onItemMouseMoveBase=function(e,t,n){var i=t.currentTarget;o._shouldUpdateFocusOnMouseEvent&&(o._gotMouseMove=!0,o._isScrollIdle&&void 0===o._enterTimerId&&i!==o._targetWindow.document.activeElement&&o._updateFocusOnMouseEvent(e,t,n))},o._onMouseItemLeave=function(e,t){if(!o._shouldIgnoreMouseEvent()&&(void 0!==o._enterTimerId&&(o._async.clearTimeout(o._enterTimerId),o._enterTimerId=void 0),void 0===o.state.expandedMenuItemKey))if(o._host.setActive)try{o._host.setActive()}catch(e){}else o._host.focus()},o._onItemMouseDown=function(e,t){e.onMouseDown&&e.onMouseDown(e,t)},o._onItemClick=function(e,t){o._onItemClickBase(e,t,t.currentTarget)},o._onItemClickBase=function(e,t,n){var i=Hl(e);o._cancelSubMenuTimer(),Ls(e)||i&&i.length?e.key!==o.state.expandedMenuItemKey&&(o.setState({expandedByMouseClick:0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType}),o._onItemSubMenuExpand(e,n)):o._executeItemClick(e,t),t.stopPropagation(),t.preventDefault()},o._onAnchorClick=function(e,t){o._executeItemClick(e,t),t.stopPropagation()},o._executeItemClick=function(e,t){if(!e.disabled&&!e.isDisabled){var n=!1;e.onClick?n=!!e.onClick(t,e):o.props.onItemClick&&(n=!!o.props.onItemClick(t,e)),(n||!t.defaultPrevented)&&o.dismiss(t,!0)}},o._onItemKeyDown=function(e,t){var n=yn()?zt.left:zt.right;e.disabled||t.which!==n&&t.which!==zt.enter&&(t.which!==zt.down||!t.altKey&&!t.metaKey)||(o.setState({expandedByMouseClick:!1}),o._onItemSubMenuExpand(e,t.currentTarget),t.preventDefault())},o._cancelSubMenuTimer=function(){void 0!==o._enterTimerId&&(o._async.clearTimeout(o._enterTimerId),o._enterTimerId=void 0)},o._onItemSubMenuExpand=function(e,t){o.state.expandedMenuItemKey!==e.key&&(o.state.expandedMenuItemKey&&o._onSubMenuDismiss(),t.focus(),o.setState({expandedMenuItemKey:e.key,submenuTarget:t}))},o._onSubMenuDismiss=function(e,t){t?o.dismiss(e,t):o._mounted&&o.setState({dismissedMenuItemKey:o.state.expandedMenuItemKey,expandedMenuItemKey:void 0,submenuTarget:void 0})},o._getSubMenuId=function(e){var t=o.state.subMenuId;return e.subMenuProps&&e.subMenuProps.id&&(t=e.subMenuProps.id),t},o._onPointerAndTouchEvent=function(e){o._cancelSubMenuTimer()},o.state={contextualMenuItems:void 0,subMenuId:Fn("ContextualMenu")},o._warnDeprecations({getMenuClassNames:"styles"}),o._isFocusingPreviousElement=!1,o._isScrollIdle=!0,o._shouldUpdateFocusOnMouseEvent=!o.props.delayUpdateFocusOnHover,o._gotMouseMove=!1,o}return h(t,e),t.prototype.shouldComponentUpdate=function(e,t){return(!this.props.hidden||!e.hidden)&&(!Mn(this.props,e)||!Mn(this.state,t))},t.prototype.componentWillUpdate=function(e){if(e.target!==this.props.target){var t=e.target;this._setTargetWindowAndElement(t)}e.hidden!==this.props.hidden&&(e.hidden?this._onMenuClosed():(this._onMenuOpened(),this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:null)),e.delayUpdateFocusOnHover!==this.props.delayUpdateFocusOnHover&&(this._shouldUpdateFocusOnMouseEvent=!e.delayUpdateFocusOnHover,this._gotMouseMove=this._shouldUpdateFocusOnMouseEvent&&this._gotMouseMove)},t.prototype.componentWillMount=function(){var e=this.props.target;this._setTargetWindowAndElement(e),this.props.hidden||(this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:null)},t.prototype.componentDidMount=function(){this.props.hidden||this._onMenuOpened(),this._mounted=!0},t.prototype.componentWillUnmount=function(){this._tryFocusPreviousActiveElement(),this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},t.prototype.render=function(){var e=this,t=this.props.isBeakVisible,o=this.props,n=o.items,i=o.labelElementId,r=o.id,s=o.className,a=o.beakWidth,l=o.directionalHint,c=o.directionalHintForRTL,d=o.alignTargetEdge,u=o.gapSpace,p=o.coverTarget,h=o.ariaLabel,g=o.doNotLayer,f=o.target,v=o.bounds,y=o.useTargetWidth,b=o.useTargetAsMinWidth,x=o.directionalHintFixed,S=o.shouldFocusOnMount,C=o.shouldFocusOnContainer,k=o.title,w=o.styles,I=o.theme,D=o.calloutProps,P=o.onRenderSubMenu,T=void 0===P?this._onRenderSubMenu:P,E=o.onRenderMenuList,M=void 0===E?this._onRenderMenuList:E,R=o.focusZoneProps,N=o.getMenuClassNames;this._classNames=N?N(I,s):Al(w,{theme:I,className:s});var B=function e(t){for(var o=0,n=t;o0){for(var W=0,z=0,V=n;z0?_.createElement("li",{role:"presentation",key:s.key||e.key||"section-"+o},_.createElement("div",{role:"group"},_.createElement("ul",{className:this._classNames.list},s.topDivider&&this._renderSeparator(o,t,!0,!0),a&&this._renderListItem(a,e.key||o,t,e.title),s.items.map(function(e,t){return r._renderMenuItem(e,t,t,s.items.length,n,i)}),s.bottomDivider&&this._renderSeparator(o,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,o,n){return _.createElement("li",{role:"presentation",title:n,key:t,className:o.item},e)},t.prototype._renderSeparator=function(e,t,o,n){return n||e>0?_.createElement("li",{role:"separator",key:"separator-"+e+(void 0===o?"":o?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,o,n,i,r,s){return e.onRender?e.onRender(m({"aria-posinset":n+1,"aria-setsize":i},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,o,n,i,r,s):e.split&&Ls(e)?this._renderSplitButton(e,t,o,n,i,r,s):this._renderButtonItem(e,t,o,n,i,r,s)},t.prototype._renderHeaderMenuItem=function(e,t,o,n,i){var r=this.props.contextualMenuItemAs,s=void 0===r?El:r,a=e.itemProps,l=a&&di(a,ci);return _.createElement("div",m({className:this._classNames.header},l,{style:e.style}),_.createElement(s,m({item:e,classNames:t,index:o,onCheckmarkClick:n?this._onItemClick:void 0,hasIcons:i},a)))},t.prototype._renderAnchorMenuItem=function(e,t,o,n,i,r,s){var a=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return _.createElement(Rl,{item:e,classNames:t,index:o,focusableElementIndex:n,totalItemCount:i,hasCheckmarks:r,hasIcons:s,contextualMenuItemAs:a,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:l,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,o,n,i,r,s){var a=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return _.createElement(Nl,{item:e,classNames:t,index:o,focusableElementIndex:n,totalItemCount:i,hasCheckmarks:r,hasIcons:s,contextualMenuItemAs:a,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:l,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,o,n,i,r,s){var a=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return _.createElement(Ll,{item:e,classNames:t,index:o,focusableElementIndex:n,totalItemCount:i,hasCheckmarks:r,hasIcons:s,contextualMenuItemAs:a,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:l,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===zt.alt||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,o){var n=this,i=o||t.currentTarget,r=this.props.subMenuHoverDelay,s=void 0===r?Vl:r;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&i.focus(),Ls(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){i.focus(),n.setState({expandedByMouseClick:!0}),n._onItemSubMenuExpand(e,i),n._enterTimerId=void 0},s)):this._enterTimerId=this._async.setTimeout(function(){n._onSubMenuDismiss(t),i.focus(),n._enterTimerId=void 0},s))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,o=e.expandedMenuItemKey,n=this._findItemByKey(o),i=null;return n&&(i={items:Hl(n),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:yn()?Rs.leftTopEdge:Rs.rightTopEdge,className:this.props.className,gapSpace:0,isBeakVisible:!1},n.subMenuProps&&Rn(i,n.subMenuProps)),i},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var o=0,n=t;o *":{position:"relative",left:0,top:0}}}],rootDisabled:[Xt(e,{inset:-1,highContrastStyle:s}),{backgroundColor:i,color:r,cursor:"default",pointerEvents:"none",selectors:(t={":hover":$l,":focus":$l},t[At]={color:"grayText",bordercolor:"grayText"},t)}],iconDisabled:{color:r},menuIconDisabled:{color:r},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},textContainer:{flexGrow:1},icon:Jl,menuIcon:[Jl,{fontSize:_t.small}],label:{margin:"0 4px",lineHeight:"100%"},screenReaderText:eo}}),tc=_o(function(e,t){var o={position:"absolute",width:1,right:31,top:8,bottom:8};return q({splitButtonContainer:[Xt(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"}}),{display:"inline-flex"}],splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",border:0,borderRadius:0,outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},splitButtonDivider:o,splitButtonDividerDisabled:o,splitButtonMenuButtonDisabled:{pointerEvents:"none",selectors:{":hover":{cursor:"default"}}},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none"}},t)}),oc=_o(function(e,t){var o,n=ec(e),i=tc(e),r=e.palette,s=e.semanticColors;return q(n,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:s.actionLink},rootHovered:{color:s.actionLinkHovered,selectors:(o={},o[At]={borderColor:"Highlight",color:"Highlight"},o)},rootPressed:{color:r.themePrimary},rootExpanded:{color:r.themePrimary},rootChecked:{backgroundColor:s.buttonBackgroundChecked},rootCheckedHovered:{backgroundColor:s.buttonBackgroundHovered},rootDisabled:{color:s.disabledText}},i,t)}),nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme;return _.createElement(Ql,m({},this.props,{variantClassName:"ms-Button--icon",styles:oc(o,t),onRenderText:Si,onRenderDescription:Si}))},t=f([ul("IconButton",["theme","styles"],!0)],t)}(bi),ic=o(3);function rc(e,t){return function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return h(n,o),n.prototype.getChildContext=function(){return t(this.props)},n.prototype.render=function(){return _.Children.only(this.props.children)},n.childContextTypes=e,n}(_.Component)}!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Yl||(Yl={}));var sc,ac,lc=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,o){t.cacheKey&&(e[t.cacheKey]=o)}}},cc=function(e){void 0===e&&(e=lc());var t,o=e;function n(e,t){var n=o.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return o.addMeasurementToCache(e,i),i}function i(e,i,r){for(var s=e,a=n(e,r);a>t;){var l=i(s);if(void 0===l)return{renderedData:s,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(a=o.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};s=l}return{renderedData:s,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,r,s,a){if(void 0!==a||void 0!==r.dataToMeasure){if(a){if(t&&r.renderedData&&!r.dataToMeasure)return m({},r,function(e,o,n,i){var r;return r=e>t?i?{resizeDirection:"grow",dataToMeasure:i(n)}:{resizeDirection:"shrink",dataToMeasure:o}:{resizeDirection:"shrink",dataToMeasure:n},t=e,m({},r,{measureContainer:!1})}(a,e.data,r.renderedData,e.onGrowData));t=a}var l=m({},r,{measureContainer:!1});return r.dataToMeasure&&(l="grow"===r.resizeDirection&&e.onGrowData?m({},l,function(e,r,s,a){for(var l=e,c=n(e,s);c1&&o>t-1||n.length>0&&o>n.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(bi),Mc={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},Rc=Ht(0,479),Nc=Ht(480,639),Bc=cn(Ec,function(e){var t,o,n,i,r=e.className,s=e.theme;return{root:["ms-Breadcrumb",s.fonts.medium,{margin:"23px 0 1px"},r],list:["ms-Breadcrumb-list",{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:["ms-Breadcrumb-listItem",{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center"}],chevron:["ms-Breadcrumb-chevron",{color:s.palette.neutralSecondary,fontSize:s.fonts.small.fontSize,selectors:(t={},t[At]={color:"WindowText",MsHighContrastAdjust:"none"},t[Nc]={fontSize:8},t[Rc]={fontSize:8},t)}],overflow:["ms-Breadcrumb-overflow",{position:"relative",display:"flex",alignItems:"center"}],overflowButton:["ms-Breadcrumb-overflowButton",Xt(s),Mc,{fontSize:16,height:"100%",cursor:"pointer",selectors:(o={":hover":{backgroundColor:s.palette.neutralLighter},":active":{backgroundColor:s.palette.neutralTertiaryAlt,color:s.semanticColors.bodyText},":hover:active":{backgroundColor:s.palette.neutralQuaternary}},o[Rc]={padding:"4px 6px"},o[Nc]={fontSize:s.fonts.mediumPlus.fontSize},o)}],itemLink:["ms-Breadcrumb-itemLink",Xt(s),Mc,s.fonts.xLarge,{textDecoration:"none",color:s.semanticColors.bodyText,padding:"0 8px",selectors:(n={":hover":{backgroundColor:s.semanticColors.menuItemBackgroundHovered,color:"initial",cursor:"pointer",selectors:(i={},i[At]={color:"Highlight"},i)},":focus":{color:s.palette.neutralDark},":active":{backgroundColor:s.palette.neutralTertiaryAlt,color:s.palette.neutralPrimary}},n[Nc]=s.fonts.large,n[Rc]=[s.fonts.medium],n["."+Yt+" &:focus"]={outline:"none"},n)}],item:["ms-Breadcrumb-item",s.fonts.xLarge,{color:s.semanticColors.bodyText,padding:"0 8px",selectors:{":hover":{cursor:"default"}}}]}},void 0,{scope:"Breadcrumb"});function Fc(e){var t,o,n,i=e.semanticColors,r=i.buttonBackground,s=i.buttonBackgroundChecked,a=i.buttonBackgroundHovered,l=i.buttonText,c=i.buttonTextHovered,d=i.buttonTextChecked,u=i.buttonTextCheckedHovered;return{root:{backgroundColor:r,color:l},rootHovered:{backgroundColor:a,color:c,selectors:(t={},t[At]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:s,color:d},rootExpanded:{backgroundColor:s,color:d},rootChecked:{backgroundColor:s,color:d},rootCheckedHovered:{backgroundColor:e.palette.neutralLight,color:u},splitButtonContainer:{selectors:(o={},o[At]={border:"none"},o)},splitButtonMenuButton:{color:e.palette.white,backgroundColor:e.palette.neutralLighter,selectors:{":hover":{backgroundColor:e.palette.neutralLight,selectors:(n={},n[At]={color:"Highlight"},n)}}},splitButtonMenuButtonDisabled:{backgroundColor:e.palette.neutralLighter,selectors:{":hover":{backgroundColor:e.palette.neutralLighter}}},splitButtonDivider:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:e.palette.themePrimary},splitButtonMenuButtonExpanded:{backgroundColor:e.palette.neutralLight},splitButtonMenuIcon:{color:e.palette.neutralPrimary},splitButtonMenuIconDisabled:{color:e.palette.neutralTertiary}}}function Lc(e){return{root:{backgroundColor:e.palette.themePrimary,color:e.palette.white,selectors:(t={},t[At]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},t)},rootHovered:{backgroundColor:e.palette.themeDarkAlt,color:e.palette.white,selectors:(o={},o[At]={color:"Window",backgroundColor:"Highlight"},o)},rootPressed:{backgroundColor:e.palette.themeDark,color:e.palette.white,selectors:(n={},n[At]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},n)},rootExpanded:{backgroundColor:e.palette.themeDark,color:e.palette.white},rootChecked:{backgroundColor:e.palette.themeDark,color:e.palette.white},rootCheckedHovered:{backgroundColor:e.palette.themePrimary,color:e.palette.white},rootDisabled:{selectors:(i={},i[At]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(r={},r[At]={border:"none"},r)},splitButtonDivider:{backgroundColor:e.palette.white},splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:e.palette.themePrimary,color:e.palette.white,selectors:{":hover":{backgroundColor:e.palette.themeDark,selectors:(s={},s[At]={color:"Highlight"},s)}}},splitButtonMenuButtonDisabled:{backgroundColor:e.palette.neutralLighter,selectors:{":hover":{backgroundColor:e.palette.neutralLighter}}},splitButtonMenuButtonChecked:{backgroundColor:e.palette.themeDark},splitButtonMenuButtonExpanded:{backgroundColor:e.palette.themeDark},splitButtonMenuIcon:{color:e.palette.white},splitButtonMenuIconDisabled:{color:e.palette.neutralTertiary}};var t,o,n,i,r,s}!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(_c||(_c={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(yc||(yc={}));var Ac,Oc,Hc,Wc,zc=_o(function(e,t,o){var n=ec(e),i=tc(e);return q(n,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:yt.semibold}},o?Lc(e):Fc(e),i,t)}),Vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,o=void 0!==t&&t,n=e.styles,i=e.theme;return _.createElement(Ql,m({},this.props,{variantClassName:o?"ms-Button--primary":"ms-Button--default",styles:zc(i,n,o),onRenderDescription:Si}))},t=f([ul("DefaultButton",["theme","styles"],!0)],t)}(bi),Kc=_o(function(e,t){var o;return q(ec(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:e.palette.themePrimary,selectors:(o={},o[At]={borderColor:"Highlight",color:"Highlight"},o)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent"},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)}),Uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme;return _.createElement(Ql,m({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:Kc(o,t),onRenderDescription:Si}))},t=f([ul("ActionButton",["theme","styles"],!0)],t)}(bi),Gc=_o(function(e,t,o){var n,i,r,s=ec(e),a=tc(e),l={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"20px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:yt.semibold},description:[e.fonts.small,{lineHeight:"100%"}]},c={description:{color:e.palette.neutralSecondary},descriptionHovered:{color:e.palette.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},d={description:{color:e.palette.white,selectors:(n={},n[At]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},n)},descriptionHovered:{color:e.palette.white,selectors:(i={},i[At]={color:"Window",backgroundColor:"Highlight",MsHighContrastAdjust:"none"},i)},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit",selectors:(r={},r[At]={color:"inherit"},r)}};return q(s,l,o?Lc(e):Fc(e),o?d:c,a,t)}),Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,o=void 0!==t&&t,n=e.styles,i=e.theme;return _.createElement(Ql,m({},this.props,{variantClassName:o?"ms-Button--compoundPrimary":"ms-Button--compound",styles:Gc(i,n,o)}))},t=f([ul("CompoundButton",["theme","styles"],!0)],t)}(bi),jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return h(t,e),t.prototype.render=function(){return _.createElement(Vc,m({},this.props,{primary:!0,onRenderDescription:Si}))},t=f([ul("PrimaryButton",["theme","styles"],!0)],t)}(bi),qc=function(e){function t(t){var o=e.call(this,t)||this;return o._skipComponentRefResolution=!0,pe("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),o}return h(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case yc.command:return _.createElement(Uc,m({},e));case yc.compound:return _.createElement(Yc,m({},e));case yc.icon:return _.createElement(nc,m({},e));case yc.primary:return _.createElement(jc,m({},e));default:return _.createElement(Vc,m({},e))}},t}(bi),Zc=_o(function(e,t,o,n){var i,r,s,a,l=ec(e),c=tc(e);return q(l,{root:[Xt(e,{inset:-1,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"}}),e.fonts.medium,{minWidth:"40px",backgroundColor:e.palette.neutralLighter,color:e.palette.neutralPrimary,padding:"0 4px",selectors:(i={},i[At]={border:"none"},i)}],rootHovered:{backgroundColor:e.palette.neutralLight,color:e.palette.neutralDark,selectors:(r={},r[At]={color:"Highlight"},r)},rootPressed:{backgroundColor:e.palette.neutralQuaternaryAlt,color:e.palette.black},rootChecked:{backgroundColor:e.palette.neutralQuaternaryAlt,color:e.palette.black},rootExpanded:{backgroundColor:e.palette.neutralQuaternaryAlt,color:e.palette.black},rootCheckedHovered:{backgroundColor:e.palette.neutralQuaternary,color:e.palette.black},splitButtonContainer:{selectors:(s={},s[At]={border:"none"},s)},splitButtonDivider:{backgroundColor:e.palette.neutralTertiaryAlt,marginTop:4,marginBottom:4},splitButtonMenuButton:{backgroundColor:e.palette.neutralLighter,color:e.palette.neutralPrimary,selectors:{":hover":{backgroundColor:e.palette.neutralLight,color:e.palette.neutralDark,selectors:(a={},a[At]={color:"Highlight"},a)}}},splitButtonMenuButtonDisabled:{backgroundColor:e.palette.neutralLighter,selectors:{":hover":{backgroundColor:e.palette.neutralLighter}}},splitButtonMenuButtonChecked:{backgroundColor:e.palette.neutralQuaternaryAlt,color:e.palette.black,selectors:{":hover":{backgroundColor:e.palette.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:e.palette.neutralQuaternaryAlt,color:e.palette.black,selectors:{":hover":{backgroundColor:e.palette.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:e.palette.neutralPrimary},splitButtonMenuIconDisabled:{color:e.palette.neutralTertiary},label:{fontWeight:"normal"},icon:{color:e.palette.themeDarkAlt},menuIcon:{color:e.palette.neutralSecondary}},c,t)}),Xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme;return _.createElement(Ql,m({},this.props,{variantClassName:"ms-Button--commandBar",styles:Zc(o,t),onRenderDescription:Si}))},t=f([ul("CommandBarButton",["theme","styles"],!0)],t)}(bi),Qc=Uc,$c=_o(function(e,t,o,n){return q(ec(e),{root:{backgroundColor:e.palette.neutralQuaternaryAlt,color:e.palette.neutralPrimary},rootHovered:{backgroundColor:e.palette.neutralTertiaryAlt,color:e.palette.neutralDark},rootPressed:{backgroundColor:e.palette.neutralTertiary,color:e.palette.neutralDark}},t)}),Jc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme;return _.createElement(Vc,m({},this.props,{styles:$c(o,t),onRenderDescription:Si}))},t=f([ul("MessageBarButton",["theme","styles"],!0)],t)}(bi);!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(Ac||(Ac={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(Oc||(Oc={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(Hc||(Hc={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(Wc||(Wc={}));var ed=/[\{\}]/g,td=/\{\d+\}/g;function od(e){for(var t=[],o=1;o0&&(o-=nd.DaysInOneWeek);return rd(e,o)}(_d(e),o),s=rd(i,nd.DaysInOneWeek);break;case Wc.Month:s=ad(i=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:return id(t)}var a=i;do{t!==Wc.WorkWeek?r.push(a):-1!==n.indexOf(a.getDay())&&r.push(a),a=rd(a,1)}while(!pd(a,s));return r}function gd(e,t){for(var o=0,n=t;o=o&&(s-=nd.DaysInOneWeek);var a=n-s;return a<0&&(0!==(s=(t-(i-=r%nd.DaysInOneWeek)+2*nd.DaysInOneWeek)%nd.DaysInOneWeek)&&s+1>=o&&(s-=nd.DaysInOneWeek),a=r-s),Math.floor(a/nd.DaysInOneWeek+1)}function xd(e){for(var t=e.getMonth(),o=e.getFullYear(),n=0,i=0;i0&&o._onSelectNextMonth()}},o._onSelectNextMonth=function(){o.props.onNavigateDate(ad(o.props.navigatedDate,1),!1)},o._onSelectPrevMonth=function(){o.props.onNavigateDate(ad(o.props.navigatedDate,-1),!1)},o._onClose=function(){o.props.onDismiss&&o.props.onDismiss()},o._onHeaderSelect=function(){var e=o.props.onHeaderSelect;e&&e(!0)},o._onHeaderKeyDown=function(e){var t=o.props.onHeaderSelect;!t||e.which!==zt.enter&&e.which!==zt.space||t(!0)},o._onPrevMonthKeyDown=function(e){e.which===zt.enter&&o._onKeyDown(o._onSelectPrevMonth,e)},o._onNextMonthKeyDown=function(e){e.which===zt.enter&&o._onKeyDown(o._onSelectNextMonth,e)},o._onCloseButtonKeyDown=function(e){e.which===zt.enter&&o._onKeyDown(o._onClose,e)},o.state={activeDescendantId:Fn("DatePickerDay-active"),weeks:o._getWeeks(t)},o._onSelectNextMonth=o._onSelectNextMonth.bind(o),o._onSelectPrevMonth=o._onSelectPrevMonth.bind(o),o._onClose=o._onClose.bind(o),o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({weeks:this._getWeeks(e)})},t.prototype.render=function(){var e,t,o=this,n=this.state,i=n.activeDescendantId,r=n.weeks,s=this.props,a=s.firstDayOfWeek,l=s.strings,c=s.navigatedDate,d=s.selectedDate,u=s.dateRangeType,p=s.navigationIcons,h=s.showWeekNumbers,m=s.firstWeekOfYear,g=s.dateTimeFormatter,f=s.minDate,v=s.maxDate,y=s.showCloseButton,b=s.allFocusable,x=Fn("DatePickerDay-dayPicker"),S=Fn("DatePickerDay-monthAndYear"),C=p.leftNavigation,k=p.rightNavigation,w=p.closeIcon,I=h?fd(r.length,a,m,c):null,D=h?vd(d,a,m):void 0,P=this._getWeekCornerStyles(r,u),T=!f||hd(f,cd(c))<0,E=!v||hd(dd(c),v)<0;return _.createElement("div",{className:Yr("ms-DatePicker-dayPicker",Ju.dayPicker,h&&(yn()?Ju.showWeekNumbersRTL:Ju.showWeekNumbers)),id:x},_.createElement("div",{className:Yr("ms-DatePicker-header",Ju.header)},_.createElement("div",{"aria-live":"polite","aria-relevant":"text","aria-atomic":"true",id:S,className:Ju.monthAndYear},this.props.onHeaderSelect?_.createElement("div",{className:Yr("ms-DatePicker-monthAndYear js-showMonthPicker",Ju.headerToggleView),onClick:this._onHeaderSelect,onKeyDown:this._onHeaderKeyDown,"aria-label":g.formatMonthYear(c,l),role:"button",tabIndex:0},g.formatMonthYear(c,l)):_.createElement("div",{className:Yr("ms-DatePicker-monthAndYear",Ju.monthAndYear)},g.formatMonthYear(c,l))),_.createElement("div",{className:Yr("ms-DatePicker-monthComponents",Ju.monthComponents)},_.createElement("div",{className:Yr("ms-DatePicker-navContainer",Ju.navContainer)},_.createElement("button",{className:Yr("ms-DatePicker-prevMonth js-prevMonth",Ju.prevMonth,(e={},e["ms-DatePicker-prevMonth--disabled "+Ju.prevMonthIsDisabled]=!T,e)),disabled:!b&&!T,"aria-disabled":!T,onClick:T?this._onSelectPrevMonth:void 0,onKeyDown:T?this._onPrevMonthKeyDown:void 0,"aria-controls":x,title:l.prevMonthAriaLabel?l.prevMonthAriaLabel+" "+l.months[ad(c,-1).getMonth()]:void 0,role:"button",type:"button"},_.createElement(Fi,{iconName:C})),_.createElement("button",{className:Yr("ms-DatePicker-nextMonth js-nextMonth",Ju.nextMonth,(t={},t["ms-DatePicker-nextMonth--disabled "+Ju.nextMonthIsDisabled]=!E,t)),disabled:!b&&!E,"aria-disabled":!E,onClick:E?this._onSelectNextMonth:void 0,onKeyDown:E?this._onNextMonthKeyDown:void 0,"aria-controls":x,title:l.nextMonthAriaLabel?l.nextMonthAriaLabel+" "+l.months[ad(c,1).getMonth()]:void 0,role:"button",type:"button"},_.createElement(Fi,{iconName:k})),y&&_.createElement("button",{className:Yr("ms-DatePicker-closeButton js-closeButton",Ju.closeButton),onClick:this._onClose,onKeyDown:this._onCloseButtonKeyDown,title:l.closeButtonAriaLabel,role:"button",type:"button"},_.createElement(Fi,{iconName:w}))))),_.createElement(is,null,_.createElement("table",{className:Yr("ms-DatePicker-table",Ju.table),"aria-readonly":"true","aria-multiselectable":"false","aria-labelledby":S,"aria-activedescendant":i,role:"grid"},_.createElement("thead",null,_.createElement("tr",null,h&&_.createElement("th",{className:Yr("ms-DatePicker-weekday",Ju.weekday)}),l.shortDays.map(function(e,t){return _.createElement("th",{className:Yr("ms-DatePicker-weekday",Ju.weekday),role:"columnheader",scope:"col",key:t,title:l.days[(t+a)%7],"aria-label":l.days[(t+a)%7],"data-is-focusable":!!b||void 0},l.shortDays[(t+a)%7])}))),_.createElement("tbody",{onMouseLeave:u!==Wc.Day?this._onTableMouseLeave:void 0,onMouseUp:u!==Wc.Day?this._onTableMouseUp:void 0},r.map(function(e,t){return _.createElement("tr",{key:I?I[t]:t},h&&I&&_.createElement("th",{className:Yr("ms-DatePicker-weekNumbers","ms-DatePicker-weekday",Ju.weekday,Ju.weekNumbers),key:t,title:I&&l.weekNumberFormatString&&od(l.weekNumberFormatString,I[t]),"aria-label":I&&l.weekNumberFormatString&&od(l.weekNumberFormatString,I[t]),scope:"row"},_.createElement("div",{className:Yr("ms-DatePicker-day",Ju.day,(n={},n["ms-DatePicker-week--highlighted "+Ju.weekIsHighlighted]=D===I[t],n))},_.createElement("span",null,I[t]))),e.map(function(e,n){var r,s,a=pd(c,e.originalDate);return _.createElement("td",{key:e.key,onClick:e.isInBounds?e.onSelected:void 0,className:Yr(Ju.dayWrapper,"ms-DatePicker-day",o._getHighlightedCornerStyle(P,n,t),(r={},r["ms-DatePicker-weekBackground "+Ju.weekBackground]=e.isSelected&&(u===Wc.Week||u===Wc.WorkWeek),r["ms-DatePicker-dayBackground "+Ju.dayBackground]=u===Wc.Day,r["ms-DatePicker-day--highlighted "+Ju.dayIsHighlighted]=e.isSelected&&u===Wc.Day,r["ms-DatePicker-day--infocus "+Ju.dayIsFocused]=e.isInBounds&&e.isInMonth,r["ms-DatePicker-day--outfocus "+Ju.dayIsUnfocused]=e.isInBounds&&!e.isInMonth,r[Ju.daySelection]=u===Wc.Day,r[Ju.weekSelection]=u===Wc.Week||u===Wc.WorkWeek,r[Ju.monthSelection]=u===Wc.Month,r)),ref:function(t){return o._setDayCellRef(t,e,a)},onMouseOver:u!==Wc.Day&&e.isInBounds?o._onDayMouseOver(e.originalDate,t,n,u):void 0,onMouseLeave:u!==Wc.Day&&e.isInBounds?o._onDayMouseLeave(e.originalDate,t,n,u):void 0,onMouseDown:u!==Wc.Day&&e.isInBounds?o._onDayMouseDown(e.originalDate,t,n,u):void 0,onMouseUp:u!==Wc.Day&&e.isInBounds?o._onDayMouseUp(e.originalDate,t,n,u):void 0,role:"gridcell"},_.createElement("button",{key:e.key+"button",onClick:e.isInBounds?e.onSelected:void 0,className:Yr(Ju.day,"ms-DatePicker-day-button",(s={},s["ms-DatePicker-day--disabled "+Ju.dayIsDisabled]=!e.isInBounds,s["ms-DatePicker-day--today "+Ju.dayIsToday]=e.isToday,s)),role:"gridcell",onKeyDown:o._onDayKeyDown(e.originalDate,t,n),"aria-label":g.formatMonthDayYear(e.originalDate,l),id:a?i:void 0,"aria-readonly":!0,"aria-selected":e.isInBounds?e.isSelected:void 0,"data-is-focusable":b||!!e.isInBounds||void 0,ref:function(t){return o._setDayRef(t,e,a)},disabled:!b&&!e.isInBounds,"aria-disabled":!e.isInBounds,type:"button"},_.createElement("span",{"aria-hidden":"true"},g.formatDay(e.originalDate))))}));var n})))))},t.prototype.focus=function(){this.navigatedDay&&(this.navigatedDay.tabIndex=0,this.navigatedDay.focus())},t.prototype._setDayRef=function(e,t,o){o&&(this.navigatedDay=e)},t.prototype._setDayCellRef=function(e,t,o){this.days[t.key]=e},t.prototype._getWeekCornerStyles=function(e,t){var o=this,n={};switch(t){case Wc.Month:e.forEach(function(t,o){t.forEach(function(t,i){var r=e[o-1]&&e[o-1][i]&&e[o-1][i].originalDate.getMonth()===e[o][i].originalDate.getMonth(),s=e[o+1]&&e[o+1][i]&&e[o+1][i].originalDate.getMonth()===e[o][i].originalDate.getMonth(),a=e[o][i-1]&&e[o][i-1].originalDate.getMonth()===e[o][i].originalDate.getMonth(),l=e[o][i+1]&&e[o][i+1].originalDate.getMonth()===e[o][i].originalDate.getMonth(),c=!r&&!l,d=!s&&!a,u=!s&&!l,p="";!r&&!a&&(p=yn()?p.concat(Ju.topRightCornerDate+" "):p.concat(Ju.topLeftCornerDate+" ")),c&&(p=yn()?p.concat(Ju.topLeftCornerDate+" "):p.concat(Ju.topRightCornerDate+" ")),d&&(p=yn()?p.concat(Ju.bottomRightCornerDate+" "):p.concat(Ju.bottomLeftCornerDate+" ")),u&&(p=yn()?p.concat(Ju.bottomLeftCornerDate+" "):p.concat(Ju.bottomRightCornerDate+" ")),r||(p=p.concat(Ju.topDate+" ")),s||(p=p.concat(Ju.bottomDate+" ")),l||(p=p.concat(Ju.rightDate+" ")),a||(p=p.concat(Ju.leftdate+" ")),n[o+"_"+i]=p})});break;case Wc.Week:case Wc.WorkWeek:e.forEach(function(e,t){var i=ss(e,function(e){return e.isInBounds}),r=o._findLastIndex(e,function(e){return e.isInBounds}),s=Ju.topLeftCornerDate+" "+Ju.bottomLeftCornerDate,a=Ju.topRightCornerDate+" "+Ju.bottomRightCornerDate;n[t+"_"+i]=yn()?a:s,n[t+"_"+r]=yn()?s:a})}return n},t.prototype._getHighlightedCornerStyle=function(e,t,o){return e[o+"_"+t]?e[o+"_"+t]:""},t.prototype._navigateMonthEdge=function(e,t,o,n){var i=this.props,r=i.minDate,s=i.maxDate,a=void 0;0===o&&e.which===zt.up?a=sd(t,-1):o===this.state.weeks.length-1&&e.which===zt.down?a=sd(t,1):0===n&&e.which===xn(zt.left)?a=rd(t,-1):6===n&&e.which===xn(zt.right)&&(a=rd(t,1)),a&&(!r||hd(r,a)<1)&&(!s||hd(a,s)<1)&&(this.props.onNavigateDate(a,!0),e.preventDefault())},t.prototype._applyFunctionToDayRefs=function(e){var t=this;this.state.weeks&&this.state.weeks.map(function(o,n){o.map(function(o){var i=t.days[o.key];e(i,o,n)})})},t.prototype._getWeeks=function(e){for(var t=e.navigatedDate,o=e.selectedDate,n=e.dateRangeType,i=e.firstDayOfWeek,r=e.today,s=e.minDate,a=e.maxDate,l=e.showSixWeeksByDefault,c=e.workWeekDays,d=new Date(t.getFullYear(),t.getMonth(),1),u=r||new Date,p=[];d.getDay()!==i;)d.setDate(d.getDate()-1);var h=!1,m=md(o,n===Wc.WorkWeek?Wc.Week:n,i,c);n!==Wc.Day&&(m=this._getBoundedDateRange(m,s,a));for(var g=!0,f=0;g;f++){var v=[];h=!0;for(var _=0;_<7;_++){var y=new Date(d.toString()),b={key:d.toString(),date:d.getDate().toString(),originalDate:y,isInMonth:d.getMonth()===t.getMonth(),isToday:pd(u,d),isSelected:gd(d,m),onSelected:this._onSelectDate.bind(this,y),isInBounds:(!s||hd(s,d)<1)&&(!a||hd(d,a)<1)&&!this._getIsRestrictedDate(d)};v.push(b),b.isInMonth&&(h=!1),d.setDate(d.getDate()+1)}(g=l?!h||f<=5:!h)&&p.push(v)}return p},t.prototype._getIsRestrictedDate=function(e){var t=this.props.restrictedDates;return!!t&&!!as(t,function(t){return pd(t,e)})},t.prototype._getBoundedDateRange=function(e,t,o){var n=e.slice();return t&&(n=n.filter(function(e){return hd(e,t)>=0})),o&&(n=n.filter(function(e){return hd(e,o)<=0})),n},t.prototype._findLastIndex=function(e,t){for(var o=e.length-1;o>=0;o--){if(t(e[o]))return o}return-1},t}(bi),tp=n,op=12,np={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},ip={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},rp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._buttonRef=_.createRef(),t._onRenderYear=function(){var e=t.props,o=e.year,n=e.onRenderYear;return n?n(o):o},t._onClick=function(){t.props.onSelectYear&&t.props.onSelectYear(t.props.year)},t._onKeyDown=function(e){t.props.onSelectYear&&e.which===zt.enter&&t.props.onSelectYear(t.props.year)},t}return h(t,e),t.prototype.focus=function(){this._buttonRef.current&&this._buttonRef.current.focus()},t.prototype.render=function(){var e,t=this.props,o=t.year,n=t.selected,i=t.disabled,r=t.onSelectYear;return _.createElement("button",{className:Yr("ms-DatePicker-yearOption",tp.yearOption,(e={},e["ms-DatePicker-day--highlighted "+tp.yearIsHighlighted]=n,e["ms-DatePicker-yearOption--disabled "+tp.yearOptionIsDisabled]=i,e)),type:"button",role:"gridcell",onClick:!i&&r?this._onClick:void 0,onKeyDown:!i&&r?this._onKeyDown:void 0,disabled:i,"aria-label":String(o),"aria-selected":n,ref:this._buttonRef},this._onRenderYear())},t}(_.Component),sp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedCellRef=_.createRef(),t._currentCellRef=_.createRef(),t._renderCell=function(e){var o=e===t.props.selectedYear,n=t.props,i=n.minYear,r=n.maxYear,s=n.onSelectYear,a=void 0!==i&&er,l=e===(new Date).getFullYear();return _.createElement(rp,{key:e,year:e,selected:o,current:l,disabled:a,onSelectYear:s,ref:o?t._selectedCellRef:l?t._currentCellRef:void 0})},t}return h(t,e),t.prototype.focus=function(){this._selectedCellRef.current?this._selectedCellRef.current.focus():this._currentCellRef.current&&this._currentCellRef.current.focus()},t.prototype.render=function(){for(var e=this.props,t=e.fromYear,o=e.toYear,n=t,i=[];n<=o;)i.push(this._renderCell(n)),n++;return _.createElement(is,null,_.createElement("div",{className:Yr("ms-DatePicker-optionGrid",tp.optionGrid),role:"grid"},_.createElement("div",{role:"row"},i)))},t}(_.Component),ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onSelectPrev=function(){!t.isDisabled&&t.props.onSelectPrev&&t.props.onSelectPrev()},t._onKeyDown=function(e){e.which===zt.enter&&t._onSelectPrev()},t}return h(t,e),t.prototype.render=function(){var e,t=this.props.navigationIcons||ip,o=(this.props.strings||np).prevRangeAriaLabel,n={fromYear:this.props.fromYear-op,toYear:this.props.toYear-op},i=o?"string"==typeof o?o:o(n):void 0,r=this.isDisabled,s=this.props.onSelectPrev;return _.createElement("button",{className:Yr("ms-DatePicker-prevDecade",tp.prevDecade,(e={},e["ms-DatePicker-prevDecade--disabled "+tp.prevDecadeIsDisabled]=r,e)),onClick:!r&&s?this._onSelectPrev:void 0,onKeyDown:!r&&s?this._onKeyDown:void 0,type:"button",tabIndex:0,title:i,disabled:r},_.createElement(Fi,{iconName:yn()?t.rightNavigation:t.leftNavigation}))},Object.defineProperty(t.prototype,"isDisabled",{get:function(){var e=this.props.minYear;return void 0!==e&&this.props.fromYeare},enumerable:!0,configurable:!0}),t}(_.Component),cp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return _.createElement("div",{className:Yr("ms-DatePicker-decadeComponents",tp.decadeComponents)},_.createElement("div",{className:Yr("ms-DatePicker-navContainer",tp.navContainer)},_.createElement(ap,m({},this.props)),_.createElement(lp,m({},this.props))))},t}(_.Component),dp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onHeaderSelect=function(){t.props.onHeaderSelect&&t.props.onHeaderSelect(!0)},t._onHeaderKeyDown=function(e){!t.props.onHeaderSelect||e.which!==zt.enter&&e.which!==zt.space||t.props.onHeaderSelect(!0)},t._onRenderYear=function(e){return t.props.onRenderYear?t.props.onRenderYear(e):e},t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.fromYear,o=e.toYear;if(e.onHeaderSelect){var n=(this.props.strings||np).rangeAriaLabel,i=n?"string"==typeof n?n:n(this.props):void 0;return _.createElement("div",{className:Yr("ms-DatePicker-currentDecade js-showYearPicker",tp.currentDecade,tp.headerToggleView),onClick:this._onHeaderSelect,onKeyDown:this._onHeaderKeyDown,"aria-label":i,role:"button","aria-atomic":!0,"aria-live":"polite",tabIndex:0},this._onRenderYear(t)," - ",this._onRenderYear(o))}return _.createElement("div",{className:Yr("ms-DatePicker-currentDecade js-showYearPicker",tp.currentDecade)},this._onRenderYear(t)," - ",this._onRenderYear(o))},t}(_.Component),up=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderTitle=function(){return t.props.onRenderTitle?t.props.onRenderTitle(t.props):_.createElement(dp,m({},t.props))},t._onRenderNav=function(){return _.createElement(cp,m({},t.props))},t}return h(t,e),t.prototype.render=function(){return _.createElement("div",{className:Yr("ms-DatePicker-header",tp.header)},this._onRenderTitle(),this._onRenderNav())},t}(_.Component),pp=function(e){function t(t){var o=e.call(this,t)||this;return o._gridRef=_.createRef(),o._onNavNext=function(){o.setState({fromYear:o.state.fromYear+op})},o._onNavPrev=function(){o.setState({fromYear:o.state.fromYear-op})},o._renderHeader=function(){return _.createElement(up,m({},o.props,{fromYear:o.state.fromYear,toYear:o.state.fromYear+op-1,onSelectPrev:o._onNavPrev,onSelectNext:o._onNavNext}))},o._renderGrid=function(){return _.createElement(sp,m({},o.props,{fromYear:o.state.fromYear,toYear:o.state.fromYear+op-1,ref:o._gridRef}))},o.state=o._calculateInitialStateFromProps(t),o}return h(t,e),t.prototype.focus=function(){this._gridRef.current&&this._gridRef.current.focus()},t.prototype.render=function(){return _.createElement("div",{className:Yr("ms-DatePicker-yearPicker",tp.yearPicker)},this._renderHeader(),this._renderGrid())},t.prototype._calculateInitialStateFromProps=function(e){var t=e.selectedYear,o=e.navigatedYear,n=t||o||(new Date).getFullYear();return{fromYear:10*Math.floor(n/10),navigatedYear:o,selectedYear:t}},t}(_.Component),hp=n,mp=function(e){function t(t){var o=e.call(this,t)||this;return o._onCalendarYearRef=function(e){o._calendarYearRef=e},o._onKeyDown=function(e,t){t.which===zt.enter&&e()},o._onSelectYear=function(e){o._focusOnUpdate=!0;var t=o.props,n=t.navigatedDate,i=t.onNavigateDate,r=t.maxDate,s=t.minDate;if(n.getFullYear()!==e){var a=new Date(n.getTime());a.setFullYear(e),r&&a>r?a=ud(a,r.getMonth()):s&&a71||l.height>71),focused:o});var b=di(y,Zn),x=b.className,S=g(b,["className"]);return _.createElement("div",{className:this._classNames.root},_.createElement("div",{className:this._classNames.choiceFieldWrapper},_.createElement("input",m({"aria-label":t||void 0,ref:this._inputElement,id:u,className:Yr(this._classNames.input,x),type:"radio",name:h,disabled:c,checked:d,required:n,onChange:this._onChange.bind(this,this.props),onFocus:this._onFocus.bind(this,this.props),onBlur:this._onBlur.bind(this,this.props)},S)),v(this.props,this._onRenderField)))},t.prototype._onChange=function(e,t){var o=e.onChange;o&&o(t,e)},t.prototype._onBlur=function(e,t){var o=e.onBlur;o&&o(t,e)},t.prototype._onFocus=function(e,t){var o=e.onFocus;o&&o(t,e)},t}(_.Component),Fp={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Lp="200ms";function Ap(e,t){return["is-inFocus",{selectors:(o={},o["."+Yt+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+(t?e.neutralSecondary:e.neutralPrimary),position:"absolute",selectors:(n={},n[At]={borderColor:"WindowText",borderWidth:t?1:2},n)}}},o)}];var o,n}function Op(e,t,o){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Lp,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(o?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var Hp=cn(Bp,function(e){var t,o,n,i,r,s=e.theme,a=e.hasIcon,l=e.hasImage,c=e.checked,d=e.disabled,u=e.imageIsLarge,p=e.focused,h=s.palette,m=s.semanticColors,g=So(Fp,s),f={selectors:{".ms-ChoiceFieldLabel":{color:m.bodyTextChecked},":before":{borderColor:c?m.inputBackgroundCheckedHovered:m.inputBorderHovered}}},v={borderColor:c?h.themeDark:h.neutralTertiaryAlt,selectors:{":before":{opacity:1,borderColor:c?h.themeDark:m.inputBorderHovered}}},_=[{content:'""',display:"inline-block",backgroundColor:m.bodyBackground,borderWidth:1,borderStyle:"solid",borderColor:m.smallInputBorder,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Lp,transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",borderRadius:"50%"},d&&{backgroundColor:c?m.bodyBackground:m.disabledText,borderColor:m.disabledText,selectors:(t={},t[At]={color:"GrayText"},t)},c&&{borderWidth:1,borderStyle:"solid",borderColor:d?m.disabledText:m.inputBackgroundChecked,selectors:(o={},o[At]={borderColor:"Highlight"},o)},(a||l)&&{top:3,right:3,left:"auto",opacity:!d&&c?1:0}],y=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:Lp,transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",boxSizing:"border-box"},c&&{borderWidth:5,borderStyle:"solid",borderColor:d?m.disabledText:m.inputBackgroundChecked,left:5,top:5,width:10,height:10,selectors:(n={},n[At]={borderColor:"Highlight"},n)},c&&(a||l)&&{top:8,right:8,left:"auto"}];return{root:[g.root,s.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:m.bodyText,fontSize:_t.medium,fontWeight:yt.regular,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{fontSize:_t.medium,display:"inline-block"}}},!a&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",a&&"ms-ChoiceField--icon",(a||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:h.neutralLighter,height:"100%"}],choiceFieldWrapper:[g.choiceFieldWrapper,p&&Ap(h,a||l)],input:[g.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0}],field:[g.field,c&&g.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!d&&f,":focus":!d&&f,":before":_,":after":y}},a&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(a||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Lp,transitionTimingFunction:"ease",border:"2px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},c&&{borderColor:h.themePrimary},(a||l)&&!d&&{selectors:{":hover":v,":focus":v}},d&&{cursor:"default",selectors:(i={".ms-ChoiceFieldLabel":{color:m.disabledBodyText}},i[At]={color:"GrayText"},i)}],innerField:[g.innerField,(a||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(a||l)&&u&&{paddingLeft:24,paddingRight:24},(a||l)&&d&&{opacity:.25,selectors:(r={},r[At]={color:"GrayText",opacity:1},r)}],imageWrapper:Op(!1,g.imageWrapper,c),selectedImageWrapper:Op(!0,g.imageWrapper,c),iconWrapper:[g.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[g.labelWrapper,(a||l)&&{display:"block",position:"relative",margin:"4px 8px",height:30,lineHeight:15,overflow:"hidden",whiteSpace:"pre-wrap",textOverflow:"ellipsis",fontSize:_t.medium,fontWeight:yt.regular}]}},void 0,{scope:"ChoiceGroupOption"}),Wp=mn(),zp=function(e){function t(t){var o=e.call(this,t)||this;o._inputElement=_.createRef(),o.focusedVars={},o.changedVars={},o._onFocus=function(e){return o.focusedVars[e]?o.focusedVars[e]:o.focusedVars[e]=function(t,n){o.setState({keyFocused:e,keyChecked:o.state.keyChecked})}},o._onBlur=function(e,t){o.setState({keyFocused:void 0,keyChecked:o.state.keyChecked})},o._onChange=function(e){return o.changedVars[e]?o.changedVars[e]:o.changedVars[e]=function(t,n){var i=o.props,r=i.onChanged,s=i.onChange,a=i.selectedKey,l=i.options,c=void 0===l?[]:l;void 0===a&&o.setState({keyChecked:e});var d=as(c,function(t){return t.key===e});s?s(t,d):r&&r(d)}},Wr(o);var n=!!t.options&&t.options.some(function(e){return e.key===t.defaultSelectedKey});return o.state={keyChecked:void 0!==t.defaultSelectedKey&&n?t.defaultSelectedKey:o._getKeyChecked(t),keyFocused:void 0},o._id=Fn("ChoiceGroup"),o._labelId=Fn("ChoiceGroupLabel"),o}return h(t,e),Object.defineProperty(t.prototype,"checkedOption",{get:function(){var e=this.props.options,t=void 0===e?[]:e,o=this.state.keyChecked;return as(t,function(e){return e.key===o})},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(e){var t=this._getKeyChecked(e);t!==this._getKeyChecked(this.props)&&this.setState({keyChecked:t})},t.prototype.render=function(){var e=this,t=this.props,o=t.className,n=t.theme,i=t.styles,r=t.options,s=t.label,a=t.required,l=t.disabled,c=t.name,d=t.role,u=this.state,p=u.keyChecked,h=u.keyFocused,g=di(this.props,ci,["onChange","className","required"]),f=Wp(i,{theme:n,className:o,optionsContainIconOrImage:r.some(function(e){return Boolean(e.iconProps||e.imageSrc)})}),v=this.props.ariaLabelledBy?this.props.ariaLabelledBy:s?this._id+"-label":this.props["aria-labelledby"];return _.createElement("div",m({role:d,className:f.applicationRole},g),_.createElement("div",m({className:f.root,role:"radiogroup"},v&&{"aria-labelledby":v}),s&&_.createElement(Rp,{className:f.label,required:a,id:this._id+"-label"},s),_.createElement("div",{className:f.flexContainer},r.map(function(t){var o=m({},t,{focused:t.key===h,checked:t.key===p,disabled:t.disabled||l,id:e._id+"-"+t.key,labelId:e._labelId+"-"+t.key,name:c||e._id,required:a});return _.createElement(Hp,m({key:t.key,onBlur:e._onBlur,onFocus:e._onFocus(t.key),onChange:e._onChange(t.key)},o))}))))},t.prototype.focus=function(){var e=this.props.options;if(e)for(var t=0,o=e;tl?l:n,d=_.createElement("div",{ref:this._positionedHost,className:Yr("ms-PositioningContainer",s.container)},_.createElement("div",{className:j("ms-PositioningContainer-layerHost",s.root,t,a,!!o&&{width:o}),style:r?r.elementPosition:Qp,tabIndex:-1,ref:this._contentHost},i,c));return this.props.doNotLayer?d:_.createElement(_l,null,d)},t.prototype._dismissOnScroll=function(e){var t=this.props.preventDismissOnScroll;this.state.positions&&!t&&this._dismissOnLostFocus(e)},t.prototype._dismissOnLostFocus=function(e){var t=e.target,o=this._positionedHost.current&&!fr(this._positionedHost.current,t);(!this._target&&o||e.target!==this._targetWindow&&o&&(this._target.stopPropagation||!this._target||t!==this._target&&!fr(this._target,t)))&&this.onResize(e)},t.prototype._updateAsyncPosition=function(){var e=this;this._async.requestAnimationFrame(function(){return e._updatePosition()})},t.prototype._updatePosition=function(){var e=this.state.positions,t=this.props,o=t.offsetFromTarget,n=t.onPositioned,i=this._positionedHost.current,r=this._contentHost.current;if(i&&r){var s=void 0;if((s=Rn(s,this.props)).bounds=this._getBounds(),s.target=this._target,document.body.contains(s.target)){s.gapSpace=o;var a=za(s,i,r);!e&&a||e&&a&&!this._arePositionsEqual(e,a)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:a},function(){n&&n(a)})):(this._positionAttempts=0,n&&n(a))}else void 0!==e&&this.setState({positions:void 0})}},t.prototype._getBounds=function(){if(!this._positioningBounds){var e=this.props.bounds;e||(e={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-2*this.props.minPagePadding,height:this._targetWindow.innerHeight-2*this.props.minPagePadding}),this._positioningBounds=e}return this._positioningBounds},t.prototype._getMaxHeight=function(){var e=this.props,t=e.directionalHintFixed,o=e.offsetFromTarget,n=e.directionalHint;if(!this._maxHeight)if(t&&this._target){var i=o||0;this._maxHeight=Ka(this._target,n,i,this._getBounds())}else this._maxHeight=this._getBounds().height-2;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)},t.prototype._comparePositions=function(e,t){for(var o in t)if(t.hasOwnProperty(o)){var n=e[o],i=t[o];if(n&&i&&n.toFixed(2)!==i.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){if(e)if("string"==typeof e){var t=Dt();this._target=t?t.querySelector(e):null,this._targetWindow=re()}else if(e.stopPropagation)this._targetWindow=re(e.toElement),this._target=e;else if(void 0!==e.x&&void 0!==e.y)this._targetWindow=re(),this._target=e;else{var o=e;this._targetWindow=re(o),this._target=e}else this._targetWindow=re()},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._contentHost&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){if(e._contentHost.current){var t=e._contentHost.current.lastChild,o=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+o}),t.offsetHeightthis._targetElementRect.left-o&&ethis._targetElementRect.top-o&&tt?t:e}function _h(e,t,o){return[yh(e),yh(t),yh(o)].join("")}function yh(e){var t=(e=vh(e,ch)).toString(16);return 1===t.length?"0"+t:t}function bh(e,t,o){var n=hh(e,t,o);return _h(n.r,n.g,n.b)}function xh(e,t,o){var n=NaN,i=Math.max(e,t,o),r=i-Math.min(e,t,o);return 0===r?n=0:e===i?n=(t-o)/r%6:t===i?n=(o-e)/r+2:o===i&&(n=(e-t)/r+4),(n=Math.round(60*n))<0&&(n+=360),{h:n,s:Math.round(100*(0===i?0:r/i)),v:Math.round(i/ch*100)}}function Sh(e,t,o){var n=(2-(t/=sh))*(o/=lh),i=t*o;return{h:e,s:100*(i=(i/=n<=1?n:2-n)||0),l:100*(n/=2)}}function Ch(e,t,o,n,i){return n===uh||"number"!=typeof n?"#"+i:"rgba("+e+", "+t+", "+o+", "+n/uh+")"}function kh(e){var t=e.a,o=void 0===t?uh:t,n=e.b,i=e.g,r=e.r,s=xh(r,i,n),a=s.h,l=s.s,c=s.v,d=_h(r,i,n);return{a:o,b:n,g:i,h:a,hex:d,r:r,s:l,str:Ch(r,i,n,o,d),v:c}}function wh(e){var t=gh(e);if(t)return m({},kh(t),{str:e})}function Ih(e,t){var o=e.h,n=e.s,i=e.v;t="number"==typeof t?t:uh;var r=hh(o,n,i),s=r.r,a=r.g,l=r.b,c=bh(o,n,i);return{a:t,b:l,g:a,h:o,hex:c,r:s,s:n,str:Ch(s,a,l,t,c),v:i}}function Dh(e){return"#"+bh(e.h,sh,lh)}function Ph(e,t,o){var n=hh(e.h,t,o),i=n.r,r=n.g,s=n.b,a=_h(i,r,s);return{a:e.a,b:s,g:r,h:e.h,hex:a,r:i,s:t,str:Ch(i,r,s,e.a,a),v:o}}function Th(e,t){var o=hh(t,e.s,e.v),n=o.r,i=o.g,r=o.b,s=_h(n,i,r);return{a:e.a,b:r,g:i,h:t,hex:s,r:n,s:e.s,str:Ch(n,i,r,e.a,s),v:e.v}}function Eh(e,t,o){return kh(((n={r:e.r,g:e.g,b:e.b,a:e.a})[t]=o,n));var n}function Mh(e,t){return m({},e,{a:t,str:Ch(e.r,e.g,e.b,t,e.hex)})}function Rh(e){return{r:vh(e.r,ch),g:vh(e.g,ch),b:vh(e.b,ch),a:"number"==typeof e.a?vh(e.a,uh):e.a}}function Nh(e){return{h:vh(e.h,ah),s:vh(e.s,sh),v:vh(e.v,lh)}}var Bh,Fh=[.027,.043,.082,.145,.184,.216,.349,.537],Lh=[.537,.45,.349,.216,.184,.145,.082,.043],Ah=[.537,.349,.216,.184,.145,.082,.043,.027],Oh=[.537,.45,.349,.216,.184,.145,.082,.043],Hh=[.88,.77,.66,.55,.44,.33,.22,.11],Wh=[.11,.22,.33,.44,.55,.66,.77,.88],zh=[.96,.84,.7,.4,.12],Vh=[.1,.24,.44],Kh=.2,Uh=.8;function Gh(e){return"number"==typeof e&&e>=Bh.Unshaded&&e<=Bh.Shade8}function Yh(e,t){return{h:e.h,s:e.s,v:qh(e.v-e.v*t,0,100)}}function jh(e,t){return{h:e.h,s:qh(e.s-e.s*t,0,100),v:qh(e.v+(100-e.v)*t,0,100)}}function qh(e,t,o){return e}function Zh(e){return Sh(e.h,e.s,e.v).l<50}function Xh(e,t,o){if(void 0===o&&(o=!1),!e)return null;if(t===Bh.Unshaded||!Gh(t))return e;var n=Sh(e.h,e.s,e.v),i={h:e.h,s:e.s,v:e.v},r=t-1,s=jh,a=Yh;return o&&(s=Yh,a=jh),kh(Rn(hh((i=function(e){return e.r===dh&&e.g===dh&&e.b===dh}(e)?Yh(i,Ah[r]):function(e){return 0===e.r&&0===e.g&&0===e.b}(e)?jh(i,Oh[r]):n.l/100>Uh?a(i,Wh[r]):n.l/1001?n/i:i/n}!function(e){e[e.Unshaded=0]="Unshaded",e[e.Shade1=1]="Shade1",e[e.Shade2=2]="Shade2",e[e.Shade3=3]="Shade3",e[e.Shade4=4]="Shade4",e[e.Shade5=5]="Shade5",e[e.Shade6=6]="Shade6",e[e.Shade7=7]="Shade7",e[e.Shade8=8]="Shade8"}(Bh||(Bh={}));var Jh=mn(),em="",tm=function(e){function t(t){var o=e.call(this,t)||this;return o._textElement=cl(),o._onFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({isFocused:!0}),o.props.validateOnFocusIn&&o._validate(o.state.value)},o._onBlur=function(e){o.props.onBlur&&o.props.onBlur(e),o.setState({isFocused:!1}),o.props.validateOnFocusOut&&o._validate(o.state.value)},o._onRenderLabel=function(e){var t=e.label,n=e.required,i=o._classNames.subComponentStyles?o._classNames.subComponentStyles.label:void 0;return t?_.createElement(Rp,{required:n,htmlFor:o._id,styles:i,disabled:e.disabled,id:o._labelId},e.label):null},o._onRenderDescription=function(e){return e.description?_.createElement("span",{className:o._classNames.description},e.description):null},o._onInputChange=function(e){e.persist();var t=e.target.value;t!==o._latestValue&&(o._latestValue=t,o.setState({value:t},function(){o._adjustInputHeight(),o.props.onChange&&o.props.onChange(e,t),o.props.onChanged&&o.props.onChanged(t)}),om(o.props)&&o._delayedValidate(t),o.props.onBeforeChange&&o.props.onBeforeChange(t))},Wr(o),o._async=new ui(o),o._id=t.id||Fn("TextField"),o._descriptionId=Fn("TextFieldDescription"),o._labelId=Fn("TextFieldLabel"),void 0!==t.value?o._latestValue=t.value:void 0!==t.defaultValue?o._latestValue=t.defaultValue:o._latestValue=em,o.state={value:o._latestValue,isFocused:!1,errorMessage:""},o._delayedValidate=o._async.debounce(o._validate,o.props.deferredValidationTime),o._lastValidation=0,o}return h(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.value},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._isMounted=!0,this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.state.value)},t.prototype.componentWillReceiveProps=function(e){var t=this.props.onBeforeChange;e.value===this.state.value||void 0===e.value&&void 0===this.props.value||(t&&t(e.value),this._id=e.id||this._id,this._setValue(e.value),om(e)&&this._delayedValidate(e.value)),e.defaultValue!==this.props.defaultValue&&void 0===e.value&&this._setValue(e.defaultValue),!!e.multiline!=!!this.props.multiline&&this.state.isFocused&&(this._shouldResetFocusAfterRender=!0,this._selectionBeforeInputTypeChange=[this.selectionStart,this.selectionEnd])},t.prototype.componentDidUpdate=function(){if(this._shouldResetFocusAfterRender&&(this._shouldResetFocusAfterRender=!1,this.focus(),this._selectionBeforeInputTypeChange)){var e=this._selectionBeforeInputTypeChange,t=e[0],o=e[1];null!==t&&null!==o&&this.setSelectionRange(t,o)}},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.borderless,o=e.className,n=e.disabled,i=e.iconClass,r=e.iconProps,s=e.inputClassName,a=e.label,l=e.multiline,c=e.required,d=e.underlined,u=e.addonString,p=e.prefix,h=e.resizable,g=e.suffix,f=e.theme,v=e.styles,y=e.autoAdjustHeight,b=e.onRenderAddon,x=void 0===b?this._onRenderAddon:b,S=e.onRenderPrefix,C=void 0===S?this._onRenderPrefix:S,k=e.onRenderSuffix,w=void 0===k?this._onRenderSuffix:k,I=e.onRenderLabel,D=void 0===I?this._onRenderLabel:I,P=e.onRenderDescription,T=void 0===P?this._onRenderDescription:P,E=this.state.isFocused,M=this._errorMessage;return this._classNames=Jh(v,{theme:f,className:o,disabled:n,focused:E,required:c,multiline:l,hasLabel:!!a,hasErrorMessage:!!M,borderless:t,resizable:h,hasIcon:!!r,underlined:d,iconClass:i,inputClassName:s,autoAdjustHeight:y}),_.createElement("div",{className:this._classNames.root},_.createElement("div",{className:this._classNames.wrapper},D(this.props,this._onRenderLabel),_.createElement("div",{className:this._classNames.fieldGroup},(void 0!==u||this.props.onRenderAddon)&&_.createElement("div",{className:this._classNames.prefix},x(this.props,this._onRenderAddon)),(void 0!==p||this.props.onRenderPrefix)&&_.createElement("div",{className:this._classNames.prefix},C(this.props,this._onRenderPrefix)),l?this._renderTextArea():this._renderInput(),(i||r)&&_.createElement(Fi,m({className:this._classNames.icon},r)),(void 0!==g||this.props.onRenderSuffix)&&_.createElement("div",{className:this._classNames.suffix},w(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&_.createElement("span",{id:this._descriptionId},T(this.props,this._onRenderDescription),M&&_.createElement("div",{role:"alert"},_.createElement(sr,null,_.createElement("p",{className:this._classNames.errorMessage},_.createElement("span",{"data-automation-id":"error-message"},M))))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._setValue=function(e){var t=this;this._latestValue=e,this.setState({value:e||em,errorMessage:""},function(){t._adjustInputHeight()})},t.prototype._onRenderAddon=function(e){var t=e.addonString;return _.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderPrefix=function(e){var t=e.prefix;return _.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return _.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.state.errorMessage;return!e&&this.props.errorMessage&&(e=this.props.errorMessage),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!0,configurable:!0}),t.prototype._renderTextArea=function(){var e=di(this.props,Xn,["defaultValue"]);return _.createElement("textarea",m({id:this._id},e,{ref:this._textElement,value:this.state.value,onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=di(this.props,Zn,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return _.createElement("input",m({type:"text",id:this._id,"aria-labelledby":t},e,{ref:this._textElement,value:this.state.value,onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!om(this.props)){this._latestValidateValue=e;var o=(0,this.props.onGetErrorMessage)(e||"");if(void 0!==o)if("string"!=typeof o&&"then"in o){var n=++this._lastValidation;o.then(function(o){t._isMounted&&n===t._lastValidation&&t.setState({errorMessage:o}),t._notifyAfterValidate(e,o)})}else this.setState({errorMessage:o}),this._notifyAfterValidate(e,o);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){this._isMounted&&e===this.state.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={multiline:!1,resizable:!0,autoAdjustHeight:!1,underlined:!1,borderless:!1,onChange:function(){},onBeforeChange:function(){},onNotifyValidationResult:function(){},onGetErrorMessage:function(){},deferredValidationTime:200,errorMessage:"",validateOnFocusIn:!1,validateOnFocusOut:!1,validateOnLoad:!0},t}(_.Component);function om(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var nm={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function im(e){var t=e.underlined,o=e.disabled,n=e.focused;return function(){return{root:[t&&o&&{color:e.theme.palette.neutralTertiary},t&&{fontSize:_t.medium,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&n&&{selectors:(i={},i[At]={height:31},i)}]};var i}}var rm=cn(tm,function(e){var t,o,n,i,r,s,a,l,c,d=e.theme,u=e.className,p=e.disabled,h=e.focused,m=e.required,g=e.multiline,f=e.hasLabel,v=e.borderless,_=e.underlined,y=e.hasIcon,b=e.resizable,x=e.hasErrorMessage,S=e.iconClass,C=e.inputClassName,k=e.autoAdjustHeight,w=d.semanticColors,I=So(nm,d),D={background:w.disabledBackground,color:p?w.disabledText:w.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0};return{root:[I.root,d.fonts.medium,m&&I.required,p&&I.disabled,h&&I.active,g&&I.multiline,v&&I.borderless,_&&I.underlined,jo,{position:"relative"},u],wrapper:[I.wrapper,_&&{display:"flex",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:w.inputBorder,width:"100%"},x&&_&&!p&&{borderBottomColor:w.errorText,selectors:{":hover":{borderBottomColor:w.errorText,selectors:(t={},t[At]={borderBottomColor:"Highlight"},t)}}},_&&p&&{borderBottomColor:w.disabledBackground},_&&!p&&!h&&!x&&{selectors:{":hover":{borderBottomColor:w.inputBorderHovered,selectors:(o={},o[At]={borderBottomColor:"Highlight"},o)}}},_&&h&&{borderBottomColor:x?w.errorText:w.inputFocusBorderAlt,selectors:(n={},n[At]={borderBottomWidth:2,borderBottomColor:"Highlight"},n)}],fieldGroup:[I.fieldGroup,jo,{border:"1px solid "+w.inputBorder,background:w.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative",selectors:{":hover":{selectors:(i={},i[At]={borderColor:"Highlight"},i)}}},g&&{minHeight:"60px",height:"auto",display:"flex"},v&&{border:"none"},!h&&!p&&{selectors:{":hover":{borderColor:w.inputBorderHovered}}},h&&{borderColor:w.inputFocusBorderAlt,selectors:(r={},r[At]={borderWidth:2,borderColor:"Highlight"},r)},p&&{backgroundColor:w.disabledBackground,borderColor:w.disabledBackground,cursor:"default"},_&&{flex:"1 1 0px",border:"none",textAlign:"left"},_&&h&&{selectors:(s={},s[At]={height:31},s)},_&&p&&{backgroundColor:"transparent"},x&&{borderColor:w.errorText,selectors:{"&:focus, &:hover":{borderColor:w.errorText}}},x&&h&&{borderColor:w.errorText},!f&&m&&{selectors:(a={":after":{content:"'*'",color:w.errorText,position:"absolute",top:-5,right:-10}},a[At]={selectors:{":after":{right:-14}}},a)}],field:[d.fonts.medium,I.field,jo,{fontSize:_t.medium,borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:w.inputText,padding:"0 12px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:{"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"},"::placeholder":[{color:w.inputPlaceholderText,opacity:1}],":-ms-input-placeholder":[{color:w.inputPlaceholderText,opacity:1}]}},g&&!b&&[I.unresizable,{resize:"none"}],g&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,overflow:"auto",width:"100%"},g&&k&&{overflow:"hidden"},y&&{paddingRight:24},g&&y&&{paddingRight:40},p&&{backgroundColor:"transparent",borderColor:"transparent",color:w.disabledText,selectors:{"::placeholder":{color:w.disabledText},":-ms-input-placeholder":{color:w.disabledText}}},_&&{textAlign:"left"},h&&!v&&{selectors:(l={},l[At]={paddingLeft:11,paddingRight:11},l)},h&&g&&!v&&{selectors:(c={},c[At]={paddingTop:4},c)},C],icon:[g&&{paddingRight:24,paddingBottom:8,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:5,right:8,top:"auto",fontSize:16,lineHeight:18},p&&{color:w.disabledText},S],description:[I.description,{color:w.bodySubtext,fontSize:_t.xSmall}],errorMessage:[I.errorMessage,Jo.slideDownIn20,d.fonts.small,{color:w.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[I.prefix,D],suffix:[I.suffix,D],subComponentStyles:{label:im(e)}}},void 0,{scope:"TextField"}),sm=mn();var am=cn(function(e){function t(t){var o=e.call(this,t)||this;o._root=_.createRef(),o._onMouseDown=function(e){o._events.on(window,"mousemove",o._onMouseMove,!0),o._events.on(window,"mouseup",o._disableEvents,!0),o._onMouseMove(e)},o._onMouseMove=function(e){var t=o.props,n=t.color,i=t.onSVChanged,r=t.onChange;if(o._root.current)if(1&e.buttons){var s=function(e,t,o){var n=o.getBoundingClientRect(),i=(e.clientX-n.left)/n.width,r=(e.clientY-n.top)/n.height;return Ph(t,vh(i*sh,sh),vh(lh-r*lh,lh))}(e,n,o._root.current);s&&(o.setState({color:s}),r&&r(e,s),i&&i(s.s,s.v)),e.preventDefault(),e.stopPropagation()}else o._disableEvents()},o._disableEvents=function(){o._events.off()},o._warnDeprecations({onSVChanged:"onChange"});var n=o.props.color;return o.state={color:n},o}return h(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(e){var t=e.color;this.setState({color:t})},t.prototype.render=function(){var e=this.props,t=e.minSize,o=e.theme,n=e.className,i=e.styles,r=this.state.color,s=sm(i,{theme:o,className:n});return _.createElement("div",{ref:this._root,className:s.root,style:{minWidth:t,minHeight:t,backgroundColor:Dh(r)},onMouseDown:this._onMouseDown},_.createElement("div",{className:s.light}),_.createElement("div",{className:s.dark}),_.createElement("div",{className:s.thumb,style:{left:r.s+"%",top:lh-r.v+"%",backgroundColor:r.str}}))},t.defaultProps={minSize:220},t}(bi),function(e){var t,o=e.className;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:10,selectors:(t={},t[At]={MsHighContrastAdjust:"none"},t)},o],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%)"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid rgba(255,255,255,.8)",borderRadius:"50%",boxShadow:"0 0 15px -5px black",transform:"translate(-50%, -50%)"}]}},void 0,{scope:"ColorRectangle"}),lm=mn(),cm=cn(function(e){function t(t){var o=e.call(this,t)||this;o._root=_.createRef(),o._onMouseDown=function(e){o._events.on(window,"mousemove",o._onMouseMove,!0),o._events.on(window,"mouseup",o._onMouseUp,!0),o._onMouseMove(e)},o._onMouseMove=function(e){if(o._root.current){var t=o.props,n=t.onChange,i=t.onChanged,r=t.minValue,s=t.maxValue,a=o._root.current.getBoundingClientRect(),l=(e.clientX-a.left)/a.width,c=Math.min(s,Math.max(r,l*s));o.setState({isAdjusting:!0,currentValue:c}),n&&n(e,c),i&&i(c),e.preventDefault(),e.stopPropagation()}},o._onMouseUp=function(e){o._events.off(),o.setState({isAdjusting:!1,origin:void 0})},o._warnDeprecations({onChanged:"onChange"});var n=o.props.value;return o.state={isAdjusting:!1,origin:void 0,currentValue:n},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){e&&e.value&&this.setState({currentValue:e.value})},t.prototype.render=function(){var e=this.props,t=e.isAlpha,o=e.minValue,n=e.maxValue,i=e.overlayStyle,r=e.theme,s=e.className,a=e.styles,l=this.state.currentValue,c=lm(a,{theme:r,className:s}),d=100*(l-o)/(n-o),u=t?{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"}:{background:"linear-gradient(to left,red 0,#f09 10%,#cd00ff 20%,#3200ff 30%,#06f 40%,#00fffd 50%,#0f6 60%,#35ff00 70%,#cdff00 80%,#f90 90%,red 100%)"};return _.createElement("div",{ref:this._root,className:c.root,onMouseDown:this._onMouseDown,style:u},_.createElement("div",{className:c.sliderOverlay,style:i}),_.createElement("div",{className:c.sliderThumb,style:{left:d+"%"}}))},t.defaultProps={minValue:0,maxValue:100,thumbColor:"inherit",value:0},t}(bi),function(e){var t=e.theme,o=e.className;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:5,border:"1px solid "+t.palette.neutralLight,boxSizing:"border-box"},o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid rgba(255,255,255,.8)",borderRadius:"50%",boxShadow:"0 0 15px -5px black",transform:"translate(-50%, -50%)",top:"50%"}]}},void 0,{scope:"ColorSlider"}),dm=mn(),um=["hex","r","g","b","a"],pm=function(e){function t(t){var o=e.call(this,t)||this;o._onSVChanged=function(e,t){o._updateColor(e,t)},o._onHChanged=function(e,t){o._updateColor(e,Th(o.state.color,t))},o._onAChanged=function(e,t){o._updateColor(e,Mh(o.state.color,t))},o._warnDeprecations({onColorChanged:"onChange"}),o.state={color:hm(t)||wh("#ffffff")},o._textChangeHandlers={},o._textBlurHandlers={};for(var n=0,i=um;n0&&(_+=", "),_+=g[v];return _},o._onInputChange=function(e){o.props.disabled?o._handleInputWhenDisabled(null):o.props.allowFreeform?o._processInputChangeWithFreeform(e):o._processInputChangeWithoutFreeform(e)},o._select=function(){if(o._autofill.current&&o._autofill.current.inputElement&&o._autofill.current.inputElement.select(),!o.state.focused){var e={focused:!0};!o.props.openOnKeyboardFocus||o.state.isOpen||o.props.disabled||(e.isOpen=!0),o.setState(e)}},o._onResolveOptions=function(){if(o.props.onResolveOptions){var e=o.props.onResolveOptions(o.state.currentOptions.slice());if(Array.isArray(e))o.setState({currentOptions:e});else if(e&&e.then){var t=o._currentPromise=e;t.then(function(e){t===o._currentPromise&&o.setState({currentOptions:e})})}}},o._onBlur=function(e){var t=e.relatedTarget;if(null===e.relatedTarget&&(t=document.activeElement),t&&(o._root.current&&o._root.current.contains(t)||o._comboBoxMenu.current&&(o._comboBoxMenu.current.contains(t)||mr(o._comboBoxMenu.current,function(e){return e===t}))))return e.preventDefault(),void e.stopPropagation();o.state.focused&&(o.setState({focused:!1}),o.props.multiSelect&&!o.props.allowFreeform||o._submitPendingValue(e))},o._onRenderContainer=function(e){var t=e.onRenderList,n=e.calloutProps,i=e.dropdownWidth,r=e.dropdownMaxWidth,s=e.onRenderLowerContent,a=void 0===s?o._onRenderLowerContent:s,l=e.useComboBoxAsMenuWidth,c=e.persistMenu,d=o.state.isOpen,u=l&&o._comboBoxWrapper.current?o._comboBoxWrapper.current.clientWidth+2:void 0;return _.createElement(yl,m({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:Rs.bottomLeftEdge,directionalHintFixed:!1},n,{onLayerMounted:o._onLayerMounted,className:Yr(o._classNames.callout,n?n.className:void 0),target:o._comboBoxWrapper.current,onDismiss:o._onDismiss,onScroll:o._onScroll,setInitialFocus:!1,calloutWidth:l&&o._comboBoxWrapper.current?u&&u:i,calloutMaxWidth:r||u,hidden:c?!d:void 0}),_.createElement("div",{className:o._classNames.optionsContainerWrapper,ref:o._comboBoxMenu},t(m({},e),o._onRenderList)),a(o.props,o._onRenderLowerContent))},o._onLayerMounted=function(){o._onCalloutLayerMounted(),o.props.calloutProps&&o.props.calloutProps.onLayerMounted&&o.props.calloutProps.onLayerMounted()},o._onRenderList=function(e){var t=e.onRenderItem,n=e.options,i=o._id;return _.createElement("div",{id:i+"-list",className:o._classNames.optionsContainer,"aria-labelledby":i+"-label",role:"listbox"},n.map(function(e){return t(e,o._onRenderItem)}))},o._onRenderItem=function(e){switch(e.itemType){case mm.Divider:return o._renderSeparator(e);case mm.Header:return o._renderHeader(e);default:return o._renderOption(e)}},o._onRenderLowerContent=function(){return null},o._renderOption=function(e){var t=o.props.onRenderOption,n=void 0===t?o._onRenderOptionContent:t,i=o._id,r=o._isOptionSelected(e.index),s=o._getCurrentOptionStyles(e),a=km(o._getCurrentOptionStyles(e)),l=function(){return s},c=o._getPreviewText(e);return _.createElement(Dm,{key:e.key,index:e.index,disabled:e.disabled,isSelected:r,text:e.text,render:function(){return o.props.multiSelect?_.createElement(Tp,{id:i+"-list"+e.index,ariaLabel:o._getPreviewText(e),key:e.key,"data-index":e.index,styles:l,className:"ms-ComboBox-option","data-is-focusable":!0,onChange:o._onItemClick(e),label:e.text,role:"option","aria-selected":r?"true":"false",checked:r,title:c},n(e,o._onRenderOptionContent)):_.createElement(Qc,{id:i+"-list"+e.index,key:e.key,"data-index":e.index,styles:o._getCurrentOptionStyles(e),checked:r,className:"ms-ComboBox-option",onClick:o._onItemClick(e),onMouseEnter:o._onOptionMouseEnter.bind(o,e.index),onMouseMove:o._onOptionMouseMove.bind(o,e.index),onMouseLeave:o._onOptionMouseLeave,role:"option","aria-selected":r?"true":"false",ariaLabel:o._getPreviewText(e),disabled:e.disabled,title:c}," ",_.createElement("span",{className:a.optionTextWrapper,ref:r?o._selectedElement:void 0},n(e,o._onRenderOptionContent)))},data:e.data})},o._onScroll=function(){o._isScrollIdle||void 0===o._scrollIdleTimeoutId?o._isScrollIdle=!1:(o._async.clearTimeout(o._scrollIdleTimeoutId),o._scrollIdleTimeoutId=void 0),o._scrollIdleTimeoutId=o._async.setTimeout(function(){o._isScrollIdle=!0},Im)},o._onRenderOptionContent=function(e){var t=km(o._getCurrentOptionStyles(e));return _.createElement("span",{className:t.optionText},e.text)},o._onDismiss=function(){o.props.persistMenu&&o._onCalloutLayerMounted(),o._setOpenStateAndFocusOnClose(!1,!1),o._resetSelectedIndex()},o._onAfterClearPendingInfo=function(){o._processingClearPendingInfo=!1},o._onInputKeyDown=function(e){var t=o.props,n=t.disabled,i=t.allowFreeform,r=t.autoComplete,s=o.state,a=s.isOpen,l=s.currentOptions,c=s.currentPendingValueValidIndexOnHover;if(o._lastKeyDownWasAltOrMeta=o._isAltOrMeta(e),n)o._handleInputWhenDisabled(e);else{var d=o._getPendingSelectedIndex(!1);switch(e.which){case zt.enter:o._autofill.current&&o._autofill.current.inputElement&&o._autofill.current.inputElement.select(),o._submitPendingValue(e),o.props.multiSelect&&a?o.setState({currentPendingValueValidIndex:d}):(a||(!i||void 0===o.state.currentPendingValue||null===o.state.currentPendingValue||o.state.currentPendingValue.length<=0)&&o.state.currentPendingValueValidIndex<0)&&o.setState({isOpen:!a});break;case zt.tab:return o.props.multiSelect||o._submitPendingValue(e),void(a&&o._setOpenStateAndFocusOnClose(!a,!1));case zt.escape:if(o._resetSelectedIndex(),!a)return;o.setState({isOpen:!1});break;case zt.up:if(c===vm.clearAll&&(d=o.state.currentOptions.length),e.altKey||e.metaKey){if(a){o._setOpenStateAndFocusOnClose(!a,!0);break}return}o._setPendingInfoFromIndexAndDirection(d,fm.backward);break;case zt.down:e.altKey||e.metaKey?o._setOpenStateAndFocusOnClose(!0,!0):(c===vm.clearAll&&(d=-1),o._setPendingInfoFromIndexAndDirection(d,fm.forward));break;case zt.home:case zt.end:if(i)return;d=-1;var u=fm.forward;e.which===zt.end&&(d=l.length,u=fm.backward),o._setPendingInfoFromIndexAndDirection(d,u);break;case zt.space:if(!i&&"off"===r)break;default:if(e.which>=112&&e.which<=123)return;if(e.keyCode===zt.alt||"Meta"===e.key)return;if(!i&&"on"===r){o._onInputChange(String.fromCharCode(e.which));break}return}e.stopPropagation(),e.preventDefault()}},o._onInputKeyUp=function(e){var t=o.props,n=t.disabled,i=t.allowFreeform,r=t.autoComplete,s=o.state.isOpen,a=o._lastKeyDownWasAltOrMeta&&o._isAltOrMeta(e);o._lastKeyDownWasAltOrMeta=!1;var l=a&&!(Ns()||Bs());if(n)o._handleInputWhenDisabled(e);else{switch(e.which){case zt.space:if(!i&&"off"===r)return void o._setOpenStateAndFocusOnClose(!s,!!s);break;default:return void(l&&s&&o._setOpenStateAndFocusOnClose(!s,!0))}e.stopPropagation(),e.preventDefault()}},o._onOptionMouseLeave=function(){o._shouldIgnoreMouseEvent()||o.props.persistMenu&&!o.state.isOpen||o.setState({currentPendingValueValidIndexOnHover:vm.clearAll})},o._onComboBoxClick=function(){var e=o.props.disabled,t=o.state.isOpen;e||(o._setOpenStateAndFocusOnClose(!t,!1),o.setState({focused:!0}))},o._onAutofillClick=function(){o.props.allowFreeform?o.focus(o.state.isOpen||o._processingTouch):o._onComboBoxClick()},o._onTouchStart=function(){!o._comboBoxWrapper.current||"onpointerdown"in o._comboBoxWrapper||o._handleTouchAndPointerEvent()},o._onPointerDown=function(e){"touch"===e.pointerType&&(o._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},o._warnMutuallyExclusive({defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",value:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth"}),o._warnDeprecations({value:"text",onChanged:"onChange"}),o._id=t.id||Fn("ComboBox");var n=o._buildDefaultSelectedKeys(t.defaultSelectedKey,t.selectedKey);o._isScrollIdle=!0,o._processingTouch=!1,o._gotMouseMove=!1,o._processingClearPendingInfo=!1;var i=o._getSelectedIndices(t.options,n);return o.state={isOpen:!1,selectedIndices:i,focused:!1,suggestedDisplayValue:void 0,currentOptions:o.props.options,currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:vm.default},o}return h(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.state;return wm(e.currentOptions,e.selectedIndices)},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentWillReceiveProps=function(e){if(e.selectedKey!==this.props.selectedKey||e.text!==this.props.text||e.value!==this.props.value||e.options!==this.props.options){var t=this._buildSelectedKeys(e.selectedKey),o=this._getSelectedIndices(e.options,t);this.setState({selectedIndices:o,currentOptions:e.options})}},t.prototype.componentDidUpdate=function(e,t){var o=this,n=this.props,i=n.allowFreeform,r=n.text,s=n.value,a=n.onMenuOpen,l=n.onMenuDismissed,c=this.state,d=c.isOpen,u=c.focused,p=c.selectedIndices,h=c.currentPendingValueValidIndex;!d||t.isOpen&&t.currentPendingValueValidIndex===h||this._async.setTimeout(function(){return o._scrollIntoView()},0),u&&(d||t.isOpen&&!d&&this._focusInputAfterClose&&this._autofill.current&&document.activeElement!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!d||u&&(!d&&!this.props.multiSelect&&t.selectedIndices&&p&&t.selectedIndices[0]!==p[0]||!i||r!==e.text||s!==e.value))&&this._select(),this._notifyPendingValueChanged(t),d&&!t.isOpen&&a&&a(),!d&&t.isOpen&&l&&l()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this._events.off(this._comboBoxWrapper.current)},t.prototype.render=function(){var e=this,t=this._id,o=this.props,n=o.className,i=o.label,r=o.disabled,s=o.ariaLabel,a=o.ariaDescribedBy,l=o.required,c=o.errorMessage,d=o.onRenderContainer,u=void 0===d?this._onRenderContainer:d,p=o.onRenderList,h=void 0===p?this._onRenderList:p,g=o.onRenderItem,f=void 0===g?this._onRenderItem:g,v=o.onRenderOption,y=void 0===v?this._onRenderOptionContent:v,b=o.allowFreeform,x=o.buttonIconProps,S=o.isButtonAriaHidden,C=void 0===S||S,k=o.styles,w=o.theme,I=o.title,D=o.keytipProps,P=o.placeholder,T=o.tabIndex,E=o.autofill,M=o.persistMenu,R=this.state,N=R.isOpen,B=R.focused,F=R.suggestedDisplayValue;this._currentVisibleValue=this._getVisibleValue();var L=di(this.props,ci,["onChange","value"]),A=!!(c&&c.length>0);return this._classNames=this.props.getClassNames?this.props.getClassNames(w,!!N,!!r,!!l,!!B,!!b,!!A,n):Cm(Sm(w,k),n,!!N,!!r,!!l,!!B,!!b,!!A),_.createElement("div",m({},L,{ref:this._root,className:this._classNames.container}),i&&_.createElement(Rp,{id:t+"-label",disabled:r,required:l,htmlFor:t+"-input",className:this._classNames.label},i),_.createElement(Ds,{keytipProps:D,disabled:r},function(o){return _.createElement("div",{"data-ktp-target":o["data-ktp-target"],ref:e._comboBoxWrapper,id:t+"wrapper",className:e._classNames.root},_.createElement(ir,m({"data-ktp-execute-target":o["data-ktp-execute-target"],"data-is-interactable":!r,componentRef:e._autofill,id:t+"-input",className:e._classNames.input,type:"text",onFocus:e._select,onBlur:e._onBlur,onKeyDown:e._onInputKeyDown,onKeyUp:e._onInputKeyUp,onClick:e._onAutofillClick,onTouchStart:e._onTouchStart,onInputValueChange:e._onInputChange,"aria-expanded":N,"aria-autocomplete":e._getAriaAutoCompleteValue(),role:"combobox",readOnly:r||!b,"aria-labelledby":i&&t+"-label","aria-label":s&&!i?s:void 0,"aria-describedby":rs(a,o["aria-describedby"]),"aria-activedescendant":e._getAriaActiveDescentValue(),"aria-required":l,"aria-disabled":r,"aria-owns":N?t+"-list":void 0,spellCheck:!1,defaultVisibleValue:e._currentVisibleValue,suggestedDisplayValue:F,updateValueInWillReceiveProps:e._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:e._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:I,preventValueSelection:!B,placeholder:P,tabIndex:T},E)),_.createElement(nc,{className:"ms-ComboBox-CaretDown-button",styles:e._getCaretButtonStyles(),role:"presentation","aria-hidden":C,"data-is-focusable":!1,tabIndex:-1,onClick:e._onComboBoxClick,onBlur:e._onBlur,iconProps:x,disabled:r,checked:N}))}),(M||N)&&u(m({},this.props,{onRenderList:h,onRenderItem:f,onRenderOption:y,options:this.state.currentOptions.map(function(e,t){return m({},e,{index:t})})}),this._onRenderContainer),c&&_.createElement("div",{className:this._classNames.errorMessage},c))},t.prototype._indexWithinBounds=function(e,t){return!!e&&(t>=0&&t0){var a=this._getPreviewText(r[0]);s=a.toLocaleLowerCase()!==e?a:"",n=r[0].index}}else 1===(r=o.map(function(e,t){return m({},e,{index:t})}).filter(function(e){return e.itemType!==mm.Header&&e.itemType!==mm.Divider}).filter(function(o){return t._getPreviewText(o).toLocaleLowerCase()===e})).length&&(n=r[0].index);this._setPendingInfo(i,n,s)},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,o=this.state,n=o.currentPendingValue,i=o.currentPendingValueValidIndex,r=o.currentOptions;if(e=this._removeZeroWidthSpaces(e),"on"===this.props.autoComplete&&""!==e){void 0!==this._lastReadOnlyAutoCompleteChangeTimeoutId&&(this._async.clearTimeout(this._lastReadOnlyAutoCompleteChangeTimeoutId),this._lastReadOnlyAutoCompleteChangeTimeoutId=void 0,e=this._normalizeToString(n)+e);var s=e;e=e.toLocaleLowerCase();var a=r.map(function(e,t){return m({},e,{index:t})}).filter(function(e){return e.itemType!==mm.Header&&e.itemType!==mm.Divider}).filter(function(t){return 0===t.text.toLocaleLowerCase().indexOf(e)});return a.length>0&&this._setPendingInfo(s,a[0].index,this._getPreviewText(a[0])),void(this._lastReadOnlyAutoCompleteChangeTimeoutId=this._async.setTimeout(function(){t._lastReadOnlyAutoCompleteChangeTimeoutId=void 0},1e3))}var l=i>=0?i:this._getFirstSelectedIndex();this._setPendingInfoFromIndex(l)},t.prototype._getFirstSelectedIndex=function(){return this.state.selectedIndices&&this.state.selectedIndices.length>0?this.state.selectedIndices[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var o=this.state.currentOptions,n=e+t;if(n=Math.max(0,Math.min(o.length-1,n)),!this._indexWithinBounds(o,n))return-1;var i=o[n];if(i.itemType===mm.Header||i.itemType===mm.Divider){if(t===fm.none||!(n>0&&t=0&&nfm.none))return e;n=this._getNextSelectableIndex(n,t)}return n},t.prototype._setSelectedIndex=function(e,t,o){var n=this;void 0===o&&(o=fm.none);var i=this.props,r=i.onChange,s=i.onChanged,a=i.onPendingValueChanged,l=this.state.currentOptions,c=this.state.selectedIndices;if(c||(c=[]),e=this._getNextSelectableIndex(e,o),this._indexWithinBounds(l,e)){if(this.props.multiSelect||c.length<1||1===c.length&&c[0]!==e){var d=l[e];if(!d)return;this.props.multiSelect?(d.selected=void 0!==d.selected?!d.selected:c.indexOf(e)<0,d.selected&&c.indexOf(e)<0?c.push(e):!d.selected&&c.indexOf(e)>=0&&(c=c.filter(function(t){return t!==e}))):c[0]=e,t.persist(),this.setState({selectedIndices:c},function(){n._hasPendingValue&&a&&(a(),n._hasPendingValue=!1),r&&r(t,d,e,void 0),s&&s(d,e,void 0,t)})}this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t=this.props,o=t.onChange,n=t.onChanged,i=t.allowFreeform,r=t.autoComplete,s=this.state,a=s.currentPendingValue,l=s.currentPendingValueValidIndex,c=s.currentOptions,d=s.currentPendingValueValidIndexOnHover,u=this.state.selectedIndices;if(!this._processingClearPendingInfo){if(i){if(null==a)return void(d>=0&&(this._setSelectedIndex(d,e),this._clearPendingInfo()));if(this._indexWithinBounds(c,l)){var p=this._getPreviewText(c[l]).toLocaleLowerCase();if(a.toLocaleLowerCase()===p||r&&0===p.indexOf(a.toLocaleLowerCase())&&this._autofill.current&&this._autofill.current.isValueSelected&&a.length+(this._autofill.current.selectionEnd-this._autofill.current.selectionStart)===p.length||this._autofill.current&&this._autofill.current.inputElement&&this._autofill.current.inputElement.value.toLocaleLowerCase()===p)return this._setSelectedIndex(l,e),void this._clearPendingInfo()}if(o||n)o&&o(e,void 0,void 0,a),n&&n(void 0,void 0,a,e);else{var h={key:a||Fn(),text:this._normalizeToString(a)},m=c.concat([h]);u&&(this.props.multiSelect||(u=[]),u.push(m.length-1)),this.setState({currentOptions:m,selectedIndices:u})}}else l>=0?this._setSelectedIndex(l,e):d>=0&&this._setSelectedIndex(d,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,o=e.key;return t&&t>0?_.createElement("div",{role:"separator",key:o,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,o=void 0===t?this._onRenderOptionContent:t;return _.createElement("div",{key:e.key,className:this._classNames.header},o(e,this._onRenderOptionContent))},t.prototype._isOptionSelected=function(e){if(this.state.currentPendingValueValidIndexOnHover===vm.clearAll)return!1;if(!this.props.multiSelect&&this._getPendingSelectedIndex(!0)===e)return!0;var t=-1;return this.props.multiSelect&&void 0!==e&&this.state.selectedIndices&&(t=this.state.selectedIndices.indexOf(e)),t>=0},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,o=t.currentPendingValueValidIndexOnHover,n=t.currentPendingValueValidIndex,i=t.currentPendingValue;return o>=0?o:n>=0||e&&null!=i?n:this.props.multiSelect?0:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,o=e.scrollSelectedToTop,n=this.state,i=n.currentPendingValueValidIndex,r=n.currentPendingValue;if(t)t(i>=0||""!==r?i:this._getFirstSelectedIndex());else if(this._selectedElement.current&&this._selectedElement.current.offsetParent)if(o)this._selectedElement.current.offsetParent.scrollIntoView(!0);else{var s=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var a=this._comboBoxMenu.current.offsetParent.getBoundingClientRect(),l=this._selectedElement.current.offsetParent.getBoundingClientRect();if(a.top<=l.top&&a.top+a.height>=l.top+l.height)return;a.top+a.height<=l.top+l.height&&(s=!1)}this._selectedElement.current.offsetParent.scrollIntoView(s)}},t.prototype._onItemClick=function(e){var t=this,o=this.props.onItemClick,n=e.index;return function(i){o&&o(i,e,n),t._setSelectedIndex(n,i),t.props.multiSelect||t.setState({isOpen:!1})}},t.prototype._getSelectedIndices=function(e,t){if(!e||!t)return[];var o={};e.forEach(function(e,t){e.selected&&(o[t]=!0)});for(var n=function(t){var n=ss(e,function(e){return e.key===t});n>-1&&(o[n]=!0)},i=0,r=t;i0&&t=0&&e=o.length-1?e=-1:t===fm.backward&&e<=0&&(e=o.length);var n=this._getNextSelectableIndex(e,t);e===n?t===fm.forward?e=this._getNextSelectableIndex(-1,t):t===fm.backward&&(e=this._getNextSelectableIndex(o.length,t)):e=n,this._indexWithinBounds(o,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var o=this.state,n=o.currentPendingValue,i=o.currentOptions,r=o.currentPendingValueValidIndex,s=o.currentPendingValueValidIndexOnHover,a=void 0,l=void 0;s!==e.currentPendingValueValidIndexOnHover&&this._indexWithinBounds(i,s)?a=s:r!==e.currentPendingValueValidIndex&&this._indexWithinBounds(i,r)?a=r:n!==e.currentPendingValue&&(l=n),(void 0!==a||void 0!==l||this._hasPendingValue)&&(t(void 0!==a?i[a]:void 0,a,l),this._hasPendingValue=void 0!==a||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._isAltOrMeta=function(e){return e.which===zt.alt||"Meta"===e.key},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==zt.tab&&e.which!==zt.escape&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0},500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return xm(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,o=e.styles;return bm(this.props.theme,t,o,this._isPendingOption(e),e.hidden)},t.prototype._getAriaActiveDescentValue=function(){var e=this.state.isOpen&&this.state.selectedIndices&&this.state.selectedIndices.length>=0?this._id+"-list"+this.state.selectedIndices[0]:void 0;return this.state.isOpen&&this.state.focused&&-1!==this.state.currentPendingValueValidIndex&&(e=this._id+"-list"+this.state.currentPendingValueValidIndex),e},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"none"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._buildDefaultSelectedKeys=function(e,t){var o=this._buildSelectedKeys(e);return o.length?o:this._buildSelectedKeys(t)},t.prototype._buildSelectedKeys=function(e){return void 0===e?[]:e instanceof Array?e:[e]},t.prototype._getPreviewText=function(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text},t.prototype._normalizeToString=function(e){return e||""},t.prototype._removeZeroWidthSpaces=function(e){return e.replace(RegExp("​","g"),"")},t.defaultProps={options:[],allowFreeform:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}},t=f([ul("ComboBox",["theme","styles"],!0)],t)}(bi),Tm={auto:0,top:1,bottom:2,center:3},Em=16,Mm=100,Rm=500,Nm=200,Bm=500,Fm={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Lm=function(e){return e.getBoundingClientRect()},Am=Lm,Om=Lm,Hm=function(e){function t(t){var o=e.call(this,t)||this;return o._root=_.createRef(),o._surface=_.createRef(),o._onRenderPage=function(e,t){for(var n=o.props,i=n.onRenderCell,r=n.role,s=e.page,a=s.items,l=void 0===a?[]:a,c=s.startIndex,d=g(e,["page"]),u=void 0===r?"listitem":"presentation",p=[],h=0;he){if(t&&this._scrollElement){for(var u=Om(this._scrollElement),p={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+u.height},h=e-l,m=0;m=p.top&&g<=p.bottom)return;sp.bottom&&(s=g-u.height)}return void(this._scrollElement.scrollTop=s)}s+=d}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,o=this.state.pages||[];t=n.top&&(this._scrollTop||0)<=n.top+n.height){if(!e){var i=Math.floor(n.height/n.itemCount);return n.startIndex+Math.floor((this._scrollTop-n.top)/i)}for(var r=0,s=n.startIndex;s0?n:void 0,className:Yr("ms-List",t)}),_.createElement("div",{ref:this._surface,className:"ms-List-surface",role:"presentation"},s))},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,o=this.props.usePageCache;if(o&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var n=this._getPageStyle(e),i=this.props.onRenderPage,r=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:e.key,style:n,role:"presentation"},this._onRenderPage);return o&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:r}),r},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return m({},t?t(e):{},e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var o=t.getAttribute("data-list-index");if(o){this._focusedIndex=Number(o);break}t=hr(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this._updatePages()},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,o=e.renderedWindowsBehind,n=this._requiredWindowsAhead,i=this._requiredWindowsBehind,r=Math.min(t,n+1),s=Math.min(o,i+1);r===n&&s===i||(this._requiredWindowsAhead=r,this._requiredWindowsBehind=s,this._updateRenderRects(),this._updatePages()),(t>r||o>s)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e){var t=this;void 0===e&&(e=this.props),this._requiredRect||this._updateRenderRects(e);var o=this._buildPages(e),n=this.state.pages;this._notifyPageChanges(n,o.pages),this.setState(o,function(){e.getPageHeight?t._onAsyncIdle():t._updatePageMeasurements(o.pages)?(t._materializedRect=null,t._hasCompletedFirstRender?t._onAsyncScroll():(t._hasCompletedFirstRender=!0,t._updatePages(e))):t._onAsyncIdle();e.onPagesUpdated&&e.onPagesUpdated(t.state.pages)})},t.prototype._notifyPageChanges=function(e,t,o){void 0===o&&(o=this.props);var n=o.onPageAdded,i=o.onPageRemoved;if(n||i){for(var r={},s=0,a=e;s-1,S=!g||b>=g.top&&l<=g.bottom,C=!v._requiredRect||b>=v._requiredRect.top&&l<=v._requiredRect.bottom;if(!h&&(C||S&&x)||!p||d>=e&&d=v._visibleRect.top&&l<=v._visibleRect.bottom),s.push(w),C&&v._allowedRect&&(_=r,y={top:l,bottom:b,height:i,left:g.left,right:g.right,width:g.width},_.top=y.top<_.top||-1===_.top?y.top:_.top,_.left=y.left<_.left||-1===_.left?y.left:_.left,_.bottom=y.bottom>_.bottom||-1===_.bottom?y.bottom:_.bottom,_.right=y.right>_.right||-1===_.right?y.right:_.right,_.width=_.right-_.left+1,_.height=_.bottom-_.top+1)}else c||(c=v._createPage("spacer-"+e,void 0,e,0,void 0,m,!0)),c.height=(c.height||0)+(b-l)+1,c.itemCount+=a;if(l+=b-l+1,h&&p)return"break"},v=this,_=n;_this._estimatedPageHeight/3)&&(r=this._surfaceRect=Am(this._surface.current),this._scrollTop=a),!t&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s;var l=Math.max(0,-r.top),c={top:l,left:r.left,bottom:l+window.innerHeight,right:r.right,width:r.width,height:window.innerHeight};this._requiredRect=Wm(c,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Wm(c,n,o),this._visibleRect=c}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,o){return _.createElement(_.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(bi);function Wm(e,t,o){var n=e.top-t*e.height,i=e.height+(t+o)*e.height;return{top:n,bottom:n+i,height:i,left:e.left,right:e.right,width:e.width}}var zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._comboBox=_.createRef(),t._list=_.createRef(),t._onRenderList=function(e){var o=e.onRenderItem;return _.createElement(Hm,{componentRef:t._list,role:"listbox",items:e.options,onRenderCell:o?function(e){return o(e)}:function(){return null}})},t._onScrollToItem=function(e){t._list.current&&t._list.current.scrollToIndex(e)},t}return h(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!0,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(){return!!this._comboBox.current&&(this._comboBox.current.focus(),!0)},t.prototype.render=function(){return _.createElement(Pm,m({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))},t}(bi),Vm=mn(),Km=function(e){function t(t){var o=e.call(this,t)||this;return o._focusZone=_.createRef(),o._persistedKeytips={},o._keytipManager=xs.getInstance(),o._divContainer=_.createRef(),o._onRenderItems=function(e){return e.map(function(e,t){var n={className:o._classNames.item};return _.createElement("div",m({key:e.key},n),o.props.onRenderItem(e))})},o._onRenderOverflowButtonWrapper=function(e){var t={className:o._classNames.overflowButton},n=o.props.keytipSequences,i=[];return n?e.forEach(function(e){var t=e.keytipProps;if(t){var r={content:t.content,keySequences:t.keySequences,disabled:t.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:t.hasDynamicChildren,hasMenu:t.hasMenu};t.hasDynamicChildren||o._getSubMenuForItem(e)?r.onExecute=o._keytipManager.menuExecute.bind(o._keytipManager,n,e.keytipProps.keySequences):r.onExecute=t.onExecute,o._persistedKeytips[r.content]=r;var s=m({},e,{keytipProps:m({},t,{overflowSetSequence:n})});i.push(s)}else i.push(e)}):i=e,_.createElement("div",m({},t),o.props.onRenderOverflowButton(i))},t.doNotContainWithinFocusZone&&o._warnMutuallyExclusive({doNotContainWithinFocusZone:"focusZoneProps"}),o}return h(t,e),t.prototype.render=function(){var e,t,o=this.props,n=o.items,i=o.overflowItems,r=o.className,s=o.focusZoneProps,a=o.styles,l=o.vertical,c=o.role,d=o.doNotContainWithinFocusZone;return this._classNames=Vm(a,{className:r,vertical:l}),d?(e="div",t=m({},di(this.props,ci),{ref:this._divContainer})):(e=is,t=m({},di(this.props,ci),s,{componentRef:this._focusZone,direction:l?$i.vertical:$i.horizontal})),_.createElement(e,m({},t,{className:this._classNames.root,role:c}),n&&this._onRenderItems(n),i&&i.length>0&&this._onRenderOverflowButtonWrapper(i))},t.prototype.focus=function(e){var t=!1;return this.props.doNotContainWithinFocusZone?this._divContainer.current&&(t=wr(this._divContainer.current)):this._focusZone.current&&(t=this._focusZone.current.focus(e)),t},t.prototype.focusElement=function(e){var t=!1;return!!e&&(this.props.doNotContainWithinFocusZone?this._divContainer.current&&fr(this._divContainer.current,e)&&(e.focus(),t=document.activeElement===e):this._focusZone.current&&(t=this._focusZone.current.focusElement(e)),t)},t.prototype.componentDidMount=function(){this._registerPersistedKeytips()},t.prototype.componentWillUnmount=function(){this._unregisterPersistedKeytips()},t.prototype.componentWillUpdate=function(){this._unregisterPersistedKeytips()},t.prototype.componentDidUpdate=function(){this._registerPersistedKeytips()},t.prototype._registerPersistedKeytips=function(){var e=this;Object.keys(this._persistedKeytips).forEach(function(t){var o=e._persistedKeytips[t],n=e._keytipManager.register(o,!0);e._persistedKeytips[n]=o,delete e._persistedKeytips[t]})},t.prototype._unregisterPersistedKeytips=function(){var e=this;Object.keys(this._persistedKeytips).forEach(function(t){e._keytipManager.unregister(e._persistedKeytips[t],t,!0)}),this._persistedKeytips={}},t.prototype._getSubMenuForItem=function(e){return this.props.itemSubMenuProvider?this.props.itemSubMenuProvider(e):e.subMenuProps?e.subMenuProps.items:void 0},t.defaultProps={vertical:!1,role:"menubar"},t}(bi),Um={flexShrink:0,display:"inherit"},Gm=cn(Km,function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",Um],overflowButton:["ms-OverflowSet-overflowButton",Um]}},void 0,{scope:"OverflowSet"}),Ym=mn(),jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._overflowSet=_.createRef(),t._resizeGroup=_.createRef(),t._onRenderData=function(e){return _.createElement(is,{className:Yr(t._classNames.root),direction:$i.horizontal,role:"menubar","aria-label":t.props.ariaLabel},_.createElement(Gm,{componentRef:t._resolveRef("_overflowSet"),className:Yr(t._classNames.primarySet),doNotContainWithinFocusZone:!0,role:"presentation",items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:t._onRenderItem,onRenderOverflowButton:t._onRenderOverflowButton}),e.farItems&&_.createElement(Gm,{className:Yr(t._classNames.secondarySet),doNotContainWithinFocusZone:!0,role:"presentation",items:e.farItems,onRenderItem:t._onRenderItem,onRenderOverflowButton:Si}))},t._onRenderItem=function(e){var o=t.props.buttonAs||e.commandBarButtonAs||Xc,n=e.text||e.name;if(e.onRender)return e.onRender(e,function(){});var i=m({allowDisabledFocus:!0,role:"menuitem"},e,{styles:m({root:{height:"100%"},label:{whiteSpace:"nowrap"}},e.buttonStyles),className:Yr("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:n,menuProps:e.subMenuProps,onClick:t._onButtonClick(e)});return e.iconOnly&&void 0!==n?_.createElement(Ic,m({content:n},e.tooltipHostProps),_.createElement(o,m({},i,{defaultRender:Xc}))):_.createElement(o,m({},i,{defaultRender:Xc}))},t._onRenderOverflowButton=function(e){var o=t.props,n=o.overflowButtonAs,i=void 0===n?Xc:n,r=o.overflowButtonProps,s=void 0===r?{}:r,a=(s.menuProps?s.menuProps.items:[]).concat(e),l=m({},s,{styles:m({menuIcon:{fontSize:"17px"}},s.styles),className:Yr("ms-CommandBar-overflowButton",s.className),menuProps:m({},s.menuProps,{items:a}),menuIconProps:m({iconName:"More"},s.menuIconProps)});return _.createElement(i,m({},l))},t._onReduceData=function(e){var o=t.props,n=o.shiftOnReduce,i=o.onDataReduced,r=e.primaryItems,s=e.overflowItems,a=e.cacheKey,l=r[n?0:r.length-1];if(void 0!==l){l.renderedInOverflow=!0,s=[l].concat(s),r=n?r.slice(1):r.slice(0,-1);var c=m({},e,{primaryItems:r,overflowItems:s});return a=t._computeCacheKey(c),i&&i(l),c.cacheKey=a,c}},t._onGrowData=function(e){var o=t.props,n=o.shiftOnReduce,i=o.onDataGrown,r=e.minimumOverflowItems,s=e.primaryItems,a=e.overflowItems,l=e.cacheKey,c=a[0];if(void 0!==c&&a.length>r){c.renderedInOverflow=!1,a=a.slice(1),s=n?[c].concat(s):s.concat([c]);var d=m({},e,{primaryItems:s,overflowItems:a});return l=t._computeCacheKey(d),i&&i(c),d.cacheKey=l,d}},t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.items,n=e.overflowItems,i=e.farItems,r=e.styles,s=e.theme,a=e.onReduceData,l=void 0===a?this._onReduceData:a,c=e.onGrowData,d=void 0===c?this._onGrowData:c,u={primaryItems:o.slice(),overflowItems:n.slice(),minimumOverflowItems:n.slice().length,farItems:i,cacheKey:""};return this._classNames=Ym(r,{theme:s}),_.createElement(mc,{componentRef:this._resizeGroup,className:t,data:u,onReduceData:l,onGrowData:d,onRenderData:this._onRenderData})},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){e.inactive||e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,o=e.farItems,n=void 0===o?[]:o,i=e.overflowItems,r=function(e,t){var o=t.cacheKey;return e+(void 0===o?t.key:o)};return[t.reduce(r,""),n.reduce(r,""),i.length?"overflow":""].join(" ")},t.defaultProps={items:[],overflowItems:[]},t}(bi),qm=cn(jm,function(e){var t=e.className,o=e.theme,n=o.palette;return{root:[o.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:n.neutralLighter,padding:"0 16px",height:"40px"},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}},void 0,{scope:"CommandBar"}),Zm=mn(),Xm={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"],goToToday:"Go to today",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close date picker",weekNumberFormatString:"Week number {0}"},Qm=function(e){function t(t){var o=e.call(this,t)||this;return o._calendar=_.createRef(),o._datePickerDiv=_.createRef(),o._textField=_.createRef(),o._onSelectDate=function(e){var t=o.props,n=t.formatDate,i=t.onSelectDate;o.props.calendarProps&&o.props.calendarProps.onSelectDate&&o.props.calendarProps.onSelectDate(e),o.setState({selectedDate:e,formattedDate:n&&e?n(e):""}),i&&i(e),o._calendarDismissed()},o._onCalloutPositioned=function(){var e=!0;o.props.calloutProps&&void 0!==o.props.calloutProps.setInitialFocus&&(e=o.props.calloutProps.setInitialFocus),o._calendar.current&&e&&o._calendar.current.focus()},o._onTextFieldFocus=function(e){o.props.disableAutoFocus||o.props.allowTextInput||(o._preventFocusOpeningPicker?o._preventFocusOpeningPicker=!1:o._showDatePickerPopup())},o._onTextFieldBlur=function(e){o._validateTextInput()},o._onTextFieldChanged=function(e,t){if(o.props.allowTextInput){o.state.isDatePickerShown&&o._dismissDatePickerPopup();var n=o.props,i=n.isRequired,r=n.value,s=n.strings;o.setState({errorMessage:i&&!r?s.isRequiredErrorMessage||" ":void 0,formattedDate:t})}},o._onTextFieldKeyDown=function(e){switch(e.which){case zt.enter:e.preventDefault(),e.stopPropagation(),o.state.isDatePickerShown?o.props.allowTextInput&&o._dismissDatePickerPopup():(o._validateTextInput(),o._showDatePickerPopup());break;case zt.escape:o._handleEscKey(e)}},o._onTextFieldClick=function(e){o.state.isDatePickerShown||o.props.disabled?o.props.allowTextInput&&o.setState({isDatePickerShown:!1}):o._showDatePickerPopup()},o._onIconClick=function(e){e.stopPropagation(),o._onTextFieldClick(e)},o._dismissDatePickerPopup=function(){o.state.isDatePickerShown&&o.setState({isDatePickerShown:!1},function(){o._validateTextInput()})},o._calendarDismissed=function(){o._preventFocusOpeningPicker=!0,o._dismissDatePickerPopup()},o._handleEscKey=function(e){o.state.isDatePickerShown&&e.stopPropagation(),o._calendarDismissed()},o._validateTextInput=function(){var e=o.props,t=e.isRequired,n=e.allowTextInput,i=e.strings,r=e.parseDateFromString,s=e.onSelectDate,a=e.formatDate,l=e.minDate,c=e.maxDate,d=o.state.formattedDate;if(!o.state.isDatePickerShown)if(n){var u=null;if(d){if(o.state.selectedDate&&a&&a(o.state.selectedDate)===d)return;!(u=r(d))||isNaN(u.getTime())?(a&&(u=o.state.selectedDate,o.setState({formattedDate:a(u).toString()})),o.setState({errorMessage:i.invalidInputErrorMessage||" "})):o._isDateOutOfBounds(u,l,c)?o.setState({errorMessage:i.isOutOfBoundsErrorMessage||" "}):(o.setState({selectedDate:u,errorMessage:""}),a&&a(u)!==d&&o.setState({formattedDate:a(u).toString()}))}else o.setState({errorMessage:t?i.isRequiredErrorMessage||" ":""});s&&s(u)}else t&&!d&&o.setState({errorMessage:i.isRequiredErrorMessage||" "})},o.state=o._getDefaultState(),o._id=t.id||Fn("DatePicker"),o._preventFocusOpeningPicker=!1,o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.formatDate,o=e.value;pd(this.props.minDate,e.minDate)&&pd(this.props.maxDate,e.maxDate)&&this.props.isRequired===e.isRequired&&pd(this.state.selectedDate,o)&&this.props.formatDate===t||(this._setErrorMessage(!0,e),this._id=e.id||this._id,pd(this.state.selectedDate,o)&&this.props.formatDate===t||this.setState({selectedDate:o||void 0,formattedDate:t&&o?t(o):""}))},t.prototype.componentDidUpdate=function(e,t){t.isDatePickerShown&&!this.state.isDatePickerShown&&this.props.onAfterMenuDismiss&&this.props.onAfterMenuDismiss()},t.prototype.render=function(){var e=this.props,t=e.firstDayOfWeek,o=e.strings,n=e.label,i=e.theme,r=e.className,s=e.styles,a=e.initialPickerDate,l=e.isRequired,c=e.disabled,d=e.ariaLabel,u=e.pickerAriaLabel,p=e.placeholder,h=e.allowTextInput,g=e.borderless,f=e.minDate,v=e.maxDate,y=e.showCloseButton,b=e.calendarProps,x=e.calloutProps,S=e.textField,C=e.underlined,k=e.allFocusable,w=e.calendarAs,I=void 0===w?yp:w,D=e.tabIndex,P=this.state,T=P.isDatePickerShown,E=P.formattedDate,M=P.selectedDate,R=Zm(s,{theme:i,className:r,disabled:c,label:!!n,isDatePickerShown:T}),N=Fn("DatePicker-Callout"),B=di(this.props,ci,["value"]),F=S&&S.iconProps;return _.createElement("div",m({},B,{className:R.root}),_.createElement("div",{ref:this._datePickerDiv,role:"combobox","aria-expanded":T,"aria-haspopup":"true","aria-owns":T?N:void 0},_.createElement(rm,m({label:n,ariaLabel:d,"aria-controls":T?N:void 0,required:l,disabled:c,errorMessage:this._getErrorMessage(),placeholder:p,borderless:g,value:E,componentRef:this._textField,underlined:C,tabIndex:D,readOnly:!h},S,{id:this._id+"-label",className:Yr(R.textField,S&&S.className),iconProps:m({iconName:"Calendar"},F,{className:Yr(R.icon,F&&F.className),onClick:this._onIconClick}),onKeyDown:this._onTextFieldKeyDown,onFocus:this._onTextFieldFocus,onBlur:this._onTextFieldBlur,onClick:this._onTextFieldClick,onChange:this._onTextFieldChanged}))),T&&_.createElement(yl,m({id:N,role:"dialog",ariaLabel:u,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:this._datePickerDiv.current,directionalHint:Rs.bottomLeftEdge},x,{className:Yr(R.callout,x&&x.className),onDismiss:this._calendarDismissed,onPositioned:this._onCalloutPositioned}),_.createElement(bp,{isClickableOutsideFocusTrap:!0,disableFirstFocus:this.props.disableAutoFocus,forceFocusInsideTrap:!1},_.createElement(I,m({},b,{onSelectDate:this._onSelectDate,onDismiss:this._calendarDismissed,isMonthPickerVisible:this.props.isMonthPickerVisible,showMonthPickerAsOverlay:this.props.showMonthPickerAsOverlay,today:this.props.today,value:M||a,firstDayOfWeek:t,strings:o,highlightCurrentMonth:this.props.highlightCurrentMonth,highlightSelectedMonth:this.props.highlightSelectedMonth,showWeekNumbers:this.props.showWeekNumbers,firstWeekOfYear:this.props.firstWeekOfYear,showGoToToday:this.props.showGoToToday,dateTimeFormatter:this.props.dateTimeFormatter,minDate:f,maxDate:v,componentRef:this._calendar,showCloseButton:y,allFocusable:k})))))},t.prototype.focus=function(){this._textField.current&&this._textField.current.focus()},t.prototype.reset=function(){this.setState(this._getDefaultState())},t.prototype._setErrorMessage=function(e,t){var o=t||this.props,n=o.isRequired,i=o.strings,r=o.value,s=o.minDate,a=o.maxDate,l=o.initialPickerDate||!n||r?void 0:i.isRequiredErrorMessage||" ";return!l&&r&&(l=this._isDateOutOfBounds(r,s,a)?i.isOutOfBoundsErrorMessage||" ":void 0),e&&this.setState({errorMessage:l}),l},t.prototype._showDatePickerPopup=function(){this.state.isDatePickerShown||(this._preventFocusOpeningPicker=!0,this.setState({isDatePickerShown:!0}))},t.prototype._getDefaultState=function(e){return void 0===e&&(e=this.props),{selectedDate:e.value||void 0,formattedDate:e.formatDate&&e.value?e.formatDate(e.value):"",isDatePickerShown:!1,errorMessage:this._setErrorMessage(!1)}},t.prototype._isDateOutOfBounds=function(e,t,o){return!!t&&hd(t,e)>0||!!o&&hd(o,e)<0},t.prototype._getErrorMessage=function(){if(!this.state.isDatePickerShown)return this.state.errorMessage},t.defaultProps={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:Ac.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:Xm,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:Hc.FirstDay,showGoToToday:!0,dateTimeFormatter:void 0,showCloseButton:!1,underlined:!1,allFocusable:!1},t}(bi),$m={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Jm=cn(Qm,function(e){var t=e.className,o=e.theme,n=e.disabled,i=e.label,r=e.isDatePickerShown,s=o.palette,a=o.semanticColors,l=So($m,o),c={color:s.neutralSecondary,fontSize:_t.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"9px"};return{root:[l.root,o.fonts.medium,r&&"is-open",jo,t],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},n&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[l.callout],icon:[c,!i&&[l.withoutLabel,{top:"7px"}],i&&[l.withLabel,{bottom:"5px"}],!n&&[l.disabled,{pointerEvents:"initial",cursor:"pointer"}],n&&{color:a.disabledText,cursor:"default"}]}},void 0,{scope:"DatePicker"});function eg(e){var t;return e&&(e===window?t={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect&&(t=e.getBoundingClientRect())),t}var tg=function(){function e(e){this._events=new pi(this),this._scrollableParent=ca(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=eg(this._scrollableParent),this._scrollableParent===window&&(this._scrollableParent=document.body),this._scrollableParent&&(this._events.on(window,"mousemove",this._onMouseMove,!0),this._events.on(window,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e.clientY)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e.touches[0].clientY)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t=this._scrollRect.top,o=t+this._scrollRect.height-100;this._scrollVelocity=eo?Math.min(15,(e-o)/100*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}(),og=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()},ng=function(){function e(){}return e.measure=function(t,o){e._timeoutId&&e.setPeriodicReset();var n=og();o();var i=og(),r=e.summary[t]||{totalDuration:0,count:0,all:[]},s=i-n;r.totalDuration+=s,r.count++,r.all.push({duration:s,timeStamp:i}),e.summary[t]=r},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout(function(){return e.reset()},18e4)},e.summary={},e}(),ig="undefined"!=typeof WeakMap?new WeakMap:void 0;function rg(e){var t=function(t){function o(){var o=null!==t&&t.apply(this,arguments)||this;return o.state={Component:ig?ig.get(e.load):void 0},o}return h(o,t),o.prototype.render=function(){var e=this.props,t=e.forwardedRef,o=e.asyncPlaceholder,n=g(e,["forwardedRef","asyncPlaceholder"]),i=this.state.Component;return i?_.createElement(i,m({ref:t},n)):o?_.createElement(o,null):null},o.prototype.componentDidMount=function(){var t=this;this.state.Component||e.load().then(function(o){o&&(ig&&ig.set(e.load,o),t.setState({Component:o},e.onLoad))}).catch(e.onError)},o}(_.Component);return _.forwardRef(function(e,o){return _.createElement(t,m({},e,{forwardedRef:o}))})}function sg(e,t,o){var n=o.value,i=!1;return{configurable:!0,get:function(){if(i||n&&this===n.prototype||this.hasOwnProperty(t))return n;var e=n&&n.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:!0,value:e}),i=!1,e},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:!0,value:e})}}}function ag(e,t){var o=(t||{}).customizations,n=void 0===o?{settings:{},scopedSettings:{}}:o;return{customizations:{settings:Do(n.settings,e.settings),scopedSettings:Po(n.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}var lg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return h(t,e),t.prototype.componentDidMount=function(){Io.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){Io.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return _.createElement(an.Consumer,null,function(o){var n=ag(e.props,o);return t&&(n=t(n)),_.createElement(an.Provider,{value:n},e.props.children)})},t}(_.Component);function cg(e,t){void 0===t&&(t=!0);var o=[];if(e){for(var n=0;nc:l0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===vg.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,o){var n=this._keyToIndexMap[e];n>=0&&this.setIndexSelected(n,t,o)},e.prototype.setIndexSelected=function(e,t,o){if(this.mode!==vg.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0||e>=this._items.length)){this.setChangeEvents(!1);var n=this._exemptedIndices[e];!this._unselectableIndices[e]&&(t&&this.mode===vg.single&&this._setAllSelected(!1,!0),n&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!n&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),o&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToIndex=function(e,t){if(this.mode!==vg.none)if(this.mode!==vg.single){var o=this._anchoredIndex||0,n=Math.min(e,o),i=Math.max(e,o);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);n<=i;n++)this.setIndexSelected(n,!0,!1);this.setChangeEvents(!0)}else this.setIndexSelected(e,!0,!0)},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==vg.none){var o=this.isRangeSelected(e,t),n=e+t;if(!(this.mode===vg.single&&t>1)){this.setChangeEvents(!1);for(var i=e;i0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,pi.raise(this,"change"),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function Sg(e,t){return e&&e.key?e.key:""+t}var Cg="ms-Fabric--isFocusVisible";function kg(e,t){var o=t?re(t):re();if(o){var n=o.document.body.classList;e?n.add(Cg):n.remove(Cg)}}ee("@uifabric/utilities","6.39.0");var wg,Ig,Dg,Pg,Tg,Eg,Mg="data-selection-toggle",Rg="data-selection-invoke",Ng="data-selection-all-toggle",Bg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._root=_.createRef(),t.ignoreNextFocus=function(){t._handleNextFocus(!1)},t._onMouseDownCapture=function(e){if(document.activeElement===e.target||fr(document.activeElement,e.target)){if(fr(e.target,t._root.current))for(var o=e.target;o!==t._root.current;){if(t._hasAttribute(o,Rg)){t.ignoreNextFocus();break}o=hr(o)}}else t.ignoreNextFocus()},t._onFocus=function(e){var o=e.target,n=t.props.selection,i=t._isCtrlPressed||t._isMetaPressed,r=t._getSelectionMode();if(t._shouldHandleFocus&&r!==vg.none){var s=t._hasAttribute(o,Mg),a=t._findItemRoot(o);if(!s&&a){var l=t._getItemIndex(a);i?(n.setIndexSelected(l,n.isIndexSelected(l),!0),t.props.enterModalOnTouch&&t._isTouch&&n.setModal&&(n.setModal(!0),t._setIsTouch(!1))):t.props.isSelectedOnFocus&&t._onItemSurfaceClick(e,l)}}t._handleNextFocus(!1)},t._onMouseDown=function(e){t._updateModifiers(e);var o=e.target,n=t._findItemRoot(o);if(!t._isSelectionDisabled(o))for(;o!==t._root.current&&!t._hasAttribute(o,Ng);){if(n){if(t._hasAttribute(o,Mg))break;if(t._hasAttribute(o,Rg))break;if(!(o!==n&&!t._shouldAutoSelect(o)||t._isShiftPressed||t._isCtrlPressed||t._isMetaPressed)){t._onInvokeMouseDown(e,t._getItemIndex(n));break}if(t.props.disableAutoSelectOnInputElements&&("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName))return}o=hr(o)}},t._onTouchStartCapture=function(e){t._setIsTouch(!0)},t._onClick=function(e){t._updateModifiers(e);for(var o=e.target,n=t._findItemRoot(o),i=t._isSelectionDisabled(o);o!==t._root.current;){if(t._hasAttribute(o,Ng)){i||t._onToggleAllClick(e);break}if(n){var r=t._getItemIndex(n);if(t._hasAttribute(o,Mg)){i||(t._isShiftPressed?t._onItemSurfaceClick(e,r):t._onToggleClick(e,r));break}if(t._hasAttribute(o,Rg)){t._onInvokeClick(e,r);break}if(o===n){i||t._onItemSurfaceClick(e,r);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=hr(o)}},t._onContextMenu=function(e){var o=e.target,n=t.props,i=n.onItemContextMenu,r=n.selection;if(i){var s=t._findItemRoot(o);if(s){var a=t._getItemIndex(s);t._onInvokeMouseDown(e,a),i(r.getItems()[a],a,e.nativeEvent)||e.preventDefault()}}},t._onDoubleClick=function(e){var o=e.target,n=t.props.onItemInvoked,i=t._findItemRoot(o);if(i&&n&&!t._isInputElement(o)){for(var r=t._getItemIndex(i);o!==t._root.current&&!t._hasAttribute(o,Mg)&&!t._hasAttribute(o,Rg);){if(o===i){t._onInvokeClick(e,r);break}o=hr(o)}o=hr(o)}},t._onKeyDownCapture=function(e){t._updateModifiers(e),t._handleNextFocus(!0)},t._onKeyDown=function(e){t._updateModifiers(e);var o=e.target,n=t._isSelectionDisabled(o),i=t.props.selection,r=e.which===zt.a&&(t._isCtrlPressed||t._isMetaPressed),s=e.which===zt.escape;if(!t._isInputElement(o)){var a=t._getSelectionMode();if(r&&a===vg.multiple&&!i.isAllSelected())return n||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(s&&i.getSelectedCount()>0)return n||i.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var l=t._findItemRoot(o);if(l)for(var c=t._getItemIndex(l);o!==t._root.current&&!t._hasAttribute(o,Mg);){if(t._shouldAutoSelect(o)){n||t._onInvokeMouseDown(e,c);break}if(!(e.which!==zt.enter&&e.which!==zt.space||"BUTTON"!==o.tagName&&"A"!==o.tagName&&"INPUT"!==o.tagName))return!1;if(o===l){if(e.which===zt.enter)return t._onInvokeClick(e,c),void e.preventDefault();if(e.which===zt.space)return n||t._onToggleClick(e,c),void e.preventDefault();break}o=hr(o)}}},t}return h(t,e),t.prototype.componentDidMount=function(){var e=re(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0)},t.prototype.render=function(){return _.createElement("div",m({className:"ms-SelectionZone",ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu},{onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus}),this.props.children)},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===vg.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=hr(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===vg.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t){var o=this.props.selection,n=this._getSelectionMode();if(o.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&!o.isIndexSelected(t)&&o.setModal&&(o.setModal(!0),this._setIsTouch(!1)),n===vg.multiple)o.toggleIndexSelected(t);else{if(n!==vg.single)return void o.setChangeEvents(!0);var i=o.isIndexSelected(t),r=o.isModal&&o.isModal();o.setAllSelected(!1),o.setIndexSelected(t,!i,!0),r&&o.setModal&&o.setModal(!0)}o.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var o=this.props,n=o.selection,i=o.onItemInvoked;i&&(i(n.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t){var o=this.props.selection,n=this._isCtrlPressed||this._isMetaPressed,i=this._getSelectionMode();i===vg.multiple?this._isShiftPressed&&!this._isTabPressed?o.selectToIndex(t,!n):n?o.toggleIndexSelected(t):this._clearAndSelectIndex(t):i===vg.single&&this._clearAndSelectIndex(t)},t.prototype._onInvokeMouseDown=function(e,t){this.props.selection.isIndexSelected(t)||this._clearAndSelectIndex(t)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=ca(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e){var t=this.props.selection;1===t.getSelectedCount()&&t.isIndexSelected(e)||(t.setChangeEvents(!1),t.setAllSelected(!1),t.setIndexSelected(e,!0,!0),this.props.enterModalOnTouch&&this._isTouch&&t.setModal&&(t.setModal(!0),this._setIsTouch(!1)),t.setChangeEvents(!0))},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===zt.tab},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var o=e.getAttribute("data-selection-index"),n=Number(o);if(null!==o&&n>=0&&n0?_.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:n}}):null},Lg={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isFocusable:"[data-is-focusable='true']",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",fields:"ms-DetailsRow-fields"},Ag={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},Og={rowHeight:42,compactRowHeight:32},Hg=m({},Og,{rowVerticalPadding:11,compactRowVerticalPadding:6,rowShimmerLineHeight:7,rowShimmerIconPlaceholderHeight:16,rowShimmerVerticalBorder:0,compactRowShimmerVerticalBorder:0});Hg=m({},Hg,{rowShimmerVerticalBorder:(Hg.rowHeight-Hg.rowShimmerLineHeight)/2,compactRowShimmerVerticalBorder:(Hg.compactRowHeight-Hg.rowShimmerLineHeight)/2});var Wg,zg={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical"},Vg=function(e){var t=e.theme,o=e.cellStyleProps,n=void 0===o?Ag:o,i=t.semanticColors;return[So(zg,t).cell,Xt(t),{color:i.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 "+n.cellRightPadding+"px 0 "+n.cellLeftPadding+"px",lineHeight:"inherit",margin:"0",height:32,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},Kg={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},Ug=mn({disableCaching:!0}),Gg=mn({disableCaching:!0}),Yg=cn(function(e){var t=e.isVisible,o=void 0!==t&&t,n=e.canSelect,i=void 0!==n&&n,r=e.isSelected,s=void 0!==r&&r,a=e.anySelected,l=void 0!==a&&a,c=e.selected,d=void 0!==c&&c,u=e.isHeader,p=void 0!==u&&u,h=e.className,f=(e.checkClassName,e.styles),v=e.theme,y=e.compact,b=e.onRenderDetailsCheckbox,x=g(e,["isVisible","canSelect","isSelected","anySelected","selected","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox"]),S=s||d,C=wp({theme:v}),k=Ug(C,{theme:v}),w=Gg(f,{theme:v,canSelect:i,selected:S,anySelected:l,className:h,isHeader:p,isVisible:o,compact:y}),I=function(e){return _.createElement(Ip,{checked:e.checked})},D={checked:S};return i?_.createElement("div",m({},x,{role:"checkbox",className:Yr(w.root,w.check,k.checkHost),"aria-checked":S,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck"}),b?b(D,I):I(D)):_.createElement("div",m({},x,{className:Yr(w.root,w.check)}))},function(e){var t=e.theme,o=e.className,n=e.isHeader,i=e.selected,r=e.anySelected,s=e.canSelect,a=e.compact,l=e.isVisible,c=So(Kg,t),d=Og.rowHeight,u=Og.compactRowHeight,p=n?32:a?u:d,h=l||i||r;return{root:[c.root,o],check:[!s&&c.isDisabled,n&&c.isHeader,Xt(t),t.fonts.small,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:0,height:p,width:40,padding:0,margin:0,selectors:{"&:hover":{opacity:1}}},h&&{opacity:1}],isDisabled:[]}},void 0,{scope:"DetailsRowCheck"}),jg=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._events=new pi(this);var t=Dt();t&&(this._events.on(t.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(t,"mouseup",this._onDocumentMouseUp.bind(this),!0))}return e.prototype.dispose=function(){this._events.dispose()},e.prototype.subscribe=function(e,t,o){var n,i,r,s,a,l,c,d,u,p,h=this,m=o.key,g=void 0===m?""+ ++this._lastId:m,f=[];if(o&&e){var v=o.eventMap,_=o.context,y=o.updateDropState,b={root:e,options:o,key:g};if(d=this._isDraggable(b),u=this._isDroppable(b),(d||u)&&v)for(var x=0,S=v;x0&&(pi.raise(this._dragData.dropTarget.root,"dragleave"),pi.raise(i,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(pi.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(0===t.button)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var o=0,n=Object.keys(this._activeTargets);o=0&&(o._resetDropHints(),o._updateDropHintElement(o._dropHintDetails[u].dropHintElementRef,"inline-block"),o._currentDropHintIndex=u)}},o._renderColumnSizer=function(e){var t,n=e.columnIndex,i=o.props.columns,r=void 0===i?nf:i,s=r[n],a=o.state.columnResizeDetails,l=o._classNames;return s.isResizable?_.createElement("div",{key:s.key+"_sizer","aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:af,"data-sizer-index":n,onBlur:o._onSizerBlur,className:Yr(l.cellSizer,n=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,o=void 0===t?nf:t,n=this.props.columns,i=void 0===n?nf:n;o[this._onDropIndexInfo.sourceIndex].key===i[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper&&this._dragDropHelper.dispose()},t.prototype.render=function(){var e=this,t=this.props,o=t.columns,n=void 0===o?nf:o,i=t.ariaLabel,r=t.ariaLabelForToggleAllGroupsButton,s=t.ariaLabelForSelectAllCheckbox,a=t.selectAllVisibility,l=t.ariaLabelForSelectionColumn,c=t.indentWidth,d=t.rowWidth,u=void 0===d?0:d,p=t.onColumnClick,h=t.onColumnContextMenu,m=t.onRenderColumnHeaderTooltip,g=void 0===m?this._onRenderColumnHeaderTooltip:m,f=t.styles,v=t.theme,y=t.onRenderDetailsCheckbox,b=this.state,x=b.isAllSelected,S=b.columnResizeDetails,C=b.isSizing,k=b.groupNestingDepth,w=b.isAllCollapsed,I=b.columnReorderProps,D=a!==Wg.none,P=a===Wg.hidden;!this._dragDropHelper&&I&&(this._dragDropHelper=new jg({selection:{getSelection:function(){}},minimumPixelsForDrag:this.props.minimumPixelsForDrag}));var T=I&&I.frozenColumnCountFromStart?I.frozenColumnCountFromStart:0,E=I&&I.frozenColumnCountFromEnd?I.frozenColumnCountFromEnd:0;this._classNames=ef(f,{theme:v,isAllSelected:x,isSelectAllHidden:a===Wg.hidden,isResizingColumn:!!S&&C,isSizing:C,isAllCollapsed:w,isCheckboxHidden:P});var M=this._classNames,R=yn();return _.createElement(is,{role:"row","aria-label":i,className:M.root,componentRef:this._rootComponent,ref:this._onRootRef,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",style:{minWidth:u},direction:$i.horizontal},D?[_.createElement("div",{key:"__checkbox",className:M.cellIsCheck,"aria-labelledby":this._id+"-check",onClick:P?void 0:this._onSelectAllClicked,"aria-colindex":1,role:"columnheader"},g({hostClassName:M.checkTooltip,id:this._id+"-checkTooltip",setAriaDescribedBy:!1,content:s,children:_.createElement(Yg,{id:this._id+"-check","aria-label":l,"aria-describedby":P?l&&!this.props.onRenderColumnHeaderTooltip?this._id+"-checkTooltip":void 0:s&&!this.props.onRenderColumnHeaderTooltip?this._id+"-checkTooltip":void 0,"data-is-focusable":!P||void 0,isHeader:!0,selected:x,anySelected:!1,canSelect:!P,className:M.check,onRenderDetailsCheckbox:y})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:s&&!P?_.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:M.accessibleLabel},s):l&&P?_.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:M.accessibleLabel},l):null]:null,k>0&&this.props.collapseAllVisibility===wg.visible?_.createElement("div",{className:M.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":r,"aria-expanded":!w},_.createElement(Fi,{className:M.collapseButton,iconName:R?"ChevronLeftMed":"ChevronRightMed"})):null,_.createElement(Fg,{indentWidth:c,count:k-1}),n.map(function(t,o){var i=!!I&&(o>=T&&o=0&&"drop"!==t.type&&(e||this._resetDropHints())},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._onDragOver=function(e,t){this._draggedColumnIndex>=0&&(t.stopPropagation(),this._computeDropHintToBeShown(t.clientX))},t.prototype._onDrop=function(e,t){var o=this.state.columnReorderProps;if(this._draggedColumnIndex>=0&&t){var n=this._draggedColumnIndex>this._currentDropHintIndex?this._currentDropHintIndex:this._currentDropHintIndex-1,i=this._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(this._onDropIndexInfo.sourceIndex=this._draggedColumnIndex,this._onDropIndexInfo.targetIndex=n,o&&o.onColumnDrop){var r={draggedIndex:this._draggedColumnIndex,targetIndex:n};o.onColumnDrop(r)}else o&&o.handleColumnReorder&&o.handleColumnReorder(this._draggedColumnIndex,n)}this._resetDropHints(),this._dropHintDetails={},this._draggedColumnIndex=-1},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,o=e.checkboxVisibility;return t===vg.none||o===Eg.hidden},t.prototype._updateDragInfo=function(e,t){var o=this.state.columnReorderProps,n=e.itemIndex;if(n>=0)this._draggedColumnIndex=this._isCheckboxColumnHidden()?n-1:n-2,this._getDropHintPositions(),o&&o.onColumnDragStart&&o.onColumnDragStart(!0);else if(t&&this._draggedColumnIndex>=0&&(this._resetDropHints(),this._draggedColumnIndex=-1,this._dropHintDetails={},o&&o.onColumnDragEnd)){var i=this._isEventOnHeader(t);o.onColumnDragEnd({dropLocation:i},t)}},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._liesBetween=function(e,t,o){return yn()?e<=t&&e>=o:e>=t&&e<=o},t.prototype._isBefore=function(e,t){return yn()?e>=t:e<=t},t.prototype._isAfter=function(e,t){return yn()?e<=t:e>=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement){var t=this._rootElement.getBoundingClientRect();if(e.clientX>t.left&&e.clientXt.top&&e.clientY=0&&this._cellMeasurer.current){var s=this._cellMeasurer.current.getBoundingClientRect().width;r.onMeasureDone(s),this.setState({columnMeasureInfo:void 0})}n&&i&&!this._hasMounted&&(this._hasMounted=!0,i(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,o=e.onWillUnmount;o&&t&&o(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription)},t.prototype.componentWillReceiveProps=function(e){this.setState({selectionState:this._getSelectionState(e),groupNestingDepth:e.groupNestingDepth})},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){if(this.state.selectionState){var o=this._getSelectionState(e);if(this.state.selectionState.isSelected!==o.isSelected)return!0}return Mn(this.props,e)}return!0},t.prototype.render=function(){var e=this.props,t=e.className,o=e.columns,n=void 0===o?hf:o,i=e.dragDropEvents,r=e.item,s=e.itemIndex,a=e.onRenderCheck,l=void 0===a?this._onRenderCheck:a,c=e.onRenderDetailsCheckbox,d=e.onRenderItemColumn,u=e.getCellValueKey,p=e.selectionMode,h=e.rowWidth,g=void 0===h?0:h,f=e.checkboxVisibility,v=e.getRowAriaLabel,y=e.getRowAriaDescribedBy,b=e.checkButtonAriaLabel,x=e.checkboxCellClassName,S=e.rowFieldsAs,C=void 0===S?uf:S,k=e.selection,w=e.indentWidth,I=e.shimmer,D=e.enableUpdateAnimations,P=e.compact,T=e.theme,E=e.styles,M=e.cellsByColumn,R=this.state,N=R.columnMeasureInfo,B=R.isDropping,F=R.groupNestingDepth,L=this.state.selectionState,A=L.isSelected,O=void 0!==A&&A,H=L.isSelectionModal,W=void 0!==H&&H,z=i?!(!i.canDrag||!i.canDrag(r)):void 0,V=B?this._droppingClassNames?this._droppingClassNames:"is-dropping":"",K=v?v(r):void 0,U=y?y(r):void 0,G=!!k&&k.canSelectItem(r,s),Y=p===vg.multiple,j=p!==vg.none&&f!==Eg.hidden,q=p===vg.none?void 0:O;this._classNames=m({},this._classNames,pf(E,{theme:T,isSelected:O,canSelect:!Y,anySelected:W,checkboxCellClassName:x,droppingClassName:V,className:t,compact:P,enableUpdateAnimations:D}));var Z={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,shimmerIconPlaceholder:this._classNames.shimmerIconPlaceholder,shimmer:this._classNames.shimmer,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};Mn(this._rowClassNames||{},Z)||(this._rowClassNames=Z);var X=_.createElement(C,{rowClassNames:this._rowClassNames,cellsByColumn:M,columns:n,item:r,itemIndex:s,columnStartIndex:j?1:0,onRenderItemColumn:d,shimmer:I,getCellValueKey:u});return I?_.createElement("div",{className:Yr(j&&this._classNames.shimmerLeftBorder,!P&&this._classNames.shimmerBottomBorder)},X):_.createElement(is,m({},di(this.props,ci),"boolean"==typeof z?{"data-is-draggable":z,draggable:z}:{},{direction:$i.horizontal,ref:this._onRootRef,componentRef:this._focusZone,role:"row","aria-label":K,"aria-describedby":U,className:this._classNames.root,"data-is-focusable":!0,"data-selection-index":s,"data-item-index":s,"aria-rowindex":s+1,"data-automationid":"DetailsRow",style:{minWidth:g},"aria-selected":q,allowFocusRoot:!0}),j&&_.createElement("div",{role:"gridcell","aria-colindex":1,"data-selection-toggle":!0,className:this._classNames.checkCell},l({selected:O,anySelected:W,title:b,canSelect:G,compact:P,className:this._classNames.check,theme:T,isVisible:f===Eg.always,onRenderDetailsCheckbox:c})),_.createElement(Fg,{indentWidth:w,count:F-(this.props.collapseAllVisibility===wg.hidden?1:0)}),r&&X,N&&_.createElement("span",{role:"presentation",className:Yr(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},_.createElement(C,{rowClassNames:this._rowClassNames,columns:[N.column],item:r,itemIndex:s,columnStartIndex:(j?1:0)+n.length,onRenderItemColumn:d,getCellValueKey:u})),_.createElement("span",{role:"checkbox",className:this._classNames.checkCover,"aria-checked":O,"data-selection-toggle":!0}))},t.prototype.measureCell=function(e,t){var o=this.props.columns,n=m({},(void 0===o?hf:o)[e]);n.minWidth=0,n.maxWidth=999999,delete n.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:n,onMeasureDone:t}})},t.prototype.focus=function(e){return void 0===e&&(e=!1),!!this._focusZone.current&&this._focusZone.current.focus(e)},t.prototype._onRenderCheck=function(e){return _.createElement(Yg,m({},e))},t.prototype._getSelectionState=function(e){var t=e.itemIndex,o=e.selection;return{isSelected:!!o&&o.isIndexSelected(t),isSelectionModal:!!o&&!!o.isModal&&o.isModal()}},t.prototype._onSelectionChanged=function(){var e=this._getSelectionState(this.props);Mn(e,this.state.selectionState)||this.setState({selectionState:e})},t.prototype._onToggleSelection=function(){var e=this.props.selection;e&&this.props.itemIndex>-1&&e.toggleIndexSelected(this.props.itemIndex)},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,o=e.itemIndex,n=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:o,context:{data:t,index:o},canDrag:n.canDrag,canDrop:n.canDrop,onDragStart:n.onDragStart,updateDropState:this._updateDroppingState,onDrop:n.onDrop,onDragEnd:n.onDragEnd}},t.prototype._updateDroppingState=function(e,t){var o=this.state,n=o.selectionState,i=o.isDropping,r=this.props,s=r.dragDropEvents,a=r.item;e?s.onDragEnter&&(this._droppingClassNames=s.onDragEnter(a,t)):s.onDragLeave&&s.onDragLeave(a,t),i!==e&&this.setState({selectionState:n,isDropping:e})},t}(bi),gf=cn(mf,function(e){var t,o,n,i,r,s,a,l,c,d=e.theme,u=e.isSelected,p=e.canSelect,h=e.droppingClassName,m=e.anySelected,g=e.isCheckVisible,f=e.checkboxCellClassName,v=e.compact,_=e.className,y=e.cellStyleProps,b=void 0===y?Ag:y,x=e.enableUpdateAnimations,S=d.palette,C=S.neutralPrimary,k=S.white,w=S.neutralSecondary,I=S.neutralLighter,D=S.neutralLight,P=S.neutralDark,T=S.neutralQuaternaryAlt,E=S.black,M=d.semanticColors.focusBorder,R=So(Lg,d),N={defaultHeaderTextColor:C,defaultMetaTextColor:w,defaultBackgroundColor:k,hoverTextColor:C,hoverColorBackground:I,selectedTextColor:P,selectedMetaTextColor:C,selectedBackgroundColor:D,selectedHoverTextColor:E,selectedHoverMetaTextColor:P,selectedHoverBackgroundColor:T,focusHeaderTextColor:E,focusBackgroundColor:T,focusMetaTextColor:P},B=4*b.cellRightPadding+"px solid "+N.defaultBackgroundColor,F=b.cellLeftPadding+"px solid "+N.defaultBackgroundColor,L=[Xt(d,{inset:-1,borderColor:M,outlineColor:k}),R.isSelected,{color:N.selectedMetaTextColor,background:N.selectedBackgroundColor,borderBottom:"1px solid "+k,selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid "+k},"&:hover":{background:N.selectedHoverBackgroundColor,selectors:(o={$cell:{color:N.selectedHoverMetaTextColor,selectors:(n={},n[At]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},n["&.$isRowHeader"]={color:N.selectedHoverTextColor,selectors:(i={},i[At]={color:"HighlightText"},i)},n)}},o[At]={background:"Highlight"},o)},"&:focus":{background:N.focusBackgroundColor,selectors:(r={$cell:{color:N.focusMetaTextColor,"&.$isRowHeader":{color:N.focusHeaderTextColor,selectors:(s={},s[At]={color:"HighlightText"},s)}}},r[At]={background:"Highlight"},r)}},t[At]={background:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none",selectors:{a:{color:"HighlightText"}}},t)}],A=[R.isContentUnselectable,{userSelect:"none",cursor:"default"}],O={minHeight:Hg.compactRowHeight,border:0},H={minHeight:Hg.compactRowHeight,paddingTop:Hg.compactRowVerticalPadding,paddingBottom:Hg.compactRowVerticalPadding,paddingLeft:b.cellLeftPadding+"px",selectors:(a={},a["&$shimmer"]={padding:0,borderLeft:F,borderRight:B,borderTop:Hg.compactRowShimmerVerticalBorder+"px solid "+N.defaultBackgroundColor,borderBottom:Hg.compactRowShimmerVerticalBorder+"px solid "+N.defaultBackgroundColor},a["&$shimmerIconPlaceholder"]={borderRight:b.cellRightPadding+"px solid "+N.defaultBackgroundColor,borderBottom:(Hg.compactRowHeight-Hg.rowShimmerIconPlaceholderHeight)/2+"px solid "+N.defaultBackgroundColor,borderTop:(Hg.compactRowHeight-Hg.rowShimmerIconPlaceholderHeight)/2+"px solid "+N.defaultBackgroundColor},a)},W=[Xt(d,{inset:-1}),R.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:Hg.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:Hg.rowVerticalPadding,paddingBottom:Hg.rowVerticalPadding,paddingLeft:b.cellLeftPadding+"px",selectors:(l={"& > button":{maxWidth:"100%"}},l[R.isFocusable]=Xt(d,{inset:-1,borderColor:w,outlineColor:k}),l["&$shimmer"]={padding:0,borderLeft:F,borderRight:B,borderTop:Hg.rowShimmerVerticalBorder+"px solid "+N.defaultBackgroundColor,borderBottom:Hg.rowShimmerVerticalBorder+"px solid "+N.defaultBackgroundColor},l["&$shimmerIconPlaceholder"]={borderRight:b.cellRightPadding+"px solid "+N.defaultBackgroundColor,borderBottom:(Hg.rowHeight-Hg.rowShimmerIconPlaceholderHeight)/2+"px solid "+N.defaultBackgroundColor,borderTop:(Hg.rowHeight-Hg.rowShimmerIconPlaceholderHeight)/2+"px solid "+N.defaultBackgroundColor},l)},v&&H];return{root:[R.root,Jo.fadeIn400,h,d.fonts.small,g&&R.isCheckVisible,Xt(d,{borderColor:M,outlineColor:k}),{borderBottom:"1px solid "+I,background:N.defaultBackgroundColor,color:N.defaultMetaTextColor,display:"inline-flex",minWidth:"100%",minHeight:Hg.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(c={},c[R.listCellFirstChild+" &:before"]={display:"none"},c["&:hover"]={background:N.hoverColorBackground},c["&:hover $check"]={opacity:1},c)},u&&L,!p&&A,v&&O,_],cellUnpadded:[{paddingRight:b.cellRightPadding+"px"}],cellPadded:[{paddingRight:b.cellExtraRightPadding+b.cellRightPadding+"px",selectors:{"&.$checkCell":{paddingRight:0}}}],cell:W,cellAnimation:x&<.slideLeftIn40,cellMeasurer:[R.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[W,R.cellCheck,f,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],checkCover:[{position:"absolute",top:-1,left:0,bottom:0,right:0,display:"none"},m&&{display:"block"}],fields:[R.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[{color:N.defaultHeaderTextColor,fontSize:_t.medium}],isMultiline:[W,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],shimmer:[],shimmerIconPlaceholder:[],shimmerLeftBorder:[{borderLeft:"40px solid "+N.defaultBackgroundColor}],shimmerBottomBorder:[{borderBottom:"1px solid "+N.defaultBackgroundColor}],check:[]}},void 0,{scope:"DetailsRow"}),ff={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},vf="cubic-bezier(0.445, 0.050, 0.550, 0.950)",_f={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},yf="cubic-bezier(0.075, 0.820, 0.165, 1.000)",bf="cubic-bezier(0.390, 0.575, 0.565, 1.000)",xf="cubic-bezier(0.600, -0.280, 0.735, 0.045)";!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(lf||(lf={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(cf||(cf={}));var Sf=mn(),Cf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.type,o=e.size,n=e.ariaLabel,i=e.ariaLive,r=e.styles,s=e.label,a=e.theme,l=e.className,c=e.labelPosition,d=n,u=di(this.props,ci,["size"]),p=o;void 0===p&&void 0!==t&&(p=t===cf.large?lf.large:lf.medium);var h=Sf(r,{theme:a,size:p,className:l,labelPosition:c});return _.createElement("div",m({},u,{className:h.root}),_.createElement("div",{className:h.circle}),s&&_.createElement("div",{className:h.label},s),d&&_.createElement("div",{role:"status","aria-live":i},_.createElement(sr,null,_.createElement("div",{className:h.screenReaderText},d))))},t.defaultProps={size:lf.medium,ariaLive:"polite",labelPosition:"bottom"},t}(bi),kf={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},wf=Q({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),If=cn(Cf,function(e){var t,o=e.theme,n=e.size,i=e.className,r=e.labelPosition,s=o.palette,a=So(kf,o);return{root:[a.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===r&&{flexDirection:"column-reverse"},"right"===r&&{flexDirection:"row"},"left"===r&&{flexDirection:"row-reverse"},i],circle:[a.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+s.themeLight,borderTopColor:s.themePrimary,animationName:wf,animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[At]={borderTopColor:"Highlight"},t)},n===lf.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],n===lf.small&&["ms-Spinner--small",{width:16,height:16}],n===lf.medium&&["ms-Spinner--medium",{width:20,height:20}],n===lf.large&&["ms-Spinner--large",{width:28,height:28}]],label:[a.label,{color:s.themePrimary,margin:"10px 0 0",textAlign:"center"},"top"===r&&{margin:"0 0 10px"},"right"===r&&{margin:"0 0 0 10px"},"left"===r&&{margin:"0 10px 0 0"}],screenReaderText:eo}},void 0,{scope:"Spinner"}),Df=mn(),Pf=cn(function(e){function t(t){var o=e.call(this,t)||this;return o._onToggleCollapse=function(e){var t=o.props,n=t.group,i=t.onToggleCollapse,r=t.isGroupLoading,s=!o.state.isCollapsed,a=!s&&r&&r(n);o.setState({isCollapsed:s,isLoadingVisible:a}),i&&i(n),e.stopPropagation(),e.preventDefault()},o._onToggleSelectGroupClick=function(e){var t=o.props,n=t.onToggleSelectGroup,i=t.group;n&&n(i),e.preventDefault(),e.stopPropagation()},o._onHeaderClick=function(){var e=o.props,t=e.group,n=e.onGroupHeaderClick,i=e.onToggleSelectGroup;n?n(t):i&&i(t)},o._onRenderTitle=function(e){var t=e.group;return t?_.createElement("div",{className:o._classNames.title},_.createElement("span",null,t.name),_.createElement("span",{className:o._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},o.state={isCollapsed:o.props.group&&o.props.group.isCollapsed,isLoadingVisible:!1},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){if(e.group){var t=e.group.isCollapsed,o=e.isGroupLoading,n=!t&&o&&o(e.group);this.setState({isCollapsed:t||!1,isLoadingVisible:n||!1})}},t.prototype.render=function(){var e=this.props,t=e.group,o=e.groupLevel,n=e.viewport,i=e.selectionMode,r=e.loadingText,s=e.isSelected,a=void 0!==s&&s,l=e.selected,c=void 0!==l&&l,d=e.indentWidth,u=e.onRenderTitle,p=void 0===u?this._onRenderTitle:u,h=e.isCollapsedGroupSelectVisible,g=void 0===h||h,f=e.expandButtonProps,v=e.selectAllButtonProps,y=e.theme,b=e.styles,x=e.className,S=e.groupedListId,C=e.compact,k=this.state,w=k.isCollapsed,I=k.isLoadingVisible,D=i===vg.multiple&&(g||!(t&&t.isCollapsed)),P=a||c,T=yn();return this._classNames=Df(b,{theme:y,className:x,selected:P,isCollapsed:w,compact:C}),t?_.createElement("div",{className:this._classNames.root,style:n?{minWidth:n.width}:{},onClick:this._onHeaderClick,"aria-label":t.ariaLabel||t.name,"data-is-focusable":!0},_.createElement(is,{className:this._classNames.groupHeaderContainer,direction:$i.horizontal},D?_.createElement("button",m({type:"button",className:this._classNames.check,role:"checkbox","aria-checked":P,"data-selection-toggle":!0,onClick:this._onToggleSelectGroupClick},v),_.createElement(Ip,{checked:P})):i!==vg.none&&_.createElement(Fg,{indentWidth:d,count:1}),_.createElement(Fg,{indentWidth:d,count:o}),_.createElement("div",{className:this._classNames.dropIcon},_.createElement(Fi,{iconName:"Tag"})),_.createElement("button",m({type:"button",className:this._classNames.expand,onClick:this._onToggleCollapse,"aria-expanded":t?!t.isCollapsed:void 0,"aria-controls":t&&!t.isCollapsed?S:void 0},f),_.createElement(Fi,{className:this._classNames.expandIsCollapsed,iconName:T?"ChevronLeftMed":"ChevronRightMed"})),p(this.props,this._onRenderTitle),I&&_.createElement(If,{label:r}))):null},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(_.Component),function(e){var t,o,n=e.theme,i=e.className,r=e.selected,s=e.isCollapsed,a=e.compact,l=Og.rowHeight,c=Og.compactRowHeight,d=Ag.cellLeftPadding,u=a?c:l,p=n.semanticColors,h=n.palette,m=So(_f,n),g=[Xt(n),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[m.root,Xt(n),n.fonts.medium,{borderBottom:"1px solid "+p.listBackground,cursor:"default",userSelect:"none",selectors:(t={":hover":{background:p.listItemBackgroundHovered},":hover $check":{opacity:1},":focus $check":{opacity:1}},t[":global(."+m.group+"."+m.isDropping+")"]={selectors:{"> $root $dropIcon":{transition:"transform "+at.durationValue4+" "+yf+" opacity "+at.durationValue1+" "+bf,transitionDelay:at.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},$check:{opacity:0}}},t)},r&&[m.isSelected,{background:p.listItemBackgroundChecked,selectors:{":hover":{background:p.listItemBackgroundCheckedHovered},$check:{opacity:1}}}],a&&[m.compact,{border:"none"}],i],groupHeaderContainer:[{display:"flex",alignItems:"center",height:u}],headerCount:[{padding:"0px 4px"}],check:[m.check,g,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:"40px",height:u,selectors:{":focus":{opacity:1}}}],expand:[m.expand,g,{display:"flex",alignItems:"center",justifyContent:"center",fontSize:a?_t.mediumPlus:18,width:32,height:u,color:r?h.neutralPrimary:h.neutralSecondary,selectors:{":hover":{backgroundColor:r?h.neutralQuaternary:h.neutralLight},":active":{backgroundColor:r?h.neutralTertiaryAlt:h.neutralQuaternaryAlt}}}],expandIsCollapsed:[s?[m.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[m.title,{paddingLeft:d,fontSize:a?_t.large:_t.xLarge,fontWeight:yt.semilight,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis"}],dropIcon:[m.dropIcon,{position:"absolute",left:-26,fontSize:bt.large,color:h.neutralSecondary,transition:"transform "+at.durationValue2+" "+xf+", opacity "+at.durationValue4+" "+bf,opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(o={},o[":global(."+m.iconTag+")"]={position:"absolute"},o)}]}},void 0,{scope:"GroupHeader"}),Tf={root:"ms-GroupShowAll",link:"ms-Link"},Ef=mn(),Mf=cn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onSummarizeClick=function(e){t.props.onToggleSummarize(t.props.group),e.stopPropagation(),e.preventDefault()},t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.group,o=e.groupLevel,n=e.showAllLinkText,i=e.styles,r=e.theme,s=Ef(i,{theme:r});return t?_.createElement("div",{className:s.root},_.createElement(Fg,{count:o}),_.createElement(Ms,{onClick:this._onSummarizeClick},n)):null},t.defaultProps={showAllLinkText:"Show All"},t}(bi),function(e){var t,o=e.theme,n=So(Tf,o);return{root:[n.root,o.fonts.medium,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t["."+n.link]={fontSize:_t.small},t)}]}},void 0,{scope:"GroupShowAll"}),Rf={root:"ms-groupFooter"},Nf=mn(),Bf=cn(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.group,o=e.groupLevel,n=e.footerText,i=e.indentWidth,r=e.styles,s=e.theme,a=Nf(r,{theme:s});return t&&n?_.createElement("div",{className:a.root},_.createElement(Fg,{indentWidth:i,count:o}),n):null},t}(_.Component),function(e){var t=e.theme,o=e.className,n=So(Rf,t);return{root:[t.fonts.medium,n.root,{position:"relative",padding:"5px 38px"},o]}},void 0,{scope:"GroupFooter"}),Ff=function(e){function t(o){var n=e.call(this,o)||this;n._root=_.createRef(),n._list=_.createRef(),n._onRenderGroupHeader=function(e){return _.createElement(Pf,m({},e))},n._onRenderGroupShowAll=function(e){return _.createElement(Mf,m({},e))},n._onRenderGroupFooter=function(e){return _.createElement(Bf,m({},e))},n._renderSubGroup=function(e,o){var i=n.props,r=i.dragDropEvents,s=i.dragDropHelper,a=i.eventsToRegister,l=i.getGroupItemLimit,c=i.groupNestingDepth,d=i.groupProps,u=i.items,p=i.headerProps,h=i.showAllProps,m=i.footerProps,g=i.listProps,f=i.onRenderCell,v=i.selection,y=i.selectionMode,b=i.viewport,x=i.onRenderGroupHeader,S=i.onRenderGroupShowAll,C=i.onRenderGroupFooter,k=i.onShouldVirtualize,w=i.group,I=i.compact;return!e||e.count>0||d&&d.showEmptyGroups?_.createElement(t,{ref:"subGroup_"+o,key:n._getGroupKey(e,o),dragDropEvents:r,dragDropHelper:s,eventsToRegister:a,footerProps:m,getGroupItemLimit:l,group:e,groupIndex:o,groupNestingDepth:c,groupProps:d,headerProps:p,items:u,listProps:g,onRenderCell:f,selection:v,selectionMode:y,showAllProps:h,viewport:b,onRenderGroupHeader:x,onRenderGroupShowAll:S,onRenderGroupFooter:C,onShouldVirtualize:k,groups:w.children,compact:I}):null},n._getGroupDragDropOptions=function(){var e=n.props,t=e.group,o=e.groupIndex,i=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:o,isGroup:!0},canDrag:function(){return!1},canDrop:i.canDrop,updateDropState:n._updateDroppingState}},n._updateDroppingState=function(e,t){var o=n.state.isDropping,i=n.props.dragDropEvents;o?i&&i.onDragEnter&&i.onDragEnter(t,void 0):i&&i.onDragLeave&&i.onDragLeave(t,void 0),o!==e&&n.setState({isDropping:e})};var i=o.selection,r=o.group;return n._id=Fn("GroupedListSection"),n.state={isDropping:!1,isSelected:!(!i||!r)&&i.isRangeSelected(r.startIndex,r.count)},n}return h(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,o=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),o&&this._events.on(o,"change",this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,o=e.group,n=e.groupIndex,i=e.headerProps,r=e.showAllProps,s=e.footerProps,a=e.viewport,l=e.selectionMode,c=e.onRenderGroupHeader,d=void 0===c?this._onRenderGroupHeader:c,u=e.onRenderGroupShowAll,p=void 0===u?this._onRenderGroupShowAll:u,h=e.onRenderGroupFooter,g=void 0===h?this._onRenderGroupFooter:h,f=e.onShouldVirtualize,v=e.groupedListClassNames,y=e.groups,b=e.compact,x=this.state.isSelected,S=o&&t?t(o):1/0,C=o&&!o.children&&!o.isCollapsed&&!o.isShowingAll&&(o.count>S||o.hasMoreData),k=o&&o.children&&o.children.length>0,w={group:o,groupIndex:n,groupLevel:o?o.level:0,isSelected:x,viewport:a,selectionMode:l,groups:y,compact:b},I={groupedListId:this._id},D=m({},i,w,I),P=m({},r,w),T=m({},s,w);return _.createElement("div",{ref:this._root,className:Yr(v&&v.group,this._getDroppingClassName()),role:"presentation"},d(D,this._onRenderGroupHeader),o&&o.isCollapsed?null:k?_.createElement(Hm,{role:"presentation",ref:this._list,items:o.children,onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:f,id:this._id}):this._onRenderGroup(S),o&&o.isCollapsed?null:C&&p(P,this._onRenderGroupShowAll),g(T,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,o=0;o0&&(i&&i(e),this._setGroupsCollapsedState(o,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var o=0;o0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){var t=(e=e||this.state.groups)?e.length:1;if(this._list.current){this._list.current.forceUpdate();for(var o=0;o0&&t.height>0?t:void 0;return _.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},_.createElement(e,m({ref:this._updateComposedComponentRef,viewport:o},this.props)))},o.prototype.forceUpdate=function(){this._updateViewport(!0)},o.prototype._onAsyncResize=function(){this._updateViewport()},o.prototype._isResizeObserverAvailable=function(){var e=re();return e&&e.ResizeObserver},o}(Vs)}var Uf=mn(),Gf=100,Yf=new Array(10),jf=function(e){function t(t){var o=e.call(this,t)||this;return o._root=_.createRef(),o._header=_.createRef(),o._groupedList=_.createRef(),o._list=_.createRef(),o._focusZone=_.createRef(),o._selectionZone=_.createRef(),o._sumColumnWidths=_o(function(e){var t=0;return e.forEach(function(e){return t+=e.calculatedWidth||e.minWidth}),t}),o._onRenderRow=function(e,t){return _.createElement(gf,m({},e))},o._onRenderDetailsHeader=function(e,t){return _.createElement(df,m({},e))},o._onRenderDetailsFooter=function(e,t){return null},o._onRenderListCell=function(e){return function(t,n){return o._onRenderCell(e,t,n)}},o._activeRows={},o._columnOverrides={},o._onColumnIsSizingChanged=o._onColumnIsSizingChanged.bind(o),o._onColumnResized=o._onColumnResized.bind(o),o._onColumnAutoResized=o._onColumnAutoResized.bind(o),o._onRowDidMount=o._onRowDidMount.bind(o),o._onRowWillUnmount=o._onRowWillUnmount.bind(o),o._onToggleCollapse=o._onToggleCollapse.bind(o),o._onActiveRowChanged=o._onActiveRowChanged.bind(o),o._onBlur=o._onBlur.bind(o),o._onHeaderKeyDown=o._onHeaderKeyDown.bind(o),o._onContentKeyDown=o._onContentKeyDown.bind(o),o._onRenderCell=o._onRenderCell.bind(o),o._onGroupExpandStateChanged=o._onGroupExpandStateChanged.bind(o),o._onColumnDragEnd=o._onColumnDragEnd.bind(o),o.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:o._getAdjustedColumns(t),isSizing:!1,isDropping:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed},o._selection=t.selection||new xg({onSelectionChanged:void 0,getKey:t.getKey}),o.props.disableSelectionZone||o._selection.setItems(t.items,!1),o._dragDropHelper=t.dragDropEvents?new jg({selection:o._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,o._initialFocusedIndex=t.initialFocusedIndex,o}return h(t,e),t.prototype.scrollToIndex=function(e,t,o){this._list.current&&this._list.current.scrollToIndex(e,t,o),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,o)},t.prototype.focusIndex=function(e,t,o,n){void 0===t&&(t=!1);var i=this.props.items[e];if(i){this.scrollToIndex(e,o,n);var r=this._getItemKey(i,e),s=this._activeRows[r];s&&this._setFocusToRow(s,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose()},t.prototype.componentDidUpdate=function(e,t){if(void 0!==this._initialFocusedIndex&&(r=this.props.items[this._initialFocusedIndex])){var o=this._getItemKey(r,this._initialFocusedIndex);(n=this._activeRows[o])&&this._setFocusToRowIfPending(n)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!fr(this._root.current,document.activeElement,!1)){var n,i=this.state.focusedItemIndex0;)++t,(n=o.pop())&&n.children&&o.push.apply(o,n.children);return t}(c)+(p?p.length:0),le=Uf(O,{theme:H,compact:s,isFixed:g===Tg.fixedColumns,isHorizontalConstrained:a===Dg.horizontalConstrained,className:i}),ce=c?_.createElement(Wf,{componentRef:this._groupedList,groups:c,groupProps:d?this._getGroupProps(d):void 0,items:p,onRenderCell:this._onRenderCell,selection:q,selectionMode:r!==Eg.hidden?S:vg.none,dragDropEvents:l,dragDropHelper:Z,eventsToRegister:D,listProps:Q,onGroupExpandStateChanged:this._onGroupExpandStateChanged,usePageCache:R,onShouldVirtualize:N,getGroupHeight:A,compact:s}):_.createElement(Hm,m({ref:this._list,role:"presentation",items:B&&!p.length?Yf:p,onRenderCell:this._onRenderListCell(0),usePageCache:R,onShouldVirtualize:N},Q));return _.createElement("div",m({ref:this._root,className:le.root,"data-automationid":"DetailsList","data-is-scrollable":"false","aria-label":w},T?{role:"application"}:{}),_.createElement("div",{role:"grid","aria-label":I,"aria-rowcount":ae,"aria-colcount":($!==Wg.none?1:0)+(U?U.length:0),"aria-readonly":"true"},_.createElement("div",{onKeyDown:this._onHeaderKeyDown,role:"presentation",className:le.headerWrapper},h&&oe({componentRef:this._header,selectionMode:S,layoutMode:g,selection:q,columns:U,onColumnClick:y,onColumnContextMenu:b,onColumnResized:this._onColumnResized,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onColumnAutoResized:this._onColumnAutoResized,groupNestingDepth:X,isAllCollapsed:G,onToggleCollapseAll:this._onToggleCollapse,ariaLabel:t,ariaLabelForSelectAllCheckbox:o,ariaLabelForSelectionColumn:n,selectAllVisibility:$,collapseAllVisibility:d&&d.collapseAllVisibility,viewport:F,columnReorderProps:se,minimumPixelsForDrag:L,cellStyleProps:z,checkboxVisibility:r,indentWidth:u,onRenderDetailsCheckbox:V,rowWidth:this._sumColumnWidths(this.state.adjustedColumns)},this._onRenderDetailsHeader)),_.createElement("div",{onKeyDown:this._onContentKeyDown,role:"presentation",className:le.contentWrapper},_.createElement(is,{componentRef:this._focusZone,className:le.focusZone,direction:$i.vertical,isInnerZoneKeystroke:Zf,onActiveElementChanged:this._onActiveRowChanged,onBlur:this._onBlur},this.props.disableSelectionZone?ce:_.createElement(Bg,m({ref:this._selectionZone,selection:q,selectionPreservedOnEmptyClick:C,selectionMode:S,onItemInvoked:f,onItemContextMenu:v,enterModalOnTouch:this.props.enterModalSelectionOnTouch},k||{}),ce))),ie(m({},re),this._onRenderDetailsFooter)))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._onRenderCell=function(e,t,o){var n=this.props,i=n.compact,r=n.dragDropEvents,s=n.rowElementEventMap,a=n.onRenderMissingItem,l=n.onRenderItemColumn,c=n.getCellValueKey,d=n.onRenderRow,u=void 0===d?this._onRenderRow:d,p=n.selectionMode,h=void 0===p?this._selection.mode:p,m=n.viewport,g=n.checkboxVisibility,f=n.getRowAriaLabel,v=n.getRowAriaDescribedBy,_=n.checkButtonAriaLabel,y=n.checkboxCellClassName,b=n.groupProps,x=n.useReducedRowRenderer,S=n.indentWidth,C=n.cellStyleProps,k=void 0===C?Ag:C,w=n.onRenderCheckbox,I=n.enableUpdateAnimations,D=b&&b.collapseAllVisibility,P=this._selection,T=this._dragDropHelper,E=this.state.adjustedColumns,M={item:t,itemIndex:o,compact:i,columns:E,groupNestingDepth:e,selectionMode:h,selection:P,onDidMount:this._onRowDidMount,onWillUnmount:this._onRowWillUnmount,onRenderItemColumn:l,getCellValueKey:c,eventsToRegister:s,dragDropEvents:r,dragDropHelper:T,viewport:m,checkboxVisibility:g,collapseAllVisibility:D,getRowAriaLabel:f,getRowAriaDescribedBy:v,checkButtonAriaLabel:_,checkboxCellClassName:y,useReducedRowRenderer:x,indentWidth:S,cellStyleProps:k,onRenderDetailsCheckbox:w,enableUpdateAnimations:I,rowWidth:this._sumColumnWidths(E)};return t?u(M,this._onRenderRow):a?a(o,M):null},t.prototype._onGroupExpandStateChanged=function(e){this.setState({isSomeGroupExpanded:e})},t.prototype._onColumnIsSizingChanged=function(e,t){this.setState({isSizing:t})},t.prototype._onHeaderKeyDown=function(e){e.which===zt.down&&this._focusZone.current&&this._focusZone.current.focus()&&(0===this._selection.getSelectedIndices().length&&this._selection.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())},t.prototype._onContentKeyDown=function(e){e.which!==zt.up||e.altKey||this._header.current&&this._header.current.focus()&&(e.preventDefault(),e.stopPropagation())},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._onRowDidMount=function(e){var t=e.props,o=t.item,n=t.itemIndex,i=this._getItemKey(o,n);this._activeRows[i]=e,this._setFocusToRowIfPending(e);var r=this.props.onRowDidMount;r&&r(o,n)},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout(function(){e.focus(t)},0)},t.prototype._onRowWillUnmount=function(e){var t=this.props.onRowWillUnmount,o=e.props,n=o.item,i=o.itemIndex,r=this._getItemKey(n,i);delete this._activeRows[r],t&&t(n,i)},t.prototype._onToggleCollapse=function(e){this.setState({isCollapsed:e}),this._groupedList.current&&this._groupedList.current.toggleCollapseAll(e)},t.prototype._onColumnDragEnd=function(e,t){var o=this.props.columnReorderOptions,n=Pg.outside;if(o&&o.onDragEnd){if(e.dropLocation&&e.dropLocation!==Pg.header)n=e.dropLocation;else if(this._root.current){var i=this._root.current.getBoundingClientRect();t.clientX>i.left&&t.clientXi.top&&t.clientY0&&d>u;){var g=(y=p[h]).minWidth||Gf,f=d-u;if(y.calculatedWidth-g>=f||!y.isCollapsable&&!y.isCollapsible){var v=y.calculatedWidth;y.calculatedWidth=Math.max(y.calculatedWidth-f,g),d-=v-y.calculatedWidth}else d-=Xf(y,!1,o),p.splice(h,1);h--}for(var _=0;_=0&&(i&&i(n[r],r,t),this.setState({focusedItemIndex:r}))}},t.prototype._onBlur=function(e){this.setState({focusedItemIndex:-1})},t.prototype._getItemKey=function(e,t){var o=this.props.getKey,n=void 0;return e&&(n=e.key),o&&(n=o(e,t)),n||(n=t),n},t.prototype._getDetailsFooterProps=function(){var e=this.state.adjustedColumns,t=this.props,o=t.viewport,n=t.checkboxVisibility,i=t.indentWidth,r=t.cellStyleProps,s=void 0===r?Ag:r,a=t.selectionMode,l=void 0===a?this._selection.mode:a;return{columns:e,groupNestingDepth:this._getGroupNestingDepth(),selection:this._selection,selectionMode:l,viewport:o,checkboxVisibility:n,indentWidth:i,cellStyleProps:s}},t.prototype._getColumnReorderProps=function(){var e=this.props.columnReorderOptions;if(e)return m({},e,{onColumnDragEnd:this._onColumnDragEnd})},t.prototype._getGroupProps=function(e){var t=this,o=e.onRenderFooter,n=e.onRenderHeader,i=this.state.adjustedColumns,r=this.props,s=r.selectionMode,a=void 0===s?this._selection.mode:s,l=r.viewport,c=r.cellStyleProps,d=void 0===c?Ag:c,u=r.checkboxVisibility,p=r.indentWidth,h=this._getGroupNestingDepth(),g=o?function(e,n){return o(m({},e,{columns:i,groupNestingDepth:h,indentWidth:p,selection:t._selection,selectionMode:a,viewport:l,checkboxVisibility:u,cellStyleProps:d}),n)}:void 0,f=n?function(e,o){return n(m({},e,{columns:i,groupNestingDepth:h,indentWidth:p,selection:t._selection,selectionMode:a,viewport:l,checkboxVisibility:u,cellStyleProps:d}),o)}:void 0;return m({},e,{onRenderFooter:g,onRenderHeader:f})},t.defaultProps={layoutMode:Tg.justified,selectionMode:vg.multiple,constrainMode:Dg.horizontalConstrained,checkboxVisibility:Eg.onHover,isHeaderVisible:!0,enableShimmer:!1,compact:!1},t=f([Kf],t)}(bi);function qf(e,t,o,n,i,r,s){var a=[];if(e&&e.length){var l=e[0];for(var c in l)l.hasOwnProperty(c)&&a.push({key:c,name:c,fieldName:c,minWidth:Gf,maxWidth:300,isCollapsable:!!a.length,isCollapsible:!!a.length,isMultiline:void 0!==s&&s,isSorted:n===c,isSortedDescending:!!i,isRowHeader:!1,columnActionsMode:Ig.clickable,isResizable:t,onColumnClick:o,isGrouped:r===c})}return a}function Zf(e){return e.which===xn(zt.right)}function Xf(e,t,o){var n=o.cellStyleProps,i=void 0===n?Ag:n;return e.calculatedWidth+i.cellLeftPadding+i.cellRightPadding+(e.isPadded?i.cellExtraRightPadding:0)}var Qf,$f={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},Jf=cn(jf,function(e){var t,o,n=e.theme,i=e.className,r=e.isHorizontalConstrained,s=e.compact,a=e.isFixed,l=n.semanticColors,c=So($f,n);return{root:[c.root,n.fonts.small,{position:"relative",fontSize:_t.small,background:l.listBackground,color:l.listText,selectors:(t={},t["& ."+c.listCell]={minHeight:38,wordBreak:"break-word"},t)},a&&[c.isFixed],s&&[c.compact,{selectors:(o={},o["."+c.listCell]={minHeight:32},o)}],r&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],i],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:[c.headerWrapper],contentWrapper:[c.contentWrapper]}},void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(Qf||(Qf={}));var ev,tv=at.durationValue2,ov={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},nv=mn(),iv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.componentDidMount=function(){sa()},t.prototype.componentWillUnmount=function(){aa()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,o=e.className,n=e.theme,i=e.styles,r=di(this.props,ci),s=nv(i,{theme:n,className:o,isDark:t});return _.createElement("div",m({},r,{className:s.root}))},t}(bi),rv={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},sv=cn(iv,function(e){var t,o=e.className,n=e.theme,i=e.isNone,r=e.isDark,s=n.palette,a=So(rv,n);return{root:[a.root,n.fonts.medium,{backgroundColor:s.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[At]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},r&&[a.rootDark,{backgroundColor:s.blackTranslucent40}],o]}},void 0,{scope:"Overlay"}),av=_o(function(e,t){return{root:j(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),lv={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},cv=function(e){function t(t){var o=e.call(this,t)||this;return o._currentEventType=lv.mouse,o._events=[],o._onMouseDown=function(e){var t=_.Children.only(o.props.children).props.onMouseDown;return t&&t(e),o._currentEventType=lv.mouse,o._onDragStart(e)},o._onMouseUp=function(e){var t=_.Children.only(o.props.children).props.onMouseUp;return t&&t(e),o._currentEventType=lv.mouse,o._onDragStop(e)},o._onTouchStart=function(e){var t=_.Children.only(o.props.children).props.onTouchStart;return t&&t(e),o._currentEventType=lv.touch,o._onDragStart(e)},o._onTouchEnd=function(e){var t=_.Children.only(o.props.children).props.onTouchEnd;t&&t(e),o._currentEventType=lv.touch,o._onDragStop(e)},o._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(o.props.handleSelector&&!o._matchesSelector(e.target,o.props.handleSelector)||o.props.preventDragSelector&&o._matchesSelector(e.target,o.props.preventDragSelector))){o._touchId=o._getTouchId(e);var t=o._getControlPosition(e);if(void 0!==t){var n=o._createDragDataFromPosition(t);o.props.onStart&&o.props.onStart(e,n),o.setState({isDragging:!0,lastPosition:t}),o._events=[Gr(document.body,o._currentEventType.move,o._onDrag),Gr(document.body,o._currentEventType.stop,o._onDragStop)]}}},o._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=o._getControlPosition(e);if(t){var n=o._createUpdatedDragData(o._createDragDataFromPosition(t)),i=n.position;o.props.onDragChange&&o.props.onDragChange(e,n),o.setState({position:i,lastPosition:t})}},o._onDragStop=function(e){if(o.state.isDragging){var t=o._getControlPosition(e);if(t){var n=o._createDragDataFromPosition(t);o.setState({isDragging:!1,lastPosition:void 0}),o.props.onStop&&o.props.onStop(e,n),o.props.position&&o.setState({position:o.props.position}),o._events.forEach(function(e){return e()})}}},o.state={isDragging:!1,position:o.props.position||{x:0,y:0},lastPosition:void 0},o}return h(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(e){return e()})},t.prototype.render=function(){var e=_.Children.only(this.props.children),t=e.props,o=this.props.position,n=this.state,i=n.position,r=n.isDragging,s=i.x,a=i.y;return o&&!r&&(s=o.x,a=o.y),_.cloneElement(e,{style:m({},t.style,{transform:"translate("+s+"px, "+a+"px)"}),className:av(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var o=t||e;return{x:o.clientX,y:o.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var o=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!o&&(o.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t0&&(o=t[0].getBoundingClientRect(),this.setState({modalRectangleTop:o.top}))}}else this.setState({isOpen:!0});!e.isOpen&&this.state.isOpen&&(this._onModalCloseTimer=this._async.setTimeout(this._onModalClose,1e3*parseFloat(tv)),this.setState({isVisible:!1}))},t.prototype.componentDidUpdate=function(e,t){e.isOpen||t.isVisible||this.setState({isVisible:!0})},t.prototype.render=function(){var e=this.props,t=e.className,o=e.containerClassName,n=e.scrollableContentClassName,i=e.elementToFocusOnDismiss,r=e.firstFocusableSelector,s=e.forceFocusInsideTrap,a=e.ignoreExternalFocusing,l=e.isBlocking,c=e.isClickableOutsideFocusTrap,d=e.isDarkOverlay,u=e.onDismiss,p=e.layerProps,h=e.responsiveMode,g=e.titleAriaId,f=e.styles,v=e.subtitleAriaId,y=e.theme,b=e.topOffsetFixed,x=e.onLayerDidMount,S=e.isModeless,C=e.dragOptions,k=this.state,w=k.isOpen,I=k.isVisible,D=k.hasBeenOpened,P=k.modalRectangleTop,T=k.x,E=k.y,M=k.isInKeyboardMoveMode;if(!w)return null;var R=void 0===p?"":p.className,N=uv(f,{theme:y,className:t,containerClassName:o,scrollableContentClassName:n,isOpen:w,isVisible:I,hasBeenOpened:D,modalRectangleTop:P,topOffsetFixed:b,isModeless:S,layerClassName:R,isDefaultDragHandle:C&&!C.dragHandleSelector}),B=m({},dv,this.props.layerProps,{onLayerDidMount:p&&p.onLayerDidMount?p.onLayerDidMount:x,insertFirst:S,className:N.layer}),F=_.createElement(bp,{componentRef:this._focusTrapZone,className:N.main,elementToFocusOnDismiss:i,isClickableOutsideFocusTrap:S||c||!l,ignoreExternalFocusing:a,forceFocusInsideTrap:S?!S:s,firstFocusableSelector:r,focusPreviouslyFocusedInnerElement:!0,onKeyDown:C?this._onDialogKeyDown:void 0,onKeyUp:C?this._onDialogKeyUp:void 0,onBlur:M?this._onExitKeyboardMoveMode:void 0},C&&M&&_.createElement("div",{className:N.keyboardMoveIconContainer},C.keyboardMoveIconProps?_.createElement(Fi,m({},C.keyboardMoveIconProps)):_.createElement(Fi,{iconName:"move",className:N.keyboardMoveIcon})),_.createElement("div",{ref:this._allowScrollOnModal,className:N.scrollableContent,"data-is-scrollable":!0},C&&this.state.isModalMenuOpen&&_.createElement(C.menu,{items:[{key:"move",text:C.moveMenuItemText,onClick:this._onEnterKeyboardMoveMode},{key:"close",text:C.closeMenuItemText,onClick:this._onModalClose}],onDismiss:this._onModalContextMenuClose,alignTargetEdge:!0,coverTarget:!0,directionalHint:Rs.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:this._scrollableContent}),this.props.children));return h>=zs.small?_.createElement(_l,m({},B),_.createElement(Ga,{role:S||!l?"dialog":"alertdialog","aria-modal":!S,ariaLabelledBy:g,ariaDescribedBy:v,onDismiss:u},_.createElement("div",{className:N.root},!S&&_.createElement(sv,{isDarkThemed:d,onClick:l?void 0:u}),C?_.createElement(cv,{handleSelector:C.dragHandleSelector||"."+N.main.split(" ")[0],preventDragSelector:"button",onStart:this._onDragStart,onDragChange:this._onDrag,onStop:this._onDragStop,position:{x:T,y:E}},F):F))):null},t.prototype.focus=function(){this._focusTrapZone.current&&this._focusTrapZone.current.focus()},t.prototype._getMoveDelta=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t},t.defaultProps={isOpen:!1,isDarkOverlay:!0,isBlocking:!1,className:"",containerClassName:""},t=f([qs],t)}(bi),hv=cn(pv,function(e){var t,o=e.className,n=e.containerClassName,i=e.scrollableContentClassName,r=e.isOpen,s=e.isVisible,a=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,d=e.topOffsetFixed,u=e.isModeless,p=e.layerClassName,h=e.isDefaultDragHandle,m=c.palette,g=So(ov,c);return{root:[g.root,c.fonts.medium,{backgroundColor:"transparent",position:u?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+tv},d&&a&&{alignItems:"flex-start"},r&&g.isOpen,s&&{opacity:1,pointerEvents:"auto"},o],main:[g.main,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)",backgroundColor:m.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"100%",overflowY:"auto",zIndex:u?Gt.Layer:void 0},d&&a&&{top:l},h&&{cursor:"move"},n],scrollableContent:[g.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:window.innerHeight},t)},i],layer:u&&[p,g.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:"24px",width:"24px"}}},void 0,{scope:"Modal"}),mv=mn(),gv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.styles,n=e.theme;return this._classNames=mv(o,{theme:n,className:t}),_.createElement("div",{className:this._classNames.actions},_.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return _.Children.map(this.props.children,function(t){return t?_.createElement("span",{className:e._classNames.action},t):null})},t}(bi),fv={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},vv=cn(gv,function(e){var t=e.className,o=e.theme,n=So(fv,o);return{actions:[n.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"20px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},t],action:[n.action],actionsRight:[n.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0",selectors:{$action:{margin:"0 4px"}}}]}},void 0,{scope:"DialogFooter"}),_v=mn(),yv=_.createElement(vv,null).type,bv=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.render=function(){var e,t=this.props,o=t.showCloseButton,n=t.className,i=t.closeButtonAriaLabel,r=t.onDismiss,s=t.subTextId,a=t.subText,l=t.titleId,c=t.title,d=t.type,u=t.styles,p=t.theme,h=t.draggableHeaderClassName,g=_v(u,{theme:p,className:n,isLargeHeader:d===Qf.largeHeader,isClose:d===Qf.close,draggableHeaderClassName:h}),f=this._groupChildren();return a&&(e=_.createElement("p",{className:g.subText,id:s},a)),_.createElement("div",{className:g.content},_.createElement("div",{className:g.header},_.createElement("p",{className:g.title,id:l,role:"heading","aria-level":2},c),_.createElement("div",{className:g.topButton},this.props.topButtonsProps.map(function(e,t){return _.createElement(nc,m({key:e.uniqueId||t},e))}),(d===Qf.close||o&&d!==Qf.largeHeader)&&_.createElement(nc,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:i,onClick:r}))),_.createElement("div",{className:g.inner},_.createElement("div",{className:g.innerContent},e,f.contents),f.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return _.Children.map(this.props.children,function(t){"object"==typeof t&&null!==t&&t.type===yv?e.footers.push(t):e.contents.push(t)}),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=f([qs],t)}(bi),xv={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},Sv=cn(bv,function(e){var t=e.className,o=e.theme,n=e.isLargeHeader,i=e.isClose,r=e.hidden,s=e.isMultiline,a=e.draggableHeaderClassName,l=o.palette,c=o.fonts,d=So(xv,o);return{content:[n&&d.contentLgHeader,i&&d.close,{flexGrow:1,overflowY:"hidden"},t],subText:[d.subText,n?c.medium:c.small,{margin:"0 0 20px 0",paddingTop:"8px",color:l.neutralPrimary,lineHeight:"1.5",wordWrap:"break-word",fontWeight:yt.semilight}],header:[d.header,{position:"relative",width:"100%",boxSizing:"border-box"},n&&[d.headerLg,{backgroundColor:l.themePrimary}],i&&d.close,a&&[a,{cursor:"move"}]],button:[d.button,r&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:l.neutralSecondary,fontSize:"16px"}}}],inner:[d.inner,{padding:s?"0 20px 20px":"0 28px 20px"}],innerContent:[d.content,{position:"relative",width:"100%",selectors:{".ms-Button.ms-Button--compount":{marginBottom:"20px",selectors:{"&:last-child":{marginBottom:"0"}}}}},t],title:[d.title,{color:l.neutralPrimary,margin:"0",padding:"20px 36px 20px 28px"},c.xLarge,n&&[{color:l.white,marginBottom:"8px",padding:"26px 28px 28px"},c.xxLarge],s&&c.xxLarge],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"12px 12px 0 0",selectors:{"> *":{flex:"0 0 auto"}}}]}},void 0,{scope:"DialogContent"}),Cv=mn(),kv={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},wv={type:Qf.normal,className:"",topButtonsProps:[]},Iv=function(e){function t(t){var o=e.call(this,t)||this;return o._getSubTextId=function(){var e=o.props,t=e.ariaDescribedById,n=e.modalProps,i=e.dialogContentProps,r=e.subText,s=t||n&&n.subtitleAriaId;return s||(s=(r||i&&i.subText)&&o._defaultSubTextId),s},o._getTitleTextId=function(){var e=o.props,t=e.ariaLabelledById,n=e.modalProps,i=e.dialogContentProps,r=e.title,s=t||n&&n.titleAriaId;return s||(s=(r||i&&i.title)&&o._defaultTitleTextId),s},o._id=Fn("Dialog"),o._defaultTitleTextId=o._id+"-title",o._defaultSubTextId=o._id+"-subText",o}return h(t,e),t.prototype.render=function(){var e,t,o=this.props,n=o.className,i=o.containerClassName,r=o.contentClassName,s=o.elementToFocusOnDismiss,a=o.firstFocusableSelector,l=o.forceFocusInsideTrap,c=o.styles,d=o.hidden,u=o.ignoreExternalFocusing,p=o.isBlocking,h=o.isClickableOutsideFocusTrap,g=o.isDarkOverlay,f=o.isOpen,v=o.onDismiss,y=o.onDismissed,b=o.onLayerDidMount,x=o.responsiveMode,S=o.subText,C=o.theme,k=o.title,w=o.topButtonsProps,I=o.type,D=o.minWidth,P=o.maxWidth,T=o.modalProps,E=m({},T?T.layerProps:{onLayerDidMount:b});b&&!E.onLayerDidMount&&(E.onLayerDidMount=b),T&&T.dragOptions&&!T.dragOptions.dragHandleSelector?(e="ms-Dialog-draggable-header",t=m({},T.dragOptions,{dragHandleSelector:"."+e})):t=T&&T.dragOptions;var M=m({},kv,T,{layerProps:E,dragOptions:t}),R=m({},wv,this.props.dialogContentProps,{draggableHeaderClassName:e}),N=Cv(c,{theme:C,className:n||M.className,containerClassName:i||M.containerClassName,hidden:d,dialogDefaultMinWidth:D,dialogDefaultMaxWidth:P});return _.createElement(hv,m({elementToFocusOnDismiss:s,firstFocusableSelector:a,forceFocusInsideTrap:l,ignoreExternalFocusing:u,isClickableOutsideFocusTrap:h,onDismissed:y,responsiveMode:x},M,{isDarkOverlay:void 0!==g?g:M.isDarkOverlay,isBlocking:void 0!==p?p:M.isBlocking,isOpen:void 0!==f?f:!d,className:N.root,containerClassName:N.main,onDismiss:v||M.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),_.createElement(Sv,m({titleId:this._defaultTitleTextId,subTextId:this._defaultSubTextId,title:k,subText:S,showCloseButton:void 0!==p?!p:!M.isBlocking,topButtonsProps:w||R.topButtonsProps,type:void 0!==I?I:R.type,onDismiss:v||R.onDismiss,className:r||R.className},R),this.props.children))},t.defaultProps={hidden:!0},t=f([qs],t)}(_.Component),Dv={root:"ms-Dialog"},Pv=cn(Iv,function(e){var t,o=e.className,n=e.containerClassName,i=e.dialogDefaultMinWidth,r=void 0===i?"288px":i,s=e.dialogDefaultMaxWidth,a=void 0===s?"340px":s,l=e.hidden,c=e.theme;return{root:[So(Dv,c).root,c.fonts.medium,o],main:[{width:r,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: 480px)"]={width:"auto",maxWidth:a,minWidth:r},t)},!l&&{display:"flex"},n]}},void 0,{scope:"Dialog"});!function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(ev||(ev={}));var Tv,Ev=mn(),Mv=function(e){function t(t){var o=e.call(this,t)||this;return o._rootElement=_.createRef(),o._onClick=function(e){o._onAction(e)},o._onKeyDown=function(e){e.which!==zt.enter&&e.which!==zt.space||o._onAction(e)},o._onAction=function(e){var t=o.props,n=t.onClick,i=t.onClickHref;n?n(e):!n&&i&&(window.location.href=i,e.preventDefault(),e.stopPropagation())},o._warnDeprecations({accentColor:void 0}),o}return h(t,e),t.prototype.render=function(){var e,t=this.props,o=t.onClick,n=t.onClickHref,i=t.children,r=t.type,s=t.accentColor,a=t.styles,l=t.theme,c=t.className,d=di(this.props,ci,["className","onClick","type","role"]),u=!(!o&&!n);this._classNames=Ev(a,{theme:l,className:c,actionable:u,compact:r===ev.compact}),r===ev.compact&&s&&(e={borderBottomColor:s});var p=this.props.role||(u?o?"button":"link":void 0),h=u?0:void 0;return _.createElement("div",m({ref:this._rootElement,tabIndex:h,"data-is-focusable":u,role:p,className:this._classNames.root,onKeyDown:u?this._onKeyDown:void 0,onClick:u?this._onClick:void 0,style:e},d),i)},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:ev.normal},t}(bi),Rv={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},Nv={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},Bv={root:"ms-DocumentCardTitle"},Fv={root:"ms-DocumentCardLocation"},Lv={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},Av=cn(Mv,function(e){var t,o,n=e.className,i=e.theme,r=e.actionable,s=e.compact,a=i.palette,l=So(Lv,i);return{root:[l.root,{WebkitFontSmoothing:"antialiased",backgroundColor:a.white,border:"1px solid "+a.neutralLight,boxSizing:"border-box",maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:(t={},t["."+Fv.root+" + ."+Bv.root]={paddingTop:"4px"},t)},r&&[l.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:a.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid "+a.neutralTertiaryAlt,pointerEvents:"none"}}}],s&&[l.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:(o={},o["."+Rv.root]={borderRight:"1px solid "+a.neutralLight,borderBottom:0,maxHeight:"106px",maxWidth:"144px"},o["."+Rv.icon]={maxHeight:"32px",maxWidth:"32px"},o["."+Nv.root]={paddingBottom:"12px"},o["."+Bv.root]={paddingBottom:"12px 16px 8px 16px",fontSize:_t.mediumPlus,lineHeight:"16px"},o)}],n]}},void 0,{scope:"DocumentCard"}),Ov=mn(),Hv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.actions,n=t.views,i=t.styles,r=t.theme,s=t.className;return this._classNames=Ov(i,{theme:r,className:s}),_.createElement("div",{className:this._classNames.root},o&&o.map(function(t,o){return _.createElement("div",{className:e._classNames.action,key:o},_.createElement(nc,m({},t)))}),n>0&&_.createElement("div",{className:this._classNames.views},_.createElement(Fi,{iconName:"View",className:this._classNames.viewsIcon}),n))},t}(bi),Wv={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},zv=cn(Hv,function(e){var t=e.className,o=e.theme,n=o.palette,i=So(Wv,o);return{root:[i.root,{height:"34px",padding:"4px 12px",position:"relative"},t],action:[i.action,{float:"left",marginRight:"4px",color:n.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:"16px",height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:o.semanticColors.buttonText,cursor:"pointer"}}}],views:[i.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:_t.medium,verticalAlign:"top"}}},void 0,{scope:"DocumentCardActions"}),Vv=mn(),Kv=cn(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,o=e.people,n=e.styles,i=e.theme,r=e.className;return this._classNames=Vv(n,{theme:i,className:r,multiplePeople:o.length>1}),o&&0!==o.length?_.createElement("div",{className:this._classNames.root},this._renderAvatars(o),_.createElement("div",{className:this._classNames.details},_.createElement("span",{className:this._classNames.name},this._getNameString(o)),_.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return _.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return _.createElement("div",{className:this._classNames.avatar},_.createElement(or,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:Ci.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(bi),function(e){var t=e.theme,o=e.className,n=e.multiplePeople,i=t.palette,r=So(Nv,t);return{root:[r.root,n&&r.multiplePeople,{padding:"8px 16px",position:"relative"},o],avatars:[r.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[r.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:32,height:32,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid "+i.white,borderRadius:"50%"},":nth-of-type(2)":n&&{marginLeft:"-16px"}}}],details:[r.details,{left:n?"72px":"56px",height:32,position:"absolute",top:8,width:"calc(100% - 72px)"}],name:[r.name,{display:"block",fontSize:_t.small,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:i.neutralPrimary,fontWeight:yt.semibold}],activity:[r.activity,{display:"block",fontSize:_t.small,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:i.neutralSecondary}]}},void 0,{scope:"DocumentCardActivity"}),Uv=mn(),Gv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.children,o=e.styles,n=e.theme,i=e.className;return this._classNames=Uv(o,{theme:n,className:i}),_.createElement("div",{className:this._classNames.root},t)},t}(bi),Yv={root:"ms-DocumentCardDetails"},jv=cn(Gv,function(e){var t=e.className,o=e.theme;return{root:[So(Yv,o).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}},void 0,{scope:"DocumentCardDetails"}),qv=mn(),Zv=cn(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.location,o=e.locationHref,n=e.ariaLabel,i=e.onClick,r=e.styles,s=e.theme,a=e.className;return this._classNames=qv(r,{theme:s,className:a}),_.createElement("a",{className:this._classNames.root,href:o,onClick:i,"aria-label":n},t)},t}(bi),function(e){var t=e.theme,o=e.className,n=t.palette;return{root:[So(Fv,t).root,{fontSize:_t.small,color:n.neutralPrimary,display:"block",padding:"8px 16px",position:"relative",textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:n.themePrimary,cursor:"pointer"}}},o]}},void 0,{scope:"DocumentCardLocation"}),Xv=3,Qv=mn(),$v=cn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._renderPreviewList=function(e){var o=t.props.getOverflowDocumentCountText,n=e.length-Xv,i=n?o?o(n):"+"+n:null,r=e.slice(0,Xv).map(function(e,o){return _.createElement("li",{key:o},_.createElement(Ri,{className:t._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),_.createElement(Ms,m({},(e.linkProps,{href:e.url||e.linkProps&&e.linkProps.href})),e.name))});return _.createElement("div",null,_.createElement("ul",{className:t._classNames.fileList},r),i&&_.createElement("span",{className:t._classNames.fileListOverflowText},i))},t}return h(t,e),t.prototype.render=function(){var e,t,o=this.props,n=o.previewImages,i=o.styles,r=o.theme,s=o.className,a=n.length>1;return this._classNames=Qv(i,{theme:r,className:s,isFileList:a}),n.length>1?t=this._renderPreviewList(n):1===n.length&&(t=this._renderPreviewImage(n[0]),n[0].accentColor&&(e={borderBottomColor:n[0].accentColor})),_.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t=e.width,o=e.height,n=e.imageFit,i=e.previewIconProps,r=e.previewIconContainerClass;if(i)return _.createElement("div",{className:Yr(this._classNames.previewIcon,r),style:{width:t,height:o}},_.createElement(Fi,m({},i)));var s,a=_.createElement(Ri,{width:t,height:o,imageFit:n,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(s=_.createElement(Ri,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),_.createElement("div",null,a,s)},t}(bi),function(e){var t=e.theme,o=e.className,n=e.isFileList,i=t.palette,r=So(Rv,t);return{root:[r.root,{borderBottom:"1px solid "+i.neutralLight,position:"relative",backgroundColor:n?i.white:i.neutralLighterAlt,overflow:"hidden"},o],previewIcon:[r.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[r.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",marginBottom:"8px",overflow:"hidden",paddingLeft:"24px",position:"relative",textOverflow:"ellipsis",whiteSpace:"nowrap"},a:{fontSize:_t.small,textDecoration:"none",color:i.neutralDark,selectors:{":hover":{color:i.themePrimary}}}}},fileListIcon:{left:0,position:"absolute",top:0},fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block",fontSize:_t.small}}},void 0,{scope:"DocumentCardPreview"}),Jv=mn(),e_=function(e){function t(t){var o=e.call(this,t)||this;return o._onImageLoad=function(){o.setState({imageHasLoaded:!0})},o.state={imageHasLoaded:!1},o}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.width,n=e.height,i=e.imageFit,r=e.imageSrc;return this._classNames=Jv(t,this.props),_.createElement("div",{className:this._classNames.root},r&&_.createElement(Ri,{width:o,height:n,imageFit:i,src:r,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return _.createElement("div",{className:this._classNames.centeredIconWrapper},_.createElement(Fi,m({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return _.createElement(Fi,m({className:this._classNames.cornerIcon},e))},t}(bi),t_=cn(e_,function(e){var t=e.theme,o=e.className,n=e.height,i=e.width,r=t.palette;return{root:[{borderBottom:"1px solid "+r.neutralLight,position:"relative",backgroundColor:r.neutralLighterAlt,overflow:"hidden",height:n&&n+"px",width:i&&i+"px"},o],centeredIcon:[{height:"42px",width:"42px",fontSize:"42px"}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:"32px",width:"32px",fontSize:"32px",position:"absolute",overflow:"visible"}]}},void 0,{scope:"DocumentCardImage"}),o_=mn(),n_=5,i_=cn(function(e){function t(t){var o=e.call(this,t)||this;return o._titleElement=_.createRef(),o._measureTitleElement=_.createRef(),o._truncateTitle=function(){o.state.needMeasurement&&o._async.requestAnimationFrame(o._truncateWhenInAnimation)},o._truncateWhenInAnimation=function(){var e=o.props.title,t=o._measureTitleElement.current;if(t){var n=getComputedStyle(t);if(n.width&&n.lineHeight&&n.height){var i=t.clientWidth,r=t.scrollWidth,s=Math.floor((parseInt(n.height,10)+n_)/parseInt(n.lineHeight,10)),a=r/(parseInt(n.width,10)*s);if(a>1){var l=e.length/a-3;return o.setState({truncatedTitleFirstPiece:e.slice(0,l/2),truncatedTitleSecondPiece:e.slice(e.length-l/2),clientWidth:i,needMeasurement:!1})}}}return o.setState({needMeasurement:!1})},o._shrinkTitle=function(){var e=o.state,t=e.truncatedTitleFirstPiece,n=e.truncatedTitleSecondPiece;if(t&&n){var i=o._titleElement.current;if(!i)return;(i.scrollHeight>i.clientHeight+n_||i.scrollWidth>i.clientWidth)&&o.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:n.slice(1)})}},o.state={truncatedTitleFirstPiece:"",truncatedTitleSecondPiece:"",previousTitle:t.title,needMeasurement:!!t.shouldTruncate},o}return h(t,e),t.prototype.componentDidUpdate=function(){this.props.title!==this.state.previousTitle&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0,clientWidth:void 0,previousTitle:this.props.title,needMeasurement:!!this.props.shouldTruncate}),this._events.off(window,"resize",this._updateTruncation),this.props.shouldTruncate&&(this._truncateTitle(),requestAnimationFrame(this._shrinkTitle),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentDidMount=function(){this.props.shouldTruncate&&(this._truncateTitle(),this._events.on(window,"resize",this._updateTruncation))},t.prototype.componentWillUnmount=function(){this._events.off(window,"resize",this._updateTruncation)},t.prototype.render=function(){var e=this.props,t=e.title,o=e.shouldTruncate,n=e.showAsSecondaryTitle,i=e.styles,r=e.theme,s=e.className,a=this.state,l=a.truncatedTitleFirstPiece,c=a.truncatedTitleSecondPiece,d=a.needMeasurement;return this._classNames=o_(i,{theme:r,className:s,showAsSecondaryTitle:n}),d?_.createElement("div",{className:this._classNames.root,ref:this._measureTitleElement,title:t,style:{whiteSpace:"nowrap"}},t):o&&l&&c?_.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t},l,"…",c):_.createElement("div",{className:this._classNames.root,ref:this._titleElement,title:t},t)},t.prototype._updateTruncation=function(){var e=this;this._async.requestAnimationFrame(function(){if(e._titleElement.current){var t=e._titleElement.current.clientWidth;clearTimeout(e._titleTruncationTimer),e.state.clientWidth!==t&&(e._titleTruncationTimer=e._async.setTimeout(function(){return e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0,needMeasurement:!0})},250))}})},t}(bi),function(e){var t=e.theme,o=e.className,n=e.showAsSecondaryTitle,i=t.palette,r=t.fonts;return{root:[So(Bv,t).root,n?r.medium:r.large,{padding:"8px 16px",display:"block",overflow:"hidden",wordWrap:"break-word",height:n?"45px":"38px",lineHeight:n?"18px":"21px",color:n?i.neutralSecondary:i.neutralPrimary},o]}},void 0,{scope:"DocumentCardTitle"}),r_=mn(),s_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,o=e.styles,n=e.theme,i=e.className;return this._classNames=r_(o,{theme:n,className:i}),_.createElement("div",{className:this._classNames.root},_.createElement(Fi,{iconName:t}))},t}(bi),a_={root:"ms-DocumentCardLogo"},l_=cn(s_,function(e){var t=e.theme,o=e.className,n=t.palette;return{root:[So(a_,t).root,{fontSize:"32px",color:n.themePrimary,display:"block",padding:"16px 16px 0 16px"},o]}},void 0,{scope:"DocumentCardLogo"}),c_=mn(),d_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,o=e.status,n=e.styles,i=e.theme,r=e.className,s={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=c_(n,{theme:i,className:r}),_.createElement("div",{className:this._classNames.root},t&&_.createElement(Fi,m({},s)),o)},t}(bi),u_={root:"ms-DocumentCardStatus"},p_=cn(d_,function(e){var t=e.className,o=e.theme,n=o.palette,i=o.fonts;return{root:[So(u_,o).root,i.medium,{margin:"8px 16px",color:n.neutralPrimary,backgroundColor:n.neutralLighter,height:"32px"},t]}},void 0,{scope:"DocumentCardStatus"}),h_=function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],o=0,n=0;nthis._displayOnlyOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index "+e+" is not a selectable element.");return e-t+1}},e}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(Tv||(Tv={}));var m_,g_,f_,v_,__,y_,b_,x_,S_,C_=mn(),k_=function(e){function t(t){var o=e.call(this,t)||this;return o._panel=_.createRef(),o.dismiss=function(e){o._isOpen&&(o._isOpen=!1,o.props.onDismiss&&o.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&o.setState({isAnimating:!0},function(){o._async.setTimeout(o._onTransitionComplete,200)}))},o._allowScrollOnPanel=function(e){e?ia(e,o._events):o._events.off(o._scrollableContent),o._scrollableContent=e},o._onRenderNavigation=function(e){if(!o.props.onRenderNavigationContent&&!o.props.onRenderNavigation&&!o.props.hasCloseButton)return null;var t=o.props.onRenderNavigationContent,n=void 0===t?o._onRenderNavigationContent:t;return _.createElement("div",{className:o._classNames.navigation},n(e,o._onRenderNavigationContent))},o._onRenderNavigationContent=function(e){var t=e.closeButtonAriaLabel,n=e.hasCloseButton,i=zo();return n?_.createElement(nc,{styles:{root:{height:"auto",width:"44px",color:i.palette.neutralSecondary,fontSize:bt.large},rootHovered:{color:i.palette.neutralPrimary}},className:o._classNames.closeButton,onClick:o._onPanelClick,ariaLabel:t,title:t,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}):null},o._onRenderHeader=function(e,t,n){var i=e.headerText;return i?_.createElement("div",{className:o._classNames.header},_.createElement("p",{className:o._classNames.headerText,id:n,role:"heading","aria-level":2},i)):null},o._onRenderBody=function(e){return _.createElement("div",{className:o._classNames.content},e.children)},o._onRenderFooter=function(e){var t=o.props.onRenderFooterContent,n=void 0===t?null:t;return n?_.createElement("div",{className:o._classNames.footer},_.createElement("div",{className:o._classNames.footerInner},n())):null},o._onPanelClick=function(e){o.dismiss(e)},o._onTransitionComplete=function(){o._updateFooterPosition(),o.setState({isAnimating:!1}),o._isOpen&&o.props.onOpened&&o.props.onOpened(),!o._isOpen&&o.props.onDismissed&&o.props.onDismissed()},o._warnDeprecations({ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),o._isOpen=!!t.isOpen,o.state={isFooterSticky:!1,isAnimating:!1,id:Fn("Panel")},o}return h(t,e),t.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.open()},t.prototype.componentDidUpdate=function(e){var t=this._shouldListenForOuterClick(this.props),o=this._shouldListenForOuterClick(e);t&&!o?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!t&&o&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillReceiveProps=function(e){e.isOpen!==this._isOpen&&(e.isOpen?this.open():this.dismiss())},t.prototype.render=function(){var e=this.props,t=e.className,o=void 0===t?"":t,n=e.elementToFocusOnDismiss,i=e.firstFocusableSelector,r=e.focusTrapZoneProps,s=e.forceFocusInsideTrap,a=e.hasCloseButton,l=e.headerText,c=e.headerClassName,d=void 0===c?"":c,u=e.ignoreExternalFocusing,p=e.isBlocking,h=e.isFooterAtBottom,g=e.isLightDismiss,f=e.isHiddenOnDismiss,v=e.layerProps,y=e.type,b=e.styles,x=e.theme,S=e.customWidth,C=e.onLightDismissClick,k=void 0===C?this._onPanelClick:C,w=e.onRenderNavigation,I=void 0===w?this._onRenderNavigation:w,D=e.onRenderHeader,P=void 0===D?this._onRenderHeader:D,T=e.onRenderBody,E=void 0===T?this._onRenderBody:T,M=e.onRenderFooter,R=void 0===M?this._onRenderFooter:M,N=this.state,B=N.isFooterSticky,F=N.isAnimating,L=N.id,A=y===Tv.smallFixedNear||y===Tv.customNear,O=yn()?A:!A,H=l&&L+"-headerText",W=y===Tv.custom||y===Tv.customNear?{width:S}:{},z=di(this.props,ci),V=this._isOpen;if(!V&&!F&&!f)return null;this._classNames=C_(b,{theme:x,className:o,focusTrapZoneClassName:r?r.className:void 0,hasCloseButton:a,headerClassName:d,isAnimating:F,isFooterAtBottom:h,isFooterSticky:B,isOnRightSide:O,isOpen:V,isHiddenOnDismiss:f,type:y});var K,U=this._classNames;p&&V&&(K=_.createElement(sv,{className:U.overlay,isDarkThemed:!1,onClick:g?k:void 0}));var G=P(this.props,this._onRenderHeader,H);return _.createElement(_l,m({},v),_.createElement(Ga,{role:"dialog","aria-modal":"true",ariaLabelledBy:G?H:void 0,onDismiss:this.dismiss,className:U.hiddenPanel},_.createElement("div",m({"aria-hidden":!V&&F},z,{ref:this._panel,className:U.root}),K,_.createElement(bp,m({ignoreExternalFocusing:u,forceFocusInsideTrap:!(!p||f&&!V)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},r,{className:U.main,style:W,elementToFocusOnDismiss:n}),_.createElement("div",{className:U.commands,"data-is-visible":!0},I(this.props,this._onRenderNavigation)),_.createElement("div",{className:U.contentInner},G,_.createElement("div",{ref:this._allowScrollOnPanel,className:U.scrollableContent,"data-is-scrollable":!0},E(this.props,this._onRenderBody)),R(this.props,this._onRenderFooter))))))},t.prototype.open=function(){var e=this;this._isOpen||(this._isOpen=!0,this.setState({isAnimating:!0},function(){e._async.setTimeout(e._onTransitionComplete,200)}),this.props.onOpen&&this.props.onOpen())},t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,o=e.scrollHeight;this.setState({isFooterSticky:t-1,l=e.hidden?n._classNames.dropdownItemHidden:a&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:a?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem;return n.props.multiSelect?_.createElement(Tp,{id:s+"-list"+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:{onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e)},label:e.text,title:e.title?e.title:e.text,onRenderLabel:n._onRenderLabel.bind(n,e),className:l,role:"option","aria-selected":a?"true":"false",checked:a}):_.createElement(Qc,{id:s+"-list"+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:l,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":a?"true":"false",ariaLabel:e.ariaLabel,title:e.title?e.title:e.text},o(e,n._onRenderOption))},n._onRenderOption=function(e){return _.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderOption:t)(e,n._onRenderOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame(function(){var e=n.state.selectedIndices;if(e&&e[0]&&!n.props.options[e[0]].disabled){var t=Dt().querySelector("#"+n._id+"-list"+e[0]);n._focusZone.current.focusElement(t)}else n._focusZone.current.focus()}),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){e.disabled||(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=setTimeout(function(){n._isScrollIdle=!0},n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(e){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1}),n._dropDown.current&&n._dropDown.current.focus()},n._onDropdownBlur=function(e){n._isDisabled()||(n.setState({hasFocus:!1}),n.state.isOpen||n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){if(!n._isDisabled()&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),!n.props.onKeyDown||(n.props.onKeyDown(e),!e.defaultPrevented))){var t,o=n.state.selectedIndices.length?n.state.selectedIndices[0]:-1,i=e.altKey||e.metaKey,r=n.state.isOpen;switch(e.which){case zt.enter:n.setState({isOpen:!r});break;case zt.escape:if(!r)return;n.setState({isOpen:!1});break;case zt.up:if(i){if(r){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,o-1,o));break;case zt.down:i&&(e.stopPropagation(),e.preventDefault()),i&&!r||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,o+1,o));break;case zt.home:n.props.multiSelect||(t=n._moveIndex(e,1,0,o));break;case zt.end:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,o));break;case zt.space:break;default:return}t!==o&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),o=n.state.isOpen;if(!n.props.onKeyUp||(n.props.onKeyUp(e),!e.preventDefault)){switch(e.which){case zt.space:n.setState({isOpen:!o});break;default:return void(t&&o&&n.setState({isOpen:!1}))}e.stopPropagation(),e.preventDefault()}}},n._onZoneKeyDown=function(e){var t;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var o=e.altKey||e.metaKey;switch(e.which){case zt.up:o?n.setState({isOpen:!1}):n._host.current&&(t=Sr(n._host.current,n._host.current.lastChild,!0));break;case zt.home:case zt.end:case zt.pageUp:case zt.pageDown:break;case zt.down:!o&&n._host.current&&(t=xr(n._host.current,n._host.current.firstChild,!0));break;case zt.escape:n.setState({isOpen:!1});break;case zt.tab:return void n.setState({isOpen:!1});default:return}t&&t.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.preventDefault)){var t=n.state.isOpen;n._isDisabled()||n.setState({isOpen:!t})}},n._onFocus=function(e){var t=n.state,o=t.isOpen,i=t.selectedIndices,r=t.hasFocus,s=n.props,a=s.multiSelect,l=s.openOnKeyboardFocus;if(!n._isDisabled()){o||0!==i.length||a||n._moveIndex(e,1,0,-1),n.props.onFocus&&n.props.onFocus(e);var c={hasFocus:!0};l&&!r&&(c.isOpen=!0),n.setState(c)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0!==t&&(e=t),e},Wr(n),n._id=t.id||Fn("Dropdown"),n._isScrollIdle=!0,n.props.multiSelect){var i=void 0!==t.defaultSelectedKeys?t.defaultSelectedKeys:t.selectedKeys;o=n._getSelectedIndexes(t.options,i)}else{var r=void 0!==t.defaultSelectedKey?t.defaultSelectedKey:t.selectedKey;o=n._getSelectedIndexes(t.options,r),n._sizePosCache.updateOptions(t.options)}return n.state={isOpen:!1,selectedIndices:o,hasFocus:!1,calloutRenderEdge:void 0},n}return h(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return wm(this.props.options,this.state.selectedIndices)},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentWillReceiveProps=function(e){var t,o=e.options!==this.props.options;void 0===e[t=e.multiSelect?o&&void 0!==e.defaultSelectedKeys?"defaultSelectedKeys":"selectedKeys":o&&void 0!==e.defaultSelectedKey?"defaultSelectedKey":"selectedKey"]||e[t]===this.props[t]&&!o||this.setState({selectedIndices:this._getSelectedIndexes(e.options,e[t])}),e.options===this.props.options||e.multiSelect||this._sizePosCache.updateOptions(e.options)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._dropDown.current&&this._dropDown.current.focus(),this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this,t=this._id,o=this.props,n=o.className,i=o.label,r=o.options,s=o.ariaLabel,a=o.required,l=o.errorMessage,c=o.multiSelect,d=o.keytipProps,u=o.styles,p=o.theme,h=o.panelProps,g=o.calloutProps,f=o.onRenderTitle,v=void 0===f?this._onRenderTitle:f,y=o.onRenderContainer,b=void 0===y?this._onRenderContainer:y,x=o.onRenderCaretDown,S=void 0===x?this._onRenderCaretDown:x,C=this.state,k=C.isOpen,w=C.selectedIndices,I=C.hasFocus,D=C.calloutRenderEdge,P=o.onRenderPlaceholder||o.onRenderPlaceHolder||this._onRenderPlaceholder,T=wm(r,w),E=di(o,ci),M=this._isDisabled(),R=t+"-option",N=c||M?{role:void 0,ariaActiveDescendant:void 0,childRole:void 0,ariaSetSize:void 0,ariaPosInSet:void 0,ariaSelected:void 0}:{role:"listbox",ariaActiveDescendant:k&&1===w.length&&w[0]>=0?this._id+"-list"+w[0]:R,childRole:"option",ariaSetSize:this._sizePosCache.optionSetSize,ariaPosInSet:this._sizePosCache.positionInSet(w[0]),ariaSelected:void 0!==w[0]||void 0};this._classNames=G_(u,{theme:p,className:n,hasError:!!(l&&l.length>0),hasLabel:!!i,isOpen:k,required:a,disabled:M,isRenderingPlaceholder:!T.length,panelClassName:h?h.className:void 0,calloutClassName:g?g.className:void 0,calloutRenderEdge:D});var B=this._classNames.subComponentStyles?this._classNames.subComponentStyles.label:void 0;return _.createElement("div",{className:this._classNames.root},i&&_.createElement(Rp,{className:this._classNames.label,id:t+"-label",htmlFor:t,required:a,styles:B},i),_.createElement(Ds,{keytipProps:d,disabled:M},function(n){return _.createElement("div",m({},n,{"data-is-focusable":!M,ref:e._dropDown,id:t,tabIndex:M?-1:0,"aria-expanded":k?"true":"false",role:N.role,"aria-label":s,"aria-labelledby":i&&!s?t+"-label":void 0,"aria-describedby":rs(R,n["aria-describedby"]),"aria-activedescendant":k?N.ariaActiveDescendant:void 0,"aria-required":a,"aria-disabled":M,"aria-owns":k?t+"-list":void 0},E,{className:e._classNames.dropdown,onBlur:e._onDropdownBlur,onKeyDown:e._onDropdownKeyDown,onKeyUp:e._onDropdownKeyUp,onClick:e._onDropdownClick,onFocus:e._onFocus}),_.createElement("span",{id:R,className:e._classNames.title,"aria-atomic":!0,role:N.childRole,"aria-live":!I||M||c||k?"off":"assertive","aria-label":T.length?T[0].text:e._placeholder,"aria-setsize":N.ariaSetSize,"aria-posinset":N.ariaPosInSet,"aria-selected":N.ariaSelected},T.length?v(T,e._onRenderTitle):P(o,e._onRenderPlaceholder)),_.createElement("span",{className:e._classNames.caretDownWrapper},S(o,e._onRenderCaretDown)))}),k&&b(o,this._onRenderContainer),l&&l.length>0&&_.createElement("div",{className:this._classNames.errorMessage},l))},t.prototype.focus=function(e){this._dropDown.current&&-1!==this._dropDown.current.tabIndex&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var o=this,n=this.props,i=n.options,r=n.selectedKey,s=n.selectedKeys,a=n.multiSelect,l=n.notifyOnReselect,c=this.state.selectedIndices,d=void 0===c?[]:c,u=!!d&&d.indexOf(t)>-1,p=[];if(t=Math.max(0,Math.min(i.length-1,t)),void 0===r&&void 0===s){if(a||l||t!==d[0]){if(a)if(p=d?this._copyArray(d):[],u){var h=p.indexOf(t);h>-1&&p.splice(h,1)}else p.push(t);else p=[t];e.persist(),this.setState({selectedIndices:p},function(){o._onChange(e,i,t,u,a)})}}else this._onChange(e,i,t,u,a)},Object.defineProperty(t.prototype,"_placeholder",{get:function(){return this.props.placeholder||this.props.placeHolder},enumerable:!0,configurable:!0}),t.prototype._copyArray=function(e){for(var t=[],o=0,n=e;o=i.length&&(o=i.length-1);for(var r=0;i[o].itemType===mm.Header||i[o].itemType===mm.Divider||i[o].disabled;){if(r>=i.length)return n;o+t<0?o=i.length:o+t>=i.length&&(o=-1),o+=t,r++}return this.setSelectedIndex(e,o),o},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,o=void 0===t?this._onRenderList:t,n=e.label,i=e.ariaLabel,r=this._id;return _.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},_.createElement(is,{ref:this._focusZone,direction:$i.vertical,id:r+"-list",className:this._classNames.dropdownItems,"aria-label":i,"aria-labelledby":n&&!i?r+"-label":void 0,role:"listbox"},o(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,o=e.key;return t>0?_.createElement("div",{role:"separator",key:o,className:this._classNames.dropdownDivider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,o=void 0===t?this._onRenderOption:t,n=e.key;return _.createElement("div",{key:n,className:this._classNames.dropdownItemHeader},o(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var o=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==o&&o.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._getSelectedIndexes=function(e,t){if(void 0===t)return this.props.multiSelect?this._getAllSelectedIndices(e):-1!==(r=this._getSelectedIndex(e,null))?[r]:[];if(!Array.isArray(t))return-1!==(r=this._getSelectedIndex(e,t))?[r]:[];for(var o=[],n=0,i=t;n0,d=c?i:i.slice(0,l),u=(c?r:i.slice(l))||[];return _.createElement("div",{className:a.root},this.onRenderAriaDescription(),_.createElement("div",{className:a.itemContainer},s?this._getAddNewElement():null,_.createElement("ul",{className:a.members,role:"listbox"},this._onRenderVisiblePersonas(d,0===u.length&&1===i.length)),e?this._getOverflowElement(u):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&_.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t){var o=this,n=this.props,i=n.onRenderPersona,r=void 0===i?this._getPersonaControl:i,s=n.onRenderPersonaCoin,a=void 0===s?this._getPersonaCoinControl:s;return e.map(function(e,n){var i=t?r(e,o._getPersonaControl):a(e,o._getPersonaCoinControl);return _.createElement("li",{role:"option",key:(t?"persona":"personaCoin")+"-"+n,className:o._classNames.member},e.onClick?o._getElementWithOnClickEvent(i,e,n):o._getElementWithoutOnClickEvent(i,e,n))})},t.prototype._getElementWithOnClickEvent=function(e,t,o){var n=t.keytipProps;return _.createElement(my,m({},di(t,qn),this._getElementProps(t,o),{keytipProps:n,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,o){return _.createElement("div",m({},di(t,qn),this._getElementProps(t,o)),e)},t.prototype._getElementProps=function(e,t){var o=this._classNames;return{key:(e.imageUrl?"i":"")+t,"data-is-focusable":!0,role:"option",className:o.itemButton,title:e.personaName,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case J_.descriptive:return this._getDescriptiveOverflowElement(e);case J_.downArrow:return this._getIconElement("ChevronDown");case J_.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var o=e.map(function(e){return e.personaName}).join(", "),n=m({title:o},this.props.overflowButtonProps),i=Math.max(e.length,0),r=this._classNames;return _.createElement(my,m({},n,{ariaDescription:n.title,className:r.descriptiveOverflowButton}),_.createElement(or,{size:t,onRenderInitials:this._renderInitialsNotPictured(i),initialsColor:wi.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,o=t.overflowButtonProps,n=t.personaSize,i=this._classNames;return _.createElement(my,m({},o,{className:i.overflowButton}),_.createElement(or,{size:n,onRenderInitials:this._renderInitials(e,!0),initialsColor:wi.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,o=e.personaSize,n=this._classNames;return _.createElement(my,m({},t,{className:n.addButton}),_.createElement(or,{size:o,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var o=this._classNames;return function(){return _.createElement(Fi,{iconName:e,className:t?o.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return _.createElement("span",{className:t.overflowInitialsIcon},"+"+e)}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:Ci.size32},t}(bi),xy={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},Sy=cn(by,function(e){var t=e.className,o=e.theme,n=e.spacingAroundItemButton,i=void 0===n?2:n,r=o.palette,s=o.fonts,a=So(xy,o),l={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",cursor:"pointer",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[a.root,o.fonts.medium,{width:"auto"},t],addButton:[a.addButton,Xt(o,{inset:-1}),l,{fontSize:s.medium.fontSize,color:r.white,backgroundColor:r.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:r.themeDark},"&:focus":{backgroundColor:r.themeDark},"&:active":{backgroundColor:r.themeDarker},"&:disabled":{backgroundColor:r.neutralTertiaryAlt}}}],descriptiveOverflowButton:[a.descriptiveOverflowButton,Xt(o,{inset:-1}),l,{fontSize:s.small.fontSize,color:r.neutralSecondary,backgroundColor:r.neutralLight,marginLeft:2*i+"px"}],itemButton:[a.itemButton,l],itemContainer:[a.itemContainer,{display:"flex"}],members:[a.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-"+i+"px"}],member:[a.member,{display:"inline-flex",flex:"0 0 auto",margin:i+"px"}],overflowButton:[a.overflowButton,Xt(o,{inset:-1}),l,{fontSize:s.medium.fontSize,color:r.neutralSecondary,backgroundColor:r.neutralLight,marginLeft:2*i+"px"}],overflowInitialsIcon:[{color:r.neutralPrimary}],screenReaderOnly:eo}},void 0,{scope:"Facepile"});Object(Fo.loadStyles)([{rawString:".callout_e8e64567 .ms-Suggestions-itemButton{padding:0px;border:none}.callout_e8e64567 .ms-Suggestions{min-width:300px}\n"}]);var Cy="callout_e8e64567";Object(Fo.loadStyles)([{rawString:".root_18d80577{min-width:260px}.suggestionsItem_18d80577{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_18d80577:hover{background:"},{theme:"neutralLighter",defaultValue:"#f4f4f4"},{rawString:"}.suggestionsItem_18d80577:hover .closeButton_18d80577{display:block}.suggestionsItem_18d80577.suggestionsItemIsSuggested_18d80577{background:"},{theme:"neutralLight",defaultValue:"#eaeaea"},{rawString:"}.suggestionsItem_18d80577.suggestionsItemIsSuggested_18d80577:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c8c8"},{rawString:"}@media screen and (-ms-high-contrast: active){.suggestionsItem_18d80577.suggestionsItemIsSuggested_18d80577:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast: active){.suggestionsItem_18d80577.suggestionsItemIsSuggested_18d80577{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_18d80577.suggestionsItemIsSuggested_18d80577 .closeButton_18d80577:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a6a6a6"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#333333"},{rawString:"}@media screen and (-ms-high-contrast: active){.suggestionsItem_18d80577.suggestionsItemIsSuggested_18d80577 .itemButton_18d80577{color:HighlightText}}.suggestionsItem_18d80577 .closeButton_18d80577{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#666666"},{rawString:"}.suggestionsItem_18d80577 .closeButton_18d80577:hover{background:"},{theme:"neutralLight",defaultValue:"#eaeaea"},{rawString:"}.actionButton_18d80577{background:none;background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#eaeaea"},{rawString:";height:40px;width:100%;font-size:12px}[dir='ltr'] .actionButton_18d80577{padding-left:8px}[dir='rtl'] .actionButton_18d80577{padding-right:8px}html[dir='ltr'] .actionButton_18d80577{text-align:left}html[dir='rtl'] .actionButton_18d80577{text-align:right}.actionButton_18d80577:hover{background-color:"},{theme:"neutralLight",defaultValue:"#eaeaea"},{rawString:";cursor:pointer}.actionButton_18d80577:focus,.actionButton_18d80577:active{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_18d80577 .ms-Button-icon{font-size:16px;width:25px}.actionButton_18d80577 .ms-Button-label{margin:0 4px 0 9px}html[dir='rtl'] .actionButton_18d80577 .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_18d80577{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_18d80577{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#eaeaea"},{rawString:"}.suggestionsContainer_18d80577{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#eaeaea"},{rawString:"}.suggestionsNone_18d80577{text-align:center;color:#767676;font-size:12px;line-height:30px}.suggestionsSpinner_18d80577{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir='ltr'] .suggestionsSpinner_18d80577{padding-left:14px}html[dir='rtl'] .suggestionsSpinner_18d80577{padding-right:14px}html[dir='ltr'] .suggestionsSpinner_18d80577{text-align:left}html[dir='rtl'] .suggestionsSpinner_18d80577{text-align:right}.suggestionsSpinner_18d80577 .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_18d80577 .ms-Spinner-label{display:inline-block;margin:0px 10px 0 16px;vertical-align:middle}html[dir='rtl'] .suggestionsSpinner_18d80577 .ms-Spinner-label{margin:0px 16px 0 10px}.itemButton_18d80577.itemButton_18d80577{width:100%;padding:0px;min-width:0;height:100%}@media screen and (-ms-high-contrast: active){.itemButton_18d80577.itemButton_18d80577{color:WindowText}}.itemButton_18d80577.itemButton_18d80577:hover{color:"},{theme:"neutralDark",defaultValue:"#212121"},{rawString:"}.closeButton_18d80577.closeButton_18d80577{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast: active){.closeButton_18d80577.closeButton_18d80577{color:WindowText}}.closeButton_18d80577.closeButton_18d80577:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c8c8"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#212121"},{rawString:"}.suggestionsAvailable_18d80577{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}\n"}]);var ky="root_18d80577",wy="suggestionsItem_18d80577",Iy="closeButton_18d80577",Dy="suggestionsItemIsSuggested_18d80577",Py="itemButton_18d80577",Ty="actionButton_18d80577",Ey="buttonSelected_18d80577",My="suggestionsTitle_18d80577",Ry="suggestionsContainer_18d80577",Ny="suggestionsNone_18d80577",By="suggestionsSpinner_18d80577",Fy="suggestionsAvailable_18d80577",Ly=s,Ay=mn(),Oy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e,t=this.props,o=t.suggestionModel,n=t.RenderSuggestion,i=t.onClick,r=t.className,s=t.onRemoveItem,a=t.isSelectedOverride,l=t.removeButtonAriaLabel,c=t.styles,d=t.theme,u=c?Ay(c,{theme:d,className:r,suggested:o.selected||a}):{root:Yr("ms-Suggestions-item",Ly.suggestionsItem,(e={},e["is-suggested "+Ly.suggestionsItemIsSuggested]=o.selected||a,e),r),itemButton:Yr("ms-Suggestions-itemButton",Ly.itemButton),closeButton:Yr("ms-Suggestions-closeButton",Ly.closeButton)};return _.createElement("div",{className:u.root},_.createElement(Qc,{onClick:i,className:u.itemButton},n(o.item,this.props)),this.props.showRemoveButton?_.createElement(nc,{iconProps:{iconName:"Cancel",styles:{root:{fontSize:"12px"}}},title:l,ariaLabel:l,onClick:s,className:u.closeButton}):null)},t}(bi);Object(Fo.loadStyles)([{rawString:".suggestionsContainer_54c57b9b{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_54c57b9b .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f4f4f4"},{rawString:";cursor:pointer}.suggestionsContainer_54c57b9b .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_54c57b9b .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}\n"}]);var Hy="suggestionsContainer_54c57b9b",Wy=a,zy=function(e){function t(t){var o=e.call(this,t)||this;return o.SuggestionsItemOfProperType=Oy,o.currentIndex=-1,o}return h(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement},enumerable:!0,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,o=t.onRenderSuggestion,n=t.suggestionsItemClassName,i=t.resultsMaximumNumber,r=t.showRemoveButtons,s=t.suggestionsContainerAriaLabel,a=this.SuggestionsItemOfProperType,l=this.props.suggestions;return i&&(l=l.slice(0,i)),_.createElement("div",{className:Yr("ms-Suggestions-container",Wy.suggestionsContainer),id:"suggestion-list",role:"list","aria-label":s},l.map(function(t,i){return _.createElement("div",{ref:e._resolveRef(t.selected||i===e.currentIndex?"_selectedElement":""),key:t.item.key?t.item.key:i,id:"sug-"+i,role:"listitem","aria-label":t.ariaLabel},_.createElement(a,{id:"sug-item"+i,suggestionModel:t,RenderSuggestion:o,onClick:e._onClickTypedSuggestionsItem(t.item,i),className:n,showRemoveButton:r,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,i),isSelectedOverride:i===e.currentIndex}))}))},t.prototype.scrollSelected=function(){this._selectedElement&&void 0!==this._selectedElement.scrollIntoView&&this._selectedElement.scrollIntoView(!1)},t.prototype._onClickTypedSuggestionsItem=function(e,t){var o=this;return function(n){o.props.onSuggestionClick(n,e,t)}},t.prototype._onRemoveTypedSuggestionsItem=function(e,t){var o=this;return function(n){(0,o.props.onSuggestionRemove)(n,e,t),n.stopPropagation()}},f([sg],t.prototype,"_onClickTypedSuggestionsItem",null),f([sg],t.prototype,"_onRemoveTypedSuggestionsItem",null),t}(bi);Object(Fo.loadStyles)([{rawString:".root_084d4d9e{min-width:260px}.actionButton_084d4d9e{background:none;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0px;position:relative;width:100%;font-size:12px}html[dir='ltr'] .actionButton_084d4d9e{text-align:left}html[dir='rtl'] .actionButton_084d4d9e{text-align:right}.actionButton_084d4d9e:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f4f4f4"},{rawString:";cursor:pointer}.actionButton_084d4d9e:focus,.actionButton_084d4d9e:active{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_084d4d9e .ms-Button-icon{font-size:16px;width:25px}.actionButton_084d4d9e .ms-Button-label{margin:0 4px 0 9px}html[dir='rtl'] .actionButton_084d4d9e .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_084d4d9e{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_084d4d9e:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}.suggestionsTitle_084d4d9e{font-size:12px}.suggestionsSpinner_084d4d9e{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir='ltr'] .suggestionsSpinner_084d4d9e{padding-left:14px}html[dir='rtl'] .suggestionsSpinner_084d4d9e{padding-right:14px}html[dir='ltr'] .suggestionsSpinner_084d4d9e{text-align:left}html[dir='rtl'] .suggestionsSpinner_084d4d9e{text-align:right}.suggestionsSpinner_084d4d9e .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_084d4d9e .ms-Spinner-label{display:inline-block;margin:0px 10px 0 16px;vertical-align:middle}html[dir='rtl'] .suggestionsSpinner_084d4d9e .ms-Spinner-label{margin:0px 16px 0 10px}.itemButton_084d4d9e{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast: active){.itemButton_084d4d9e{color:WindowText}}.screenReaderOnly_084d4d9e{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}\n"}]);var Vy,Ky="root_084d4d9e",Uy="actionButton_084d4d9e",Gy="buttonSelected_084d4d9e",Yy="suggestionsTitle_084d4d9e",jy="suggestionsSpinner_084d4d9e",qy="itemButton_084d4d9e",Zy="screenReaderOnly_084d4d9e",Xy=l;!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(Vy||(Vy={}));var Qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e,t=this.props,o=t.renderItem,n=t.onExecute,i=t.isSelected,r=t.id,s=t.className;return n?_.createElement("div",{id:r,onClick:n,className:Yr("ms-Suggestions-sectionButton",s,Xy.actionButton,(e={},e["is-selected "+Xy.buttonSelected]=i,e))},o()):_.createElement("div",{id:r,className:Yr("ms-Suggestions-section",s,Xy.suggestionsTitle)},o())},t}(bi),$y=function(e){function t(t){var o=e.call(this,t)||this;return o.SuggestionsOfProperType=zy,o.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},o}return h(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.componentWillReceiveProps=function(e){var t=this;e.suggestions&&this.setState({suggestions:e.suggestions},function(){t.resetSelectedItem()})},t.prototype.componentWillUnmount=function(){this._suggestions.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,o=e.headerItemsProps,n=e.footerItemsProps;return _.createElement("div",{className:Yr("ms-Suggestions",t||"",Xy.root)},o&&this.renderHeaderItems(),this._renderSuggestions(),n&&this.renderFooterItems())},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){return this._suggestions&&this._suggestions.getCurrentItem()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions?this._suggestions.currentIndex:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement?this._selectedElement:this._suggestions.selectedElement},enumerable:!0,configurable:!0}),t.prototype.hasSuggestionSelected=function(){return this._suggestions&&this._suggestions.hasSuggestionSelected()},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,o=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==o},t.prototype.executeSelectedAction=function(){var e=this.props,t=e.headerItemsProps,o=e.footerItemsProps,n=this.state,i=n.selectedHeaderIndex,r=n.selectedFooterIndex;if(t&&-1!==i&&it+1)return this._suggestions.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o=e===Vy.header,n=o?this.props.headerItemsProps:this.props.footerItemsProps;if(n&&n.length>t+1)for(var i=t+1;i0)return this._suggestions.setSelectedSuggestion(o-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o,n=e===Vy.header,i=n?this.props.headerItemsProps:this.props.footerItemsProps;if(i)if((o=void 0!==t?t:i.length)>0)for(var r=o-1;r>=0;r--){var s=i[r];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:n?r:-1}),this.setState({selectedFooterIndex:n?-1:r}),this._suggestions.deselectAllSuggestions(),!0}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case Vy.header:return this.state.selectedHeaderIndex;case Vy.suggestion:return this._suggestions.currentIndex;case Vy.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case Vy.header:return Vy.suggestion;case Vy.suggestion:return Vy.footer;case Vy.footer:return Vy.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case Vy.header:return Vy.footer;case Vy.suggestion:return Vy.header;case Vy.footer:return Vy.suggestion}},t}(bi),Jy=r,eb=function(e){function t(t){var o=e.call(this,t)||this;return o.root=_.createRef(),o.suggestionsControl=_.createRef(),o.SuggestionsControlOfProperType=$y,o.isComponentMounted=!1,o.onQueryStringChanged=function(e){e!==o.state.queryString&&(o.setState({queryString:e}),o.props.onInputChanged&&o.props.onInputChanged(e),o.updateValue(e))},o.hidePicker=function(){o.props.onSuggestionsHidden&&o.isSuggestionsShown&&o.props.onSuggestionsHidden(),o.setState({suggestionsVisible:!1})},o.showPicker=function(e){void 0===e&&(e=!1),o.props.onSuggestionsShown&&!o.isSuggestionsShown&&o.props.onSuggestionsShown(),o.setState({suggestionsVisible:!0});var t=o.props.inputElement?o.props.inputElement.value:"";e&&o.updateValue(t)},o.completeSuggestion=function(){o.suggestionsControl.current&&o.suggestionsControl.current.hasSuggestionSelected()&&o.onChange(o.suggestionsControl.current.currentSuggestion.item)},o.onSuggestionClick=function(e,t,n){o.onChange(t),o._updateSuggestionsVisible(!1)},o.onSuggestionRemove=function(e,t,n){o.props.onRemoveSuggestion&&o.props.onRemoveSuggestion(t),o.suggestionsControl.current&&o.suggestionsControl.current.removeSuggestion(n)},o.onKeyDown=function(e){if(o.state.suggestionsVisible&&(!o.props.inputElement||o.props.inputElement.contains(e.target))){var t=e.which;switch(t){case zt.escape:o.hidePicker(),e.preventDefault(),e.stopPropagation();break;case zt.tab:case zt.enter:!e.shiftKey&&!e.ctrlKey&&o.suggestionsControl.current&&o.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):o._onValidateInput();break;case zt.del:o.props.onRemoveSuggestion&&o.suggestionsControl.current&&o.suggestionsControl.current.hasSuggestionSelected&&o.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(o.props.onRemoveSuggestion(o.suggestionsControl.current.currentSuggestion.item),o.suggestionsControl.current.removeSuggestion(),o.forceUpdate(),e.stopPropagation());break;case zt.up:case zt.down:o.suggestionsControl.current&&o.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),o._updateActiveDescendant())}}},o._onValidateInput=function(){if(o.state.queryString&&o.props.onValidateInput&&o.props.createGenericItem){var e=o.props.createGenericItem(o.state.queryString,o.props.onValidateInput(o.state.queryString)),t=o.suggestionStore.convertSuggestionsToSuggestionItems([e]);o.onChange(t[0].item)}},o.suggestionStore=t.suggestionsStore,o.state={queryString:"",didBind:!1},o}return h(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!0,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.componentWillReceiveProps=function(e){e.suggestionItems&&this.updateSuggestions(e.suggestionItems)},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return _.createElement("div",{ref:this.root,className:Yr("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.state.suggestionsVisible?_.createElement(yl,{className:Jy.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:Rs.bottomLeftEdge,directionalHintForRTL:Rs.bottomRightEdge,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},_.createElement(e,m({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this,o=e,n=e;if(Array.isArray(o))this.updateSuggestions(o,!0);else if(n&&n.then){var i=this.currentPromise=n;i.then(function(e){i===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(e,!0)})}},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(bi);Object(Fo.loadStyles)([{rawString:".resultContent_77ff388a{display:table-row}.resultContent_77ff388a .resultItem_77ff388a{display:table-cell;vertical-align:bottom}.peoplePickerPersona_77ff388a{width:180px}.peoplePickerPersona_77ff388a .ms-Persona-details{width:100%}.peoplePicker_77ff388a .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_77ff388a{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}\n"}]);var tb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(eb),ob=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return o=m({},e),m({},t),_.createElement("div",{className:Yr("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_77ff388a")},_.createElement(_y,m({presence:void 0!==o.presence?o.presence:ki.none,size:Ci.size40,className:Yr("ms-PeoplePicker-Persona","peoplePickerPersona_77ff388a"),showSecondaryText:!0},o)));var o},createGenericItem:nb},t}(tb);function nb(e,t){var o={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(o.imageInitials=In(e,yn())),o}var ib=function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}return e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e}(),rb=m;function sb(e,t){for(var o=[],n=2;n0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return function(e,t,o,n){return void 0!==e.create?e.create(t,o,n):lb(e)(t,o,n)}(t[e],o,n[e],n._defaultStyles&&n._defaultStyles[e])};i.isSlot=!0,o[e]=i}};for(var r in t)i(r);return o}function db(e,t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t||((o={})[e]=t,t=o),t;var o}function ub(e){for(var t=[],o=1;o=e&&o.setState({needsScroll:!0})})},o.state={firstFrameRendered:!1,needsScroll:!1},o}return h(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,o=e.compactCardHeight,n=e.expandedCardHeight,i=e.theme,r=e.mode,s=e.className,a=this.state,l=a.needsScroll,c=a.firstFrameRendered,d=o+n;this._classNames=Cb(t,{theme:i,compactCardHeight:o,className:s,expandedCardHeight:n,needsScroll:l,expandedCardFirstFrameRendered:r===bb.expanded&&c});var u=_.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return _.createElement(Sb,m({},this.props,{content:u,finalHeight:d,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(bi),wb=cn(kb,function(e){var t,o=e.theme,n=e.needsScroll,i=e.expandedCardFirstFrameRendered,r=e.compactCardHeight,s=e.expandedCardHeight,a=e.className,l=o.palette,c=So(xb,o);return{root:[c.root,{width:"340px",pointerEvents:"none",boxShadow:"0 0 20px rgba(0, 0, 0, .2)",border:"none",selectors:(t={},t[At]={border:"1px solid WindowText"},t)},a],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:r}],expandedCard:[c.expandedCard,{height:"1px",overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:"0",left:"24px",width:"292px",height:"1px",backgroundColor:l.neutralLighter}}},i&&{height:s}],expandedCardScroll:[c.expandedCardScroll,n&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}},void 0,{scope:"ExpandingCard"}),Ib={root:"ms-PlainCard-root"};var Db=mn(),Pb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onKeyDown=function(e){e.which===zt.escape&&t.props.onLeave&&t.props.onLeave(e)},t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme,n=e.className;this._classNames=Db(t,{theme:o,className:n});var i=_.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return _.createElement(Sb,m({},this.props,{content:i,className:this._classNames.root}))},t}(bi),Tb=cn(Pb,function(e){var t,o=e.theme,n=e.className;return{root:[So(Ib,o).root,{pointerEvents:"auto",boxShadow:"0 0 20px rgba(0, 0, 0, .2)",border:"none",selectors:(t={},t[At]={border:"1px solid WindowText"},t)},n]}},void 0,{scope:"PlainCard"}),Eb=mn(),Mb=function(e){function t(t){var o=e.call(this,t)||this;return o._hoverCard=cl(),o.dismiss=function(e){o._async.clearTimeout(o._openTimerId),o._async.clearTimeout(o._dismissTimerId),e?o._dismissTimerId=o._async.setTimeout(function(){o._setDismissedState()},o.props.cardDismissDelay):o._setDismissedState()},o._cardOpen=function(e){o._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==o.props.openHotKey||(o._async.clearTimeout(o._dismissTimerId),"mouseenter"===e.type&&(o._currentMouseTarget=e.currentTarget),o._executeCardOpen(e))},o._executeCardOpen=function(e){o._async.clearTimeout(o._openTimerId),o._openTimerId=o._async.setTimeout(function(){o.setState(function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:bb.compact,openMode:"keydown"===e.type?mb.hotKey:mb.hover}})},o.props.cardOpenDelay)},o._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==zt.escape)return;o.props.sticky||o._currentMouseTarget!==t.currentTarget&&t.which!==zt.escape||o.dismiss(!0)}else{if(o.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;o.dismiss(!0)}},o._setDismissedState=function(){o.setState({isHoverCardVisible:!1,mode:bb.compact,openMode:mb.hover})},o._instantOpenAsExpanded=function(e){o._async.clearTimeout(o._dismissTimerId),o.setState(function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:bb.expanded}})},o._setEventListeners=function(){var e=o.props,t=e.trapFocus,n=e.instantOpenOnClick,i=o._getTargetElement(),r=o._nativeDismissEvent;i&&(o._events.on(i,"mouseenter",o._cardOpen),o._events.on(i,"mouseleave",r),t?o._events.on(i,"keydown",o._cardOpen):(o._events.on(i,"focus",o._cardOpen),o._events.on(i,"blur",r)),n?o._events.on(i,"click",o._instantOpenAsExpanded):(o._events.on(i,"mousedown",r),o._events.on(i,"keydown",r)))},o._nativeDismissEvent=o._cardDismiss.bind(o,!0),o._childDismissEvent=o._cardDismiss.bind(o,!1),o.state={isHoverCardVisible:!1,mode:bb.compact,openMode:mb.hover},o}return h(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentDidUpdate=function(e,t){var o=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout(function(){o.setState({mode:bb.expanded},function(){o.props.onCardExpand&&o.props.onCardExpand()})},this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:bb.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,o=e.children,n=e.id,i=e.setAriaDescribedBy,r=void 0===i||i,s=e.styles,a=e.theme,l=e.className,c=e.type,d=e.plainCardProps,u=e.trapFocus,p=e.setInitialFocus,h=this.state,g=h.isHoverCardVisible,f=h.mode,v=h.openMode,y=n||Fn("hoverCard");this._classNames=Eb(s,{theme:a,className:l});var b=m({},di(this.props,ci),{id:y,trapFocus:!!u,firstFocus:p||v===mb.hotKey,targetElement:this._getTargetElement(),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),x=m({},t,b,{mode:f}),S=m({},d,b);return _.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":r&&g?y:void 0,"data-is-focusable":!Boolean(this.props.target)},o,g&&(c===gb.expanding?_.createElement(wb,m({},x)):_.createElement(Tb,m({},S))))},t.prototype._getTargetElement=function(){var e=this.props.target;switch(typeof e){case"string":return Dt().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:zt.c,type:gb.expanding},t}(bi),Rb=cn(Mb,function(e){var t=e.className,o=e.theme;return{host:[So(yb,o).host,t]}},void 0,{scope:"HoverCard"});function Nb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}},t)}function Bb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-2a8db1f5.woff') format('woff')"},icons:{InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:"",Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:""}},t)}function Fb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-360e3054.woff') format('woff')"},icons:{Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:"",Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",FontDecrease:""}},t)}function Lb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-8820ef0b.woff') format('woff')"},icons:{FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",FrontCamera:"",ChevronUpSmall:"",ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:""}},t)}function Ab(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-7c253e01.woff') format('woff')"},icons:{PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:"",HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",Cocktails:""}},t)}function Ob(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-15a649f8.woff') format('woff')"},icons:{Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:"",Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:""}},t)}function Hb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f6de453a.woff') format('woff')"},icons:{HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:"",SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:""}},t)}function Wb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-32b702b9.woff') format('woff')"},icons:{ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:"",SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductRelease:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:""}},t)}function zb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-bbebf62d.woff') format('woff')"},icons:{FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:"",CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:""}},t)}function Vb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-50fd817c.woff') format('woff')"},icons:{CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",AddFavorite:"",AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",AddHome:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:""}},t)}function Kb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-88060b8a.woff') format('woff')"},icons:{Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:"",ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:""}},t)}function Ub(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-1ca3e4a1.woff') format('woff')"},icons:{HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:"",BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:""}},t)}function Gb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-93bad8ee.woff') format('woff')"},icons:{ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:"",FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:""}},t)}function Yb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-d9534567.woff') format('woff')"},icons:{WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",UnSetColor:"",DeclineCall:"",RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:""}},t)}function jb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-0b48c801.woff') format('woff')"},icons:{ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:"",Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:""}},t)}function qb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-9a8324a9.woff') format('woff')"},icons:{TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:"",CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",AnalyticsView:"",Video360Generic:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",InsertSignatureLine:"",ArrangeByFrom:""}},t)}function Zb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-65272067.woff') format('woff')"},icons:{Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:"",OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:""}},t)}function Xb(e,t){void 0===e&&(e=""),ve({style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-dff5b9a6.woff') format('woff')"},icons:{Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:"",CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AppleTVPlay:"",AppleTVMonitor:"",AppleTVMicrophone:"",AppleTVMenu:"",AddReaction:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}},t)}var Qb=function(){ye("trash","delete"),ye("onedrive","onedrivelogo"),ye("alertsolid12","eventdatemissed12"),ye("sixpointstar","6pointstar"),ye("twelvepointstar","12pointstar"),ye("toggleon","toggleleft"),ye("toggleoff","toggleright")};ee("@uifabric/icons","6.5.2");var $b="https://spoprod-a.akamaihd.net/files/fabric/assets/icons/";function Jb(e,t){void 0===e&&(e=$b),[Nb,Bb,Fb,Lb,Ab,Ob,Hb,Wb,zb,Vb,Kb,Ub,Gb,Yb,jb,qb,Zb,Xb].forEach(function(o){return o(e,t)}),Qb()}var ex,tx,ox=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.content,o=e.styles,n=e.theme,i=e.disabled,r=e.visible,s=mn()(o,{theme:n,disabled:i,visible:r});return _.createElement("div",{className:s.container},_.createElement("span",{className:s.root},t))},t}(_.Component),nx=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},ix=function(e){return function(t){return Z({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:e.x,marginTop:e.y}]})}},rx=cn(ox,function(e){var t,o=e.theme,n=e.disabled,i=e.visible;return{container:[{backgroundColor:o.palette.neutralDark},n&&{opacity:.5,selectors:(t={},t[At]={color:"GrayText",opacity:1},t)},!i&&{visibility:"hidden"}],root:[o.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:o.palette.neutralDark,color:o.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},n&&{color:o.palette.neutralTertiaryAlt}]}},void 0,{scope:"KeytipContent"}),sx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e,t=this.props,o=t.keySequences,n=t.offset,i=t.overflowSetSequence,r=this.props.calloutProps;return e=ks(i?Cs(o,i):o),n&&(r=m({},r,{coverTarget:!0,directionalHint:Rs.topLeftEdge})),r&&void 0!==r.directionalHint||(r=m({},r,{directionalHint:Rs.bottomCenter})),_.createElement(yl,m({},r,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:n?ix(n):nx,preventDismissOnScroll:!0,target:e}),_.createElement(rx,m({},this.props)))},t}(_.Component),ax=function(e){return{root:[{zIndex:Gt.KeytipLayer}]}},lx=function(){function e(){this.nodeMap={},this.root={id:bs,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,o){var n=this._getFullSequence(e),i=Ss(n);n.pop();var r=this._getParentID(n),s=this._createNode(i,r,[],e,o);this.nodeMap[t]=s;var a=this.getNode(r);a&&a.children.push(i)},e.prototype.updateNode=function(e,t){var o=this._getFullSequence(e),n=Ss(o);o.pop();var i=this._getParentID(o),r=this.nodeMap[t],s=this.getNode(i);if(r){if(s&&r.id!==n){var a=s.children.indexOf(r.id);a>=0&&(s.children[a]=n)}r.id=n,r.keySequences=e.keySequences,r.overflowSetSequence=e.overflowSetSequence,r.onExecute=e.onExecute,r.onReturn=e.onReturn,r.hasDynamicChildren=e.hasDynamicChildren,r.hasMenu=e.hasMenu,r.parent=i,r.disabled=e.disabled}},e.prototype.removeNode=function(e,t){var o=this._getFullSequence(e),n=Ss(o);o.pop();var i=this._getParentID(o),r=this.getNode(i);r&&r.children.splice(r.children.indexOf(n),1),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t){var o=this;return as(this.getNodes(t.children),function(t){return o._getNodeSequence(t)===e&&!t.disabled})},e.prototype.getPartiallyMatchedNodes=function(e,t){var o=this;return this.getNodes(t.children).filter(function(t){return 0===o._getNodeSequence(t).indexOf(e)&&!t.disabled})},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var o=e.children;return Object.keys(this.nodeMap).reduce(function(e,n){return o.indexOf(t.nodeMap[n].id)>=0&&!t.nodeMap[n].persisted&&e.push(t.nodeMap[n].id),e},[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce(function(o,n){return e.indexOf(t.nodeMap[n].id)>=0&&o.push(t.nodeMap[n]),o},[])},e.prototype.getNode=function(e){return as(On(this.nodeMap),function(t){return t.id===e})},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=e.keySequences.slice();e.overflowSetSequence&&(t=Cs(t,e.overflowSetSequence)),t.pop();var o=0===t.length?this.root.id:Ss(t),n=!1;if(this.currentKeytip.overflowSetSequence)n=Ss(this.currentKeytip.keySequences)===o;return n||this.currentKeytip.id===o}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:Ss(e)},e.prototype._getFullSequence=function(e){var t=e.keySequences.slice();return e.overflowSetSequence&&(t=Cs(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=e.keySequences.slice();return e.overflowSetSequence&&(t=Cs(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,o,n,i){var r=this,s=n.keySequences,a=n.hasDynamicChildren,l=n.overflowSetSequence,c=n.hasMenu,d=n.onExecute,u=n.onReturn,p=n.disabled,h={id:e,keySequences:s,overflowSetSequence:l,parent:t,children:o,onExecute:d,onReturn:u,hasDynamicChildren:a,hasMenu:c,disabled:p,persisted:i};return h.children=Object.keys(this.nodeMap).reduce(function(t,o){return r.nodeMap[o].parent===e&&t.push(r.nodeMap[o].id),t},[]),h},e}();function cx(e,t){return!!as(e,function(e){return function(e,t){if(e.key!==t.key)return!1;var o=e.modifierKeys,n=t.modifierKeys;if(!o&&n||o&&!n)return!1;if(o&&n){if(o.length!==n.length)return!1;o=o.sort(),n=n.sort();for(var i=0;i0){var a=s.filter(function(e){return!e.persisted}).map(function(e){return e.id});this.showKeytips(a),this._currentSequence=o}}},t.prototype.showKeytips=function(e){for(var t=0,o=this._keytipManager.getKeytips();t=0?n.visible=!0:n.overflowSetSequence&&e.indexOf(Ss(Cs(n.keySequences,n.overflowSetSequence)))>=0?n.visible=!0:n.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(){this._keytipManager.shouldEnterKeytipMode&&(this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode())},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var o=this._keytipTree.getNode(Ss(e));o&&o.onExecute&&o.onExecute(this._getKtpExecuteTarget(o),this._getKtpTarget(o))},t.prototype._getVisibleKeytips=function(e){var t={};return e.filter(function(e){var o=Ss(e.keySequences);return t[o]=t[o]?t[o]+1:1,e.visible&&1===t[o]})},t.prototype._getModifierKey=function(e,t){var o=[];return t.altKey&&"Alt"!==e&&o.push(ex.alt),t.ctrlKey&&"Control"!==e&&o.push(ex.ctrl),t.shiftKey&&"Shift"!==e&&o.push(ex.shift),t.metaKey&&"Meta"!==e&&o.push(ex.meta),o.length?o:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=e.keySequences.slice();if(e.overflowSetSequence&&(t=Cs(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(Ss(t)),this._keytipTree.currentKeytip){var o=this._keytipTree.getChildren();o.length&&this.showKeytips(o),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout(function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])},300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,o=this._delayedKeytipQueue.indexOf(e);o>=0&&(this._delayedKeytipQueue.splice(o,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout(function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])},300))},t.prototype._getKtpExecuteTarget=function(e){return Dt().querySelector((t=e.id,"["+ys+'="'+t+'"]'));var t},t.prototype._getKtpTarget=function(e){return Dt().querySelector(ks(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!ms(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[dx],keytipExitSequences:[ux],keytipReturnSequences:[px],content:""},t}(bi),gx=cn(mx,function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}},void 0,{scope:"KeytipLayer"});ee("office-ui-fabric-react","6.185.0");var fx,vx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.componentDidMount=function(){ml(this.props.id)},t.prototype.componentWillUnmount=function(){ml(this.props.id)},t.prototype.render=function(){return _.createElement("div",m({},this.props,{className:Yr("ms-LayerHost",this.props.className)}))},t}(_.Component),_x=mn(),yx=cn(function(e){function t(t){var o=e.call(this,t)||this;return o._root=_.createRef(),o._onMouseDown=function(e){var t=o.props,n=t.isEnabled,i=t.onShouldStartSelection;o._isMouseEventOnScrollbar(e)||o._isInSelectionToggle(e)||o._isTouch||!n||o._isDragStartInSelection(e)||i&&!i(e)||o._scrollableSurface&&0===e.button&&o._root.current&&(o._selectedIndicies={},o._preservedIndicies=void 0,o._events.on(window,"mousemove",o._onAsyncMouseMove),o._events.on(o._scrollableParent,"scroll",o._onAsyncMouseMove),o._events.on(window,"click",o._onMouseUp,!0),o._autoScroll=new tg(o._root.current),o._scrollTop=o._scrollableSurface.scrollTop,o._rootRect=o._root.current.getBoundingClientRect(),o._onMouseMove(e))},o._onTouchStart=function(e){o._isTouch=!0,o._async.setTimeout(function(){o._isTouch=!1},0)},o._onPointerDown=function(e){"touch"===e.pointerType&&(o._isTouch=!0,o._async.setTimeout(function(){o._isTouch=!1},0))},o.state={dragRect:void 0},o}return h(t,e),t.prototype.componentDidMount=function(){this._scrollableParent=ca(this._root.current),this._scrollableSurface=this._scrollableParent===window?document.body:this._scrollableParent;var e=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(e,"mousedown",this._onMouseDown),this._events.on(e,"touchstart",this._onTouchStart,!0),this._events.on(e,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,o=e.children,n=e.theme,i=e.className,r=e.styles,s=this.state.dragRect,a=_x(r,{theme:n,className:i});return _.createElement("div",m({},t,{className:a.root,ref:this._root}),o,s&&_.createElement("div",{className:a.dragMask}),s&&_.createElement("div",{className:a.box,style:s},_.createElement("div",{className:a.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,o=t.offsetWidth-t.clientWidth;if(o){var n=t.getBoundingClientRect();if(yn()){if(e.clientXn.left+t.clientWidth)return!0;if(e.clientY>n.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left,top:this._rootRect.top+(this._scrollTop-this._scrollableSurface.scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame(function(){t._onMouseMove(e)}),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),o={x:e.clientX-t.left,y:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=o),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||dg(this._dragOrigin,o)>5){if(!this.state.dragRect){var n=this.props.selection;e.shiftKey||n.setAllSelected(!1),this._preservedIndicies=n&&n.getSelectedIndices&&n.getSelectedIndices()}var i=this.props.isDraggingConstrainedToRoot?{x:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),y:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{x:this._lastMouseEvent.clientX-t.left,y:this._lastMouseEvent.clientY-t.top},r={left:Math.min(this._dragOrigin.x,i.x),top:Math.min(this._dragOrigin.y,i.y),width:Math.abs(i.x-this._dragOrigin.x),height:Math.abs(i.y-this._dragOrigin.y)};this._evaluateSelection(r,t),this.setState({dragRect:r})}return!1}},t.prototype._onMouseUp=function(e){this._events.off(window),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return e.topt.y&&e.leftt.x},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var o=this._root.current.querySelectorAll("[data-selection-index]"),n=0;n0&&a.height>0&&(this._itemRectCache[s]=a),a.tope.top&&a.lefte.left?this._selectedIndicies[s]=!0:delete this._selectedIndicies[s]}var l=this._allSelectedIndices||{};for(var s in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(s)&&(this._allSelectedIndices[s]=!0);if(this._preservedIndicies)for(var c=0,d=this._preservedIndicies;c0?_.createElement("button",{className:c.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":d,"aria-expanded":e.isExpanded?"true":"false"},_.createElement(Fi,{className:c.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,o))},t.prototype._renderLink=function(e,t,o){var n=this.props,i=n.styles,r=n.groups,s=n.theme,a=Mx(i,{theme:s,groups:r});return _.createElement("li",{key:e.key||t,role:"listitem",className:a.navItem},this._renderCompositeLink(e,t,o),e.isExpanded?this._renderLinks(e.links,++o):null)},t.prototype._renderLinks=function(e,t){var o=this;if(!e||!e.length)return null;var n=e.map(function(e,n){return o._renderLink(e,n,t)}),i=this.props,r=i.styles,s=i.groups,a=i.theme,l=Mx(r,{theme:a,groups:s});return _.createElement("ul",{role:"list",className:l.navItems},n)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),this._toggleCollapsed(e),t.preventDefault(),t.stopPropagation()},t.prototype._onLinkExpandClicked=function(e,t){var o=this.props.onLinkExpandClick;o&&o(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._onNavAnchorLinkClicked=function(e,t){this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===re()||!e.url)return!1;(bx=bx||document.createElement("a")).href=e.url||"";var t=bx.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(bx.href=location.hash.substring(1),bx.href===t)))},t.prototype._isGroupExpanded=function(e){return e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){if(e.name){var t=m({},this.state.isGroupCollapsed,((o={})[e.name]=this._isGroupExpanded(e),o));this.setState({isGroupCollapsed:t})}var o},t.defaultProps={groups:null},t}(_.Component),Nx=cn(Rx,function(e){var t=e.className,o=e.theme,n=e.isOnTop,i=e.isExpanded,r=e.isGroup,s=e.isLink,a=e.isSelected,l=e.isDisabled,c=e.isButtonEntry,d=e.navHeight,u=void 0===d?36:d,p=e.position,h=e.leftPadding,m=void 0===h?20:h,g=e.leftPaddingExpanded,f=void 0===g?28:g,v=e.rightPadding,_=void 0===v?20:v,y=o.palette,b=o.semanticColors,x=So(Dx,o);return{root:[x.root,t,o.fonts.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},n&&[{position:"absolute"},Jo.slideRightIn40]],linkText:[x.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[x.compositeLink,{display:"block",position:"relative",color:b.bodyText,backgroundColor:b.bodyBackground},i&&"is-expanded",a&&"is-selected",l&&"is-disabled",l&&{color:b.disabledText}],link:[x.link,Xt(o),{display:"block",position:"relative",height:u+"px",width:"100%",lineHeight:u+"px",textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:m,paddingRight:_,color:b.bodyText,selectors:l?{}:{".ms-Nav-compositeLink:hover &":{backgroundColor:y.neutralLighterAlt,color:b.bodyText}}},a&&{color:y.themePrimary,backgroundColor:y.neutralLighter,selectors:{"&:after":{borderLeft:"2px solid "+y.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},l&&{color:b.disabledText},c&&{color:y.themePrimary}],chevronButton:[x.chevronButton,Xt(o),{display:"block",fontWeight:yt.regular,fontSize:_t.small,textAlign:"left",lineHeight:u+"px",margin:"5px 0",padding:"0px, "+_+"px, 0px, "+f+"px",border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:b.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:"inherit"},"&:hover":{color:b.bodyText,backgroundColor:y.neutralLighterAlt},"$compositeLink:hover &":{color:b.bodyText,backgroundColor:y.neutralLighterAlt}}},r&&[{width:"100%",height:u+"px",borderBottom:"1px solid "+b.bodyDivider},Nt.large],s&&[{display:"block",width:f-2+"px",height:u-2+"px",position:"absolute",top:"1px",left:p+"px",zIndex:Gt.Nav,padding:0,margin:0}],a&&{color:y.themePrimary,backgroundColor:y.neutralLighterAlt,selectors:{"&:after":{borderLeft:"2px solid "+y.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}}],chevronIcon:[x.chevronIcon,{position:"absolute",left:"8px",height:u+"px",lineHeight:u+"px",fontSize:"12px",transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[x.navItem,{padding:0}],navItems:[x.navItems,{listStyleType:"none",padding:0}],group:[x.group,i&&"is-expanded"],groupContent:[x.groupContent,{display:"none",marginBottom:"40px"},Jo.slideDownIn20,i&&{display:"block"}]}},void 0,{scope:"Nav"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(Ex||(Ex={}));var Bx={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};var Fx,Lx=s,Ax=mn(),Ox=cn(Oy,function(e){var t,o,n,i=e.className,r=e.theme,s=e.suggested,a=r.palette,l=So(Bx,r);return{root:[l.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:a.neutralLighter},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},i],itemButton:[l.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(t={},t[At]={color:"WindowText",selectors:{":hover":{background:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"}}},t[":hover"]={color:a.neutralDark},t)},s&&[l.isSuggested,{background:a.neutralLight,selectors:(o={":hover":{background:a.neutralTertiaryAlt}},o[At]={background:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},o)}]],closeButton:[l.closeButton,{display:"none",color:a.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(n={":hover, :active":{background:a.neutralTertiaryAlt,color:a.neutralDark}},n[At]={color:"WindowText"},n)},s&&{selectors:{":hover, :active":{background:a.neutralTertiary,color:a.neutralPrimary}}}]}},void 0,{scope:"SuggestionItem"}),Hx=function(e){function t(t){var o=e.call(this,t)||this;return o._forceResolveButton=_.createRef(),o._searchForMoreButton=_.createRef(),o._selectedElement=_.createRef(),o.tryHandleKeyDown=function(e,t){var n=!1,i=null,r=o.state.selectedActionType,s=o.props.suggestions.length;if(e===zt.down)switch(r){case Ex.forceResolve:s>0?(o._refocusOnSuggestions(e),i=Ex.none):i=o._searchForMoreButton.current?Ex.searchMore:Ex.forceResolve;break;case Ex.searchMore:o._forceResolveButton.current?i=Ex.forceResolve:s>0?(o._refocusOnSuggestions(e),i=Ex.none):i=Ex.searchMore;break;case Ex.none:-1===t&&o._forceResolveButton.current&&(i=Ex.forceResolve)}else if(e===zt.up)switch(r){case Ex.forceResolve:o._searchForMoreButton.current?i=Ex.searchMore:s>0&&(o._refocusOnSuggestions(e),i=Ex.none);break;case Ex.searchMore:s>0?(o._refocusOnSuggestions(e),i=Ex.none):o._forceResolveButton.current&&(i=Ex.forceResolve);break;case Ex.none:-1===t&&o._searchForMoreButton.current&&(i=Ex.searchMore)}return null!==i&&(o.setState({selectedActionType:i}),n=!0),n},o._getMoreResults=function(){o.props.onGetMoreResults&&o.props.onGetMoreResults()},o._forceResolve=function(){o.props.createGenericItem&&o.props.createGenericItem()},o._shouldShowForceResolve=function(){return!!o.props.showForceResolve&&o.props.showForceResolve()},o._onClickTypedSuggestionsItem=function(e,t){return function(n){o.props.onSuggestionClick(n,e,t)}},o._refocusOnSuggestions=function(e){"function"==typeof o.props.refocusSuggestions&&o.props.refocusSuggestions(e)},o._onRemoveTypedSuggestionsItem=function(e,t){return function(n){(0,o.props.onSuggestionRemove)(n,e,t),n.stopPropagation()}},o.state={selectedActionType:Ex.none},o}return h(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e=this,t=this.props,o=t.forceResolveText,n=t.mostRecentlyUsedHeaderText,i=t.searchForMoreText,r=t.className,s=t.moreSuggestionsAvailable,a=t.noResultsFoundText,l=t.suggestions,c=t.isLoading,d=t.isSearching,u=t.loadingText,p=t.onRenderNoResultFound,h=t.searchingText,g=t.isMostRecentlyUsedVisible,f=t.resultsMaximumNumber,v=t.resultsFooterFull,y=t.resultsFooter,b=t.isResultsFooterVisible,x=void 0===b||b,S=t.suggestionsAvailableAlertText,C=t.suggestionsHeaderText,k=t.suggestionsClassName,w=t.theme,I=t.styles;this._classNames=I?Ax(I,{theme:w,className:r,suggestionsClassName:k,forceResolveButtonSelected:this.state.selectedActionType===Ex.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===Ex.searchMore}):{root:Yr("ms-Suggestions",r,Lx.root),title:Yr("ms-Suggestions-title",Lx.suggestionsTitle),searchForMoreButton:Yr("ms-SearchMore-button",Lx.actionButton,(R={},R["is-selected "+Lx.buttonSelected]=this.state.selectedActionType===Ex.searchMore,R)),forceResolveButton:Yr("ms-forceResolve-button",Lx.actionButton,(N={},N["is-selected "+Lx.buttonSelected]=this.state.selectedActionType===Ex.forceResolve,N)),suggestionsAvailable:Yr("ms-Suggestions-suggestionsAvailable",Lx.suggestionsAvailable),suggestionsContainer:Yr("ms-Suggestions-container",Lx.suggestionsContainer,k),noSuggestions:Yr("ms-Suggestions-none",Lx.suggestionsNone)};var D=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,P=I?{styles:D}:{className:Yr("ms-Suggestions-spinner",Lx.suggestionsSpinner)},T=function(){return a?_.createElement("div",{role:"alert",className:e._classNames.noSuggestions},a):null},E=C;g&&n&&(E=n);var M=void 0;x&&(M=l.length>=f?v:y);var R,N,B=!(l&&l.length||c);return _.createElement("div",{className:this._classNames.root},E?_.createElement("div",{className:this._classNames.title},E):null,o&&this._shouldShowForceResolve()&&_.createElement(Qc,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,onClick:this._forceResolve},o),c&&_.createElement(If,m({},P,{label:u})),B?p?p(void 0,T):T():this._renderSuggestions(),i&&s&&_.createElement(Qc,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:{iconName:"Search"},onClick:this._getMoreResults},i),d?_.createElement(If,m({},P,{label:h})):null,!M||s||g||d?null:_.createElement("div",{className:this._classNames.title},M(this.props)),_.createElement("span",{role:"alert","aria-live":"polite",className:this._classNames.suggestionsAvailable},!c&&!d&&l&&l.length>0&&S?S:null))},t.prototype.hasSuggestedAction=function(){return void 0!==this._searchForMoreButton.current||void 0!==this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==Ex.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case Ex.forceResolve:this._forceResolve();break;case Ex.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:Ex.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:Ex.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:Ex.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:Ex.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){this._selectedElement.current&&void 0!==this._selectedElement.current.scrollIntoView&&this._selectedElement.current.scrollIntoView(!1)},t.prototype._renderSuggestions=function(){var e=this,t=this.props,o=t.onRenderSuggestion,n=t.removeSuggestionAriaLabel,i=t.suggestionsItemClassName,r=t.resultsMaximumNumber,s=t.showRemoveButtons,a=t.suggestionsContainerAriaLabel,l=t.suggestionsListId,c=this.props.suggestions,d=Ox,u=-1;return c.some(function(e,t){return!!e.selected&&(u=t,!0)}),r&&(c=u>=r?c.slice(u-r+1,u+1):c.slice(0,r)),0===c.length?null:_.createElement("div",{className:this._classNames.suggestionsContainer,id:l,role:"listbox","aria-label":a},c.map(function(t,r){return _.createElement("div",{ref:t.selected?e._selectedElement:"",key:t.item.key?t.item.key:r,id:"sug-"+r,"aria-selected":t.selected,role:"option","aria-label":t.ariaLabel},_.createElement(d,{suggestionModel:t,RenderSuggestion:o,onClick:e._onClickTypedSuggestionsItem(t.item,r),className:i,showRemoveButton:s,removeButtonAriaLabel:n,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,r)}))}))},t}(bi),Wx=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.name||t.primaryText}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t){e&&e.length>0?(this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])):(this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0)},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}(),zx={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function Vx(e){var t=e.className,o=e.suggestionsClassName,n=e.theme,i=e.forceResolveButtonSelected,r=e.searchForMoreButtonSelected,s=n.palette,a=So(zx,n),l={background:"none",backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid "+s.neutralLight,height:40,textAlign:"left",width:"100%",fontSize:_t.small,selectors:{":hover":{backgroundColor:s.neutralLight,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:_t.icon,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},c={backgroundColor:s.themeLight};return{root:[a.root,{minWidth:260},t],suggestionsContainer:[a.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,borderBottom:"1px solid "+s.neutralLight},o],title:[a.title,{padding:"0 12px",fontSize:_t.small,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid "+s.neutralLight}],forceResolveButton:[a.forceResolveButton,l,i&&[a.isSelected,c]],searchForMoreButton:[a.searchForMoreButton,l,r&&[a.isSelected,c]],noSuggestions:[a.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:_t.small,lineHeight:30}],suggestionsAvailable:[a.suggestionsAvailable,eo],subComponentStyles:{spinner:{root:[a.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:_t.small}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(Fx||(Fx={})),Object(Fo.loadStyles)([{rawString:".pickerText_de6ce0eb{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a6a6a6"},{rawString:";min-width:180px;min-height:30px}.pickerText_de6ce0eb:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#333333"},{rawString:"}.pickerText_de6ce0eb.inputFocused_de6ce0eb{border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}.pickerInput_de6ce0eb{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:none;padding:0 6px 0px;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_de6ce0eb{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.screenReaderOnly_de6ce0eb{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}\n"}]);var Kx="pickerText_de6ce0eb",Ux="inputFocused_de6ce0eb",Gx="pickerInput_de6ce0eb",Yx="pickerItems_de6ce0eb",jx="screenReaderOnly_de6ce0eb",qx=c,Zx=mn();var Xx=function(e){function t(t){var o=e.call(this,t)||this;o.root=_.createRef(),o.input=_.createRef(),o.focusZone=_.createRef(),o.suggestionElement=_.createRef(),o.SuggestionOfProperType=Hx,o._styledSuggestions=cn(o.SuggestionOfProperType,Vx,void 0,{scope:"Suggestions"}),o.dismissSuggestions=function(e){var t=function(){o.props.onDismiss&&o.props.onDismiss(e,o.suggestionStore.currentSuggestion?o.suggestionStore.currentSuggestion.item:void 0),(!e||e&&!e.defaultPrevented)&&o.canAddItems()&&o.suggestionStore.hasSelectedSuggestion()&&o.state.suggestedDisplayValue&&o.addItemByIndex(0)};o.currentPromise?o.currentPromise.then(function(){return t()}):t(),o.setState({suggestionsVisible:!1})},o.refocusSuggestions=function(e){o.resetFocus(),o.suggestionStore.suggestions&&o.suggestionStore.suggestions.length>0&&(e===zt.up?o.suggestionStore.setSelectedSuggestion(o.suggestionStore.suggestions.length-1):e===zt.down&&o.suggestionStore.setSelectedSuggestion(0))},o.onInputChange=function(e){o.updateValue(e),o.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},o.onSuggestionClick=function(e,t,n){o.addItemByIndex(n),o.setState({suggestionsVisible:!1})},o.onSuggestionRemove=function(e,t,n){o.props.onRemoveSuggestion&&o.props.onRemoveSuggestion(t),o.suggestionStore.removeSuggestion(n)},o.onInputFocus=function(e){o.state.isFocused||(o.setState({isFocused:!0}),o.selection.setAllSelected(!1),o.input.current&&""===o.input.current.value&&o.props.onEmptyInputFocus?(o.onEmptyInputFocus(),o.setState({isMostRecentlyUsedVisible:!0,moreSuggestionsAvailable:!1,suggestionsVisible:!0})):o.input.current&&o.input.current.value&&o.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}),o.props.inputProps&&o.props.inputProps.onFocus&&o.props.inputProps.onFocus(e))},o.onInputBlur=function(e){o.props.inputProps&&o.props.inputProps.onBlur&&o.props.inputProps.onBlur(e)},o.onBlur=function(e){if(o.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),t&&!fr(o.root.current,t)&&(o.setState({isFocused:!1}),o.props.onBlur&&o.props.onBlur(e))}},o.onKeyDown=function(e){var t=e.which;switch(t){case zt.escape:o.state.suggestionsVisible&&(o.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case zt.tab:case zt.enter:o.suggestionElement.current&&o.suggestionElement.current.hasSuggestedActionSelected()?o.suggestionElement.current.executeSelectedAction():!e.shiftKey&&o.suggestionStore.hasSelectedSuggestion()&&o.state.suggestionsVisible?(o.completeSuggestion(),e.preventDefault(),e.stopPropagation()):o._onValidateInput();break;case zt.backspace:o.props.disabled||o.onBackspace(e),e.stopPropagation();break;case zt.del:o.props.disabled||(o.input.current&&e.target===o.input.current.inputElement&&o.state.suggestionsVisible&&-1!==o.suggestionStore.currentIndex?(o.props.onRemoveSuggestion&&o.props.onRemoveSuggestion(o.suggestionStore.currentSuggestion.item),o.suggestionStore.removeSuggestion(o.suggestionStore.currentIndex),o.forceUpdate()):o.onBackspace(e)),e.stopPropagation();break;case zt.up:o.input.current&&e.target===o.input.current.inputElement&&o.state.suggestionsVisible&&(o.suggestionElement.current&&o.suggestionElement.current.tryHandleKeyDown(t,o.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation()):o.suggestionElement.current&&o.suggestionElement.current.hasSuggestedAction()&&0===o.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),o.suggestionElement.current.focusAboveSuggestions(),o.suggestionStore.deselectAllSuggestions(),o.forceUpdate()):o.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),o.onSuggestionSelect()));break;case zt.down:o.input.current&&e.target===o.input.current.inputElement&&o.state.suggestionsVisible&&(o.suggestionElement.current&&o.suggestionElement.current.tryHandleKeyDown(t,o.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation()):o.suggestionElement.current&&o.suggestionElement.current.hasSuggestedAction()&&o.suggestionStore.currentIndex+1===o.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),o.suggestionElement.current.focusBelowSuggestions(),o.suggestionStore.deselectAllSuggestions(),o.forceUpdate()):o.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),o.onSuggestionSelect()))}},o.onItemChange=function(e,t){var n=o.state.items;if(t>=0){var i=n;i[t]=e,o._updateSelectedItems(i)}},o.onGetMoreResults=function(){o.setState({isSearching:!0},function(){if(o.props.onGetMoreResults&&o.input.current){var e=o.props.onGetMoreResults(o.input.current.value,o.state.items),t=e,n=e;Array.isArray(t)?(o.updateSuggestions(t),o.setState({isSearching:!1})):n.then&&n.then(function(e){o.updateSuggestions(e),o.setState({isSearching:!1})})}else o.setState({isSearching:!1});o.input.current&&o.input.current.focus(),o.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})})},o.addItemByIndex=function(e){o.addItem(o.suggestionStore.getSuggestionAtIndex(e).item),o.input.current&&o.input.current.clear(),o.updateValue("")},o.addItem=function(e){var t=o.props.onItemSelected?o.props.onItemSelected(e):e;if(null!==t){var n=t,i=t;if(i&&i.then)i.then(function(e){var t=o.state.items.concat([e]);o._updateSelectedItems(t)});else{var r=o.state.items.concat([n]);o._updateSelectedItems(r)}o.setState({suggestedDisplayValue:""})}},o.removeItem=function(e,t){var n=o.state.items,i=n.indexOf(e);if(i>=0){var r=n.slice(0,i).concat(n.slice(i+1));o._updateSelectedItems(r,t?i:void 0)}},o.removeItems=function(e){var t=o.state.items,n=t.filter(function(t){return-1===e.indexOf(t)}),i=e[0],r=t.indexOf(i);o._updateSelectedItems(n,r)},o._isFocusZoneInnerKeystroke=function(e){if(o.state.suggestionsVisible)switch(e.which){case zt.up:case zt.down:return!0}return e.which===zt.enter};var n=t.selectedItems||t.defaultSelectedItems||[];return o._id=Fn(),o._ariaMap={selectedItems:"selected-items-"+o._id,selectedSuggestionAlert:"selected-suggestion-alert-"+o._id,suggestionList:"suggestion-list-"+o._id},o.suggestionStore=new Wx,o.selection=new xg({onSelectionChanged:function(){return o.onSelectionChange()}}),o.selection.setItems(n),o.state={items:n,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[]},o}return h(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!0,configurable:!0}),t.prototype.componentWillUpdate=function(e,t){t.items&&t.items!==this.state.items&&this.selection.setItems(t.items)},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentWillReceiveProps=function(e){var t,o=this,n=e.selectedItems;n&&(n.length0&&_.createElement("span",{id:this._ariaMap.selectedItems,className:p.itemsWrapper,role:"list"},this.renderItems()),this.canAddItems()&&_.createElement(ir,m({spellCheck:!1},s,{className:p.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":this.getActiveDescendant(),"aria-expanded":!!this.state.suggestionsVisible,"aria-haspopup":"true","aria-describedby":n.length>0?this._ariaMap.selectedItems:void 0,autoCapitalize:"off",autoComplete:"off",role:"combobox",disabled:a,"aria-controls":u+" "+d||void 0,"aria-owns":u||void 0,"aria-autocomplete":"both",onInputChange:this.props.onInputChange}))))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length=0){var o=this.root.current&&this.root.current.querySelectorAll("[data-selection-index]")[Math.min(e,t.length-1)];o&&this.focusZone.current&&this.focusZone.current.focusElement(o)}else this.canAddItems()?this.input.current&&this.input.current.focus():this.resetFocus(t.length-1)},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){this.suggestionStore.updateSuggestions(e,0),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=(0,this.props.onEmptyInputFocus)(this.state.items);this.updateSuggestionsList(e)},t.prototype.updateValue=function(e){this._onResolveSuggestions(e)},t.prototype.updateSuggestionsList=function(e,t){var o=this,n=e,i=e;if(Array.isArray(n))this._updateAndResolveValue(t,n);else if(i&&i.then){this.setState({suggestionsLoading:!0}),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:!!this.input.current&&(""!==this.input.current.value&&this.input.current.inputElement===document.activeElement)}):this.setState({suggestionsVisible:!!this.input.current&&this.input.current.inputElement===document.activeElement});var r=this.currentPromise=i;r.then(function(e){r===o.currentPromise&&o._updateAndResolveValue(t,e)})}},t.prototype.resolveNewValue=function(e,t){var o=this;this.updateSuggestions(t);var n=void 0;this.suggestionStore.currentSuggestion&&(n=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:n,suggestionsVisible:!!this.input.current&&(""!==this.input.current.value&&this.input.current.inputElement===document.activeElement)},function(){return o.setState({suggestionsLoading:!1})})},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){var e=this.suggestionStore.currentIndex;return e>-1&&!this.state.suggestionsLoading?"sug-"+e:void 0},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=qx.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var o=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,n=o?o.ariaLabel:void 0;return _.createElement("div",{className:e,role:"alert",id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},n," ")}},t.prototype._updateAndResolveValue=function(e,t){void 0!==e?this.resolveNewValue(e,t):(this.suggestionStore.updateSuggestions(t,-1),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1}))},t.prototype._updateSelectedItems=function(e,t){var o=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},function(){o._onSelectedItemsUpdated(e,t)})},t.prototype._onSelectedItemsUpdated=function(e,t){this.resetFocus(t),this.onChange(e)},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.state.items);null!==t&&this.updateSuggestionsList(t,e)},t.prototype._onValidateInput=function(){if(this.props.onValidateInput&&this.input.current&&this.props.onValidateInput(this.input.current.value)!==Fx.invalid&&this.props.createGenericItem){var e=this.props.createGenericItem(this.input.current.value,this.props.onValidateInput(this.input.current.value));this.suggestionStore.createGenericSuggestion(e),this.completeSuggestion()}},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t}(bi),Qx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,o=e.isFocused,n=this.props,i=n.className,r=n.inputProps,s=n.disabled,a=n.theme,l=n.styles,c=this.props.enableSelectedSuggestionAlert?this._ariaMap.selectedSuggestionAlert:"",d=this.state.suggestionsVisible?this._ariaMap.suggestionList:"",u=l?Zx(l,{theme:a,className:i,isFocused:o,inputClassName:r&&r.className}):{root:Yr("ms-BasePicker",i||""),text:Yr("ms-BasePicker-text",qx.pickerText,this.state.isFocused&&qx.inputFocused),input:Yr("ms-BasePicker-input",qx.pickerInput,r&&r.className),screenReaderText:qx.screenReaderOnly};return _.createElement("div",{ref:this.root,onBlur:this.onBlur},_.createElement("div",{className:u.root,onKeyDown:this.onKeyDown},this.getSuggestionsAlert(u.screenReaderText),_.createElement("div",{className:u.text},_.createElement(ir,m({},r,{className:u.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":this.getActiveDescendant(),"aria-expanded":!!this.state.suggestionsVisible,"aria-haspopup":"true",autoCapitalize:"off",autoComplete:"off",role:"combobox",disabled:s,"aria-controls":d+" "+c||void 0,"aria-owns":d||void 0,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),_.createElement(Bg,{selection:this.selection,selectionMode:vg.single},_.createElement(is,{componentRef:this.focusZone,className:"ms-BasePicker-selectedItems",isCircularNavigation:!0,direction:$i.bidirectional,isInnerZoneKeystroke:this._isFocusZoneInnerKeystroke,id:this._ariaMap.selectedItems},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(Xx),$x={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"},Jx=24;var eS=mn(),tS=function(e){var t=e.item,o=e.onRemoveItem,n=e.index,i=e.selected,r=e.removeButtonAriaLabel,s=e.styles,a=e.theme,l=e.className,c=e.disabled,d=Fn(),u=eS(s,{theme:a,className:l,selected:i,disabled:c,invalid:t.ValidationState===Fx.warning}),p=u.subComponentStyles?u.subComponentStyles.persona:void 0,h=u.subComponentStyles?u.subComponentStyles.personaCoin:void 0;return _.createElement("div",{className:u.root,"data-is-focusable":!c,"data-is-sub-focuszone":!0,"data-selection-index":n,role:"listitem","aria-labelledby":"selectedItemPersona-"+d},_.createElement("div",{className:u.itemContent,id:"selectedItemPersona-"+d},_.createElement(_y,m({size:Ci.size24,styles:p,coinProps:{styles:h}},t))),_.createElement(nc,{onClick:o,disabled:c,iconProps:{iconName:"Cancel",styles:{root:{fontSize:"12px"}}},className:u.removeButton,ariaLabel:r}))},oS=cn(tS,function(e){var t,o,n,i,r,s,a=e.className,l=e.theme,c=e.selected,d=e.invalid,u=e.disabled,p=l.palette,h=l.semanticColors,m=So($x,l),g=[c&&!d&&!u&&{color:p.white,selectors:(t={},t[At]={color:"HighlightText"},t)},(d&&!c||d&&c&&u)&&{color:p.redDark,borderBottom:"2px dotted "+p.redDark,selectors:{"$root:hover &":{color:p.redDark}}},d&&c&&!u&&{color:p.white,borderBottom:"2px dotted "+p.white},u&&{selectors:(o={},o[At]={color:"GrayText"},o)}],f=[d&&{fontSize:20}];return{root:[m.root,Xt(l,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:p.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(n={":hover":{background:c||u?"":p.neutralLight}},n[At]=[{border:"1px solid WindowText"},u&&{borderColor:"GrayText"}],n)},c&&!u&&[m.isSelected,{background:p.themePrimary,selectors:(i={},i[At]={borderColor:"HighLight",background:"Highlight",MsHighContrastAdjust:"none"},i)}],d&&[m.isInvalid],d&&c&&!u&&{background:p.redDark},a],itemContent:[m.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[m.removeButton,{borderRadius:15,flex:"0 0 auto",width:Jx,height:Jx,flexBasis:Jx,selectors:{":hover":{background:p.neutralTertiaryAlt,color:p.neutralDark}}},c&&[{color:p.white,selectors:(r={":hover":{color:p.white,background:p.themeDark}},r[At]={color:"HighlightText"},r)},d&&{selectors:{":hover":{background:p.red}}}],u&&{selectors:(s={},s["."+ql.msButtonIcon]={color:h.buttonText},s)}],subComponentStyles:{persona:{primaryText:g},personaCoin:{initials:f}}}},void 0,{scope:"PeoplePickerItem"}),nS={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};var iS=mn(),rS=function(e){var t=e.personaProps,o=e.suggestionsProps,n=e.compact,i=e.styles,r=e.theme,s=e.className,a=iS(i,{theme:r,className:o&&o.suggestionsItemClassName||s}),l=a.subComponentStyles&&a.subComponentStyles.persona?a.subComponentStyles.persona:void 0;return _.createElement("div",{className:a.root},_.createElement(_y,m({size:Ci.size24,styles:l,className:a.personaWrapper,showSecondaryText:!n},t)))},sS=cn(rS,function(e){var t,o,n,i=e.className,r=e.theme,s=So(nS,r),a={selectors:(t={},t["."+Bx.isSuggested+" &"]={selectors:(o={},o[At]={color:"HighlightText"},o)},t["."+s.root+":hover &"]={selectors:(n={},n[At]={color:"HighlightText"},n)},t)};return{root:[s.root,{width:"100%",padding:"4px 12px"},i],personaWrapper:[s.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:a,secondaryText:a}}}},void 0,{scope:"PeoplePickerItemSuggestion"}),aS={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function lS(e){var t=e.className,o=e.theme,n=e.isFocused,i=e.inputClassName,r=e.disabled;if(!o)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var s,a=o.semanticColors,l=a.inputBorder,c=a.inputBorderHovered,d=a.inputFocusBorderAlt,u=So(aS,o);return{root:[u.root,t],text:[u.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid "+l},!n&&!r&&{selectors:{":hover":{borderColor:c}}},n&&!r&&{borderColor:d},r&&{borderColor:"transparent",selectors:(s={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:"rgba(218, 218, 218, 0.29)"}},s[At]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},s)}],itemsWrapper:[u.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[u.input,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",selectors:{"::-ms-clear":{display:"none"}}},i],screenReaderText:eo}}var cS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(Xx),dS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(Qx),uS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.defaultProps={onRenderItem:function(e){return _.createElement(oS,m({},e))},onRenderSuggestionsItem:function(e,t){return _.createElement(sS,{personaProps:e,suggestionsProps:t})},createGenericItem:mS},t}(cS),pS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.defaultProps={onRenderItem:function(e){return _.createElement(oS,m({},e))},onRenderSuggestionsItem:function(e,t){return _.createElement(sS,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:mS},t}(cS),hS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.defaultProps={onRenderItem:function(e){return _.createElement(oS,m({},e))},onRenderSuggestionsItem:function(e,t){return _.createElement(sS,{personaProps:e,suggestionsProps:t})},createGenericItem:mS},t}(dS);function mS(e,t){var o={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==Fx.warning&&(o.imageInitials=In(e,yn())),o}var gS=cn(uS,lS,void 0,{scope:"NormalPeoplePicker"}),fS=cn(pS,lS,void 0,{scope:"CompactPeoplePicker"}),vS=cn(hS,lS,void 0,{scope:"ListPeoplePickerBase"}),_S={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"},yS=26;var bS=mn(),xS=function(e){var t=e.theme,o=e.styles,n=e.selected,i=e.disabled,r=e.enableTagFocusInDisabledPicker,s=e.children,a=e.className,l=e.index,c=e.onRemoveItem,d=e.removeButtonAriaLabel,u=bS(o,{theme:t,className:a,selected:n,disabled:i});return _.createElement("div",{className:u.root,role:"listitem",key:l,"data-selection-index":l,"data-is-focusable":(r||!i)&&!0},_.createElement("span",{className:u.text,"aria-label":s},s),_.createElement(nc,{onClick:c,disabled:i,iconProps:{iconName:"Cancel",styles:{root:{fontSize:"12px"}}},className:u.close,ariaLabel:d}))},SS=cn(xS,function(e){var t,o,n,i,r,s=e.className,a=e.theme,l=e.selected,c=e.disabled,d=a.palette,u=So(_S,a);return{root:[u.root,Xt(a),{boxSizing:"content-box",flexShrink:"1",margin:2,height:yS,lineHeight:yS,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,background:!l||c?d.neutralLighter:d.themePrimary,selectors:(t={":hover":[!c&&!l&&{background:d.neutralLight,selectors:{".ms-TagItem-close":{color:d.neutralPrimary}}},c&&{background:d.neutralLighter},l&&!c&&{background:d.themePrimary}]},t[At]={border:"1px solid "+(l?"WindowFrame":"WindowText")},t)},c&&{selectors:(o={},o[At]={borderColor:"GrayText"},o)},l&&!c&&[u.isSelected,{color:d.white}],s],text:[u.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},c&&{selectors:(n={},n[At]={color:"GrayText"},n)}],close:[u.close,{color:d.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",selectors:{":hover":{background:d.neutralQuaternaryAlt,color:d.neutralPrimary}}},l&&{color:d.white,selectors:(i={":hover":{color:d.white,background:d.themeDark}},i[At]={color:"HighlightText"},i)},c&&{selectors:(r={},r["."+ql.msButtonIcon]={color:d.neutralSecondary},r)}]}},void 0,{scope:"TagItem"}),CS={suggestionTextOverflow:"ms-TagItem-TextOverflow"};var kS,wS,IS=mn(),DS=function(e){var t=e.styles,o=e.theme,n=e.children,i=IS(t,{theme:o});return _.createElement("div",{className:i.suggestionTextOverflow}," ",n," ")},PS=cn(DS,function(e){var t=e.className,o=e.theme;return{suggestionTextOverflow:[So(CS,o).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}},void 0,{scope:"TagItemSuggestion"}),TS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.defaultProps={onRenderItem:function(e){return _.createElement(SS,m({},e),e.item.name)},onRenderSuggestionsItem:function(e){return _.createElement(PS,null,e.name)}},t}(Xx),ES=cn(TS,lS,void 0,{scope:"TagPicker"}),MS=function(e){function t(t){var o=e.call(this,t)||this;return o._warnDeprecations({linkText:"headerText"}),o}return h(t,e),t.prototype.render=function(){return _.createElement("div",m({},di(this.props,ci)),this.props.children)},t}(bi);!function(e){e[e.links=0]="links",e[e.tabs=1]="tabs"}(kS||(kS={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(wS||(wS={}));var RS,NS=mn(),BS=_.createElement(MS,null).type,FS=function(e){function t(t){var o=e.call(this,t)||this;o._focusZone=_.createRef(),o._renderPivotLink=function(e,t,n){var i,r=t.itemKey,s=t.headerButtonProps,a=e.keyToTabIdMapping[r],l=t.onRenderItemLink,c=n===r;i=l?l(t,o._renderLinkContent):o._renderLinkContent(t);var d=t.headerText||"";return d+=t.itemCount?" ("+t.itemCount+")":"",d+=t.itemIcon?" xx":"",_.createElement(Qc,m({},s,{id:a,key:r,className:c?o._classNames.linkIsSelected:o._classNames.link,onClick:o._onLinkClick.bind(o,r),onKeyPress:o._onKeyPress.bind(o,r),ariaLabel:t.ariaLabel,role:"tab","aria-selected":c,name:t.headerText,keytipProps:t.keytipProps,"data-content":d}),i)},o._renderLinkContent=function(e){var t=e.itemCount,n=e.itemIcon,i=e.headerText,r=o._classNames;return _.createElement("span",{className:r.linkContent},void 0!==n&&_.createElement("span",{className:r.icon},_.createElement(Fi,{iconName:n})),void 0!==i&&_.createElement("span",{className:r.text}," ",e.headerText),void 0!==t&&_.createElement("span",{className:r.count}," (",t,")"))},o._warnDeprecations({initialSelectedKey:"defaultSelectedKey",initialSelectedIndex:"defaultSelectedIndex"}),o._pivotId=Fn("Pivot");var n,i=o._getPivotLinks(t).links,r=t.defaultSelectedKey,s=void 0===r?t.initialSelectedKey:r,a=t.defaultSelectedIndex,l=void 0===a?t.initialSelectedIndex:a;return s?n=s:"number"==typeof l?n=i[l].itemKey:i.length&&(n=i[0].itemKey),o.state={selectedKey:n},o}return h(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){var e=this._getPivotLinks(this.props),t=this._getSelectedKey(e),o=di(this.props,ci);return this._classNames=this._getClassNames(this.props),_.createElement("div",m({},o),this._renderPivotLinks(e,t),t&&this._renderPivotItem(e,t))},t.prototype._getSelectedKey=function(e){var t=this.props.selectedKey;if(this._isKeyValid(e,t)||null===t)return t;var o=this.state.selectedKey;return this._isKeyValid(e,o)?o:e.links.length?e.links[0].itemKey:void 0},t.prototype._renderPivotLinks=function(e,t){var o=this,n=e.links.map(function(n){return o._renderPivotLink(e,n,t)});return _.createElement(is,{componentRef:this._focusZone,direction:$i.horizontal},_.createElement("div",{className:this._classNames.root,role:"tablist"},n))},t.prototype._renderPivotItem=function(e,t){if(this.props.headersOnly||!t)return null;var o=e.keyToIndexMapping[t],n=e.keyToTabIdMapping[t];return _.createElement("div",{role:"tabpanel","aria-labelledby":n,className:this._classNames.itemContainer},_.Children.toArray(this.props.children)[o])},t.prototype._getPivotLinks=function(e){var t=this,o={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return _.Children.map(_.Children.toArray(e.children),function(e,n){if("object"==typeof e&&e.type===BS){var i=e,r=i.props,s=r.linkText,a=g(r,["linkText"]),l=i.props.itemKey||n.toString();o.links.push(m({headerText:s},a,{itemKey:l})),o.keyToIndexMapping[l]=n,o.keyToTabIdMapping[l]=t._getTabId(l,n)}else pe("The children of a Pivot component must be of type PivotItem to be rendered.")}),o},t.prototype._getTabId=function(e,t){return this.props.getTabId?this.props.getTabId(e,t):this._pivotId+"-Tab"+t},t.prototype._isKeyValid=function(e,t){return null!=t&&void 0!==e.keyToIndexMapping[t]},t.prototype._onLinkClick=function(e,t){t.preventDefault(),this._updateSelectedItem(e,t)},t.prototype._onKeyPress=function(e,t){t.which===zt.enter&&(t.preventDefault(),this._updateSelectedItem(e))},t.prototype._updateSelectedItem=function(e,t){this.setState({selectedKey:e});var o=this._getPivotLinks(this.props);if(this.props.onLinkClick&&o.keyToIndexMapping[e]>=0){var n=o.keyToIndexMapping[e],i=_.Children.toArray(this.props.children)[n];"object"==typeof i&&i.type===BS&&this.props.onLinkClick(i,t)}},t.prototype._getClassNames=function(e){var t=e.theme,o=e.linkSize===wS.large,n=e.linkFormat===kS.tabs;return NS(e.styles,{theme:t,rootIsLarge:o,rootIsTabs:n})},t}(bi),LS={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text"},AS=function(e){var t,o,n=e.rootIsLarge,i=e.rootIsTabs,r=e.theme,s=r.palette,a=r.semanticColors;return[{color:a.actionLink,display:"inline-block",fontSize:_t.medium,fontWeight:yt.regular,lineHeight:"40px",marginRight:"8px",padding:"0 8px",textAlign:"center",position:"relative",backgroundColor:"transparent",border:0,selectors:(t={":before":{backgroundColor:"transparent",bottom:0,content:'""',height:"2px",left:"8px",position:"absolute",right:"8px",transition:"background-color "+at.durationValue2+" "+at.easeFunction2},":after":{color:"transparent",content:"attr(data-content)",display:"block",fontWeight:yt.bold,height:"1px",overflow:"hidden",visibility:"hidden"},":hover":{color:a.actionLinkHovered,cursor:"pointer"},":focus":{outline:"none"}},t["."+Yt+" &:focus"]={outline:"1px solid "+a.focusBorder},t["."+Yt+" &:focus:after"]={content:"attr(data-content)",position:"relative",border:0},t)},n&&{fontSize:_t.large},i&&[{marginRight:0,height:"40px",lineHeight:"40px",backgroundColor:s.neutralLighter,padding:"0 10px",verticalAlign:"top",selectors:(o={":focus":{outlineOffset:"-1px"}},o["."+Yt+" &:focus::before"]={height:"auto",background:"transparent",transition:"none"},o)}]]},OS=cn(FS,function(e){var t,o,n,i=e.className,r=e.rootIsLarge,s=e.rootIsTabs,a=e.theme,l=a.palette,c=a.semanticColors,d=So(LS,a);return{root:[d.root,a.fonts.medium,jo,{fontSize:_t.medium,fontWeight:yt.regular,position:"relative",color:l.themePrimary,whiteSpace:"nowrap"},r&&d.rootIsLarge,s&&d.rootIsTabs,i],link:[d.link].concat(AS(e),[{selectors:{":hover::before":{boxSizing:"border-box",borderBottom:"2px solid transparent"}}},s&&{selectors:{"&:hover, &:focus":{color:l.black},":active":{backgroundColor:l.themePrimary}}}]),linkIsSelected:[d.link,d.linkIsSelected].concat(AS(e),[{fontWeight:yt.semibold,selectors:(t={":before":{boxSizing:"border-box",borderBottom:"2px solid "+c.inputBackgroundChecked,selectors:(o={},o[At]={borderBottomColor:"Highlight"},o)}},t[At]={color:"Highlight"},t)},s&&{backgroundColor:l.themePrimary,color:l.white,fontWeight:yt.semilight,selectors:(n={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:"auto"},"&:active, &:hover":{color:l.white}},n[At]={fontWeight:yt.semibold,color:"HighlightText",background:"Highlight",MsHighContrastAdjust:"none"},n)}]),linkContent:[d.linkContent],text:[d.text,{display:"inline-block",verticalAlign:"top"}],count:[d.count,{marginLeft:"4px",display:"inline-block",verticalAlign:"top"}],icon:[d.icon,{selectors:{"& + $text":{marginLeft:"4px"}}}]}},void 0,{scope:"Pivot"}),HS=mn(),WS=.01,zS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderProgress=function(e){var o=t.props,n=o.ariaValueText,i=o.barHeight,r=o.className,s=o.styles,a=o.theme,l="number"==typeof t.props.percentComplete?Math.min(100,Math.max(0,100*t.props.percentComplete)):void 0,c=HS(s,{theme:a,className:r,barHeight:i,indeterminate:void 0===l}),d={width:void 0!==l?l+"%":void 0,transition:void 0!==l&&l0?v:b};r.push(this._getStarId(S-1)),i.push(_.createElement("button",m({className:Yr(this._classNames.ratingButton,(e={},e[this._classNames.ratingStarIsLarge]=h===RS.Large,e[this._classNames.ratingStarIsSmall]=h!==RS.Large,e)),id:r[S-1],key:S},S===Math.ceil(this.state.rating)?{"data-is-current":!0}:{},{onFocus:this._onFocus.bind(this,S),onClick:this._onFocus.bind(this,S),disabled:!(!a&&!p),role:"presentation",type:"button"}),this._getLabel(S),_.createElement(ZS,m({key:S+"rating"},k))))}return _.createElement("div",m({className:Yr("ms-Rating-star",this._classNames.root,(t={},t[this._classNames.rootIsLarge]=h===RS.Large,t[this._classNames.rootIsSmall]=h!==RS.Large,t)),"aria-label":l?l(this.state.rating?this.state.rating:0,this.props.max):"",id:n},x),_.createElement(is,{direction:$i.horizontal,tabIndex:p?0:-1,className:Yr(this._classNames.ratingFocusZone,(o={},o[this._classNames.rootIsLarge]=h===RS.Large,o[this._classNames.rootIsSmall]=h!==RS.Large,o)),"data-is-focusable":!!p,defaultActiveElement:u?r[u-1]&&"#"+r[u-1]:void 0},i))},t.prototype._getStarId=function(e){return this._id+"-star-"+e},t.prototype._onFocus=function(e,t){if(this.state.rating!==e){this.setState({rating:e});var o=this.props,n=o.onChange,i=o.onChanged;n&&n(t,e),i&&i(e)}},t.prototype._getLabel=function(e){var t=this.props.ariaLabelFormat||"";return _.createElement("span",{id:this._labelId+"-"+e,className:this._classNames.labelText},od(t,e,this.props.max))},t.prototype._getInitialValue=function(e){return void 0===e.rating?this._min:null!==e.rating?this._getClampedRating(e.rating):void 0},t.prototype._getClampedRating=function(e){return Math.min(Math.max(e,this._min),this.props.max)},t.prototype._getFillingPercentage=function(e){var t=Math.ceil(this.state.rating),o=100;return e===this.state.rating?o=100:e===t?o=this.state.rating%1*100:e>t&&(o=0),o},t.defaultProps={min:1,max:5},t}(bi),QS=cn(XS,function(e){var t=e.disabled,o=e.readOnly,n=e.theme,i=n.semanticColors,r=n.palette,s=So(YS,n),a=r.neutralTertiary,l=r.themePrimary,c=r.themeDark,d=i.bodyTextChecked,u=i.disabledBodySubtext;return{root:[s.root,n.fonts.medium,!t&&!o&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":jS(d,"Highlight")}}}}],rootIsSmall:[s.rootIsSmall,{height:"32px"}],rootIsLarge:[s.rootIsLarge,{height:"36px"}],ratingStar:[s.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[s.ratingStarBack,{color:a,width:"100%"},t&&jS(u,"GrayText")],ratingStarFront:[s.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},jS(d,"Highlight")],ratingButton:[Xt(n),s.ratingButton,{backgroundColor:"transparent",padding:"8px 2px",boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!o&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":jS(a,"WindowText"),".ms-RatingStar-front":jS(a,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:c}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[s.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[s.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[s.labelText,eo],ratingFocusZone:[s.ratingFocusZone,{display:"inline-block"}]}},void 0,{scope:"Rating"}),$S=mn(),JS=function(e){function t(t){var o=e.call(this,t)||this;return o._root=_.createRef(),o._stickyAboveRef=_.createRef(),o._stickyBelowRef=_.createRef(),o._contentContainer=_.createRef(),o.subscribe=function(e){o._subscribers.add(e)},o.unsubscribe=function(e){o._subscribers.delete(e)},o.addSticky=function(e){o._stickies.add(e),o.contentContainer&&(e.setDistanceFromTop(o.contentContainer),o.sortSticky(e))},o.removeSticky=function(e){o._stickies.delete(e),o._removeStickyFromContainers(e),o.notifySubscribers()},o.sortSticky=function(e,t){o.stickyAbove&&o.stickyBelow&&(t&&o._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&o._addToStickyContainer(e,o.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&o._addToStickyContainer(e,o.stickyBelow,e.stickyContentBottom))},o.updateStickyRefHeights=function(){var e=o._stickies,t=0,n=0;e.forEach(function(e){var i=e.state,r=i.isStickyTop,s=i.isStickyBottom;e.nonStickyContent&&(r&&(t+=e.nonStickyContent.offsetHeight),s&&(n+=e.nonStickyContent.offsetHeight),o._checkStickyStatus(e))}),o.setState({stickyTopHeight:t,stickyBottomHeight:n})},o.notifySubscribers=function(){o.contentContainer&&o._subscribers.forEach(function(e){e(o.contentContainer,o.stickyBelow)})},o.getScrollPosition=function(){return o.contentContainer?o.contentContainer.scrollTop:0},o.syncScrollSticky=function(e){e&&o.contentContainer&&e.syncScroll(o.contentContainer)},o._addToStickyContainer=function(e,t,n){if(t.children.length){if(!t.contains(n)){var i=[].slice.call(t.children),r=[];o._stickies.forEach(function(n){t===o.stickyAbove&&e.canStickyTop?r.push(n):e.canStickyBottom&&r.push(n)});var s=r.sort(function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)}).filter(function(e){var n=t===o.stickyAbove?e.stickyContentTop:e.stickyContentBottom;if(n)return i.indexOf(n)>-1}),a=void 0;for(var l in s)if((s[l].state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){a=s[l];break}var c=null;a&&(c=t===o.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(n,c)}}else t.appendChild(n)},o._removeStickyFromContainers=function(e){o.stickyAbove&&e.stickyContentTop&&o.stickyAbove.contains(e.stickyContentTop)&&o.stickyAbove.removeChild(e.stickyContentTop),o.stickyBelow&&e.stickyContentBottom&&o.stickyBelow.contains(e.stickyContentBottom)&&o.stickyBelow.removeChild(e.stickyContentBottom)},o._onWindowResize=function(){var e=o._getScrollbarWidth(),t=o._getScrollbarHeight();o.setState({scrollbarWidth:e,scrollbarHeight:t}),o.notifySubscribers()},o._getStickyContainerStyle=function(e,t){return m({height:e},yn()?{right:"0",left:(o.state.scrollbarWidth||o._getScrollbarWidth()||0)+"px"}:{left:"0",right:(o.state.scrollbarWidth||o._getScrollbarWidth()||0)+"px"},t?{top:"0"}:{bottom:(o.state.scrollbarHeight||o._getScrollbarHeight()||0)+"px"})},o._onScroll=function(){var e=o.contentContainer;e&&o._stickies.forEach(function(t){t.syncScroll(e)}),o._notifyThrottled()},o._subscribers=new Set,o._stickies=new Set,o.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},o._notifyThrottled=o._async.throttle(o.notifySubscribers,50),o}return h(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!0,configurable:!0}),t.prototype.getChildContext=function(){return{scrollablePane:{subscribe:this.subscribe,unsubscribe:this.unsubscribe,addSticky:this.addSticky,removeSticky:this.removeSticky,updateStickyRefHeights:this.updateStickyRefHeights,sortSticky:this.sortSticky,notifySubscribers:this.notifySubscribers,syncScrollSticky:this.syncScrollSticky}}},t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach(function(t){e.sortSticky(t)}),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver(function(t){var o=e._getScrollbarHeight();if(o!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:o}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var n=[];e._stickies.forEach(function(e){e.root&&e.root.contains(t[0].target)&&n.push(e)}),n.length&&n.forEach(function(e){e.forceUpdate()})}}),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.off(this.contentContainer),this._events.off(window),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var o=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof o&&e.initialScrollPosition!==o&&(this.contentContainer.scrollTop=o),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,o=e.theme,n=e.styles,i=this.state,r=i.stickyTopHeight,s=i.stickyBottomHeight,a=$S(n,{theme:o,className:t,scrollbarVisibility:this.props.scrollbarVisibility});return _.createElement("div",m({},di(this.props,ci),{ref:this._root,className:a.root}),_.createElement("div",{ref:this._contentContainer,className:a.contentContainer,"data-is-scrollable":!0},this.props.children),_.createElement("div",{ref:this._stickyAboveRef,className:a.stickyAbove,style:this._getStickyContainerStyle(r,!0)}),_.createElement("div",{className:a.stickyBelow,style:this._getStickyContainerStyle(s,!1)},_.createElement("div",{ref:this._stickyBelowRef,className:a.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach(function(t){t.setDistanceFromTop(e.contentContainer)})},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t.childContextTypes={scrollablePane:ic.object},t}(bi),eC={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},tC=cn(JS,function(e){var t,o,n=e.className,i=e.theme,r=So(eC,i),s={position:"absolute",pointerEvents:"auto"},a={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[r.root,i.fonts.medium,a,n],contentContainer:[r.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},a],stickyAbove:[{top:0,selectors:(t={},t[At]={borderBottom:"1px solid WindowText"},t)},s],stickyBelow:[{bottom:0,selectors:(o={},o[At]={borderTop:"1px solid WindowText"},o)},s],stickyBelowItems:[{bottom:0},s,{width:"100%"}]}},void 0,{scope:"ScrollablePane"}),oC={auto:"auto",always:"always"},nC=mn(),iC=function(e){function t(t){var o=e.call(this,t)||this;return o._rootElement=_.createRef(),o._inputElement=_.createRef(),o._onClickFocus=function(){var e=o._inputElement.current;e&&(o.focus(),e.selectionStart=e.selectionEnd=0)},o._onFocusCapture=function(e){o.setState({hasFocus:!0}),o._events.on(e.currentTarget,"blur",o._onBlur,!0),o.props.onFocus&&o.props.onFocus(e)},o._onClearClick=function(e){var t=o.props.clearButtonProps;t&&t.onClick&&t.onClick(e),e.defaultPrevented||o._onClear(e)},o._onKeyDown=function(e){switch(e.which){case zt.escape:o.props.onEscape&&o.props.onEscape(e),e.defaultPrevented||o._onClear(e);break;case zt.enter:if(o.props.onSearch){o.props.onSearch(o.state.value);break}return;default:if(o.props.onKeyDown&&o.props.onKeyDown(e),!e.defaultPrevented)return}e.preventDefault(),e.stopPropagation()},o._onBlur=function(e){o._events.off(o._rootElement.current,"blur"),o.setState({hasFocus:!1}),o.props.onBlur&&o.props.onBlur(e)},o._onInputChange=function(e){var t=e.target.value;t!==o._latestValue&&(o._latestValue=t,o.setState({value:t}),o._callOnChange(t))},o._warnDeprecations({labelText:"placeholder",defaultValue:"value"}),o._latestValue=t.value||"",o.state={value:o._latestValue,hasFocus:!1,id:Fn("SearchBox")},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){void 0!==e.value&&(this._latestValue=e.value,this.setState({value:e.value||""}))},t.prototype.render=function(){var e=this.props,t=e.ariaLabel,o=e.placeholder,n=e.className,i=e.disabled,r=e.underlined,s=e.styles,a=e.labelText,l=e.theme,c=e.clearButtonProps,d=e.disableAnimation,u=e.iconProps,p=this.state,h=p.value,g=p.hasFocus,f=p.id,v=void 0===a?o:a,y=nC(s,{theme:l,className:n,underlined:r,hasFocus:g,disabled:i,hasInput:h.length>0,disableAnimation:d}),b=di(this.props,Zn,["id","className","placeholder","onFocus","onBlur","value"]);return _.createElement("div",{ref:this._rootElement,className:y.root,onFocusCapture:this._onFocusCapture},_.createElement("div",{className:y.iconContainer,onClick:this._onClickFocus,"aria-hidden":!0},_.createElement(Fi,m({iconName:"Search"},u,{className:y.icon}))),_.createElement("input",m({},b,{id:f,className:y.field,placeholder:v,onChange:this._onInputChange,onInput:this._onInputChange,onKeyDown:this._onKeyDown,value:h,disabled:i,"aria-label":t||o,ref:this._inputElement})),h.length>0&&_.createElement("div",{className:y.clearButton},_.createElement(nc,m({styles:{root:{height:"auto"},icon:{fontSize:"12px"}},iconProps:{iconName:"Clear"}},c,{onClick:this._onClearClick}))))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.hasFocus=function(){return!!this.state.hasFocus},t.prototype._onClear=function(e){this.props.onClear&&this.props.onClear(e),e.defaultPrevented||(this._latestValue="",this.setState({value:""}),this._callOnChange(""),e.stopPropagation(),e.preventDefault(),this.focus())},t.prototype._callOnChange=function(e){var t=this.props,o=t.onChange,n=t.onChanged;n&&n(e),o&&o(e)},t.defaultProps={disableAnimation:!1,clearButtonProps:{ariaLabel:"Clear text"}},t}(bi);var rC=cn(iC,function(e){var t,o,n,i=e.theme,r=e.underlined,s=e.disabled,a=e.hasFocus,l=e.className,c=e.hasInput,d=e.disableAnimation,u=i.palette,p=i.fonts,h=i.semanticColors;return{root:["ms-SearchBox",p.medium,jo,{color:u.neutralPrimary,backgroundColor:h.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",border:"1px solid "+u.neutralTertiary,height:32,selectors:(t={},t[At]={border:"1px solid WindowText"},t[":hover"]={borderColor:u.neutralDark,selectors:(o={},o[At]={borderColor:"Highlight"},o)},t[":hover $iconContainer"]={color:u.themeDark},t)},a&&["is-active",{borderColor:u.themePrimary,selectors:(n={":hover":{borderColor:u.themePrimary}},n[At]={borderColor:"Highlight"},n)}],s&&["is-disabled",{borderColor:u.neutralLighter,backgroundColor:u.neutralLighter,pointerEvents:"none",cursor:"default"}],r&&["is-underlined",{borderWidth:"0 0 1px 0",padding:"1px 0 1px 8px"}],r&&s&&{backgroundColor:"transparent"},c&&"can-clear",l],iconContainer:["ms-SearchBox-iconContainer",{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:u.themePrimary,cursor:"text"},a&&{width:4},s&&{color:u.neutralTertiary},!d&&{transition:"width "+at.durationValue1}],icon:["ms-SearchBox-icon",{opacity:1},a&&{opacity:0},!d&&{transition:"opacity "+at.durationValue1+" 0s"}],clearButton:["ms-SearchBox-clearButton",{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:1,color:u.themePrimary}],field:["ms-SearchBox-field",jo,{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:u.neutralPrimary,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"},"::placeholder":{color:h.inputPlaceholderText,opacity:1},":-ms-input-placeholder":{color:h.inputPlaceholderText}}},s&&{color:u.neutralTertiary}]}},void 0,{scope:"SearchBox"}),sC=function(e){function t(t){var o=e.call(this,t)||this;o.addItems=function(e){var t=o.props.onItemSelected?o.props.onItemSelected(e):e,n=t,i=t;if(i&&i.then)i.then(function(e){var t=o.state.items.concat(e);o.updateItems(t)});else{var r=o.state.items.concat(n);o.updateItems(r)}},o.removeItemAt=function(e){var t=o.state.items;if(o._canRemoveItem(t[e])&&e>-1){o.props.onItemsDeleted&&o.props.onItemsDeleted([t[e]]);var n=t.slice(0,e).concat(t.slice(e+1));o.updateItems(n)}},o.removeItem=function(e){var t=o.state.items.indexOf(e);o.removeItemAt(t)},o.replaceItem=function(e,t){var n=o.state.items,i=n.indexOf(e);if(i>-1){var r=n.slice(0,i).concat(t).concat(n.slice(i+1));o.updateItems(r)}},o.removeItems=function(e){var t=o.state.items,n=e.filter(function(e){return o._canRemoveItem(e)}),i=t.filter(function(e){return-1===n.indexOf(e)}),r=n[0],s=t.indexOf(r);o.props.onItemsDeleted&&o.props.onItemsDeleted(n),o.updateItems(i,s)},o.onCopy=function(e){if(o.props.onCopyItems&&o.selection.getSelectedCount()>0){var t=o.selection.getSelection();o.copyItems(t)}},o.renderItems=function(){var e=o.props.removeButtonAriaLabel,t=o.props.onRenderItem;return o.state.items.map(function(n,i){return t({item:n,index:i,key:n.key?n.key:i,selected:o.selection.isIndexSelected(i),onRemoveItem:function(){return o.removeItem(n)},onItemChange:o.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return o.copyItems([e])}})})},o.onSelectionChanged=function(){o.forceUpdate()},o.onItemChange=function(e,t){var n=o.state.items;if(t>=0){var i=n;i[t]=e,o.updateItems(i)}};var n=t.selectedItems||t.defaultSelectedItems||[];return o.state={items:n},o.selection=o.props.selection?o.props.selection:new xg({onSelectionChanged:o.onSelectionChanged}),o}return h(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!0,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var o=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},function(){o._onSelectedItemsUpdated(e,t)})},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentWillUpdate=function(e,t){t.items&&t.items!==this.state.items&&this.selection.setItems(t.items)},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},t.prototype.componentWillReceiveProps=function(e){var t=e.selectedItems;t&&this.setState({items:t}),e.selection&&(this.selection=e.selection)},t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),o=document.createElement("input");document.body.appendChild(o);try{if(o.value=t,o.select(),!document.execCommand("copy"))throw new Error}catch(e){}finally{document.body.removeChild(o)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t}(bi);Object(Fo.loadStyles)([{rawString:".personaContainer_59642838{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:";margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_59642838::-moz-focus-inner{border:0}.personaContainer_59642838{outline:transparent}.personaContainer_59642838{position:relative}.ms-Fabric--isFocusVisible .personaContainer_59642838:focus:after{content:'';position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid "},{theme:"focusBorder",defaultValue:"#666666"},{rawString:"}.personaContainer_59642838 .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_59642838 .ms-Persona-primaryText.hover_59642838{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast: active){.personaContainer_59642838 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_59642838 .actionButton_59642838:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_59642838 .actionButton_59642838 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast: active){.personaContainer_59642838 .actionButton_59642838 .ms-Button-icon{color:HighlightText}}.personaContainer_59642838:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_59642838:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast: active){.personaContainer_59642838:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_59642838.personaContainerIsSelected_59642838{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_59642838.personaContainerIsSelected_59642838 .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast: active){.personaContainer_59642838.personaContainerIsSelected_59642838 .ms-Persona-primaryText{color:HighlightText}}.personaContainer_59642838.personaContainerIsSelected_59642838 .actionButton_59642838{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_59642838.personaContainerIsSelected_59642838 .actionButton_59642838 .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_59642838.personaContainerIsSelected_59642838 .actionButton_59642838 .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast: active){.personaContainer_59642838.personaContainerIsSelected_59642838 .actionButton_59642838 .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast: active){.personaContainer_59642838.personaContainerIsSelected_59642838{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_59642838.validationError_59642838 .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_59642838.validationError_59642838 .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast: active){.personaContainer_59642838{border:1px solid WindowText}}.personaContainer_59642838 .itemContent_59642838{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0px;max-width:100%}.personaContainer_59642838 .removeButton_59642838{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_59642838 .expandButton_59642838{border-radius:15px 0px 0px 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_59642838 .personaWrapper_59642838{position:relative;display:inherit}.personaContainer_59642838 .personaWrapper_59642838 .ms-Persona-details{padding:0px 8px}.personaContainer_59642838 .personaDetails_59642838{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_59642838{display:inline-block;vertical-align:top}\n"}]);var aC="personaContainer_59642838",lC="hover_59642838",cC="actionButton_59642838",dC="personaContainerIsSelected_59642838",uC="validationError_59642838",pC="itemContent_59642838",hC="removeButton_59642838",mC="expandButton_59642838",gC="personaWrapper_59642838",fC="personaDetails_59642838",vC="itemContainer_59642838",_C=d,yC=function(e){function t(t){var o=e.call(this,t)||this;return o.persona=_.createRef(),o.state={contextualMenuVisible:!1},o}return h(t,e),t.prototype.render=function(){var e,t,o=this.props,n=o.item,i=o.onExpandItem,r=o.onRemoveItem,s=o.removeButtonAriaLabel,a=o.index,l=o.selected,c=Fn();return _.createElement("div",{ref:this.persona,className:Yr("ms-PickerPersona-container",_C.personaContainer,(e={},e["is-selected "+_C.personaContainerIsSelected]=l,e),(t={},t["is-invalid "+_C.validationError]=!n.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":a,role:"listitem","aria-labelledby":"selectedItemPersona-"+c},_.createElement("div",{hidden:!n.canExpand||void 0===i},_.createElement(nc,{onClick:this._onClickIconButton(i),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:Yr("ms-PickerItem-removeButton",_C.expandButton,_C.actionButton),ariaLabel:s})),_.createElement("div",{className:Yr(_C.personaWrapper)},_.createElement("div",{className:Yr("ms-PickerItem-content",_C.itemContent),id:"selectedItemPersona-"+c},_.createElement(_y,m({},n,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:Ci.size32}))),_.createElement(nc,{onClick:this._onClickIconButton(r),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:Yr("ms-PickerItem-removeButton",_C.removeButton,_C.actionButton),ariaLabel:s})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(bi),bC=function(e){function t(t){var o=e.call(this,t)||this;return o.itemElement=_.createRef(),o._onClick=function(e){e.preventDefault(),o.props.beginEditing&&!o.props.item.isValid?o.props.beginEditing(o.props.item):o.setState({contextualMenuVisible:!0})},o._onCloseContextualMenu=function(e){o.setState({contextualMenuVisible:!1})},o.state={contextualMenuVisible:!1},o}return h(t,e),t.prototype.render=function(){return _.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?_.createElement(jl,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:Rs.bottomLeftEdge}):null)},t}(bi);Object(Fo.loadStyles)([{rawString:".editingInput_aec7d74f{border:0px;outline:none;width:100%}.editingInput_aec7d74f::-ms-clear{display:none}.editingContainer_aec7d74f{margin:4px}\n"}]);var xC,SC,CC="editingInput_aec7d74f",kC="editingContainer_aec7d74f",wC=u,IC=function(e){function t(t){var o=e.call(this,t)||this;return o._editingFloatingPicker=_.createRef(),o._renderEditingSuggestions=function(){var e=o.props.onRenderFloatingPicker,t=o.props.floatingPickerProps;return e&&t?_.createElement(e,m({componentRef:o._editingFloatingPicker,onChange:o._onSuggestionSelected,inputElement:o._editingInput,selectedItems:[]},t)):_.createElement(_.Fragment,null)},o._resolveInputRef=function(e){o._editingInput=e,o.forceUpdate(function(){o._editingInput.focus()})},o._onInputClick=function(){o._editingFloatingPicker.current&&o._editingFloatingPicker.current.showPicker(!0)},o._onInputBlur=function(e){if(o._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&o._editingFloatingPicker.current.forceResolveSuggestion()}},o._onInputChange=function(e){var t=e.target.value;""===t?o.props.onRemoveItem&&o.props.onRemoveItem():o._editingFloatingPicker.current&&o._editingFloatingPicker.current.onQueryStringChanged(t)},o._onSuggestionSelected=function(e){o.props.onEditingComplete(o.props.item,e)},o.state={contextualMenuVisible:!1},o}return h(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=Fn(),t=di(this.props,Zn);return _.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:Yr("ms-EditingItem",wC.editingContainer)},_.createElement("input",m({},t,{ref:this._resolveInputRef,autoCapitalize:"off",autoComplete:"off",onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:wC.editingInput,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){e.which!==zt.backspace&&e.which!==zt.del||e.stopPropagation()},t}(bi),DC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(sC),PC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map(function(e,o){return t._renderItem(e,o)})},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,o){e.isEditing=!1,t.replaceItem(e,o)},t}return h(t,e),t.prototype._renderItem=function(e,t){var o=this,n=this.props.removeButtonAriaLabel,i=this.props.onExpandGroup,r={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return o.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:n,onCopyItem:function(e){return o.copyItems([e])},onExpandItem:i?function(){return i(e)}:void 0,menuItems:this._createMenuItems(e)},s=r.menuItems.length>0;if(e.isEditing&&s)return _.createElement(IC,m({},r,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var a=(0,this.props.onRenderItem)(r);return s?_.createElement(bC,{key:r.key,renderedItem:a,beginEditing:this._beginEditing,menuItems:this._createMenuItems(r.item),item:r.item}):a},t.prototype._createMenuItems=function(e){var t=this,o=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&o.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,o){t._beginEditing(o.data)},data:e}),this.props.removeMenuItemText&&o.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,o){t.removeItem(o.data)},data:e}),this.props.copyMenuItemText&&o.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,o){t.props.onCopyItems&&t.copyItems([o.data])},data:e}),o},t.defaultProps={onRenderItem:function(e){return _.createElement(yC,m({},e))}},t}(DC),TC=mn(),EC=function(e){var t=e.styles,o=e.theme,n=e.className,i=e.vertical,r=e.alignContent,s=TC(t,{theme:o,className:n,alignContent:r,vertical:i});return _.createElement("div",{className:s.root},_.createElement("div",{className:s.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},e.children))},MC=cn(EC,function(e){var t=e.theme,o=e.alignContent,n=e.vertical,i=e.className,r="start"===o,s="center"===o,a="end"===o;return{root:[t.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},n&&(s||!o)&&{verticalAlign:"middle"},n&&r&&{verticalAlign:"top"},n&&a&&{verticalAlign:"bottom"},n&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":{backgroundColor:t.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1}}},!n&&{padding:"4px 0",selectors:{":before":{backgroundColor:t.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"}}},i],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:t.semanticColors.bodyText,background:t.semanticColors.bodyBackground},n&&{padding:"12px 0"}]}},void 0,{scope:"Separator"}),RC={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",dataWrapper:"ms-Shimmer-dataWrapper"},NC=Q({"0%":{backgroundPosition:"-1000%"},"100%":{backgroundPosition:"1000%"}}),BC=Q({"100%":{backgroundPosition:"-1000%"},"0%":{backgroundPosition:"1000%"}});!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(xC||(xC={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(SC||(SC={}));var FC=mn(),LC=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.height,o=e.styles,n=e.width,i=e.borderStyle,r=e.theme;return this._classNames=FC(o,{theme:r,height:t,borderStyle:i}),_.createElement("div",{style:{width:n||"100%",minWidth:"number"==typeof n?n+"px":"auto"},className:this._classNames.root},_.createElement("svg",{width:"2",height:"2",className:this._classNames.topLeftCorner},_.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),_.createElement("svg",{width:"2",height:"2",className:this._classNames.topRightCorner},_.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),_.createElement("svg",{width:"2",height:"2",className:this._classNames.bottomRightCorner},_.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),_.createElement("svg",{width:"2",height:"2",className:this._classNames.bottomLeftCorner},_.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},t}(bi),AC={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var OC=cn(LC,function(e){var t,o=e.height,n=e.borderStyle,i=e.theme,r=i.palette,s=So(AC,i),a=n||{},l={position:"absolute",fill:r.white};return{root:[s.root,i.fonts.medium,{height:o+"px",boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:r.white,selectors:(t={},t[At]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},a],topLeftCorner:[s.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[s.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[s.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[s.bottomLeftCorner,{bottom:"0",left:"0"},l]}},void 0,{scope:"ShimmerLine"}),HC=mn(),WC=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.height,o=e.styles,n=e.width,i=e.borderStyle,r=e.theme;return this._classNames=HC(o,{theme:r,height:t,borderStyle:i}),_.createElement("div",{style:{width:n||"10px",minWidth:"number"==typeof n?n+"px":"auto"},className:this._classNames.root})},t}(bi),zC={root:"ms-ShimmerGap-root"};var VC=cn(WC,function(e){var t,o=e.height,n=e.borderStyle,i=e.theme,r=i.palette,s=n||{};return{root:[So(zC,i).root,i.fonts.medium,{backgroundColor:r.white,height:o+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:r.white,selectors:(t={},t[At]={backgroundColor:"Window",borderColor:"Window"},t)},s]}},void 0,{scope:"ShimmerGap"}),KC={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var UC=mn(),GC=function(e){function t(t){return e.call(this,t)||this}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.height,o=e.styles,n=e.borderStyle,i=e.theme;return this._classNames=UC(o,{theme:i,height:t,borderStyle:n}),_.createElement("div",{className:this._classNames.root},_.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:this._classNames.svg},_.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},t}(bi),YC=cn(GC,function(e){var t,o,n=e.height,i=e.borderStyle,r=e.theme,s=r.palette,a=So(KC,r),l=i||{};return{root:[a.root,r.fonts.medium,{width:n+"px",height:n+"px",minWidth:n+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:s.white,selectors:(t={},t[At]={borderColor:"Window"},t)},l],svg:[a.svg,{display:"block",fill:s.white,selectors:(o={},o[At]={fill:"Window"},o)}]}},void 0,{scope:"ShimmerCircle"}),jC=mn(),qC=function(e){function t(t){var o=e.call(this,t)||this;return o._getRenderedElements=function(e,t){return e?e.map(function(e,n){e.type;var i=g(e,["type"]);switch(e.type){case xC.circle:return _.createElement(YC,m({key:n},i,{styles:o._getStyles(e,t)}));case xC.gap:return _.createElement(VC,m({key:n},i,{styles:o._getStyles(e,t)}));case xC.line:return _.createElement(OC,m({key:n},i,{styles:o._getStyles(e,t)}))}}):_.createElement(OC,{height:SC.line,styles:{root:[{borderWidth:"0px"}]}})},o._getStyles=function(e,t){var n,i=o.props.backgroundColor,r=e.verticalAlign,s=e.type,a=e.height,l=t&&a?t-a:0;if(r&&"center"!==r?r&&"top"===r?n={borderBottomWidth:(l||0)+"px",borderTopWidth:"0px"}:r&&"bottom"===r&&(n={borderBottomWidth:"0px",borderTopWidth:(l||0)+"px"}):n={borderBottomWidth:(l?Math.floor(l/2):0)+"px",borderTopWidth:(l?Math.ceil(l/2):0)+"px"},i)switch(s){case xC.circle:return{root:m({},n,{borderColor:i}),svg:{fill:i}};case xC.gap:return{root:m({},n,{borderColor:i,backgroundColor:i})};case xC.line:return{root:m({},n,{borderColor:i}),topLeftCorner:{fill:i},topRightCorner:{fill:i},bottomLeftCorner:{fill:i},bottomRightCorner:{fill:i}}}return{root:m({},n)}},o._findMaxElementHeight=function(e){return e.map(function(e){switch(e.type){case xC.circle:e.height||(e.height=SC.circle);case xC.line:e.height||(e.height=SC.line);case xC.gap:e.height||(e.height=SC.gap)}return e}).reduce(function(e,t){return t.height&&t.height>e?t.height:e},0)},o}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.width,n=e.shimmerElements,i=e.rowHeight,r=e.flexWrap,s=e.theme;this._classNames=jC(t,{theme:s,flexWrap:r});var a=i||this._findMaxElementHeight(n||[]);return _.createElement("div",{style:{width:o||"auto"},className:this._classNames.root},this._getRenderedElements(n,a))},t.defaultProps={flexWrap:!1},t}(bi),ZC={root:"ms-ShimmerElementsGroup-root"};var XC,QC=cn(qC,function(e){var t=e.flexWrap,o=e.theme;return{root:[So(ZC,o).root,o.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap"}]}},void 0,{scope:"ShimmerElementsGroup"}),$C=mn(),JC=function(e){function t(t){var o=e.call(this,t)||this;return o.state={contentLoaded:t.isDataLoaded},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this,o=e.isDataLoaded;void 0!==this._lastTimeoutId&&(this._async.clearTimeout(this._lastTimeoutId),this._lastTimeoutId=void 0),o?this._lastTimeoutId=this._async.setTimeout(function(){t.setState({contentLoaded:o}),t._lastTimeoutId=void 0},200):this.setState({contentLoaded:o})},t.prototype.render=function(){var e=this.props,t=e.styles,o=e.shimmerElements,n=e.children,i=e.isDataLoaded,r=e.width,s=e.className,a=e.customElementsGroup,l=e.theme,c=e.ariaLabel,d=e.shimmerColors,u=this.state.contentLoaded;this._classNames=$C(t,{theme:l,isDataLoaded:i,className:s,transitionAnimationInterval:200,shimmerColor:d&&d.shimmer,shimmerWaveColor:d&&d.shimmerWave});var p=di(this.props,ci);return _.createElement("div",m({},p,{className:this._classNames.root}),!u&&_.createElement("div",{style:{width:r||"100%"},className:this._classNames.shimmerWrapper},a||_.createElement(QC,{shimmerElements:o,backgroundColor:d&&d.background})),n&&_.createElement("div",{className:this._classNames.dataWrapper},n),c&&!i&&_.createElement("div",{role:"status","aria-live":"polite"},_.createElement(sr,null,_.createElement("div",{className:this._classNames.screenReaderText},c))))},t.defaultProps={isDataLoaded:!1},t}(bi),ek=cn(JC,function(e){var t,o=e.isDataLoaded,n=e.className,i=e.theme,r=e.transitionAnimationInterval,s=e.shimmerColor,a=e.shimmerWaveColor,l=i.palette,c=So(RC,i),d=yn();return{root:[c.root,i.fonts.medium,{position:"relative",height:"auto"},n],shimmerWrapper:[c.shimmerWrapper,{background:(s||l.neutralLighter)+"\n linear-gradient(\n to right,\n "+(s||l.neutralLighter)+" 0%,\n "+(a||l.neutralLight)+" 50%,\n "+(s||l.neutralLighter)+" 100%)\n 0 0 / 90% 100%\n no-repeat",animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:d?BC:NC,transition:"opacity "+r+"ms",selectors:(t={},t[At]={background:"WindowText\n linear-gradient(\n to right,\n transparent 0%,\n Window 50%,\n transparent 100%)\n 0 0 / 90% 100%\n no-repeat"},t)},o&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}],dataWrapper:[c.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity "+r+"ms"},o&&{opacity:"1",position:"static"}],screenReaderText:eo}},void 0,{scope:"Shimmer"}),tk=mn(),ok=10,nk=7,ik=.95,rk=function(e){function t(t){var o=e.call(this,t)||this;return o._onRenderShimmerPlaceholder=function(e,t){var n=o.props.onRenderCustomPlaceholder,i=n?n(t):o._renderDefaultShimmerPlaceholder(t);return _.createElement(ek,{customElementsGroup:i})},o._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,o=e.compact,n=e.selectionMode,i=e.checkboxVisibility,r=e.cellStyleProps,s=void 0===r?Ag:r,a=Og.rowHeight,l=Og.compactRowHeight,c=o?l:a+1,d=[];return n!==vg.none&&i!==Eg.hidden&&d.push(_.createElement(QC,{key:"checkboxGap",shimmerElements:[{type:xC.gap,width:"40px",height:c}]})),t.map(function(e,t){var o=[],n=s.cellLeftPadding+s.cellRightPadding+e.calculatedWidth+(e.isPadded?s.cellExtraRightPadding:0);o.push({type:xC.gap,width:s.cellLeftPadding,height:c}),e.isIconOnly?(o.push({type:xC.line,width:e.calculatedWidth,height:e.calculatedWidth}),o.push({type:xC.gap,width:s.cellRightPadding,height:c})):(o.push({type:xC.line,width:e.calculatedWidth*ik,height:nk}),o.push({type:xC.gap,width:s.cellRightPadding+(e.calculatedWidth-e.calculatedWidth*ik)+(e.isPadded?s.cellExtraRightPadding:0),height:c})),d.push(_.createElement(QC,{key:t,width:n+"px",shimmerElements:o}))}),d.push(_.createElement(QC,{key:"endGap",width:"100%",shimmerElements:[{type:xC.gap,width:"100%",height:c}]})),_.createElement("div",{style:{display:"flex"}},d)},o._shimmerItems=t.shimmerLines?new Array(t.shimmerLines):new Array(ok),o}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,o=e.enableShimmer,n=e.items,i=e.listProps,r=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),s=(e.shimmerLines,e.styles),a=e.theme,l=g(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme"]),c=i&&i.className;this._classNames=tk(s,{theme:a,className:c,enableShimmer:o});var d=m({},i,{className:o&&!r?this._classNames.root:c});return _.createElement(Jf,m({},l,{items:o?this._shimmerItems:n,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:d,styles:t}))},t}(bi),sk=cn(rk,function(e){var t=e.theme,o=e.className,n=e.enableShimmer,i=t.semanticColors,r={position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom,\n transparent 30%,\n "+t.palette.whiteTranslucent40+" 65%,\n "+i.listBackground+" 100%)"}}};return{root:[n&&r,o]}},void 0,{scope:"ShimmeredDetailsList"});!function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(XC||(XC={}));var ak,lk=mn(),ck=function(e){function t(t){var o=e.call(this,t)||this;o._sliderLine=_.createRef(),o._thumb=_.createRef(),o._getAriaValueText=function(e){if(o.props.ariaValueText&&void 0!==e)return o.props.ariaValueText(e)},o._onMouseDownOrTouchStart=function(e){"mousedown"===e.type?(o._events.on(window,"mousemove",o._onMouseMoveOrTouchMove,!0),o._events.on(window,"mouseup",o._onMouseUpOrTouchEnd,!0)):"touchstart"===e.type&&(o._events.on(window,"touchmove",o._onMouseMoveOrTouchMove,!0),o._events.on(window,"touchend",o._onMouseUpOrTouchEnd,!0)),o._onMouseMoveOrTouchMove(e,!0)},o._onMouseMoveOrTouchMove=function(e,t){if(o._sliderLine.current){var n,i,r,s=o.props,a=s.max,l=s.min,c=s.step,d=(a-l)/c,u=o._sliderLine.current.getBoundingClientRect(),p=(o.props.vertical?u.height:u.width)/d;if(o.props.vertical){var h=o._getPosition(e,o.props.vertical);n=(u.bottom-h)/p}else{var m=o._getPosition(e,o.props.vertical);n=(yn()?u.right-m:m-u.left)/p}n>Math.floor(d)?r=i=a:n<0?r=i=l:(r=l+c*n,i=l+c*Math.round(n)),o._updateValue(i,r),t||(e.preventDefault(),e.stopPropagation())}},o._onMouseUpOrTouchEnd=function(e){o.setState({renderedValue:o.state.value}),o.props.onChanged&&o.props.onChanged(e,o.state.value),o._events.off()},o._onKeyDown=function(e){var t=o.state.value,n=o.props,i=n.max,r=n.min,s=n.step,a=0;switch(e.which){case xn(zt.left):case zt.down:a=-s;break;case xn(zt.right):case zt.up:a=s;break;case zt.home:t=r;break;case zt.end:t=i;break;default:return}var l=Math.min(i,Math.max(r,t+a));o._updateValue(l,l),e.preventDefault(),e.stopPropagation()},o._warnMutuallyExclusive({value:"defaultValue"}),o._id=Fn("Slider");var n=void 0!==t.value?t.value:void 0!==t.defaultValue?t.defaultValue:t.min;return o.state={value:n,renderedValue:n},o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){if(void 0!==e.value){var t=Math.max(e.min,Math.min(e.max,e.value));this.setState({value:t,renderedValue:t})}},t.prototype.render=function(){var e,t,o,n,i,r=this.props,s=r.ariaLabel,a=r.className,l=r.disabled,c=r.label,d=r.max,u=r.min,p=r.showValue,h=r.buttonProps,g=r.vertical,f=r.valueFormat,v=r.styles,y=r.theme,b=r.originFromZero,x=this.state,S=x.value,C=x.renderedValue,k=u===d?0:(C-u)/(d-u)*100,w=u>=0?0:-u/(d-u)*100,I=g?"height":"width",D=l?{}:{onMouseDown:this._onMouseDownOrTouchStart},P=l?{}:{onTouchStart:this._onMouseDownOrTouchStart},T=l?{}:{onKeyDown:this._onKeyDown},E=lk(v,{className:a,disabled:l,vertical:g,showTransitions:C===S,showValue:p,theme:y}),M=h?di(h,ci):void 0;return _.createElement("div",{className:E.root},c&&_.createElement(Rp,m({className:E.titleLabel},s?{}:{htmlFor:this._id}),c),_.createElement("div",{className:E.container},_.createElement("div",m({"aria-valuenow":S,"aria-valuemin":u,"aria-valuemax":d,"aria-valuetext":this._getAriaValueText(S),"aria-label":s||c,"aria-disabled":l},D,P,T,M,{className:Yr(E.slideBox,h.className),id:this._id,role:"slider",tabIndex:l?void 0:0,"data-is-focusable":!l}),_.createElement("div",{ref:this._sliderLine,className:E.line},b&&_.createElement("span",{className:Yr(E.zeroTick),style:this._getStyleUsingOffsetPercent(g,w)}),_.createElement("span",{ref:this._thumb,className:E.thumb,style:this._getStyleUsingOffsetPercent(g,k)}),b?_.createElement(_.Fragment,null,_.createElement("span",{className:Yr(E.lineContainer,E.inactiveSection),style:(e={},e[I]=Math.min(k,w)+"%",e)}),_.createElement("span",{className:Yr(E.lineContainer,E.activeSection),style:(t={},t[I]=Math.abs(w-k)+"%",t)}),_.createElement("span",{className:Yr(E.lineContainer,E.inactiveSection),style:(o={},o[I]=Math.min(100-k,100-w)+"%",o)})):_.createElement(_.Fragment,null,_.createElement("span",{className:Yr(E.lineContainer,E.activeSection),style:(n={},n[I]=k+"%",n)}),_.createElement("span",{className:Yr(E.lineContainer,E.inactiveSection),style:(i={},i[I]=100-k+"%",i)})))),p&&_.createElement(Rp,{className:E.valueLabel},f?f(S):S)))},t.prototype.focus=function(){this._thumb.current&&this._thumb.current.focus()},Object.defineProperty(t.prototype,"value",{get:function(){return this.state.value},enumerable:!0,configurable:!0}),t.prototype._getStyleUsingOffsetPercent=function(e,t){var o;return(o={})[e?"bottom":yn()?"right":"left"]=t+"%",o},t.prototype._getPosition=function(e,t){var o;switch(e.type){case"mousedown":case"mousemove":o=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":o=t?e.touches[0].clientY:e.touches[0].clientX}return o},t.prototype._updateValue=function(e,t){var o=this,n=this.props.step,i=0;if(isFinite(n))for(;Math.round(n*Math.pow(10,i))/Math.pow(10,i)!==n;)i++;var r=parseFloat(e.toFixed(i)),s=r!==this.state.value;this.setState({value:r,renderedValue:t},function(){s&&o.props.onChange&&o.props.onChange(o.state.value)})},t.defaultProps={step:1,min:0,max:10,showValue:!0,disabled:!1,vertical:!1,buttonProps:{},originFromZero:!1},t}(bi),dk={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},uk=cn(ck,function(e){var t,o,n,i,r,s,a,l,c,d,u,p=e.className,h=e.titleLabelClassName,m=e.theme,g=So(dk,m),f=!e.disabled&&{backgroundColor:m.palette.themePrimary,selectors:(t={},t[At]={backgroundColor:"Highlight"},t)},v=!e.disabled&&{backgroundColor:m.palette.themeLight,selectors:(o={},o[At]={borderColor:"Highlight"},o)},_=!e.disabled&&{border:"2px solid "+m.palette.themePrimary,selectors:(n={},n[At]={borderColor:"Highlight"},n)},y=!e.disabled&&{backgroundColor:m.palette.themeLight,selectors:(i={},i[At]={backgroundColor:"Highlight"},i)};return{root:[g.root,m.fonts.medium,{userSelect:"none"},e.vertical&&{marginRight:8}].concat([e.disabled?void 0:g.enabled],[e.disabled?g.disabled:void 0],[e.vertical?void 0:g.row],[e.vertical?g.column:void 0],[p]),titleLabel:[{padding:0},h],container:[g.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},e.vertical&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:[g.slideBox,Xt(m),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:{":active $activeSection":f,":hover $activeSection":f,":active $inactiveSection":v,":hover $inactiveSection":v,":active $thumb":_,":hover $thumb":_,":active $zeroTick":y,":hover $zeroTick":y,$thumb:[{borderWidth:2,borderStyle:"solid",borderColor:m.palette.neutralSecondary,borderRadius:10,boxSizing:"border-box",background:m.palette.white,display:"block",width:16,height:16,position:"absolute"},e.vertical?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:yn()?"translateX(50%)":"translateX(-50%)"},e.showTransitions&&{transition:"left "+at.durationValue3+" "+at.easeFunction1},e.disabled&&{borderColor:m.palette.neutralTertiaryAlt,selectors:(r={},r[At]={borderColor:"GrayText"},r)}]}},e.vertical?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}].concat([e.showValue?g.showValue:void 0],[e.showTransitions?g.showTransitions:void 0]),thumb:[g.thumb],line:[g.line,{display:"flex",position:"relative",selectors:{$lineContainer:[{borderRadius:4,boxSizing:"border-box"},e.vertical?{width:4,height:"100%"}:{height:4,width:"100%"}]}},e.vertical?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{}],activeSection:[g.activeSection,{background:m.palette.neutralSecondary,selectors:(s={},s[At]={backgroundColor:"WindowText"},s)},e.showTransitions&&{transition:"width "+at.durationValue3+" "+at.easeFunction1},e.disabled&&{background:m.palette.neutralTertiaryAlt,selectors:(a={},a[At]={backgroundColor:"GrayText",borderColor:"GrayText"},a)}],inactiveSection:[g.inactiveSection,{background:m.palette.neutralTertiaryAlt,selectors:(l={},l[At]={border:"1px solid WindowText"},l)},e.showTransitions&&{transition:"width "+at.durationValue3+" "+at.easeFunction1},e.disabled&&{background:m.palette.neutralLight,selectors:(c={},c[At]={borderColor:"GrayText"},c)}],zeroTick:[g.zeroTick,{position:"absolute",background:m.palette.neutralTertiaryAlt,selectors:(d={},d[At]={backgroundColor:"WindowText"},d)},e.disabled&&{background:m.palette.neutralLight,selectors:(u={},u[At]={backgroundColor:"GrayText"},u)},e.vertical?{width:"16px",height:"1px",transform:yn()?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[g.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},e.vertical?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}},void 0,{scope:"Slider"}),pk=_o(function(e){var t,o=e.semanticColors,n=o.disabledText;return{backgroundColor:o.disabledBackground,borderColor:"transparent",pointerEvents:"none",cursor:"default",color:n,selectors:(t={},t[At]={color:"GrayText"},t)}}),hk=_o(function(e,t,o){var n,i,r,s=e.semanticColors,a=s.buttonText,l=s.buttonTextHovered,c=s.buttonTextChecked,d=s.buttonBackgroundHovered,u=s.buttonBackgroundChecked;return q({root:{outline:"none",display:"block",height:"50%",width:"14px",padding:"0",backgroundColor:"transparent",textAlign:"center",cursor:"default",color:a},rootHovered:{backgroundColor:d,color:l},rootChecked:{backgroundColor:u,color:c,selectors:(n={},n[At]={backgroundColor:"Highlight",color:"HighlightText"},n)},rootPressed:{backgroundColor:u,color:c,selectors:(i={},i[At]={backgroundColor:"Highlight",color:"HighlightText"},i)},rootDisabled:{opacity:.5,selectors:(r={},r[At]={color:"GrayText",opacity:1},r)},icon:{fontSize:"6px",marginTop:"0",marginRight:"0",marginBottom:"0",marginLeft:"0"}},{},o)}),mk=_o(function(e,t){var o,n,i,r,s=e.palette,a=e.semanticColors,l=a.inputBorder,c=a.inputBorderHovered,d=a.inputFocusBorderAlt,u=a.disabledText,p=a.bodyText,h=s.white,m=s.themePrimary,g=a.disabledText;return q({root:{outline:"none",fontSize:_t.medium,width:"100%",minWidth:"86px"},labelWrapper:{display:"inline-flex"},labelWrapperStart:{float:"left",marginRight:"10px"},labelWrapperEnd:{float:"right",marginLeft:"10px"},labelWrapperTop:{marginBottom:"10px"},labelWrapperBottom:{marginTop:"10px"},icon:{padding:"2px 5px",fontSize:"20px"},iconDisabled:{color:g},label:{pointerEvents:"none",padding:"2px 0"},labelDisabled:{cursor:"default",color:u,selectors:(o={},o[At]={color:"GrayText"},o)},spinButtonWrapper:{display:"flex",boxSizing:"border-box",height:"32px",minWidth:"86px",borderWidth:"1px",borderStyle:"solid",borderColor:l},spinButtonWrapperTopBottom:{width:"100%"},spinButtonWrapperHovered:{borderColor:c,outline:"2px dashed transparent",selectors:(n={},n[At]={borderColor:"Highlight",outline:"none"},n)},spinButtonWrapperFocused:{borderColor:d,outline:"2px dashed transparent",selectors:(i={},i[At]={borderColor:"Highlight",outline:"none"},i)},spinButtonWrapperDisabled:pk(e),input:{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",marginTop:"0",marginRight:"0",marginBottom:"0",marginLeft:"0",fontSize:_t.medium,color:p,height:"100%",padding:"0 12px",outline:"0",textOverflow:"ellipsis",display:"block",float:"left",width:"calc(100% - 14px)",minWidth:"72px",overflow:"hidden",cursor:"text",userSelect:"text"},inputTextSelected:{backgroundColor:m,color:h,selectors:(r={},r[At]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},r)},inputDisabled:pk(e),arrowButtonsContainer:{outline:"none",fontSize:"12px",display:"block",float:"left",height:"100%",cursor:"default",padding:"0",boxSizing:"border-box"},arrowButtonsContainerDisabled:pk(e)},t)}),gk=_o(function(e,t,o,n,i,r){return void 0===i&&(i=Ys.start),void 0===r&&(r=void 0),{root:j(e.root,r),labelWrapper:j(e.labelWrapper,fk(i,e)),icon:j(e.icon,t&&e.iconDisabled),label:j(e.label,t&&e.labelDisabled),spinButtonWrapper:j(e.spinButtonWrapper,vk(i,e),!t&&[{selectors:{":hover":e.spinButtonWrapperHovered}},o&&{selectors:{"&&":e.spinButtonWrapperFocused}}],t&&e.spinButtonWrapperDisabled),input:j("ms-spinButton-input",e.input,!t&&{selectors:{"::selection":e.inputTextSelected}},t&&e.inputDisabled),arrowBox:j(e.arrowButtonsContainer,t&&e.arrowButtonsContainerDisabled)}});function fk(e,t){switch(e){case Ys.start:return t.labelWrapperStart;case Ys.end:return t.labelWrapperEnd;case Ys.top:return t.labelWrapperTop;case Ys.bottom:return t.labelWrapperBottom}}function vk(e,t){switch(e){case Ys.top:case Ys.bottom:return t.spinButtonWrapperTopBottom;default:return{}}}!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(ak||(ak={}));var _k,yk=function(e){function t(t){var o=e.call(this,t)||this;o._input=_.createRef(),o._initialStepDelay=400,o._stepDelay=75,o._onFocus=function(e){o._input.current&&((o._spinningByMouse||o.state.keyboardSpinDirection!==ak.notSpinning)&&o._stop(),o._input.current.select(),o.setState({isFocused:!0}),o.props.onFocus&&o.props.onFocus(e))},o._onBlur=function(e){o._validate(e),o.setState({isFocused:!1}),o.props.onBlur&&o.props.onBlur(e)},o._onValidate=function(e,t){return o.props.onValidate?o.props.onValidate(e,t):o._defaultOnValidate(e)},o._calculatePrecision=function(e){var t=e.precision;return void 0===t?Math.max(pg(e.step),0):t},o._defaultOnValidate=function(e){if(null===e||0===e.trim().length||isNaN(Number(e)))return o._lastValidValue;var t=Math.min(o.props.max,Math.max(o.props.min,Number(e)));return String(t)},o._onIncrement=function(e){return o.props.onIncrement?o.props.onIncrement(e):o._defaultOnIncrement(e)},o._defaultOnIncrement=function(e){var t=o.props,n=t.max,i=t.step,r=Math.min(Number(e)+Number(i),n);return r=hg(r,o._precision),String(r)},o._onDecrement=function(e){return o.props.onDecrement?o.props.onDecrement(e):o._defaultOnDecrement(e)},o._defaultOnDecrement=function(e){var t=o.props,n=t.min,i=t.step,r=Math.max(Number(e)-Number(i),n);return r=hg(r,o._precision),String(r)},o._validate=function(e){if(void 0!==o.state.value&&void 0!==o._valueToValidate&&o._valueToValidate!==o._lastValidValue){var t=o._onValidate(o._valueToValidate,e);t&&(o._lastValidValue=t,o._valueToValidate=void 0,o.setState({value:t}))}},o._onInputChange=function(e){var t=e.target.value;o._valueToValidate=t,o.setState({value:t})},o._updateValue=function(e,t,n){var i=n(o.state.value);i&&(o._lastValidValue=i,o.setState({value:i})),o._spinningByMouse!==e&&(o._spinningByMouse=e),e&&(o._currentStepFunctionHandle=o._async.setTimeout(function(){o._updateValue(e,o._stepDelay,n)},t))},o._stop=function(){o._currentStepFunctionHandle>=0&&(o._async.clearTimeout(o._currentStepFunctionHandle),o._currentStepFunctionHandle=-1),(o._spinningByMouse||o.state.keyboardSpinDirection!==ak.notSpinning)&&(o._spinningByMouse=!1,o.setState({keyboardSpinDirection:ak.notSpinning}))},o._handleKeyDown=function(e){if(e.which!==zt.up&&e.which!==zt.down&&e.which!==zt.enter||(e.preventDefault(),e.stopPropagation()),o.props.disabled)o._stop();else{var t=ak.notSpinning;switch(e.which){case zt.up:t=ak.up,o._updateValue(!1,o._initialStepDelay,o._onIncrement);break;case zt.down:t=ak.down,o._updateValue(!1,o._initialStepDelay,o._onDecrement);break;case zt.enter:case zt.tab:o._validate(e);break;case zt.escape:o.state.value!==o._lastValidValue&&o.setState({value:o._lastValidValue})}o.state.keyboardSpinDirection!==t&&o.setState({keyboardSpinDirection:t})}},o._handleKeyUp=function(e){(o.props.disabled||e.which===zt.up||e.which===zt.down)&&o._stop()},o._onIncrementMouseDown=function(){o._updateValue(!0,o._initialStepDelay,o._onIncrement)},o._onDecrementMouseDown=function(){o._updateValue(!0,o._initialStepDelay,o._onDecrement)},o._warnMutuallyExclusive({value:"defaultValue"});var n=t.value||t.defaultValue||String(t.min)||"0";return o._lastValidValue=n,o._precision=o._calculatePrecision(o.props),o.state={isFocused:!1,value:n,keyboardSpinDirection:ak.notSpinning},o._currentStepFunctionHandle=-1,o._labelId=Fn("Label"),o._inputId=Fn("input"),o._spinningByMouse=!1,o._valueToValidate=void 0,o}return h(t,e),t.prototype.componentWillReceiveProps=function(e){this._lastValidValue=this.state.value;var t=e.value?e.value:String(e.min);e.defaultValue&&(t=String(Math.max(e.min,Math.min(e.max,Number(e.defaultValue))))),void 0!==e.value&&this.setState({value:t}),this._precision=this._calculatePrecision(e)},t.prototype.render=function(){var e=this,t=this.props,o=t.disabled,n=t.label,i=t.min,r=t.max,s=t.labelPosition,a=t.iconProps,l=t.incrementButtonIcon,c=t.incrementButtonAriaLabel,d=t.decrementButtonIcon,u=t.decrementButtonAriaLabel,p=t.title,h=t.ariaLabel,g=t.ariaDescribedBy,f=t.styles,v=t.upArrowButtonStyles,y=t.downArrowButtonStyles,b=t.theme,x=t.ariaPositionInSet,S=t.ariaSetSize,C=t.ariaValueNow,k=t.ariaValueText,w=t.keytipProps,I=t.className,D=this.state,P=D.isFocused,T=D.value,E=D.keyboardSpinDirection,M=this.props.getClassNames?this.props.getClassNames(b,!!o,!!P,E,s,I):gk(mk(b,f),!!o,!!P,E,s,I);return _.createElement("div",{className:M.root},s!==Ys.bottom&&_.createElement("div",{className:M.labelWrapper},a&&_.createElement(Fi,m({},a,{className:M.icon,"aria-hidden":"true"})),n&&_.createElement(Rp,{id:this._labelId,htmlFor:this._inputId,className:M.label},n)),_.createElement(Ds,{keytipProps:w,disabled:o},function(t){return _.createElement("div",{className:M.spinButtonWrapper,title:p&&p,"aria-label":h&&h,"aria-posinset":x,"aria-setsize":S,"data-ktp-target":t["data-ktp-target"]},_.createElement("input",{value:T,id:e._inputId,onChange:e._onChange,onInput:e._onInputChange,className:M.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":n&&e._labelId,"aria-valuenow":isNaN(Number(C))?isNaN(Number(T))?void 0:Number(T):C,"aria-valuetext":k||(isNaN(Number(T))?T:void 0),"aria-valuemin":i,"aria-valuemax":r,"aria-describedby":rs(g,t["aria-describedby"]),onBlur:e._onBlur,ref:e._input,onFocus:e._onFocus,onKeyDown:e._handleKeyDown,onKeyUp:e._handleKeyUp,readOnly:o,"aria-disabled":o,"data-lpignore":!0,"data-ktp-execute-target":t["data-ktp-execute-target"]}),_.createElement("span",{className:M.arrowBox},_.createElement(nc,{styles:hk(b,!0,v),className:"ms-UpButton",checked:E===ak.up,disabled:o,iconProps:l,onMouseDown:e._onIncrementMouseDown,onMouseLeave:e._stop,onMouseUp:e._stop,tabIndex:-1,ariaLabel:c,"data-is-focusable":!1}),_.createElement(nc,{styles:hk(b,!1,y),className:"ms-DownButton",checked:E===ak.down,disabled:o,iconProps:d,onMouseDown:e._onDecrementMouseDown,onMouseLeave:e._stop,onMouseUp:e._stop,tabIndex:-1,ariaLabel:u,"data-is-focusable":!1})))}),s===Ys.bottom&&_.createElement("div",{className:M.labelWrapper},a&&_.createElement(Fi,{iconName:a.iconName,className:M.icon,"aria-hidden":"true"}),n&&_.createElement(Rp,{id:this._labelId,htmlFor:this._inputId,className:M.label},n)))},t.prototype.focus=function(){this._input.current&&this._input.current.focus()},Object.defineProperty(t.prototype,"value",{get:function(){return void 0===this.props.value?this.state.value:this.props.value},enumerable:!0,configurable:!0}),t.prototype._onChange=function(){},t.defaultProps={step:1,min:0,max:100,disabled:!1,labelPosition:Ys.start,label:"",incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},t=f([ul("SpinButton",["theme","styles"],!0)],t)}(bi),bk={root:"ms-StackItem"},xk={start:"flex-start",end:"flex-end"},Sk=pb({displayName:"StackItem",styles:function(e,t,o){var n=e.grow,i=e.shrink,r=e.disableShrink,s=e.align,a=e.verticalFill,l=e.order,c=e.className,d=So(bk,t);return{root:[t.fonts.medium,d.root,{margin:o.margin,height:a?"100%":"auto",width:"auto"},n&&{flexGrow:!0===n?1:n},(r||!n&&!i)&&{flexShrink:0},i&&!r&&{flexShrink:1},s&&{alignSelf:xk[s]||s},l&&{order:l},c]}},view:function(e){var t=e.children;return _.Children.count(t)<1?null:sb(cb(e,{root:"div"}).root,null,t)}}),Ck=Sk,kk=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},wk=function(e){var t=parseFloat(e),o=isNaN(t)?0:t,n=isNaN(t)?"":t.toString();return{value:o,unit:e.substring(n.toString().length)||"px"}},Ik=function(e,t){if(void 0===e||"number"==typeof e||""===e)return e;var o=e.split(" ");return o.length<2?kk(e,t):o.reduce(function(e,o){return kk(e,t)+" "+kk(o,t)})},Dk={start:"flex-start",end:"flex-end"},Pk={root:"ms-Stack",inner:"ms-Stack-inner"},Tk=sb(Ck,null).type,Ek=pb({displayName:"Stack",styles:function(e,t,o){var n,i,r,s,a,l,c,d=e.verticalFill,u=e.maxWidth,p=e.maxHeight,h=e.horizontal,g=e.reversed,f=e.gap,v=e.grow,_=e.wrap,y=e.padding,b=e.horizontalAlign,x=e.verticalAlign,S=e.disableShrink,C=e.className,k=So(Pk,t),w=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var o=e.split(" ");if(o.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===o.length)return{rowGap:wk(kk(o[0],t)),columnGap:wk(kk(o[1],t))};var n=wk(kk(e,t));return{rowGap:n,columnGap:n}}(o&&o.childrenGap?o.childrenGap:f,t),I=w.rowGap,D=w.columnGap,P=""+-.5*D.value+D.unit,T=""+-.5*I.value+I.unit,E={textOverflow:"ellipsis"},M={"> *:not(.ms-StackItem)":{flexShrink:S?0:1}};return _?{root:[k.root,{flexWrap:"wrap",maxWidth:u,maxHeight:p,width:"auto",overflow:"visible",height:"100%"},b&&(n={},n[h?"justifyContent":"alignItems"]=Dk[b]||b,n),x&&(i={},i[h?"alignItems":"justifyContent"]=Dk[x]||x,i),C,{display:"flex"},h&&{height:d?"100%":"auto"}],inner:[k.inner,{display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:T,marginBottom:T,overflow:"visible",boxSizing:"border-box",padding:Ik(y,t),width:0===D.value?"100%":"calc(100% + "+D.value+D.unit+")",maxWidth:"100vw",selectors:m({"> *":m({margin:""+.5*I.value+I.unit+" "+.5*D.value+D.unit},E)},M)},b&&(r={},r[h?"justifyContent":"alignItems"]=Dk[b]||b,r),x&&(s={},s[h?"alignItems":"justifyContent"]=Dk[x]||x,s),h&&{flexDirection:g?"row-reverse":"row",height:0===I.value?"100%":"calc(100% + "+I.value+I.unit+")",selectors:{"> *":{maxWidth:0===D.value?"100%":"calc(100% - "+D.value+D.unit+")"}}},!h&&{flexDirection:g?"column-reverse":"column",height:"calc(100% + "+I.value+I.unit+")",selectors:{"> *":{maxHeight:0===I.value?"100%":"calc(100% - "+I.value+I.unit+")"}}}]}:{root:[k.root,{display:"flex",flexDirection:h?g?"row-reverse":"row":g?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:u,maxHeight:p,padding:Ik(y,t),boxSizing:"border-box",selectors:m((a={"> *":E},a[g?"> *:not(:last-child)":"> *:not(:first-child)"]=[h&&{marginLeft:""+D.value+D.unit},!h&&{marginTop:""+I.value+I.unit}],a),M)},v&&{flexGrow:!0===v?1:v,overflow:"hidden"},b&&(l={},l[h?"justifyContent":"alignItems"]=Dk[b]||b,l),x&&(c={},c[h?"alignItems":"justifyContent"]=Dk[x]||x,c),C]}},view:function(e){var t=e.as,o=void 0===t?"div":t,n=e.disableShrink,i=e.wrap,r=g(e,["as","disableShrink","wrap"]),s=_.Children.map(e.children,function(e,t){if(!e)return null;if(e.type===Tk){var o={shrink:!n};return _.cloneElement(e,m({},o,e.props))}return e}),a=di(r,zn),l=cb(e,{root:o,inner:"div"});return sb(l.root,m({},a),i?sb(l.inner,null,s):s)},statics:{Item:Ck}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(_k||(_k={}));var Mk=function(e){function t(t){var o=e.call(this,t)||this;return o._root=_.createRef(),o._stickyContentTop=_.createRef(),o._stickyContentBottom=_.createRef(),o._nonStickyContent=_.createRef(),o._placeHolder=_.createRef(),o.syncScroll=function(e){var t=o.nonStickyContent;t&&o.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},o._onScrollEvent=function(e,t){if(o.root&&o.nonStickyContent){var n=o._getNonStickyDistanceFromTop(e),i=!1,r=!1;if(o.canStickyTop)i=n-o._getStickyDistanceFromTop()=o._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&o.nonStickyContent.contains(document.activeElement)&&(o.state.isStickyTop!==i||o.state.isStickyBottom!==r)?o._activeElement=document.activeElement:o._activeElement=void 0,o.setState({isStickyTop:o.canStickyTop&&i,isStickyBottom:r,distanceFromTop:n})}},o._getStickyDistanceFromTop=function(){var e=0;return o.stickyContentTop&&(e=o.stickyContentTop.offsetTop),e},o._getStickyDistanceFromTopForFooter=function(e,t){var n=0;return o.stickyContentBottom&&(n=e.clientHeight-t.offsetHeight+o.stickyContentBottom.offsetTop),n},o._getNonStickyDistanceFromTop=function(e){var t=0,n=o.root;if(n){for(;n&&n.offsetParent!==e;)t+=n.offsetTop,n=n.offsetParent;n&&n.offsetParent===e&&(t+=n.offsetTop)}return t},o.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},o._activeElement=void 0,o}return h(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===_k.Both||this.props.stickyPosition===_k.Header},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===_k.Both||this.props.stickyPosition===_k.Footer},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this.context.scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this.context.scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var o=this.context.scrollablePane;if(o){var n=this.state,i=n.isStickyBottom,r=n.isStickyTop,s=n.distanceFromTop,a=!1;t.distanceFromTop!==s&&(o.sortSticky(this,!0),a=!0),t.isStickyTop===r&&t.isStickyBottom===i||(this._activeElement&&this._activeElement.focus(),o.updateStickyRefHeights(),a=!0),a&&o.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var o=this.state,n=o.isStickyTop,i=o.isStickyBottom,r=o.distanceFromTop;return n!==t.isStickyTop||i!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||r!==t.distanceFromTop||Rk(this._nonStickyContent,this._stickyContentTop)||Rk(this._nonStickyContent,this._stickyContentBottom)||Rk(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,o=e.isStickyBottom,n=this.props,i=n.stickyClassName,r=n.children;return this.context.scrollablePane?_.createElement("div",{ref:this._root},this.canStickyTop&&_.createElement("div",{ref:this._stickyContentTop,"aria-hidden":!t,style:{pointerEvents:t?"auto":"none"}},_.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&_.createElement("div",{ref:this._stickyContentBottom,"aria-hidden":!o,style:{pointerEvents:o?"auto":"none"}},_.createElement("div",{style:this._getStickyPlaceholderHeight(o)})),_.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},_.createElement("div",{ref:this._nonStickyContent,className:t||o?i:void 0,style:this._getContentStyles(t||o)},r))):_.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,o=e.isStickyBottom;if(t||o){var n=0,i=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(n=this.nonStickyContent.offsetHeight,i=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:n,width:i}}return{}},t.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:_k.Both,isScrollSynced:!0},t.contextTypes={scrollablePane:ic.object},t}(bi);function Rk(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var Nk=mn(),Bk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t}(_b),Fk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderColorOption=function(e){return _.createElement("svg",{className:t._classNames.svg,viewBox:"0 0 20 20",fill:wh(e.color).str},t.props.circle?_.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):_.createElement("rect",{width:"100%",height:"100%"}))},t._getClassNames=function(e,o,n,i,r,s,a,l,c){var d=Kc(e);return Z(t._classNames,{root:["ms-Button",d.root,n,o,a&&["is-checked",d.rootChecked],s&&["is-disabled",d.rootDisabled],!s&&!a&&{selectors:{":hover":d.rootHovered,":focus":d.rootFocused,":active":d.rootPressed}},s&&a&&[d.rootCheckedDisabled],!s&&a&&{selectors:{":hover":d.rootCheckedHovered,":active":d.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",d.flexContainer]})},t}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.item,o=e.id,n=e.selected,i=e.disabled,r=e.styles,s=e.theme,a=e.circle,l=e.color,c=e.onClick,d=e.onHover,u=e.onFocus,p=e.onMouseEnter,h=e.onMouseMove,m=e.onMouseLeave,g=e.onWheel,f=e.onKeyDown,v=e.height,y=e.width,b=e.borderWidth;return this._classNames=Nk(r,{theme:s,disabled:i,selected:n,circle:a,isWhite:this._isWhiteCell(l),height:v,width:y,borderWidth:b}),_.createElement(Bk,{item:t,id:o+"-"+t.id+"-"+t.index,key:t.id,disabled:i,role:"gridcell",onRenderItem:this._onRenderColorOption,selected:n,onClick:c,onHover:d,onFocus:u,label:t.label,className:this._classNames.colorCell,getClassNames:this._getClassNames,index:t.index,onMouseEnter:p,onMouseMove:h,onMouseLeave:m,onWheel:g,onKeyDown:f})},t.prototype._isWhiteCell=function(e){return"ffffff"===wh(e).hex},t.defaultProps={circle:!0,disabled:!1,selected:!1},t}(_.Component),Lk=cn(Fk,function(e){var t,o,n,i,r=e.theme,s=e.disabled,a=e.selected,l=e.circle,c=e.isWhite,d=e.height,u=void 0===d?20:d,p=e.width,h=void 0===p?20:p,m=e.borderWidth,g=r.semanticColors,f=m||(h<24?2:4);return{colorCell:[{backgroundColor:g.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",border:"none",height:u,width:h},!l&&{selectors:(t={},t["."+Yt+" &:focus::after"]={outlineOffset:f-1+"px"},t)},l&&{borderRadius:"50%",selectors:(o={},o["."+Yt+" &:focus::after"]={outline:"none",borderColor:g.focusBorder,borderRadius:"50%",left:-f,right:-f,top:-f,bottom:-f,selectors:(n={},n[At]={outline:"1px solid ButtonText"},n)},o)},a&&{padding:2,border:f+"px solid "+r.palette.neutralTertiaryAlt},!a&&{selectors:(i={},i["&:hover, &:active, &:focus"]={backgroundColor:g.bodyBackground,padding:2,border:f+"px solid "+r.palette.neutralLight},i["&:focus"]={borderColor:g.bodyBackground,padding:0,selectors:{":hover":{borderColor:r.palette.neutralLight,padding:2}}},i)},s&&{color:g.disabledBodyText,pointerEvents:"none",opacity:.3},c&&!a&&{backgroundColor:g.bodyDivider,padding:1}],svg:[{width:"100%",height:"100%"},l&&{borderRadius:"50%"}]}},void 0,{scope:"ColorPickerGridCell"}),Ak=mn(),Ok=function(e){function t(t){var o,n=e.call(this,t)||this;return n.navigationIdleDelay=250,n._onSwatchColorPickerBlur=function(){n.props.onCellFocused&&(n._cellFocused=!1,n.props.onCellFocused())},n._renderOption=function(e){var t=n._id;return _.createElement(Lk,{item:e,id:t,color:e.color,styles:n.props.getColorGridCellStyles,disabled:n.props.disabled,onClick:n._onCellClick,onHover:n._onGridCellHovered,onFocus:n._onGridCellFocused,selected:void 0!==n.state.selectedIndex&&n.state.selectedIndex===e.index,circle:"circle"===n.props.cellShape,label:e.label,onMouseEnter:n._onMouseEnter,onMouseMove:n._onMouseMove,onMouseLeave:n._onMouseLeave,onWheel:n._onWheel,onKeyDown:n._onKeyDown,height:n.props.cellHeight,width:n.props.cellWidth,borderWidth:n.props.cellBorderWidth})},n._onMouseEnter=function(e){return n.props.focusOnHover?(n.isNavigationIdle&&!n.props.disabled&&e.currentTarget.focus(),!0):!(n.isNavigationIdle&&!n.props.disabled)},n._onMouseMove=function(e){if(!n.props.focusOnHover)return!(n.isNavigationIdle&&!n.props.disabled);var t=e.currentTarget;return!n.isNavigationIdle||document&&t===document.activeElement||t.focus(),!0},n._onMouseLeave=function(e){var t=n.props.mouseLeaveParentSelector;if(n.props.focusOnHover&&t&&n.isNavigationIdle&&!n.props.disabled)for(var o=document.querySelectorAll(t),i=0;i=0&&t!==n.state.selectedIndex&&(n.props.onCellFocused&&n._cellFocused&&(n._cellFocused=!1,n.props.onCellFocused()),n.props.onColorChanged&&n.props.onColorChanged(e.id,e.color),!0!==n.props.isControlled&&n.setState({selectedIndex:t}))}},n._id=t.id||Fn("swatchColorPicker"),n.isNavigationIdle=!0,n.async=new ui(n),t.selectedId&&(o=n._getSelectedIndex(t.colorCells,t.selectedId)),n.state={selectedIndex:o},n}return h(t,e),t.prototype.componentWillReceiveProps=function(e){void 0!==e.selectedId&&this.setState({selectedIndex:this._getSelectedIndex(e.colorCells,e.selectedId)})},t.prototype.componentWillUnmount=function(){this.props.onCellFocused&&this._cellFocused&&(this._cellFocused=!1,this.props.onCellFocused())},t.prototype.render=function(){var e=this.props,t=e.colorCells,o=e.columnCount,n=e.positionInSet,i=e.setSize,r=e.shouldFocusCircularNavigate,s=e.className,a=e.doNotContainWithinFocusZone,l=e.styles,c=e.cellMargin,d=Ak(l,{theme:this.props.theme,className:s,cellMargin:c});return t.length<1||o<1?null:_.createElement(vb,m({},this.props,{items:t.map(function(e,t){return m({},e,{index:t})}),columnCount:o,onRenderItem:this._renderOption,positionInSet:n&&n,setSize:i&&i,shouldFocusCircularNavigate:r,doNotContainWithinFocusZone:a,onBlur:this._onSwatchColorPickerBlur,theme:this.props.theme,styles:function(e){return{root:d.root,tableCell:d.tableCell,focusedContainer:d.focusedContainer}}}))},t.prototype._getSelectedIndex=function(e,t){var o=ss(e,function(e){return e.id===t});return o>=0?o:void 0},t.defaultProps={cellShape:"circle",disabled:!1,shouldFocusCircularNavigate:!0,cellMargin:10},t}(_.Component),Hk={focusedContainer:"ms-swatchColorPickerBodyContainer"},Wk=cn(Ok,function(e){var t=e.className,o=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[So(Hk,o).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}},void 0,{scope:"SwatchColorPicker"}),zk=mn(),Vk=function(e){function t(t){var o=e.call(this,t)||this;return o.rootElement=_.createRef(),o._onKeyDown=function(e){o.props.onDismiss&&e.which===zt.escape&&o.props.onDismiss()},o.state={},o}return h(t,e),t.prototype.componentDidMount=function(){this.props.onDismiss&&document.addEventListener("keydown",this._onKeyDown,!1)},t.prototype.componentWillUnmount=function(){this.props.onDismiss&&document.removeEventListener("keydown",this._onKeyDown)},t.prototype.focus=function(){this.rootElement.current&&this.rootElement.current.focus()},t.prototype.render=function(){var e,t,o,n,i,r=this.props,s=r.children,a=r.illustrationImage,l=r.primaryButtonProps,c=r.secondaryButtonProps,d=r.headline,u=r.hasCondensedHeadline,p=r.hasCloseIcon,h=r.onDismiss,g=r.closeButtonAriaLabel,f=r.hasSmallHeadline,v=r.isWide,y=r.styles,b=r.theme,x=r.ariaDescribedBy,S=r.ariaLabelledBy,C=r.footerContent,k=zk(y,{theme:b,hasCondensedHeadline:u,hasSmallHeadline:f,isWide:v,primaryButtonClassName:l?l.className:void 0,secondaryButtonClassName:c?c.className:void 0});if(a&&a.src&&(e=_.createElement("div",{className:k.imageContent},_.createElement(Ri,m({},a)))),d){var w="string"==typeof d?"p":"div";t=_.createElement("div",{className:k.header},_.createElement(w,{className:k.headline,id:S},d))}if(s){var I="string"==typeof s?"p":"div";o=_.createElement("div",{className:k.body},_.createElement(I,{className:k.subText,id:x},s))}return(l||c||C)&&(n=_.createElement("div",{className:k.footer},l&&_.createElement(jc,m({},l,{className:k.primaryButton})),c&&_.createElement(Vc,m({},c,{className:k.secondaryButton})),C&&_.createElement("span",null,C))),p&&(i=_.createElement(nc,{className:k.closeButton,iconProps:{iconName:"Cancel"},title:g,ariaLabel:g,onClick:h})),_.createElement("div",{className:k.content,ref:this.rootElement,role:"dialog",tabIndex:-1,"aria-labelledby":S,"aria-describedby":x,"data-is-focusable":!0},e,_.createElement("div",{className:k.bodyContent},t,o,n),i)},t.defaultProps={hasCondensedHeadline:!1,imageProps:{imageFit:vi.cover,width:364,height:130}},t}(bi),Kk={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},Uk=Q({"0%":{opacity:0,animationTimingFunction:at.easeFunction1,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}}),Gk=function(e){return[{display:"block",maxWidth:364,border:0,outline:"transparent",boxShadow:"none !important",width:"calc(100% + 1px)",animationName:""+Uk,animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:"456px"}]},Yk=function(e,t,o){return t?[e.headerIsCondensed]:o?[e.headerIsSmall,{selectors:{":not(:last-child)":{marginBottom:"14px"}}}]:[e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:"14px"}}}]},jk=function(e){var t,o,n=e.calloutClassName,i=e.hasCondensedHeadline,r=e.hasSmallHeadline,s=e.isWide,a=e.primaryButtonClassName,l=e.secondaryButtonClassName,c=e.theme,d=!i&&!r,u=c.palette,p=So(Kk,c);return{root:[p.root,c.fonts.medium,n],body:[p.body,{selectors:{":not(:last-child)":{marginBottom:"20px"}}}],bodyContent:[p.bodyContent,{padding:"20px"},s&&{maxWidth:"302px"}],closeButton:[p.closeButton,{position:"absolute",right:0,top:0,color:u.white,fontSize:_t.small,selectors:{":hover":{background:"transparent"}}}],content:[p.content].concat(Gk(s),[s&&{display:"flex"}]),footer:[p.footer,{display:"flex",alignItems:"center",color:u.white,selectors:{"> *:not(:first-child)":{marginLeft:"20px"}}}],header:[p.header].concat(Yk(p,i,r),[(i||r)&&[Nt.medium,{marginRight:"10px",fontWeight:yt.semibold}]]),headline:[p.headline,{margin:0,color:u.white},d&&[Nt.xxLarge,{fontWeight:yt.light}]],imageContent:[p.header,p.image,s&&{display:"flex",alignItems:"center",paddingLeft:"20px",maxWidth:"154px"}],primaryButton:[p.primaryButton,a,{backgroundColor:u.white,borderColor:u.white,whiteSpace:"nowrap",selectors:(t={},t["."+p.buttonLabel]=[Nt.medium,{color:u.themePrimary}],t[":hover"]={backgroundColor:u.themeLighter,borderColor:u.themeLighter},t[":focus"]={backgroundColor:u.themeLighter,borderColor:u.white},t[":active"]={backgroundColor:u.white,borderColor:u.white},t)}],secondaryButton:[p.secondaryButton,l,{backgroundColor:u.themePrimary,borderColor:u.white,whiteSpace:"nowrap",selectors:(o={},o["."+p.buttonLabel]=[Nt.medium,{color:u.white}],o["&:hover, &:focus"]={backgroundColor:u.themeDarkAlt,borderColor:u.white},o[":active"]={backgroundColor:u.themePrimary,borderColor:u.white},o)}],subText:[p.subText,{margin:0,fontSize:_t.medium,color:u.white,fontWeight:yt.semilight}],subComponentStyles:{callout:{root:Gk(s).concat([c.fonts.medium]),beak:[{background:u.themePrimary}],calloutMain:[{background:u.themePrimary}]}}}},qk=cn(Vk,jk,void 0,{scope:"TeachingBubbleContent"}),Zk=mn(),Xk=function(e){function t(t){var o=e.call(this,t)||this;return o.rootElement=_.createRef(),o.state={},o._defaultCalloutProps={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Rs.rightCenter},o}return h(t,e),t.prototype.focus=function(){this.rootElement.current&&this.rootElement.current.focus()},t.prototype.render=function(){var e=this.props,t=e.calloutProps,o=e.targetElement,n=e.onDismiss,i=e.isWide,r=e.styles,s=e.theme,a=e.target,l=m({},this._defaultCalloutProps,t),c={theme:s,isWide:i,calloutClassName:l?l.className:void 0},d=Zk(r,c),u=d.subComponentStyles?d.subComponentStyles.callout:void 0;return _.createElement(yl,m({target:a||o,onDismiss:n},l,{className:d.root,styles:u,hideOverflow:!0}),_.createElement("div",{ref:this.rootElement},_.createElement(qk,m({},this.props))))},t.defaultProps={calloutProps:{beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Rs.rightCenter}},t}(bi),Qk=cn(Xk,jk,void 0,{scope:"TeachingBubble"}),$k=function(e){if(!e.children)return null;e.block,e.className;var t=e.as,o=void 0===t?"span":t,n=(e.variant,e.nowrap,g(e,["block","className","as","variant","nowrap"]));return sb(cb(e,{root:o}).root,m({},di(n,zn)))},Jk=function(e,t){var o=e.as,n=e.className,i=e.block,r=e.nowrap,s=e.variant,a=t.fonts[s||"medium"];return{root:[t.fonts.medium,{display:i?"td"===o?"table-cell":"block":"inline",fontFamily:a&&a.fontFamily||"inherit",fontSize:a&&a.fontSize||"inherit",fontWeight:a&&a.fontWeight||"inherit",color:a&&a.color||"inherit",mozOsxFontSmoothing:a&&a.MozOsxFontSmoothing,webkitFontSmoothing:a&&a.WebkitFontSmoothing},r&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},n]}},ew=pb({displayName:"Text",styles:Jk,view:$k}),tw={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function ow(e,t){if(void 0===t&&(t=tw),!e)return[];for(var o=[],n=0,i=0;i+n0&&(i=t[0].displayIndex-1);for(var r=0,s=t;ri&&(i=a.displayIndex)):o&&(l=o),n=n.slice(0,a.displayIndex)+l+n.slice(a.displayIndex+1)}return o||(n=n.slice(0,i+1)),n}function iw(e,t){for(var o=0;o=t)return e[o].displayIndex;return e[e.length-1].displayIndex}function rw(e,t,o){for(var n=0;n=t){if(e[n].displayIndex>=t+o)break;e[n].value=void 0}return e}function sw(e,t,o){for(var n=0,i=0,r=!1,s=0;s=t)for(r=!0,i=e[s].displayIndex;n=t){e[o].value=void 0;break}return e}(this._maskCharData,s),n=iw(this._maskCharData,s)):(this._maskCharData=function(e,t){for(var o=e.length-1;o>=0;o--)if(e[o].displayIndex=0;o--)if(e[o].displayIndexo.length){d=a-(c=t.length-o.length);var h=t.substr(d,c);n=sw(this._maskCharData,d,h)}else if(t.length<=o.length){c=1;var m=o.length+c-t.length;d=a-c,h=t.substr(d,c);this._maskCharData=rw(this._maskCharData,d,m),n=sw(this._maskCharData,d,h)}this._changeSelectionData=null;var g=nw(this.props.mask,this._maskCharData,this.props.maskChar);this.setState({displayValue:g,maskCursorPosition:n}),this.props.onChange&&this.props.onChange(e,g),this.props.onChanged&&this.props.onChanged(g)}},t.prototype._onKeyDown=function(e){var t=this._textField.current;if(this.props.onKeyDown&&this.props.onKeyDown(e),this._changeSelectionData=null,t&&t.value){var o=e.keyCode,n=e.ctrlKey,i=e.metaKey;if(n||i)return;if(o===zt.backspace||o===zt.del){var r=e.target.selectionStart,s=e.target.selectionEnd;if(!(o===zt.backspace&&s&&s>0||o===zt.del&&null!==r&&rthis.eventPool.length&&this.eventPool.push(a)}function Ne(a){a.eventPool=[];a.getPooled=yh;a.release=zh}function Oe(a,b){switch(a){case "keyup":return-1!==Ah.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function Pe(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}function Bh(a,b){switch(a){case "compositionend":return Pe(b); +case "keypress":if(32!==b.which)return null;Qe=!0;return Re;case "textInput":return a=b.data,a===Re&&Qe?null:a;default:return null}}function Ch(a,b){if(Sa)return"compositionend"===a||!hd&&Oe(a,b)?(a=Me(),hc=gd=qa=null,Sa=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1b}return!1}function K(a,b,c,d,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b}function rd(a,b,c,d){var e=A.hasOwnProperty(b)? +A[b]:null;var f=null!==e?0===e.type:d?!1:!(2rc.length&&rc.push(a)}}}function zf(a){Object.prototype.hasOwnProperty.call(a,sc)||(a[sc]=Vh++,Af[a[sc]]= +{});return Af[a[sc]]}function xd(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}function Bf(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Cf(a,b){var c=Bf(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Bf(c)}}function Df(a,b){return a&&b?a=== +b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Df(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function Ef(){for(var a=window,b=xd();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=xd(a.document)}return b}function yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type|| +"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}function Wh(){var a=Ef();if(yd(a)){if("selectionStart"in a)var b={start:a.selectionStart,end:a.selectionEnd};else a:{b=(b=a.ownerDocument)&&b.defaultView||window;var c=b.getSelection&&b.getSelection();if(c&&0!==c.rangeCount){b=c.anchorNode;var d=c.anchorOffset,e=c.focusNode;c=c.focusOffset;try{b.nodeType,e.nodeType}catch(cj){b=null;break a}var f=0,g=-1,h=-1,l=0,k=0,m=a,n=null;b:for(;;){for(var p;;){m!==b||0!==d&&3!== +m.nodeType||(g=f+d);m!==e||0!==c&&3!==m.nodeType||(h=f+c);3===m.nodeType&&(f+=m.nodeValue.length);if(null===(p=m.firstChild))break;n=m;m=p}for(;;){if(m===a)break b;n===b&&++l===d&&(g=f);n===e&&++k===c&&(h=f);if(null!==(p=m.nextSibling))break;m=n;n=m.parentNode}m=p}b=-1===g||-1===h?null:{start:g,end:h}}else b=null}b=b||{start:0,end:0}}else b=null;return{focusedElem:a,selectionRange:b}}function Xh(a){var b=Ef(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Df(c.ownerDocument.documentElement, +c)){if(null!==d&&yd(c))if(b=d.start,a=d.end,void 0===a&&(a=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Cf(c,f);var g=Cf(c,d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&& +(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"===typeof c.focus&&c.focus();for(c=0;c=b.length?void 0:n("93"),b=b[0]),c=b),null==c&&(c=""));a._wrapperState={initialValue:ua(c)}}function Jf(a,b){var c=ua(b.value),d=ua(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Kf(a){switch(a){case "svg":return"http://www.w3.org/2000/svg"; +case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Dd(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Kf(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function Lf(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||yb.hasOwnProperty(a)&&yb[a]?(""+b).trim():b+"px"}function Mf(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"), +e=Lf(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}function Ed(a,b){b&&(Zh[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?n("137",a,""):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?n("60"):void 0,"object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML?void 0:n("61")),null!=b.style&&"object"!==typeof b.style?n("62",""):void 0)}function Fd(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1; +default:return!0}}function ha(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=zf(a);b=$c[b];for(var d=0;dYa||(a.current= +Id[Ya],Id[Ya]=null,Ya--)}function L(a,b,c){Ya++;Id[Ya]=a.current;a.current=b}function Za(a,b){var c=a.type.contextTypes;if(!c)return va;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function E(a){a=a.childContextTypes;return null!==a&&void 0!==a}function uc(a){D(M,a); +D(F,a)}function Jd(a){D(M,a);D(F,a)}function Qf(a,b,c){F.current!==va?n("168"):void 0;L(F,b,a);L(M,c,a)}function Rf(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)e in a?void 0:n("108",sa(b)||"Unknown",e);return B({},c,d)}function vc(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||va;Fa=F.current;L(F,b,a);L(M,M.current,a);return!0}function Sf(a,b,c){var d=a.stateNode;d?void 0:n("169");c?(b= +Rf(a,b,Fa),d.__reactInternalMemoizedMergedChildContext=b,D(M,a),D(F,a),L(F,b,a)):D(M,a);L(M,c,a)}function Tf(a){return function(b){try{return a(b)}catch(c){}}}function ai(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);Kd=Tf(function(a){return b.onCommitFiberRoot(c,a)});Ld=Tf(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0}function bi(a,b,c,d){this.tag=a;this.key= +c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.childExpirationTime=this.expirationTime=0;this.alternate=null}function Md(a){a=a.prototype;return!(!a||!a.isReactComponent)}function ci(a){if("function"===typeof a)return Md(a)?1:0;if(void 0!==a&& +null!==a){a=a.$$typeof;if(a===od)return 11;if(a===pd)return 14}return 2}function Ga(a,b,c){c=a.alternate;null===c?(c=S(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.childExpirationTime=a.childExpirationTime;c.expirationTime=a.expirationTime;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue; +c.contextDependencies=a.contextDependencies;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function wc(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)Md(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ta:return wa(c.children,e,f,b);case ld:return Uf(c,e|3,f,b);case md:return Uf(c,e|2,f,b);case lc:return a=S(12,c,b,e|4),a.elementType=lc,a.type=lc,a.expirationTime=f,a;case nd:return a=S(13,c,b,e),b=nd,a.elementType=b,a.type=b,a.expirationTime=f,a;default:if("object"===typeof a&& +null!==a)switch(a.$$typeof){case ff:g=10;break a;case ef:g=9;break a;case od:g=11;break a;case pd:g=14;break a;case gf:g=16;d=null;break a}n("130",null==a?a:typeof a,"")}b=S(g,c,b,e);b.elementType=a;b.type=d;b.expirationTime=f;return b}function wa(a,b,c,d){a=S(7,a,d,b);a.expirationTime=c;return a}function Uf(a,b,c,d){a=S(8,a,d,b);b=0===(b&1)?md:ld;a.elementType=b;a.type=b;a.expirationTime=c;return a}function Nd(a,b,c){a=S(6,a,null,b);a.expirationTime=c;return a}function Od(a,b,c){b=S(4,null!==a.children? +a.children:[],a.key,b);b.expirationTime=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}function Bb(a,b){a.didError=!1;var c=a.earliestPendingTime;0===c?a.earliestPendingTime=a.latestPendingTime=b:cb&&(a.latestPendingTime=b);xc(b,a)}function di(a,b){a.didError=!1;if(0===b)a.earliestPendingTime=0,a.latestPendingTime=0,a.earliestSuspendedTime=0,a.latestSuspendedTime=0,a.latestPingedTime=0;else{b< +a.latestPingedTime&&(a.latestPingedTime=0);var c=a.latestPendingTime;0!==c&&(c>b?a.earliestPendingTime=a.latestPendingTime=0:a.earliestPendingTime>b&&(a.earliestPendingTime=a.latestPendingTime));c=a.earliestSuspendedTime;0===c?Bb(a,b):bc&&Bb(a,b)}xc(0,a)}function Vf(a,b){a.didError=!1;a.latestPingedTime>=b&&(a.latestPingedTime=0);var c=a.earliestPendingTime,d=a.latestPendingTime;c===b?a.earliestPendingTime= +d===b?a.latestPendingTime=0:d:d===b&&(a.latestPendingTime=c);c=a.earliestSuspendedTime;d=a.latestSuspendedTime;0===c?a.earliestSuspendedTime=a.latestSuspendedTime=b:cb&&(a.latestSuspendedTime=b);xc(b,a)}function Wf(a,b){var c=a.earliestPendingTime;a=a.earliestSuspendedTime;c>b&&(b=c);a>b&&(b=a);return b}function xc(a,b){var c=b.earliestSuspendedTime,d=b.latestSuspendedTime,e=b.earliestPendingTime,f=b.latestPingedTime;e=0!==e?e:f;0===e&&(0===a||da&&(a=c);b.nextExpirationTimeToWorkOn=e;b.expirationTime=a}function P(a,b){if(a&&a.defaultProps){b=B({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c])}return b}function ei(a){var b=a._result;switch(a._status){case 1:return b;case 2:throw b;case 0:throw b;default:a._status=0;b=a._ctor;b=b();b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)});switch(a._status){case 1:return a._result;case 2:throw a._result; +}a._result=b;throw b;}}function yc(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:B({},b,c);a.memoizedState=c;d=a.updateQueue;null!==d&&0===a.expirationTime&&(d.baseState=c)}function Xf(a,b,c,d,e,f,g){a=a.stateNode;return"function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!vb(c,d)||!vb(e,f):!0}function Yf(a,b,c,d){var e=!1;d=va;var f=b.contextType;"object"===typeof f&&null!==f?f=T(f):(d=E(b)?Fa:F.current,e=b.contextTypes, +f=(e=null!==e&&void 0!==e)?Za(a,d):va);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=zc;a.stateNode=b;b._reactInternalFiber=a;e&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=d,a.__reactInternalMemoizedMaskedChildContext=f);return b}function Zf(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!== +a&&zc.enqueueReplaceState(b,b.state,null)}function Pd(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=$f;var f=b.contextType;"object"===typeof f&&null!==f?e.context=T(f):(f=E(b)?Fa:F.current,e.context=Za(a,f));f=a.updateQueue;null!==f&&(Cb(a,f,c,e,d),e.state=a.memoizedState);f=b.getDerivedStateFromProps;"function"===typeof f&&(yc(a,b,f,c),e.state=a.memoizedState);"function"===typeof b.getDerivedStateFromProps||"function"===typeof e.getSnapshotBeforeUpdate||"function"!==typeof e.UNSAFE_componentWillMount&& +"function"!==typeof e.componentWillMount||(b=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&zc.enqueueReplaceState(e,e.state,null),f=a.updateQueue,null!==f&&(Cb(a,f,c,e,d),e.state=a.memoizedState));"function"===typeof e.componentDidMount&&(a.effectTag|=4)}function Db(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;var d=void 0;c&&(1!== +c.tag?n("309"):void 0,d=c.stateNode);d?void 0:n("147",a);var e=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs;b===$f&&(b=d.refs={});null===a?delete b[e]:b[e]=a};b._stringRef=e;return b}"string"!==typeof a?n("284"):void 0;c._owner?void 0:n("290",a)}return a}function Ac(a,b){"textarea"!==a.type&&n("31","[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}function ag(a){function b(b, +c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.effectTag=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b,c){a=Ga(a,b,c);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,dq?(v=n,n=null):v=n.sibling;var Q=p(e,n,h[q],k);if(null===Q){null===n&&(n=v);break}a&& +n&&null===Q.alternate&&b(e,n);g=f(Q,g,q);null===m?l=Q:m.sibling=Q;m=Q;n=v}if(q===h.length)return c(e,n),l;if(null===n){for(;qv?(Q=q,q=null):Q=q.sibling;var u=p(e,q,t.value,k);if(null===u){q||(q=Q);break}a&&q&&null===u.alternate&&b(e,q);g=f(u,g,v);null===m?l=u:m.sibling=u;m=u;q=Q}if(t.done)return c(e,q),l;if(null===q){for(;!t.done;v++,t=h.next())t=Ff(e,t.value,k),null!==t&&(g=f(t,g,v),null===m?l=t:m.sibling=t,m=t);return l}for(q=d(e,q);!t.done;v++,t=h.next())t=r(q,e,v,t.value,k),null!==t&&(a&&null!==t.alternate&&q.delete(null===t.key? +v:t.key),g=f(t,g,v),null===m?l=t:m.sibling=t,m=t);a&&q.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===ta&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Bc:a:{l=f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===ta:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===ta?f.props.children:f.props,h);d.ref=Db(a,k,f);d.return=a;a=d;break a}else{c(a,k);break}else b(a,k); +k=k.sibling}f.type===ta?(d=wa(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=wc(f.type,f.key,f.props,null,a.mode,h),h.ref=Db(a,d,f),h.return=a,a=h)}return g(a);case Va:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Od(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"=== +typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=Nd(f,a.mode,h),d.return=a,a=d),g(a);if(Cc(f))return u(a,d,f,h);if(sb(f))return x(a,d,f,h);l&&Ac(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:h=a.type,n("152",h.displayName||h.name||"Component")}return c(a,d)}}function Ha(a){a===Eb?n("174"):void 0;return a}function Qd(a,b){L(Fb,b,a);L(Gb,a,a);L(U,Eb,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Dd(null, +"");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Dd(b,c)}D(U,a);L(U,b,a)}function $a(a){D(U,a);D(Gb,a);D(Fb,a)}function bg(a){Ha(Fb.current);var b=Ha(U.current);var c=Dd(b,a.type);b!==c&&(L(Gb,a,a),L(U,c,a))}function Rd(a){Gb.current===a&&(D(U,a),D(Gb,a))}function V(){n("321")}function Sd(a,b){if(null===b)return!1;for(var c=0;cKb&&(Kb=m)):f=l.eagerReducer===a?l.eagerState:a(f,l.action);g=l;l=l.next}while(null!==l&&l!== +d);k||(h=g,e=f);Ea(f,b.memoizedState)||(ja=!0);b.memoizedState=f;b.baseUpdate=h;b.baseState=e;c.lastRenderedState=f}return[b.memoizedState,c.dispatch]}function Wd(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null===X?(X={lastEffect:null},X.lastEffect=a.next=a):(b=X.lastEffect,null===b?X.lastEffect=a.next=a:(c=b.next,b.next=a,a.next=c,X.lastEffect=a));return a}function Xd(a,b,c,d){var e=cb();Lb|=a;e.memoizedState=Wd(b,c,void 0,void 0===d?null:d)}function Yd(a,b,c,d){var e=Mb();d=void 0=== +d?null:d;var f=void 0;if(null!==y){var g=y.memoizedState;f=g.destroy;if(null!==d&&Sd(d,g.deps)){Wd(db,c,f,d);return}}Lb|=a;e.memoizedState=Wd(b,c,f,d)}function fg(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function gg(a,b){}function hg(a,b,c){25>Jb?void 0:n("301");var d=a.alternate;if(a===xa||null!==d&&d===xa)if(Ib=!0,a={expirationTime:Hb,action:c,eagerReducer:null,eagerState:null,next:null},null=== +ia&&(ia=new Map),c=ia.get(b),void 0===c)ia.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}else{eb();var e=ka();e=fb(e,a);var f={expirationTime:e,action:c,eagerReducer:null,eagerState:null,next:null},g=b.last;if(null===g)f.next=f;else{var h=g.next;null!==h&&(f.next=h);g.next=f}b.last=f;if(0===a.expirationTime&&(null===d||0===d.expirationTime)&&(d=b.lastRenderedReducer,null!==d))try{var l=b.lastRenderedState,k=d(l,c);f.eagerReducer=d;f.eagerState=k;if(Ea(k,l))return}catch(m){}finally{}ya(a, +e)}}function ig(a,b){var c=S(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function jg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}}function kg(a){if(Ia){var b= +gb;if(b){var c=b;if(!jg(a,b)){b=Hd(c);if(!b||!jg(a,b)){a.effectTag|=2;Ia=!1;la=a;return}ig(la,c)}la=a;gb=Pf(b)}else a.effectTag|=2,Ia=!1,la=a}}function lg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&18!==a.tag;)a=a.return;la=a}function Zd(a){if(a!==la)return!1;if(!Ia)return lg(a),Ia=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!Gd(b,a.memoizedProps))for(b=gb;b;)ig(a,b),b=Hd(b);lg(a);gb=la?Hd(a.stateNode):null;return!0}function $d(){gb=la=null;Ia=!1}function N(a,b,c,d){b.child=null=== +a?ae(b,null,c,d):hb(b,a.child,c,d)}function mg(a,b,c,d,e){c=c.render;var f=b.ref;ib(b,e);d=Td(a,b,c,d,f,e);if(null!==a&&!ja)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),ma(a,b,e);b.effectTag|=1;N(a,b,d,e);return b.child}function ng(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!Md(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,og(a,b,g,d,e,f);a=wc(c.type,null,d,null,b.mode,f);a.ref= +b.ref;a.return=b;return b.child=a}g=a.child;if(e=c)return sg(a,b,c);b=ma(a,b,c);return null!==b?b.sibling:null}}return ma(a,b,c)}}else ja=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;var e=Za(b,F.current);ib(b,c);e=Td(null,b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag= +1;Vd();if(E(d)){var f=!0;vc(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&yc(b,d,g,a);e.updater=zc;b.stateNode=e;e._reactInternalFiber=b;Pd(b,d,a,c);b=ce(null,b,d,!0,f,c)}else b.tag=0,N(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);f=b.pendingProps;a=ei(e);b.type=a;e=b.tag=ci(a);f=P(a,f);g=void 0;switch(e){case 0:g=be(null,b,a,f,c);break;case 1:g= +qg(null,b,a,f,c);break;case 11:g=mg(null,b,a,f,c);break;case 14:g=ng(null,b,a,P(a.type,f),d,c);break;default:n("306",a,"")}return g;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:P(d,e),be(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:P(d,e),qg(a,b,d,e,c);case 3:rg(b);d=b.updateQueue;null===d?n("282"):void 0;e=b.memoizedState;e=null!==e?e.element:null;Cb(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)$d(),b=ma(a,b,c);else{e=b.stateNode;if(e= +(null===a||null===a.child)&&e.hydrate)gb=Pf(b.stateNode.containerInfo),la=b,e=Ia=!0;e?(b.effectTag|=2,b.child=ae(b,null,d,c)):(N(a,b,d,c),$d());b=b.child}return b;case 5:return bg(b),null===a&&kg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),pg(a,b),1!==c&&b.mode&1&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(N(a,b,g,c),b=b.child),b;case 6:return null===a&&kg(b),null;case 13:return sg(a,b,c);case 4:return Qd(b, +b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=hb(b,null,d,c):N(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:P(d,e),mg(a,b,d,e,c);case 7:return N(a,b,b.pendingProps,c),b.child;case 8:return N(a,b,b.pendingProps.children,c),b.child;case 12:return N(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;tg(b,f);if(null!==g){var h=g.value;f=Ea(h,f)?0:("function"===typeof d._calculateChangedBits? +d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!M.current){b=ma(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var l=h.contextDependencies;if(null!==l){g=h.child;for(var k=l.first;null!==k;){if(k.context===d&&0!==(k.observedBits&f)){1===h.tag&&(k=Aa(c),k.tag=Ec,na(h,k));h.expirationTime=b&&(ja=!0);a.contextDependencies=null}function T(a,b){if(Ob!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)Ob=a,b=1073741823;b={context:a,observedBits:b,next:null};null===Ja?(null===Nb?n("308"):void 0,Ja=b,Nb.contextDependencies={first:b,expirationTime:0}):Ja=Ja.next=b}return a._currentValue}function Fc(a){return{baseState:a, +firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fe(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Aa(a){return{expirationTime:a,tag:ug,payload:null,callback:null,next:null,nextEffect:null}}function Gc(a, +b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b)}function na(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=Fc(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=Fc(a.memoizedState),e=c.updateQueue=Fc(c.memoizedState)):d=a.updateQueue=fe(e):null===e&&(e=c.updateQueue=fe(d));null===e||d===e?Gc(d,b):null===d.lastUpdate||null===e.lastUpdate?(Gc(d,b),Gc(e,b)):(Gc(d,b),e.lastUpdate= +b)}function vg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=Fc(a.memoizedState):wg(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function wg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=fe(b));return b}function xg(a,b,c,d,e,f){switch(c.tag){case yg:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case ge:a.effectTag=a.effectTag&-2049|64;case ug:a=c.payload;e="function"===typeof a? +a.call(f,d,e):a;if(null===e||void 0===e)break;return B({},d,e);case Ec:za=!0}return d}function Cb(a,b,c,d,e){za=!1;b=wg(a,b);for(var f=b.baseState,g=null,h=0,l=b.firstUpdate,k=f;null!==l;){var m=l.expirationTime;md?e:d);Kg.current=null;d=void 0;1c?b:c;0===b&&(Ba=null);wi(a,b)}function Mg(a){for(;;){var b=a.alternate,c=a.return,d=a.sibling;if(0===(a.effectTag&1024)){x=a;a:{var e=b;b=a;var f=H;var g=b.pendingProps;switch(b.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:E(b.type)&&uc(b);break;case 3:$a(b);Jd(b);g=b.stateNode;g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null);if(null===e||null===e.child)Zd(b),b.effectTag&= +-3;pe(b);break;case 5:Rd(b);var h=Ha(Fb.current);f=b.type;if(null!==e&&null!=b.stateNode)Ng(e,b,f,g,h),e.ref!==b.ref&&(b.effectTag|=128);else if(g){var l=Ha(U.current);if(Zd(b)){g=b;e=g.stateNode;var k=g.type,m=g.memoizedProps,p=h;e[ea]=g;e[ec]=m;f=void 0;h=k;switch(h){case "iframe":case "object":r("load",e);break;case "video":case "audio":for(k=0;k\x3c/script>",k=e.removeChild(e.firstChild)): +"string"===typeof e.is?k=k.createElement(p,{is:e.is}):(k=k.createElement(p),"select"===p&&(p=k,e.multiple?p.multiple=!0:e.size&&(p.size=e.size))):k=k.createElementNS(l,p);e=k;e[ea]=m;e[ec]=g;Og(e,b,!1,!1);m=e;k=f;p=g;var t=h,y=Fd(k,p);switch(k){case "iframe":case "object":r("load",m);h=p;break;case "video":case "audio":for(h=0;hg&&(g=e),h>g&&(g=h),f=f.sibling;b.childExpirationTime=g}if(null!==x)return x;null!==c&&0===(c.effectTag&1024)&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect), +1=u)t=0;else if(-1===t||u component higher in the tree to provide a loading indicator or placeholder to display."+ +qd(k))}je=!0;m=Hc(m,k);h=l;do{switch(h.tag){case 3:h.effectTag|=2048;h.expirationTime=g;g=he(h,m,g);vg(h,g);break a;case 1:if(t=m,r=h.type,k=h.stateNode,0===(h.effectTag&64)&&("function"===typeof r.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Ba||!Ba.has(k)))){h.effectTag|=2048;h.expirationTime=g;g=Ig(h,t,g);vg(h,g);break a}}h=h.return}while(null!==h)}x=Mg(f);continue}}}break}while(1);Ca=!1;qe.current=c;Ob=Ja=Nb=null;Vd();if(e)Y=null,a.finishedWork=null;else if(null!== +x)a.finishedWork=null;else{c=a.current.alternate;null===c?n("281"):void 0;Y=null;if(je){e=a.latestPendingTime;f=a.latestSuspendedTime;g=a.latestPingedTime;if(0!==e&&eb?0:b)):(a.pendingCommitExpirationTime= +d,a.finishedWork=c)}}function Ka(a,b){for(var c=a.return;null!==c;){switch(c.tag){case 1:var d=c.stateNode;if("function"===typeof c.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===Ba||!Ba.has(d))){a=Hc(b,a);a=Ig(c,a,1073741823);na(c,a);ya(c,1073741823);return}break;case 3:a=Hc(b,a);a=he(c,a,1073741823);na(c,a);ya(c,1073741823);return}c=c.return}3===a.tag&&(c=Hc(b,a),c=he(a,c,1073741823),na(a,c),ya(a,1073741823))}function fb(a,b){var c=zi(),d=void 0;if(0===(b.mode&1))d= +1073741823;else if(Ca&&!Lc)d=H;else{switch(c){case se:d=1073741823;break;case te:d=1073741822-10*(((1073741822-a+15)/10|0)+1);break;case Lg:d=1073741822-25*(((1073741822-a+500)/25|0)+1);break;case Ai:case Bi:d=1;break;default:n("313")}null!==Y&&d===H&&--d}c===te&&(0===oa||d=d){a.didError=!1;b=a.latestPingedTime;if(0===b|| +b>c)a.latestPingedTime=c;xc(c,a);c=a.expirationTime;0!==c&&Kc(a,c)}}function li(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=ka();b=fb(b,a);a=Sg(a,b);null!==a&&(Bb(a,b),b=a.expirationTime,0!==b&&Kc(a,b))}function Sg(a,b){a.expirationTimeH&&Jg(),Bb(a,b),Ca&&!Lc&&Y===a||Kc(a,a.expirationTime),Tb>Ci&&(Tb=0,n("185")))}function Tg(a,b,c,d,e){return Mc(se,function(){return a(b,c,d,e)})}function Ub(){aa=1073741822-((ue()-ve)/10|0)}function Ug(a,b){if(0!==Oc){if(ba.expirationTime&&(a.expirationTime= +b);w||(z?Rc&&(ca=a,C=1073741823,Sc(a,1073741823,!1)):1073741823===b?Z(1073741823,!1):Ug(a,b))}function Qc(){var a=0,b=null;if(null!==I)for(var c=I,d=ba;null!==d;){var e=d.expirationTime;if(0===e){null===c||null===I?n("244"):void 0;if(d===d.nextScheduledRoot){ba=I=d.nextScheduledRoot=null;break}else if(d===ba)ba=e=d.nextScheduledRoot,I.nextScheduledRoot=e,d.nextScheduledRoot=null;else if(d===I){I=c;I.nextScheduledRoot=ba;d.nextScheduledRoot=null;break}else c.nextScheduledRoot=d.nextScheduledRoot,d.nextScheduledRoot= +null;d=c.nextScheduledRoot}else{e>a&&(a=e,b=d);if(d===I)break;if(1073741823===a)break;c=d;d=d.nextScheduledRoot}}ca=b;C=a}function Nc(){return Tc?!0:Gi()?Tc=!0:!1}function Di(){try{if(!Nc()&&null!==ba){Ub();var a=ba;do{var b=a.expirationTime;0!==b&&aa<=b&&(a.nextExpirationTimeToWorkOn=aa);a=a.nextScheduledRoot}while(a!==ba)}Z(0,!0)}finally{Tc=!1}}function Z(a,b){Qc();if(b)for(Ub(),jb=aa;null!==ca&&0!==C&&a<=C&&!(Tc&&aa>C);)Sc(ca,C,aa>C),Qc(),Ub(),jb=aa;else for(;null!==ca&&0!==C&&a<=C;)Sc(ca,C,!1), +Qc();b&&(Oc=0,Pc=null);0!==C&&Ug(ca,C);Tb=0;we=null;if(null!==kb)for(a=kb,kb=null,b=0;b=c&&(null===kb?kb=[d]:kb.push(d),d._defer)){a.finishedWork=b;a.expirationTime=0;return}a.finishedWork=null;a===we?Tb++:(we=a,Tb=0);Mc(se,function(){ui(a,b)})}function ie(a){null===ca?n("246"):void 0;ca.expirationTime=0;lb||(lb=!0,Uc=a)}function Zg(a,b){var c=z;z=!0;try{return a(b)}finally{(z= +c)||w||Z(1073741823,!1)}}function $g(a,b){if(z&&!Rc){Rc=!0;try{return a(b)}finally{Rc=!1}}return a(b)}function ah(a,b,c){z||w||0===oa||(Z(oa,!1),oa=0);var d=z;z=!0;try{return Mc(te,function(){return a(b,c)})}finally{(z=d)||w||Z(1073741823,!1)}}function bh(a,b,c,d,e){var f=b.current;a:if(c){c=c._reactInternalFiber;b:{2===wb(c)&&1===c.tag?void 0:n("170");var g=c;do{switch(g.tag){case 3:g=g.stateNode.context;break b;case 1:if(E(g.type)){g=g.stateNode.__reactInternalMemoizedMergedChildContext;break b}}g= +g.return}while(null!==g);n("171");g=void 0}if(1===c.tag){var h=c.type;if(E(h)){c=Rf(c,h,g);break a}}c=g}else c=va;null===b.context?b.context=c:b.pendingContext=c;b=e;e=Aa(d);e.payload={element:a};b=void 0===b?null:b;null!==b&&(e.callback=b);eb();na(f,e);ya(f,d);return d}function xe(a,b,c,d){var e=b.current,f=ka();e=fb(f,e);return bh(a,b,c,e,d)}function ye(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Hi(a,b,c){var d= +3=ze&&(b=ze-1);this._expirationTime=ze=b;this._root=a;this._callbacks=this._next=null;this._hasChildren=this._didComplete=!1;this._children=null;this._defer=!0}function mb(){this._callbacks=null;this._didCommit=!1;this._onCommit=this._onCommit.bind(this)}function nb(a,b,c){b=S(3,null,null, +b?3:0);a={current:b,containerInfo:a,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:c,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null};this._internalRoot=b.stateNode=a}function ob(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType|| +" react-mount-point-unstable "!==a.nodeValue))}function Ii(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute("data-reactroot")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new nb(a,!1,b)}function Wc(a,b,c,d,e){var f=c._reactRootContainer;if(f){if("function"===typeof e){var g=e;e=function(){var a=ye(f._internalRoot);g.call(a)}}null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)}else{f=c._reactRootContainer=Ii(c,d);if("function"=== +typeof e){var h=e;e=function(){var a=ye(f._internalRoot);h.call(a)}}$g(function(){null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)})}return ye(f._internalRoot)}function ch(a,b){var c=2=Wb),Re=String.fromCharCode(32),pa={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput", +captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate", +captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Qe=!1,Sa=!1,Mi={eventTypes:pa,extractEvents:function(a,b,c,d){var e=void 0;var f=void 0;if(hd)b:{switch(a){case "compositionstart":e=pa.compositionStart;break b;case "compositionend":e=pa.compositionEnd;break b;case "compositionupdate":e=pa.compositionUpdate;break b}e=void 0}else Sa?Oe(a,c)&&(e=pa.compositionEnd):"keydown"===a&&229===c.keyCode&&(e=pa.compositionStart);e?(Se&& +"ko"!==c.locale&&(Sa||e!==pa.compositionStart?e===pa.compositionEnd&&Sa&&(f=Me()):(qa=d,gd="value"in qa?qa.value:qa.textContent,Sa=!0)),e=Ji.getPooled(e,b,c,d),f?e.data=f:(f=Pe(c),null!==f&&(e.data=f)),Qa(e),f=e):f=null;(a=Li?Bh(a,c):Ch(a,c))?(b=Ki.getPooled(pa.beforeInput,b,c,d),b.data=a,Qa(b)):b=null;return null===f?b:null===b?f:[f,b]}},id=null,Ta=null,Ua=null,Ye=function(a,b){return a(b)},yf=function(a,b,c){return a(b,c)},Ze=function(){},jd=!1,Dh={color:!0,date:!0,datetime:!0,"datetime-local":!0, +email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ma=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ma.hasOwnProperty("ReactCurrentDispatcher")||(Ma.ReactCurrentDispatcher={current:null});var Fh=/^(.*)[\\\/]/,O="function"===typeof Symbol&&Symbol.for,Bc=O?Symbol.for("react.element"):60103,Va=O?Symbol.for("react.portal"):60106,ta=O?Symbol.for("react.fragment"):60107,md=O?Symbol.for("react.strict_mode"):60108,lc=O?Symbol.for("react.profiler"):60114, +ff=O?Symbol.for("react.provider"):60109,ef=O?Symbol.for("react.context"):60110,ld=O?Symbol.for("react.concurrent_mode"):60111,od=O?Symbol.for("react.forward_ref"):60112,nd=O?Symbol.for("react.suspense"):60113,pd=O?Symbol.for("react.memo"):60115,gf=O?Symbol.for("react.lazy"):60116,df="function"===typeof Symbol&&Symbol.iterator,Hh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, +hf=Object.prototype.hasOwnProperty,kf={},jf={},A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){A[a]=new K(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];A[b]=new K(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){A[a]=new K(a,2,!1, +a.toLowerCase(),null)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){A[a]=new K(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){A[a]=new K(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){A[a]=new K(a,3,!0,a,null)});["capture", +"download"].forEach(function(a){A[a]=new K(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){A[a]=new K(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){A[a]=new K(a,5,!1,a.toLowerCase(),null)});var Be=/[\-:]([a-z])/g,Ce=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= +a.replace(Be,Ce);A[b]=new K(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Be,Ce);A[b]=new K(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Be,Ce);A[b]=new K(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});["tabIndex","crossOrigin"].forEach(function(a){A[a]=new K(a,1,!1,a.toLowerCase(),null)});var pf={change:{phasedRegistrationNames:{bubbled:"onChange", +captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},tb=null,ub=null,De=!1;ra&&(De=af("input")&&(!document.documentMode||9=document.documentMode,Hf={select:{phasedRegistrationNames:{bubbled:"onSelect", +captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wa=null,Ad=null,xb=null,zd=!1,aj={eventTypes:Hf,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=zf(e);f=$c.onSelect;for(var g=0;g"+b+"";for(b=Xc.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}), +Ab=function(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b},yb={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0, +lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bj=["Webkit","ms","Moz","O"];Object.keys(yb).forEach(function(a){bj.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);yb[b]=yb[a]})});var Zh=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0, +source:!0,track:!0,wbr:!0}),R=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,Vg=R.unstable_cancelCallback,ue=R.unstable_now,Wg=R.unstable_scheduleCallback,Gi=R.unstable_shouldYield,Mc=R.unstable_runWithPriority,zi=R.unstable_getCurrentPriorityLevel,se=R.unstable_ImmediatePriority,te=R.unstable_UserBlockingPriority,Lg=R.unstable_NormalPriority,Ai=R.unstable_LowPriority,Bi=R.unstable_IdlePriority,ne=null,oe=null,Ei="function"===typeof setTimeout?setTimeout:void 0,Yg="function"===typeof clearTimeout? +clearTimeout:void 0,vi=Wg,ti=Vg;new Set;var Id=[],Ya=-1,va={},F={current:va},M={current:!1},Fa=va,Kd=null,Ld=null,S=function(a,b,c,d){return new bi(a,b,c,d)},$f=(new da.Component).refs,zc={isMounted:function(a){return(a=a._reactInternalFiber)?2===wb(a):!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=ka();d=fb(d,a);var e=Aa(d);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);eb();na(a,e);ya(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=ka();d=fb(d,a);var e= +Aa(d);e.tag=yg;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);eb();na(a,e);ya(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=ka();c=fb(c,a);var d=Aa(c);d.tag=Ec;void 0!==b&&null!==b&&(d.callback=b);eb();na(a,d);ya(a,c)}},Cc=Array.isArray,hb=ag(!0),ae=ag(!1),Eb={},U={current:Eb},Gb={current:Eb},Fb={current:Eb},db=0,pi=2,Rb=4,ji=8,ri=16,Sb=32,me=64,le=128,Dc=Ma.ReactCurrentDispatcher,Hb=0,xa=null,y=null,W=null,bb=null,G=null,ab=null,Kb=0,X=null,Lb=0,Ib=!1,ia=null,Jb=0,Ud={readContext:T, +useCallback:V,useContext:V,useEffect:V,useImperativeHandle:V,useLayoutEffect:V,useMemo:V,useReducer:V,useRef:V,useState:V,useDebugValue:V},fi={readContext:T,useCallback:function(a,b){cb().memoizedState=[a,void 0===b?null:b];return a},useContext:T,useEffect:function(a,b){return Xd(516,le|me,a,b)},useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Xd(4,Rb|Sb,fg.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Xd(4,Rb|Sb,a,b)},useMemo:function(a,b){var c=cb(); +b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=cb();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={last:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=hg.bind(null,xa,a);return[d.memoizedState,a]},useRef:function(a){var b=cb();a={current:a};return b.memoizedState=a},useState:function(a){var b=cb();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={last:null,dispatch:null,lastRenderedReducer:dg, +lastRenderedState:a};a=a.dispatch=hg.bind(null,xa,a);return[b.memoizedState,a]},useDebugValue:gg},cg={readContext:T,useCallback:function(a,b){var c=Mb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Sd(b,d[1]))return d[0];c.memoizedState=[a,b];return a},useContext:T,useEffect:function(a,b){return Yd(516,le|me,a,b)},useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Yd(4,Rb|Sb,fg.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Yd(4,Rb|Sb, +a,b)},useMemo:function(a,b){var c=Mb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Sd(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a},useReducer:eg,useRef:function(a){return Mb().memoizedState},useState:function(a){return eg(dg,a)},useDebugValue:gg},la=null,gb=null,Ia=!1,gi=Ma.ReactCurrentOwner,ja=!1,de={current:null},Nb=null,Ja=null,Ob=null,ug=0,yg=1,Ec=2,ge=3,za=!1,Og=void 0,pe=void 0,Ng=void 0,Pg=void 0;Og=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag|| +6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};pe=function(a){};Ng=function(a,b,c,d,e){var f=a.memoizedProps;if(f!==d){var g=b.stateNode;Ha(U.current);a=null;switch(c){case "input":f=sd(g,f);d=sd(g,d);a=[];break;case "option":f=Bd(g,f);d=Bd(g,d);a=[];break;case "select":f=B({},f,{value:void 0});d=B({},d,{value:void 0}); +a=[];break;case "textarea":f=Cd(g,f);d=Cd(g,d);a=[];break;default:"function"!==typeof f.onClick&&"function"===typeof d.onClick&&(g.onclick=tc)}Ed(c,d);g=c=void 0;var h=null;for(c in f)if(!d.hasOwnProperty(c)&&f.hasOwnProperty(c)&&null!=f[c])if("style"===c){var l=f[c];for(g in l)l.hasOwnProperty(g)&&(h||(h={}),h[g]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Oa.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c, +null));for(c in d){var k=d[c];l=null!=f?f[c]:void 0;if(d.hasOwnProperty(c)&&k!==l&&(null!=k||null!=l))if("style"===c)if(l){for(g in l)!l.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(h||(h={}),h[g]="");for(g in k)k.hasOwnProperty(g)&&l[g]!==k[g]&&(h||(h={}),h[g]=k[g])}else h||(a||(a=[]),a.push(c,h)),h=k;else"dangerouslySetInnerHTML"===c?(k=k?k.__html:void 0,l=l?l.__html:void 0,null!=k&&l!==k&&(a=a||[]).push(c,""+k)):"children"===c?l===k||"string"!==typeof k&&"number"!==typeof k||(a=a||[]).push(c,""+ +k):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Oa.hasOwnProperty(c)?(null!=k&&ha(e,c),a||l===k||(a=[])):(a=a||[]).push(c,k))}h&&(a=a||[]).push("style",h);e=a;(b.updateQueue=e)&&Pb(b)}};Pg=function(a,b,c,d){c!==d&&Pb(b)};var ki="function"===typeof WeakSet?WeakSet:Set,xi="function"===typeof WeakMap?WeakMap:Map,qe=Ma.ReactCurrentDispatcher,Kg=Ma.ReactCurrentOwner,ze=1073741822,Ca=!1,x=null,Y=null,H=0,La=-1,je=!1,p=null,Lc=!1,ke=null,Jc=null,Ic=null,Ba=null,ba=null,I=null,Oc= +0,Pc=void 0,w=!1,ca=null,C=0,oa=0,lb=!1,Uc=null,z=!1,Rc=!1,kb=null,ve=ue(),aa=1073741822-(ve/10|0),jb=aa,Ci=50,Tb=0,we=null,Tc=!1;id=function(a,b,c){switch(b){case "input":td(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b=b;)c=d,d=d._next;a._next=d;null!== +c&&(c._next=a)}return a};(function(a,b,c){Ye=a;yf=b;Ze=c})(Zg,ah,function(){w||0===oa||(Z(oa,!1),oa=0)});var oh={createPortal:ch,findDOMNode:function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;void 0===b&&("function"===typeof a.render?n("188"):n("268",Object.keys(a)));a=tf(b);a=null===a?null:a.stateNode;return a},hydrate:function(a,b,c){ob(b)?void 0:n("200");return Wc(null,a,b,!0,c)},render:function(a,b,c){ob(b)?void 0:n("200");return Wc(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a, +b,c,d){ob(c)?void 0:n("200");null==a||void 0===a._reactInternalFiber?n("38"):void 0;return Wc(a,b,c,!1,d)},unmountComponentAtNode:function(a){ob(a)?void 0:n("40");return a._reactRootContainer?($g(function(){Wc(null,null,a,!1,function(){a._reactRootContainer=null})}),!0):!1},unstable_createPortal:function(){return ch.apply(void 0,arguments)},unstable_batchedUpdates:Zg,unstable_interactiveUpdates:ah,flushSync:function(a,b){w?n("187"):void 0;var c=z;z=!0;try{return Tg(a,b)}finally{z=c,Z(1073741823,!1)}}, +unstable_createRoot:function(a,b){ob(a)?void 0:n("299","unstable_createRoot");return new nb(a,!0,null!=b&&!0===b.hydrate)},unstable_flushControlled:function(a){var b=z;z=!0;try{Tg(a)}finally{(z=b)||w||Z(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Je,Da,dd,Ae.injectEventPluginsByName,Zc,Qa,function(a){ad(a,xh)},Ve,We,oc,cd]}};(function(a){var b=a.findFiberByHostInstance;return ai(B({},a,{overrideProps:null,currentDispatcherRef:Ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a= +tf(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null}}))})({findFiberByHostInstance:dc,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var ph={default:oh},qh=ph&&oh||ph;return qh.default||qh}); \ No newline at end of file diff --git a/media/js/react.min.js b/media/js/react.min.js new file mode 100644 index 0000000..fa8e363 --- /dev/null +++ b/media/js/react.min.js @@ -0,0 +1,33 @@ +/** @license React v16.8.6 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +'use strict';(function(N,q){"object"===typeof exports&&"undefined"!==typeof module?module.exports=q():"function"===typeof define&&define.amd?define(q):N.React=q()})(this,function(){function N(a,b,d,g,p,c,e,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var n=[d,g,p,c,e,h],f=0;a=Error(b.replace(/%s/g,function(){return n[f++]}));a.name="Invariant Violation"}a.framesToPop=1; +throw a;}}function q(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,g=0;g=b){d=a;break}a=a.next}while(a!==c);null===d?d=c:d=== +c&&(c=n,u());b=d.previous;b.next=d.previous=n;n.next=d;n.previous=b}}function F(){if(-1===k&&null!==c&&1===c.priorityLevel){x=!0;try{do Q();while(null!==c&&1===c.priorityLevel)}finally{x=!1,null!==c?u():C=!1}}}function ta(a){x=!0;var b=G;G=a;try{if(a)for(;null!==c;){var d=l();if(c.expirationTime<=d){do Q();while(null!==c&&c.expirationTime<=d)}else break}else if(null!==c){do Q();while(null!==c&&!H())}}finally{x=!1,G=b,null!==c?u():C=!1,F()}}function ea(a,b,d){var g=void 0,p={},c=null,e=null;if(null!= +b)for(g in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(c=""+b.key),b)fa.call(b,g)&&!ha.hasOwnProperty(g)&&(p[g]=b[g]);var h=arguments.length-2;if(1===h)p.children=d;else if(1I.length&&I.push(a)}function T(a,b,d,g){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var e=!1;if(null=== +a)e=!0;else switch(c){case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case y:case wa:e=!0}}if(e)return d(g,a,""===b?"."+U(a,0):b),1;e=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;fa;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(g){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var d=Object(a);for(var c,e=1;e=L-d)if(-1!==b&&b<=d)c=!0;else{A||(A=!0,Y(aa));w=a;z=b;return}if(null!==a){Z=!0;try{a(c)}finally{Z=!1}}};var aa=function(a){if(null!==w){Y(aa);var b=a-L+B;bb&&(b=8),B=bb?sa.postMessage(void 0):A||(A=!0,Y(aa))};P=function(){w=null;K=!1;z=-1}}var Oa= +0,ma={current:null},R={current:null};e={ReactCurrentDispatcher:ma,ReactCurrentOwner:R,assign:J};J(e,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}},unstable_shouldYield:function(){return!G&&(null!==c&&c.expirationTimeb){d=g;break}g=g.next}while(g!==c);null===d?d=c:d===c&&(c=a,u());b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a= +3}var d=f,c=k;f=a;k=l();try{return b()}finally{f=d,k=c,F()}},unstable_next:function(a){switch(f){case 1:case 2:case 3:var b=3;break;default:b=f}var d=f,c=k;f=b;k=l();try{return a()}finally{f=d,k=c,F()}},unstable_wrapCallback:function(a){var b=f;return function(){var d=f,c=k;f=b;k=l();try{return a.apply(this,arguments)}finally{f=d,k=c,F()}}},unstable_getFirstCallbackNode:function(){return c},unstable_pauseExecution:function(){},unstable_continueExecution:function(){null!==c&&u()},unstable_getCurrentPriorityLevel:function(){return f}, +unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_UserBlockingPriority:2},SchedulerTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Oa},unstable_subscribe:function(a){},unstable_trace:function(a,b,d){return d()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var fa=Object.prototype.hasOwnProperty, +ha={key:!0,ref:!0,__self:!0,__source:!0},la=/\/+/g,I=[];r={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=ia(null,null,b,d);V(a,xa,b);ja(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){S(a)?void 0:q("143");return a}},createRef:function(){return{current:null}},Component:t,PureComponent:O,createContext:function(a, +b){void 0===b&&(b=null);a={$$typeof:Ba,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Aa,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Da,render:a}},lazy:function(a){return{$$typeof:Ga,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Fa,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return m().useCallback(a,b)},useContext:function(a,b){return m().useContext(a,b)}, +useEffect:function(a,b){return m().useEffect(a,b)},useImperativeHandle:function(a,b,d){return m().useImperativeHandle(a,b,d)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return m().useLayoutEffect(a,b)},useMemo:function(a,b){return m().useMemo(a,b)},useReducer:function(a,b,d){return m().useReducer(a,b,d)},useRef:function(a){return m().useRef(a)},useState:function(a){return m().useState(a)},Fragment:r,StrictMode:X,Suspense:Ea,createElement:ea,cloneElement:function(a,b,d){null===a|| +void 0===a?q("267",a):void 0;var c=void 0,e=J({},a.props),f=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=R.current);void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)fa.call(b,c)&&!ha.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1 0) { + vscode.window.showInformationMessage("Teamwork: finishing login, please wait a second"); + let code = uri.query.toString().replace("code=", "").replace("state=VSCODE", ""); + let account = twp.FinishLogin(context, code); + } + else { + // Not yet implemented + } + } + }); // Refresh Data on startup and setup status bar twp.statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 0); - let projectConfig = yield twp.GetProjectForRepository(); - twp.statusBarItem.command = "twp.SetProject"; - twp.statusBarItem.show(); - twp.statusBarItem.text = "Teamwork: " + projectConfig.ActiveProjectName; - twp.statusBarItem.tooltip = "Click to refresh Project Data"; - setTimeout(() => twp.RefreshData(), 1 * 60 * 1000); + twp.Config = yield twp.GetProjectForRepository(); + if (twp.Config !== undefined) { + twp.statusBarItem.command = "twp.SetActiveProject"; + twp.statusBarItem.show(); + twp.statusBarItem.text = twp.Config.ActiveProjectName; + twp.statusBarItem.tooltip = "Click to refresh Project Data"; + setTimeout(() => twp.RefreshData(), 1 * 60 * 1000); + } vscode.commands.registerCommand('taskOutline.refresh', task => { + twp.RefreshData(); taskProvider.refresh(); }); vscode.commands.registerCommand('taskOutline.showElement', task => { twp.openResource(task); }); - //vscode.commands.registerCommand('twp.assignTask',(task:TaskItemNode) => { - // twp.AssignTask(task); - // taskProvider.refresh(task); - // vscode.window.showInformationMessage("Task assigned"); - //}); vscode.commands.registerCommand('twp.completeTask', (task) => { twp.CompleteTask(task.id); task.isComplete = true; taskProvider.refresh(task); vscode.window.showInformationMessage("Task completed"); }); + vscode.commands.registerCommand('twp.SetActiveProject', task => { twp.SelectActiveProject(); }); vscode.commands.registerCommand('twp.SetProject', task => { twp.SelectProject(); }); vscode.commands.registerCommand('twp.RefreshData', task => { twp.RefreshData(); }); + vscode.commands.registerCommand('twp.linkTask', task => { twp.QuickAddTask(); }); + vscode.commands.registerCommand('twp.SetAccount', task => { twp.SelectAccount(); }); // Refresh data once every 30 minutes setInterval(twp.RefreshData, 30 * 60 * 1000); }); diff --git a/out/extension.js.map b/out/extension.js.map index 3cb74b4..ffda5a1 100644 --- a/out/extension.js.map +++ b/out/extension.js.map @@ -1 +1 @@ -{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";;;;;;;;;;AACA,iCAAiC;AAEjC,iDAA8C;AAC9C,yDAAsD;AAMtD,SAAsB,QAAQ,CAAC,OAAgC;;QAE9D,MAAM,GAAG,GAAG,IAAI,mCAAgB,CAAC,OAAO,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAChE,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,OAAO,EAAC,GAAG,CAAC,CAAC;QACnD,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;QAEpE,+CAA+C;QAC/C,GAAG,CAAC,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC1F,IAAI,aAAa,GAAmB,MAAM,GAAG,CAAC,uBAAuB,EAAE,CAAC;QACxE,GAAG,CAAC,aAAa,CAAC,OAAO,GAAG,gBAAgB,CAAC;QAC7C,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QACzB,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,YAAY,GAAG,aAAa,CAAC,iBAAiB,CAAC;QACxE,GAAG,CAAC,aAAa,CAAC,OAAO,GAAI,+BAA+B,CAAC;QAE7D,UAAU,CAAE,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,E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E,GAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;QACjF,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,cAAc,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;QAChF,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,gBAAgB,EAAG,IAAI,CAAC,EAAE,GAAE,GAAG,CAAC,aAAa,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;QAInF,qCAAqC;QACrC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAC,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;IAE5C,CAAC;CAAA;AA1DD,4BA0DC"} \ No newline at end of file diff --git a/out/model/nodes/ProjectNode.js b/out/model/nodes/ProjectNode.js index f2137d2..bc0bf34 100644 --- a/out/model/nodes/ProjectNode.js +++ b/out/model/nodes/ProjectNode.js @@ -20,11 +20,16 @@ class ProjectNode { } getTreeItem() { return { - iconPath: vscode.Uri.file(path.join(this.twp._context.extensionPath, 'media', `projects-white.svg`)), + iconPath: this.GetIcon(), label: this.label, collapsibleState: vscode.TreeItemCollapsibleState.Collapsed }; } + GetIcon() { + if (this.Project === this.twp.SelectActiveProject) { + return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'resources', `projects-white.svg`)); + } + } getChildren(context) { return __awaiter(this, void 0, void 0, function* () { try { diff --git a/out/model/nodes/ProjectNode.js.map b/out/model/nodes/ProjectNode.js.map index 2828c32..3888191 100644 --- a/out/model/nodes/ProjectNode.js.map +++ b/out/model/nodes/ProjectNode.js.map @@ -1 +1 @@ -{"version":3,"file":"ProjectNode.js","sourceRoot":"","sources":["../../../src/model/nodes/ProjectNode.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iCAAiC;AAEjC,6BAA6B;AAO7B,MAAa,WAAW;IAEpB,YAA6B,KAAa,EAAW,EAAU,EAAQ,OAAgB,EAAkB,QAAsB,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AE;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,gBAAgB,EAAE,MAAM,CAAC,wBAAwB,CAAC,SAAS;SAC9D,CAAC;IACN,CAAC;IAGM,OAAO;QACV,IAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE;YAClD,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,WAAW,EAAE,oBAAoB,CAAE,CAAC,CAAC;SACtG;IACL,CAAC;IAEY,WAAW,CAAC,OAAgC;;YAErD,IAAI;gBACA,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,EAAC,IAAI,CAAC,CAAC;aAClD;YAAC,OAAO,KAAK,EAAE;gBACZ,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;gBACtC,OAAO,EAAE,CAAC;aACf;QACL,CAAC;KAAA;CAEJ;AAhCD,kCAgCC"} \ No newline at end of file diff --git a/out/model/nodes/TaskItemNode.js b/out/model/nodes/TaskItemNode.js index 3b65a18..38adf74 100644 --- a/out/model/nodes/TaskItemNode.js +++ b/out/model/nodes/TaskItemNode.js @@ -1,9 +1,18 @@ "use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); const path = require("path"); +const util_1 = require("util"); class TaskItemNode { - constructor(label, description, icon, id, priority, hasDesk, isComplete, assignedTo, parentNode, contextValue, provider, twp) { + constructor(label, description, icon, id, priority, hasDesk, isComplete, hasChildren, assignedTo, parentNode, contextValue, provider, twp, subTasks) { this.label = label; this.description = description; this.icon = icon; @@ -11,18 +20,20 @@ class TaskItemNode { this.priority = priority; this.hasDesk = hasDesk; this.isComplete = isComplete; + this.hasChildren = hasChildren; this.assignedTo = assignedTo; this.parentNode = parentNode; this.contextValue = contextValue; this.provider = provider; this.twp = twp; + this.subTasks = subTasks; } getTreeItem() { return { label: this.label, description: this.description, iconPath: this.getIcon(this.priority, this.hasDesk, this.isComplete), - collapsibleState: vscode.TreeItemCollapsibleState.None, + collapsibleState: this.hasChildren ? vscode.TreeItemCollapsibleState.Collapsed : vscode.TreeItemCollapsibleState.None, contextValue: this.contextValue, command: { command: "taskOutline.showElement", @@ -32,24 +43,53 @@ class TaskItemNode { }; } getChildren() { - return []; + return __awaiter(this, void 0, void 0, function* () { + try { + if (util_1.isNullOrUndefined(this.subTasks)) { + return []; + } + else { + let nodeList = []; + var config = vscode.workspace.getConfiguration('twp'); + var onlySelf = config.get("OnlySelfAssigned"); + let userData = this.twp._context.globalState.get("twp.data.activeAccount"); + let userId = userData.userId; + var showUnassigned = config.get("showUnAssigned"); + for (let i = 0; i < this.subTasks.length; i++) { + let element = this.subTasks[i]; + if (!util_1.isNullOrUndefined(element["responsible-party-ids"]) && element["responsible-party-ids"].indexOf(userId.toString()) < 0 && onlySelf) { + continue; + } + if (util_1.isNullOrUndefined(element["responsible-party-ids"]) && !showUnassigned) { + continue; + } + nodeList.push(new TaskItemNode(element.content, util_1.isNullOrUndefined(element["responsible-party-summary"]) ? "Anyone" : element["responsible-party-summary"], "", element.id, element.priority, element.hasTickets, element.completed, !util_1.isNullOrUndefined(element.subTasks) && element.subTasks.length > 0, element["responsible-party-ids"], this, "taskItem", this.provider, this.twp)); + } + return nodeList; + } + } + catch (error) { + vscode.window.showErrorMessage(error); + return []; + } + }); } getIcon(priority, hasDesk = false, isComplete = false) { if (isComplete) { - return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'media', 'task.svg')); + return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'resources', 'task.svg')); } if (hasDesk) { return { - light: path.join(this.twp._context.extensionPath, 'media/light', 'twdesk_light.svg'), - dark: path.join(this.twp._context.extensionPath, 'media/dark', 'twdesk_dark.svg'), + light: path.join(this.twp._context.extensionPath, 'resources/light', 'twdesk_light.svg'), + dark: path.join(this.twp._context.extensionPath, 'resources/dark', 'twdesk_dark.svg'), }; } if (priority === "") { return ""; //return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'media', 'task.svg')); } return { - light: path.join(this.twp._context.extensionPath, 'media/light', `task_priority_${priority}.svg`), - dark: path.join(this.twp._context.extensionPath, 'media/dark', `task_priority_${priority}.svg`), + light: path.join(this.twp._context.extensionPath, 'resources/light', `task_priority_${priority}.svg`), + dark: path.join(this.twp._context.extensionPath, 'resources/dark', `task_priority_${priority}.svg`), }; } } diff --git a/out/model/nodes/TaskItemNode.js.map b/out/model/nodes/TaskItemNode.js.map index cca7e49..efcb310 100644 --- a/out/model/nodes/TaskItemNode.js.map +++ b/out/model/nodes/TaskItemNode.js.map @@ -1 +1 @@ -{"version":3,"file":"TaskItemNode.js","sourceRoot":"","sources":["../../../src/model/nodes/TaskItemNode.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAGjC,6BAA6B;AAI7B,MAAa,YAAY;IACrB,YACW,KAAa,EACZ,WAAmB,EACnB,IAAyD,EAC1D,EAAU,EACV,QAAgB,EAChB,OAAgB,EAChB,UAAmB,EACnB,UAAkB,EAClB,UAAwB,EACxB,YAAoB,EACV,QAAsB,EACtB,GAAqB;QAX/B,UAAK,GAAL,KAAK,CAAQ;QACZ,gBAAW,GAAX,WAAW,CAAQ;QACnB,SAAI,GAAJ,IAAI,CAAqD;QAC1D,OAAE,GAAF,EAAE,CAAQ;QACV,aAAQ,GAAR,QAAQ,CAAQ;QAChB,YAAO,GAAP,OAAO,CAAS;QAChB,eAAU,GAAV,UAAU,CAAS;Q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AG,OAAO,EAAC;YACP,OAAO;gBACH,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;gBACxF,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,CAAC;aACxF,CAAC;SACL;QAED,IAAG,QAAQ,KAAK,EAAE,EAAC;YACf,OAAO,EAAE,CAAC,CAAC,0FAA0F;SACxG;QAED,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,QAAQ,MAAM,CAAC;YACrG,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,QAAQ,MAAM,CAAC;SACtG,CAAC;IAGN,CAAC;CAEJ;AArGD,oCAqGC"} \ No newline at end of file diff --git a/out/model/projectConfig.js b/out/model/projectConfig.js index a40041e..a95098a 100644 --- a/out/model/projectConfig.js +++ b/out/model/projectConfig.js @@ -1,15 +1,28 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("util"); class ProjectConfig { constructor(projects) { this.Projects = projects; - if (projects) { - this.ActiveProjectName = projects[0].Name; - this.ActiveProjectId = projects[0].Id; - } - else { + if (util_1.isNullOrUndefined(this.Projects)) { this.ActiveProjectName = "No Project Selected"; this.ActiveProjectId = "0"; + return; + } + // Active Project no longer selected -> clear + if (!this.Projects.find(p => p.Id === parseInt(this.ActiveProjectId))) { + this.ActiveProjectName = ""; + this.ActiveProjectId = ""; + } + if (this.ActiveProjectName && this.ActiveProjectName.length < 1) { + if (projects) { + this.ActiveProjectName = projects[0].Name; + this.ActiveProjectId = projects[0].Id; + } + else { + this.ActiveProjectName = "No Project Selected"; + this.ActiveProjectId = "0"; + } } } } diff --git a/out/model/projectConfig.js.map b/out/model/projectConfig.js.map index a833f39..d57d8bc 100644 --- a/out/model/projectConfig.js.map +++ b/out/model/projectConfig.js.map @@ -1 +1 @@ -{"version":3,"file":"projectConfig.js","sourceRoot":"","sources":["../../src/model/projectConfig.ts"],"names":[],"mappings":";;AAEA,MAAa,aAAa;IAItB,YAAY,QAAQ;QAChB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAG,QAAQ,EAAC;YACR,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAC1C,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SACzC;aAAI;YACD,IAAI,CAAC,iBAAiB,GAAG,qBAAqB,CAAC;YAC/C,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;SAC9B;IACL,CAAC;CACJ;AAfD,sCAeC;AAED,MAAa,kBAAkB;IAK3B,YAAY,IAAI,EAAC,EAAE,EAAE,OAAO;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AAVD,gDAUC"} \ No newline at end of file +{"version":3,"file":"projectConfig.js","sourceRoot":"","sources":["../../src/model/projectConfig.ts"],"names":[],"mappings":";;AACA,+BAAyC;AAEzC,MAAa,aAAa;IAMtB,YAAY,QAAQ;QAChB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAGzB,IAAG,wBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC;YAChC,IAAI,CAAC,iBAAiB,GAAG,qBAAqB,CAAC;YAC/C,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;YAC3B,OAAO;SACV;QAED,6CAA6C;QAC7C,IAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAC;YAC/D,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;YAC5B,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;SAC7B;QAED,IAAG,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAC;YAC3D,IAAG,QAAQ,EAAE;gBACT,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC1C,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;aACzC;iBAAI;gBACD,IAAI,CAAC,iBAAiB,GAAG,qBAAqB,CAAC;gBAC/C,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;aAC9B;SACJ;IAGL,CAAC;CACJ;AAlCD,sCAkCC;AAED,MAAa,kBAAkB;IAK3B,YAAY,IAAI,EAAC,EAAE,EAAE,OAAO;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AAVD,gDAUC"} \ No newline at end of file diff --git a/out/model/responses/TaskItemResponse.js b/out/model/responses/TaskItemResponse.js new file mode 100644 index 0000000..177c82e --- /dev/null +++ b/out/model/responses/TaskItemResponse.js @@ -0,0 +1,8 @@ +"use strict"; +// To parse this data: +// +// import { Convert, TaskItemResponse } from "./file"; +// +// const taskItemResponse = Convert.toTaskItemResponse(json); +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=TaskItemResponse.js.map \ No newline at end of file diff --git a/out/model/responses/TaskItemResponse.js.map b/out/model/responses/TaskItemResponse.js.map new file mode 100644 index 0000000..ce623bd --- /dev/null +++ b/out/model/responses/TaskItemResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TaskItemResponse.js","sourceRoot":"","sources":["../../../src/model/responses/TaskItemResponse.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,EAAE;AACF,wDAAwD;AACxD,EAAE;AACF,+DAA+D"} \ No newline at end of file diff --git a/out/model/responses/TaskListResponse.js b/out/model/responses/TaskListResponse.js index 9a12a03..ad68d7d 100644 --- a/out/model/responses/TaskListResponse.js +++ b/out/model/responses/TaskListResponse.js @@ -1,10 +1,8 @@ "use strict"; -// To parse this data: -// -// import { Convert, TaskListResponse } from "./file"; -// -// const taskListResponse = Convert.toTaskListResponse(json); Object.defineProperty(exports, "__esModule", { value: true }); +class TodoList { +} +exports.TodoList = TodoList; // Converts JSON strings to/from your types class TaskListConverter { static toTaskListResponse(json) { diff --git a/out/model/responses/TaskListResponse.js.map b/out/model/responses/TaskListResponse.js.map index bb3e30e..9de572d 100644 --- a/out/model/responses/TaskListResponse.js.map +++ b/out/model/responses/TaskListResponse.js.map @@ -1 +1 @@ -{"version":3,"file":"TaskListResponse.js","sourceRoot":"","sources":["../../../src/model/responses/TaskListResponse.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,EAAE;AACF,wDAAwD;AACxD,EAAE;AACF,+DAA+D;;AAmF/D,2CAA2C;AAC3C,MAAa,iBAAiB;IACnB,MAAM,CAAC,kBAAkB,CAAC,IAAY;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,KAAuB;QACxD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACJ;AARD,8CAQC"} \ No newline at end of file +{"version":3,"file":"TaskListResponse.js","sourceRoot":"","sources":["../../../src/model/responses/TaskListResponse.ts"],"names":[],"mappings":";;AAaA,MAAa,QAAQ;CAiBpB;AAjBD,4BAiBC;AAED,2CAA2C;AAC3C,MAAa,iBAAiB;IACnB,MAAM,CAAC,kBAAkB,CAAC,IAAY;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,KAAuB;QACxD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACJ;AARD,8CAQC"} \ No newline at end of file diff --git a/out/model/responses/projectListResponse.js.map b/out/model/responses/projectListResponse.js.map index f6eeb01..8d1630c 100644 --- a/out/model/responses/projectListResponse.js.map +++ b/out/model/responses/projectListResponse.js.map @@ -1 +1 @@ -{"version":3,"file":"projectListResponse.js","sourceRoot":"","sources":["../../../src/model/responses/projectListResponse.ts"],"names":[],"mappings":";;AAgBA,2CAA2C;AAC3C,MAAa,SAAS;IACX,MAAM,CAAC,qBAAqB,CAAC,IAAY;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,yBAAyB,CAAC,KAA0B;QAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACJ;AARD,8BAQC"} \ No newline at end of file +{"version":3,"file":"projectListResponse.js","sourceRoot":"","sources":["../../../src/model/responses/projectListResponse.ts"],"names":[],"mappings":";;AAiBA,2CAA2C;AAC3C,MAAa,SAAS;IACX,MAAM,CAAC,qBAAqB,CAAC,IAAY;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,yBAAyB,CAAC,KAA0B;QAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACJ;AARD,8BAQC"} \ No newline at end of file diff --git a/out/model/taskQuickAdd.js b/out/model/taskQuickAdd.js new file mode 100644 index 0000000..f07b7a8 --- /dev/null +++ b/out/model/taskQuickAdd.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class TaskQuickAdd { +} +exports.TaskQuickAdd = TaskQuickAdd; +class TodoItemQuick { +} +exports.TodoItemQuick = TodoItemQuick; +//# sourceMappingURL=taskQuickAdd.js.map \ No newline at end of file diff --git a/out/model/taskQuickAdd.js.map b/out/model/taskQuickAdd.js.map new file mode 100644 index 0000000..cb15159 --- /dev/null +++ b/out/model/taskQuickAdd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"taskQuickAdd.js","sourceRoot":"","sources":["../../src/model/taskQuickAdd.ts"],"names":[],"mappings":";;AAAA,MAAa,YAAY;CAOxB;AAPD,oCAOC;AAED,MAAa,aAAa;CAMzB;AAND,sCAMC"} \ No newline at end of file diff --git a/out/taskProvider.js b/out/taskProvider.js index 3ee98ca..a116bd5 100644 --- a/out/taskProvider.js +++ b/out/taskProvider.js @@ -11,6 +11,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); const ProjectNode_1 = require("./model/nodes/ProjectNode"); const ProjectErrorNode_1 = require("./model/nodes/ProjectErrorNode"); +const util_1 = require("util"); class TaskProvider { constructor(context, twp) { this.context = context; @@ -40,8 +41,17 @@ class TaskProvider { return items; } if (!config) { - items.push(new ProjectErrorNode_1.ProjectErrorNode("-> Select Project for Repository", "", "", 0)); - return items; + let userData = this.twp._context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; + if (util_1.isNullOrUndefined(token) || util_1.isNullOrUndefined(root)) { + items.push(new ProjectErrorNode_1.ProjectErrorNode("-> Please login first.", "", "", 0)); + return items; + } + else { + items.push(new ProjectErrorNode_1.ProjectErrorNode("-> Select Project for Repository", "", "", 0)); + return items; + } } } return element.getChildren(this.context); diff --git a/out/taskProvider.js.map b/out/taskProvider.js.map index c44ad00..412abf1 100644 --- a/out/taskProvider.js.map +++ b/out/taskProvider.js.map @@ -1 +1 @@ -{"version":3,"file":"taskProvider.js","sourceRoot":"","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;gBACF,MAAM,KAAK,GAAG,EAAE,CAAC;gBACjB,KAAK,CAAC,IAAI,CAAC,IAAI,mCAAgB,CAAC,kCAAkC,EAAC,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC,CAAC,CAAC;gBAC7E,OAAO,KAAK,CAAC;aAChB;QACL,CAAC;KAAA;IAIM,WAAW,CAAC,OAAc;QAC7B,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC;IACjC,CAAC;CAGJ;AAlED,oCAkEC"} \ No newline at end of file diff --git a/out/teamworkProjects.js b/out/teamworkProjects.js index 9b7288e..c99aa9a 100644 --- a/out/teamworkProjects.js +++ b/out/teamworkProjects.js @@ -11,19 +11,24 @@ Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const vscode = require("vscode"); const fs = require("fs"); -const templateEngine_1 = require("./adaptiveCards/templateEngine"); -const expressionParser_1 = require("./adaptiveCards/expressionParser"); const TaskListNode_1 = require("./model/nodes/TaskListNode"); const TaskItemNode_1 = require("./model/nodes/TaskItemNode"); const ProjectQuickTip_1 = require("./model/nodes/ProjectQuickTip"); const projectConfig_1 = require("./model/projectConfig"); const utilities_1 = require("./utilities"); +const teamworkProjectsApi_1 = require("./teamworkProjectsApi"); +const EmptyNode_1 = require("./model/nodes/EmptyNode"); +const webviews_1 = require("./webviews"); +const util_1 = require("util"); class TeamworkProjects { constructor(context, extensionPath) { this.context = context; + this.IsLoading = false; this._disposables = []; this._context = context; this._extensionPath = extensionPath; + this.API = new teamworkProjectsApi_1.TeamworkProjectsApi(this._context); + this.WebViews = new webviews_1.WebViews(this._context, this._extensionPath); } dispose() { // Clean up our resources @@ -42,7 +47,7 @@ class TeamworkProjects { if (this.panel) { this.panel.reveal(column); this.panel.title = taskItem.label; - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.panel.webview.html = yield this.GetWebViewContent(taskItem.id); } else { @@ -53,20 +58,20 @@ class TeamworkProjects { ] }); this.panel.iconPath = { - light: vscode.Uri.file(path.join(this._extensionPath, 'media', 'projects-white.svg')), - dark: vscode.Uri.file(path.join(this._extensionPath, 'media', 'projects-white.svg')) + light: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'projects-white.svg')), + dark: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'projects-white.svg')) }; - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.panel.webview.html = yield this.GetWebViewContent(taskItem.id); this.panel.webview.onDidReceiveMessage((message) => __awaiter(this, void 0, void 0, function* () { var data = JSON.parse(message.text); switch (data.type) { case 'comment': - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.CreateComment(data.taskId, data.comment); return; case 'complete': - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.CompleteTask(data.taskId); return; } @@ -79,64 +84,18 @@ class TeamworkProjects { } CreateComment(taskItem, content) { return __awaiter(this, void 0, void 0, function* () { - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - const url = root + '/tasks/' + taskItem + '/comments.json'; - var comment = { - "comment": { - "body": "" + content + "", - "notify": "false", - "isPrivate": false, - "content-type": "text", - "ParseMentions": true, - } - }; - let json = yield axios({ - method: 'post', - url: url, - data: comment, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(comment); - console.log(error); - }); + yield this.API.AddComment(taskItem, content); this.panel.webview.html = yield this.GetWebViewContent(taskItem, true); }); } CompleteTask(taskItem) { return __awaiter(this, void 0, void 0, function* () { - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; + yield this.API.CompleteTask(taskItem); + if (util_1.isNullOrUndefined(this.panel) || util_1.isNullOrUndefined(this.panel.webview)) { + } + else { + this.panel.webview.html = yield this.GetWebViewContent(taskItem, true); } - const url = root + '/tasks/' + taskItem + '/complete.json'; - let json = yield axios({ - method: 'put', - url: url, - data: "", - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - this.panel.webview.html = yield this.GetWebViewContent(taskItem, true); }); } GetPeopleQuickTips(people, assignedTo) { @@ -154,20 +113,6 @@ class TeamworkProjects { } AssignTask(node) { return __awaiter(this, void 0, void 0, function* () { - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - let assignedTo = node.assignedTo.split(","); - let people = yield this.GetPeopleInProject(true, node.parentNode.parentNode.id.toString()); - const selectedPeople = yield vscode.window.showQuickPick(this.GetPeopleQuickTips(people, assignedTo), { placeHolder: "Select Person", ignoreFocusOut: true, canPickMany: true }); - if (selectedPeople) { - vscode.window.showInformationMessage("et voila"); - } }); } GetWebViewContent(taskItem, force = false) { @@ -175,238 +120,117 @@ class TeamworkProjects { var config = vscode.workspace.getConfiguration('twp'); var showTeamworkPanel = config.get("ShowTeamworkPanel"); if (showTeamworkPanel) { - return yield this.GetWebViewContentTeamwork(taskItem, force); + return yield this.WebViews.GetWebViewContentTeamwork(taskItem, force); } else { - return yield this.GetWebViewContentAdaptiveCard(taskItem, force); + return yield this.WebViews.GetWebViewContentAdaptiveCard(taskItem, force); } }); } - GetWebViewContentLoader() { - // jquery - const jqueryPath = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'jquery.min.js')); - const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); - const nonce = this.getNonce(); - const ACstyle = vscode.Uri.file(path.join(this._extensionPath, 'media/css', 'loader.css')); - const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); - return ` - - - - - Cat Coding - - - - - -
- -

- please wait... -

-
-
- - `; - } - GetWebViewContentAdaptiveCard(taskItem, force = false) { + QuickAddTask() { return __awaiter(this, void 0, void 0, function* () { - var todo = yield this.getTodoItem(this._context, taskItem, force); - if (todo) { - const templateFile = require(path.join(this._extensionPath, 'media/cards', 'taskCard.json')); - var _templatePayload = templateFile; - let template = new templateEngine_1.Template(_templatePayload); - let context = new expressionParser_1.EvaluationContext(); - context.$root = todo; - let expandedTemplatePayload = template.expand(context); - // Local path to main script run in the webview - const scriptPathOnDisk = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'mainAdaptive.js')); - // And the uri we use to load this script in the webview - const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' }); - // jquery - const jqueryPath = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'jquery.min.js')); - const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); - // AdaptiveCards - const ACPath = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'adaptivecards.min.js')); - const ACUri = ACPath.with({ scheme: 'vscode-resource' }); - const MarkdownPath = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'markdown-it.min.js')); - const MarkdownUri = MarkdownPath.with({ scheme: 'vscode-resource' }); - const mainstyle = vscode.Uri.file(path.join(this._extensionPath, 'media/css', 'msteamsstyle.css')); - const mainstyleUri = mainstyle.with({ scheme: 'vscode-resource' }); - const ACstyle = vscode.Uri.file(path.join(this._extensionPath, 'media/css', 'editormain.css')); - const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); - const nonce = this.getNonce(); - return ` - - - - - Cat Coding - - - - - - -
-
- - - - - - - `; + if (this.IsLoading) { + return; } - }); - } - GetWebViewContentTeamwork(taskItem, force = false) { - return __awaiter(this, void 0, void 0, function* () { - var config = vscode.workspace.getConfiguration('twp'); - var root = config.get("APIRoot"); - var auth = "Basic " + Buffer.from(config.get("APIKey") + ":xxxxxx").toString("base64"); - var todo = yield this.getTodoItem(this._context, taskItem); - if (todo) { - const nonce = this.getNonce(); - const scriptPathOnDisk = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'mainTeamwork.js')); - // And the uri we use to load this script in the webview - const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' }); - // jquery - const jqueryPath = vscode.Uri.file(path.join(this._extensionPath, 'media/js', 'jquery.min.js')); - const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); - return ` - - - - - Cat Coding - - - - - - - - - `; + var editor = vscode.window.activeTextEditor; + if (!editor) { + vscode.window.showInformationMessage("You need to have code selected to use this."); + } + var workspaceRoot = vscode.workspace.rootPath; + var fileName = editor.document.fileName.replace(workspaceRoot, ""); + var selection = editor.selection; + var line = selection.start.line; + var cursor = selection.start.character; + var text = editor.document.getText(selection); + var list = yield this.GetTaskListQuickTip(true); + if (list !== null && list.length > 0) { + const taskList = yield vscode.window.showQuickPick(list, { placeHolder: "Select Tasklist", ignoreFocusOut: true, canPickMany: false }); + if (taskList !== null) { + const result = yield vscode.window.showInputBox({ + placeHolder: 'Task Title @person [today|tomorrow]', + }); + const gitExtension = vscode.extensions.getExtension('vscode.git').exports; + var gitLink = ""; + var gitBranch = ""; + if (gitExtension) { + const api = gitExtension.getAPI(1); + if (api && api.repositories.length > 0) { + var repo = api.repositories[0]; + var remote = repo.state.remotes[0]; + gitBranch = repo.state.HEAD.name; + gitLink = remote.fetchUrl.replace(".git", "") + "/blob/" + gitBranch + fileName + "#L" + line; + } + } + var taskDescription = "Task added from VSCode: \n"; + taskDescription += "File: " + fileName + "\n"; + taskDescription += "Line: " + line + "\n"; + if (gitBranch.length > 0) { + taskDescription += "Branch:" + gitBranch + "\n"; + } + if (gitLink.length > 0) { + taskDescription += "Link:" + gitLink + "\n"; + } + taskDescription += "Selection: " + "\n"; + taskDescription += text; + var newTask = yield this.API.postTodoItem(this._context, parseInt(this.Config.ActiveProjectId), parseInt(taskList.id), result, taskDescription); + let userData = this._context.globalState.get("twp.data.activeAccount"); + let root = userData.rootUrl; + if (!util_1.isNullOrUndefined(newTask)) { + var id = newTask["data"]["taskIds"]; + var taskDetails = yield this.API.getTodoItem(this._context, parseInt(id), true); + var langConfig = utilities_1.Utilities.GetActiveLanguageConfig(); + var commentWrapper = langConfig.comments.lineComment; + var content = taskDetails.content; + var responsible = taskDetails["responsible-party-names"]; + editor.edit(edit => { + edit.setEndOfLine(vscode.EndOfLine.CRLF); + edit.insert(new vscode.Position(line, cursor), commentWrapper + "Task: " + content + "\r\n"); + edit.insert(new vscode.Position(line, cursor), commentWrapper + "Link: " + root + "/tasks/" + id + "\r\n"); + edit.insert(new vscode.Position(line, cursor), commentWrapper + "Assigned To: " + responsible + "\r\n" + "\r\n"); + }); + vscode.window.showInformationMessage("Task was added"); + } + } } }); } - getNonce() { - let text = ""; - const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - for (let i = 0; i < 32; i++) { - text += possible.charAt(Math.floor(Math.random() * possible.length)); - } - return text; - } RefreshData() { return __awaiter(this, void 0, void 0, function* () { - this.statusBarItem.text = "Teamwork: Updating Projects"; - let project = yield this.GetProjectForRepository(); - project.Projects.forEach((element) => __awaiter(this, void 0, void 0, function* () { - this.statusBarItem.text = "Teamwork: Refreshing TaskLists"; - var taskLists = yield this.getTaskLists(this._context, null, element.Id, true); - this.statusBarItem.text = "Teamwork: Refreshing TodoItems"; - taskLists.forEach((subelement) => __awaiter(this, void 0, void 0, function* () { - var taskItems = yield this.getTaskItems(this._context, null, null, subelement.id, true); - })); - this.statusBarItem.text = "Teamwork: " + project.ActiveProjectName; - })); - }); - } - toProjectListResponse(json) { - return JSON.parse(json); - } - GetProjects(force = false, includePeople = false, getAll = false, getList = "") { - return __awaiter(this, void 0, void 0, function* () { - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); + let userData = this.context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); return; } - let result; - // Load from cache if duration less than 30 minutes - let cachedProjects = this._context.globalState.get("twp.data.projects", null); - let lastUpdated = this._context.globalState.get("twp.data.projects.lastUpdated", new Date()); - if (cachedProjects && cachedProjects.length > 0 && lastUpdated && !force) { - if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { - result = cachedProjects; - } + if (this.IsLoading) { + return; } - if (!result) { - const url = root + '/tasks/projects.json?type=canAddItem&pageSize=200'; - result = yield axios({ - method: 'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); + this.IsLoading = true; + this.statusBarItem.text = "Teamwork: Updating Projects"; + if (this.Config === null) { + this.Config = yield this.GetProjectForRepository(); } - if (includePeople) { - result.data.projects.forEach((element) => __awaiter(this, void 0, void 0, function* () { - element.people = yield this.GetPeopleInProject(force, element.id); + if (this.Config.Projects !== null) { + this.Config.Projects.forEach((element) => __awaiter(this, void 0, void 0, function* () { + this.statusBarItem.text = "Teamwork: Refreshing TaskLists"; + element.Project.TodoLists = yield this.API.getTaskLists(this._context, element.Id, true); + this.statusBarItem.text = "Teamwork: Refreshing TodoItems"; + element.Project.TodoLists.forEach((subelement) => __awaiter(this, void 0, void 0, function* () { + subelement.TodoItems = yield this.API.getTaskItems(this._context, parseInt(subelement.id), true); + })); + this.statusBarItem.text = "Teamwork: " + this.Config.ActiveProjectName; })); } - this.Projects = result.data.projects; - this._context.globalState.update("twp.data.projects", result.data.projects); - this._context.globalState.update("twp.data.projects.lastUpdated", new Date()); - return result.projects; + this.IsLoading = false; }); } + toProjectListResponse(json) { + return JSON.parse(json); + } GetProjectQuickTips(force = false, selected, includePeople = false) { return __awaiter(this, void 0, void 0, function* () { let nodeList = []; - let projects = yield this.GetProjects(force, includePeople); + this.Projects = yield this.API.GetProjects(this._context, force, includePeople); this.Projects.forEach(element => { var isPicked = false; if (selected && selected.length > 0 && selected.find(p => p.Id.toString() === element.id)) { @@ -415,42 +239,57 @@ class TeamworkProjects { var item = new ProjectQuickTip_1.ProjectQuickTip(element.name, element.id, isPicked); nodeList.push(item); }); - this._context.globalState.update("twp.data.projects", projects); + this._context.globalState.update("twp.data.projects", this.Projects); this._context.globalState.update("twp.data.projects.lastUpdated", Date.now()); return nodeList; }); } - GetPeopleInProject(force = false, id) { + GetTaskListQuickTip(force = false, includePeople = false) { return __awaiter(this, void 0, void 0, function* () { - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; + let nodeList = []; + if (this.Config === null) { + this.Config = yield this.GetProjectForRepository(); + } + if (this.Config.ActiveProjectId === "") { + this.SelectActiveProject(); } - var url = root + '/projects/' + id + "/people.json"; - let json = yield axios({ - method: 'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' + this.Config.Projects.forEach(element => { + if (element.Id.toString() === this.Config.ActiveProjectId) { + if (element.Project === undefined || element.Project === null) { + vscode.window.showInformationMessage("Please pick a project for this repository first"); + return null; + } + else { + if (element.Project.TodoLists && element.Project.TodoLists.length > 0) { + element.Project.TodoLists.forEach(subelement => { + var item = new ProjectQuickTip_1.ProjectQuickTip(subelement.name, subelement.id, false); + nodeList.push(item); + }); + } + else { + vscode.window.showInformationMessage("Please wait for Project data to be loaded"); + this.RefreshData(); + return null; + } + } } - }) - .catch(function (error) { - console.log(error); }); - return json.people; + return nodeList; }); } GetProjectForRepository() { return __awaiter(this, void 0, void 0, function* () { try { + let userData = this.context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; + if (!token || !root) { + return; + } var path = vscode.workspace.rootPath + "/twp.json"; + let config; if (fs.existsSync(path)) { - let config = JSON.parse(fs.readFileSync(path, 'utf8')); + config = JSON.parse(fs.readFileSync(path, 'utf8')); if (config) { return config; } @@ -465,8 +304,31 @@ class TeamworkProjects { } }); } + SelectAccount() { + return __awaiter(this, void 0, void 0, function* () { + vscode.env.openExternal(vscode.Uri.parse('https://www.teamwork.com/launchpad/login?state=VSCODE&redirect_uri=vscode://teamwork.twp/loginData')); + return true; + }); + } + FinishLogin(context, code) { + return __awaiter(this, void 0, void 0, function* () { + var api = new teamworkProjectsApi_1.TeamworkProjectsApi(this._context); + var userData = yield api.getLoginData(context, code); + console.log(JSON.stringify(userData)); + context.globalState.update("twp.data.activeAccount", userData); + this.RefreshData(); + return null; + }); + } SelectProject() { return __awaiter(this, void 0, void 0, function* () { + let userData = this._context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; + if (util_1.isNullOrUndefined(token) || util_1.isNullOrUndefined(root)) { + this.SelectAccount(); + return; + } let savedConfig = yield this.GetProjectForRepository(); const projectItem = yield vscode.window.showQuickPick(this.GetProjectQuickTips(true, savedConfig.Projects), { placeHolder: "Select Projects", ignoreFocusOut: true, canPickMany: true }); if (projectItem) { @@ -474,185 +336,84 @@ class TeamworkProjects { projectItem.forEach((element) => __awaiter(this, void 0, void 0, function* () { items.push(new projectConfig_1.ProjectConfigEntry(element.label, element.id, element)); })); - var config = new projectConfig_1.ProjectConfig(items); + this.Config = new projectConfig_1.ProjectConfig(items); var path = vscode.workspace.rootPath + "/twp.json"; - let data = JSON.stringify(config); + let data = JSON.stringify(this.Config); fs.writeFileSync(path, data); this.RefreshData(); vscode.commands.executeCommand("taskOutline.refresh"); - return config; + return this.Config; } }); } - getTaskLists(context, node, id = 0, force = false) { + SelectActiveProject() { return __awaiter(this, void 0, void 0, function* () { - var statusBarText = this.statusBarItem.text; - this.statusBarItem.text = "Loading Tasklists......"; - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - var idToUse = id !== 0 ? id : node.id; - // Lets check our cache first + let savedConfig = yield this.GetProjectForRepository(); let nodeList = []; - // Load from cache if duration less than 30 minutes - let cachedNodes = context.globalState.get("twp.data." + idToUse + ".tasklists", []); - let lastUpdated = context.globalState.get("twp.data.tasklists." + idToUse + ".lastUpdated", new Date()); - if (cachedNodes.length > 0 && lastUpdated && !force) { - if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { - return cachedNodes; - } - } - const url = root + '/projects/' + idToUse + '/todo_lists.json?getNewTaskDefaults=true&nestSubTasks=true'; - let json = yield axios({ - method: 'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' + savedConfig.Projects.forEach(element => { + var isPicked = false; + if (parseInt(savedConfig.ActiveProjectId) === element.Id) { + isPicked = true; } - }) - .catch(function (error) { - console.log(error); - }); - json.data["todo-lists"].forEach(element => { - nodeList.push(new TaskListNode_1.TaskListNode(element.name, element.id, node, node.provider, this)); + var item = new ProjectQuickTip_1.ProjectQuickTip(element.Name, element.Id.toString(), isPicked); + nodeList.push(item); }); - context.globalState.update("twp.data." + idToUse + ".tasklists", nodeList); - context.globalState.update("twp.data.tasklists." + idToUse + ".lastUpdated", Date.now()); - this.statusBarItem.text = statusBarText; - return nodeList; + const projectItem = yield vscode.window.showQuickPick(nodeList, { placeHolder: "Select Active Project", ignoreFocusOut: true, canPickMany: false }); + if (projectItem) { + savedConfig.ActiveProjectId = projectItem.id; + savedConfig.ActiveProjectName = projectItem.name; + this.statusBarItem.text = "Teamwork: " + projectItem.name; + var path = vscode.workspace.rootPath + "/twp.json"; + let data = JSON.stringify(savedConfig); + fs.writeFileSync(path, data); + this.Config.ActiveProjectId = projectItem.id; + this.Config.ActiveProjectName = projectItem.name; + return savedConfig; + } }); } - getTaskItems(context, node, provider, id = 0, force = false) { + getTaskLists(context, parentNode, id = 0, force = false) { return __awaiter(this, void 0, void 0, function* () { var statusBarText = this.statusBarItem.text; - this.statusBarItem.text = "Loading tasks......"; - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if (!token || !root) { - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - var idToUse = id !== 0 ? id : node.id; + this.statusBarItem.text = "Loading Tasklists......"; + // Load task lists + var taskLists = yield this.API.getTaskLists(context, parentNode.id, force); let nodeList = []; - // Load from cache if duration less than 30 minutes - let cachedNodes = context.globalState.get("twp.data." + idToUse + ".todoitems", []); - let lastUpdated = context.globalState.get("twp.data.tasklists." + idToUse + ".todoitems", new Date()); - if (cachedNodes.length > 0 && lastUpdated && !force) { - if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { - return cachedNodes; - } - } - const url = root + '/tasklists/' + idToUse + '/tasks.json'; - let json = yield axios({ - method: 'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - json.data["todo-items"].forEach(element => { - nodeList.push(new TaskItemNode_1.TaskItemNode(element.content, element["responsible-party-summary"], "", element.id, element.priority, element.hasTickets, element.isComplete, element["responsible-party-ids"], node, "taskItem", provider, this)); + taskLists.forEach(element => { + nodeList.push(new TaskListNode_1.TaskListNode(element.name, parseInt(element.id), parentNode, null, this)); }); - context.globalState.update("twp.data." + idToUse + ".todoitems", nodeList); - context.globalState.update("twp.data.tasklists." + idToUse + ".todoitems", Date.now()); - this.statusBarItem.text = statusBarText; + if (taskLists.length === 0) { + nodeList.push(new EmptyNode_1.EmptyNode("No TaskLists", 0)); + } + this.statusBarItem.text = "Teamwork: " + this.Config.ActiveProjectName; return nodeList; }); } - getTodoItem(context, id, force = false) { + getTaskItems(context, node, provider, id = 0, force = false) { return __awaiter(this, void 0, void 0, function* () { - var statusBarText = this.statusBarItem.text; - this.statusBarItem.text = "Fetching task details"; - var axios = require("axios"); + this.statusBarItem.text = "Loading tasks......"; + let todoItems = yield this.API.getTaskItems(context, node.id, force); + let nodeList = []; var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - var item = this._context.globalState.get("twp.data.task." + id, ""); - var lastUpdated = this._context.globalState.get("twp.data.task." + id + ".lastUpdated", new Date()); - var todo; - if (item && !force) { - if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { - todo = item; + var onlySelf = config.get("OnlySelfAssigned"); + var showUnassigned = config.get("showUnAssigned"); + let userData = this._context.globalState.get("twp.data.activeAccount"); + let userId = userData.userId; + for (let i = 0; i < todoItems.length; i++) { + let element = todoItems[i]; + if (!util_1.isNullOrUndefined(element["responsible-party-ids"]) && element["responsible-party-ids"].indexOf(userId.toString()) < 0 && onlySelf) { + continue; } + if (util_1.isNullOrUndefined(element["responsible-party-ids"]) && !showUnassigned) { + continue; + } + nodeList.push(new TaskItemNode_1.TaskItemNode(element.content, util_1.isNullOrUndefined(element["responsible-party-summary"]) ? "Anyone" : element["responsible-party-summary"], "", element.id, element.priority, element.hasTickets, element.completed, !util_1.isNullOrUndefined(element.subTasks) && element.subTasks.length > 0, element["responsible-party-ids"], node, "taskItem", provider, this, element.subTasks)); } - else { - const url = root + '/tasks/' + id + '.json'; - let json = yield axios({ - method: 'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - todo = json.data["todo-item"]; - this._context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); - this._context.globalState.update("twp.data.task." + id, todo); - } - var dateFormat = require('dateformat'); - todo['created-on'] = dateFormat(Date.parse(todo['created-on']), "ddd-mm-yyyy"); - todo['description'] = todo['description'].replace('\'', '´'); - todo['content'] = todo['content'].replace('\'', '´'); - // If task has comments -> Load them - if (todo["comments-count"] > 0) { - const commenturl = root + '/tasks/' + id + '/comments.json'; - let comments = yield axios({ - method: 'get', - url: commenturl, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - var TurndownService = require('turndown'); - var turndownService = new TurndownService(); - comments.data.comments.forEach(element => { - var newBody = turndownService.turndown(element['html-body']); - newBody = newBody.replace('\'', '´'); - element.body = newBody; - element["datetime"] = dateFormat(Date.parse(todo.datetime), "ddd-mm-yyyy hh:MM"); - }); - todo["comments"] = comments.data.comments; - } - if (todo["attachments-count"] > 0) { - const attachment = root + '/v/2/tasks/' + id + '/files.json?getCategoryPath=true&getLikes=true&getVersions=true&page=1&pageSize=50'; - let comments = yield axios({ - method: 'get', - url: attachment, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - todo["attachments"] = comments.data.files; + if (todoItems.length === 0) { + nodeList.push(new EmptyNode_1.EmptyNode("No Tasks", 0)); } - todo["rooturl"] = root; - todo.rooturl = root; - this._context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); - this._context.globalState.update("twp.data.task." + id, todo); - this.statusBarItem.text = statusBarText; - return todo; + this.statusBarItem.text = "Teamwork: " + this.Config.ActiveProjectName; + return nodeList; }); } } diff --git a/out/teamworkProjects.js.map b/out/teamworkProjects.js.map index 83e17c7..305d08b 100644 --- a/out/teamworkProjects.js.map +++ b/out/teamworkProjects.js.map @@ -1 +1 @@ -{"version":3,"file":"teamworkProjects.js","sourceRoot":"","sources":["../src/teamworkProjects.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,6BAA6B;AAC7B,iCAAiC;AACjC,yBAAyB;AACzB,mEAAwD;AACxD,uEAAmE;AACnE,6DAA0D;AAC1D,6DAAwD;AAExD,mEAAgF;AAChF,yDAA0E;AAE1E,2CAAwC;AAKxC,MAAa,gBAAgB;IAQzB,YAAoB,OAAgC,EAAC,aAAqB;QAAtD,YAAO,GAAP,OAAO,CAAyB;QAI5C,iBAAY,GAAwB,EAAE,CAAC;QAH3C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACxC,CAAC;IAEG,OAAO;QACb,yBAAyB;QACzB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACxB,OAAO,IAAI,CAA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Y,CAAC,OAAO,CAAC,OAAO,EAC1C,wBAAiB,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,EAAC,EAAE,EAC5G,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,SAAS,EACjB,CAAC,wBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EACnE,OAAO,CAAC,uBAAuB,CAAC,EAChC,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;aAC1B;YAED,IAAG,SAAS,CAAC,MAAM,KAAK,CAAC,EAAC;gBACtB,QAAQ,CAAC,IAAI,CAAC,IAAI,qBAAS,CAAC,UAAU,EAAC,CAAC,CAAC,CAAC,CAAC;aAC9C;YAGD,IAAI,CAAC,aAAa,CAAC,IAAI,GAAG,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;YACvE,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CAIJ;AA3eD,4CA2eC"} \ No newline at end of file diff --git a/out/teamworkProjectsApi.js b/out/teamworkProjectsApi.js new file mode 100644 index 0000000..97f9b52 --- /dev/null +++ b/out/teamworkProjectsApi.js @@ -0,0 +1,324 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const vscode = require("vscode"); +const utilities_1 = require("./utilities"); +const taskQuickAdd_1 = require("./model/taskQuickAdd"); +const teamworkAccount_1 = require("./model/teamworkAccount"); +const util_1 = require("util"); +class TeamworkProjectsApi { + constructor(context) { + this.axios = require("axios"); + let userData = context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + this.root = userData.rootUrl; + if (!token || !this.root) { + this.isConfigured = false; + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + this.axios.defaults.headers.common = { + 'User-Agent': `tw-vscode (${process.platform} | ${vscode.extensions.getExtension('teamwork.twp').packageJSON.version})`, + 'Authorization': `Bearer ${token}` + }; + this.isConfigured = true; + } + GetProjects(context, force = false, includePeople = false, getAll = false, getList = "") { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + let result; + // Load from cache if duration less than 30 minutes + let cachedProjects = context.globalState.get("twp.data.project", null); + let lastUpdated = context.globalState.get("twp.data.projects.lastUpdated", new Date()); + if (cachedProjects && cachedProjects.length > 0 && lastUpdated && !force) { + if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { + result = cachedProjects; + } + } + if (!result) { + const url = this.root + '/tasks/projects.json?type=canAddItem&pageSize=200'; + result = yield this.axios({ + method: 'get', + url, + }) + .catch(function (error) { + console.log(error); + }); + } + if (includePeople) { + result.data.projects.forEach((element) => __awaiter(this, void 0, void 0, function* () { + element.people = yield this.GetPeopleInProject(context, force, element.id); + })); + } + if (!util_1.isNullOrUndefined(result.data)) { + context.globalState.update("twp.data.project", result.data.projects); + } + if (!util_1.isNullOrUndefined(result.data)) { + context.globalState.update("twp.data.projects.lastUpdated", new Date()); + } + return result.data.projects; + }); + } + GetPeopleInProject(context, force = false, id) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + var url = this.root + '/projects/' + id + "/people.json"; + let json = yield this.axios({ + method: 'get', + url + }) + .catch(function (error) { + console.log(error); + }); + return json.people; + }); + } + getTaskLists(context, id = 0, force = false) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + // Lets check our cache first + let response; + // Load from cache if duration less than 30 minutes + let cachedNodes = context.globalState.get("twp.data." + id + ".tasklist", null); + let lastUpdated = context.globalState.get("twp.data.tasklists." + id + ".lastUpdated", new Date()); + if (cachedNodes !== null && cachedNodes["data"]["tasklists"].length > 0 && lastUpdated && !force) { + if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { + return cachedNodes["data"]["tasklists"]; + } + } + const url = this.root + '/projects/api/v1/projects/' + id + '/tasklists.json?page=1&pageSize=100'; + response = yield this.axios({ + method: 'get', + url + }) + .catch(function (error) { + console.log(error); + }); + context.globalState.update("twp.data." + id + ".tasklist", response); + context.globalState.update("twp.data.tasklists." + id + ".lastUpdated", Date.now()); + return response["data"]["tasklists"]; + }); + } + getTaskItems(context, id = 0, force = false) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + let todoItems = []; + let todoResponse; + // Load from cache if duration less than 30 minutes + todoItems = context.globalState.get("twp.data." + id + ".todoitem", []); + let lastUpdated = context.globalState.get("twp.data.tasklists." + id + ".todoitem", new Date()); + if (todoItems.length > 0 && lastUpdated && !force) { + if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { + return todoItems; + } + } + const url = this.root + '/tasklists/' + id + '/tasks.json?nestSubTasks=true'; + todoResponse = yield this.axios({ + method: 'get', + url, + }) + .catch(function (error) { + console.log(error); + }); + todoItems = todoResponse["data"]["todo-items"]; + context.globalState.update("twp.data." + id + ".todoitem", todoItems); + context.globalState.update("twp.data.tasklists." + id + ".todoitem", Date.now()); + return todoItems; + }); + } + getTodoItem(context, id, force = false) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + var item = context.globalState.get("twp.data.task." + id, ""); + var lastUpdated = context.globalState.get("twp.data.task." + id + ".lastUpdated", new Date()); + var todo; + if (item && !force) { + if (utilities_1.Utilities.DateCompare(lastUpdated, 30)) { + todo = item; + } + } + else { + const url = this.root + '/tasks/' + id + '.json'; + let json = yield this.axios({ + method: 'get', + url + }) + .catch(function (error) { + console.log(error); + }); + todo = json.data["todo-item"]; + context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); + context.globalState.update("twp.data.task." + id, todo); + } + var dateFormat = require('dateformat'); + todo['created-on'] = dateFormat(Date.parse(todo['created-on']), "ddd-mm-yyyy"); + todo['description'] = todo['description'].replace('\'', '´'); + todo['content'] = todo['content'].replace('\'', '´'); + // If task has comments -> Load them + if (todo["comments-count"] > 0) { + const commenturl = this.root + '/tasks/' + id + '/comments.json'; + let comments = yield this.axios({ + method: 'get', + url: commenturl, + headers: { + "Content-Type": "application/json", + }, + }) + .catch(function (error) { + console.log(error); + }); + var TurndownService = require('turndown'); + var turndownService = new TurndownService(); + comments.data.comments.forEach(element => { + var newBody = turndownService.turndown(element['html-body']); + newBody = newBody.replace('\'', '´'); + element.body = newBody; + element["datewritten"] = dateFormat(Date.parse(element.datetime), "ddd-mm-yyyy hh:MM"); + }); + todo["comments"] = comments.data.comments; + } + if (todo["attachments-count"] > 0) { + const attachment = this.root + '/v/2/tasks/' + id + '/files.json?getCategoryPath=true&getLikes=true&getVersions=true&page=1&pageSize=50'; + let comments = yield this.axios({ + method: 'get', + url: attachment, + headers: { + "Content-Type": "application/json", + }, + }) + .catch(function (error) { + console.log(error); + }); + todo["attachments"] = comments.data.files; + } + todo["rooturl"] = this.root; + todo.rooturl = this.root; + context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); + context.globalState.update("twp.data.task." + id, todo); + return todo; + }); + } + postTodoItem(context, id, tasklistid, title, description) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + const url = this.root + '/projects/' + id + "/tasks/quickadd.json"; + var task = new taskQuickAdd_1.TaskQuickAdd(); + task.tasklistId = tasklistid; + task.notify = false; + task.private = false; + task.content = title; + var todoDetails = new taskQuickAdd_1.TodoItemQuick(); + todoDetails.description = description; + task["todo-item"] = todoDetails; + let json = yield this.axios({ + method: 'post', + data: task, + url: url, + headers: { + "Content-Type": "application/json", + }, + }) + .catch(function (error) { + console.log(error); + }); + return json; + }); + } + CompleteTask(taskItem) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + const url = this.root + '/tasks/' + taskItem + '/complete.json'; + let json = yield this.axios({ + method: 'put', + url: url, + data: "" + }) + .catch(function (error) { + console.log(error); + return false; + }); + return true; + }); + } + AddComment(taskItem, content) { + return __awaiter(this, void 0, void 0, function* () { + if (!this.isConfigured) { + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + const url = this.root + '/tasks/' + taskItem + '/comments.json'; + var comment = { + "comment": { + "body": "" + content + "", + "notify": "false", + "isPrivate": false, + "content-type": "text", + "ParseMentions": true, + } + }; + let json = yield this.axios({ + method: 'post', + url: url, + data: comment + }) + .catch(function (error) { + console.log(comment); + console.log(error); + return false; + }); + return true; + }); + } + getLoginData(context, code) { + return __awaiter(this, void 0, void 0, function* () { + var loginaxios = require("axios"); + var config = vscode.workspace.getConfiguration('twp'); + let url = 'https://api.teamwork.com/launchpad/v1/token.json?code=' + code; + let data = { + code: code, + }; + let json = yield loginaxios({ + method: 'post', + data: JSON.stringify(data), + url, + }) + .catch(function (error) { + console.log(error); + return null; + }); + let loginData = json["data"]; + let user = new teamworkAccount_1.TeamworkAccount(loginData.installation.id, loginData.user.id, loginData.user.firstName + " " + loginData.user.lastName, loginData.user.email, loginData["access_token"], loginData.installation.apiEndPoint); + return user; + }); + } +} +exports.TeamworkProjectsApi = TeamworkProjectsApi; +//# sourceMappingURL=teamworkProjectsApi.js.map \ No newline at end of file diff --git a/out/teamworkProjectsApi.js.map b/out/teamworkProjectsApi.js.map new file mode 100644 index 0000000..08dd263 --- /dev/null +++ b/out/teamworkProjectsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"teamworkProjectsApi.js","sourceRoot":"","sources":["../src/teamworkProjectsApi.ts"],"names":[],"mappings":";;;;;;;;;;AACA,iCAAiC;AACjC,2CAAwC;AAKxC,uDAAmE;AACnE,6DAA0D;AAC1D,+BAAyC;AAEzC,MAAa,mBAAmB;IAO5B,YAAY,OAAgC;QAJpC,UAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAK7B,IAAI,QAAQ,GAAqB,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACnF,IAAI,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC;QAG7B,IAAG,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,EAAC;YACpB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;YAC1B,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,uCAAuC,CAAC,CAAC;YACxE,OAAO;SACV;QAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG;YACjC,YAAY,EAAE,cAAc,OAAO,CAAC,QAAQ,MAAM,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,OAAO,GAAG;YACvH,eAAe,EAAE,UAAU,KAAK,EAAE;SAAC,CAAC;QAExC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IAOY,WAAW,CAAC,OAAgC,EAAE,QAAiB,KAAK,EAAE,gBAAwB,KAAK,EAAE,SAAkB,KAAK,EAAE,UAAkB,EAAE;;YAE3J,IAAG,CAAC,IAAI,CAAC,YAAY,EAAC;gBAClB,MAAM,CAAC,MAAM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,IAAI,CAAC,MAAM,CAAC,CAAC;YAE7B,IAAI,IAAI,GAAG,IAAI,iCAAe,CAC1B,SAAS,CAAC,YAAY,CAAC,EAAE,EACzB,SAAS,CAAC,IAAI,CAAC,EAAE,EACjB,SAAS,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ,EACxD,SAAS,CAAC,IAAI,CAAC,KAAK,EACpB,SAAS,CAAC,cAAc,CAAC,EACzB,SAAS,CAAC,YAAY,CAAC,WAAW,CAAE,CAAC;YAEzC,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CAEJ;AAxWD,kDAwWC"} \ No newline at end of file diff --git a/out/utilities.js b/out/utilities.js index 5c157d7..ee644ad 100644 --- a/out/utilities.js +++ b/out/utilities.js @@ -1,5 +1,8 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +const fs = require("fs"); +const path = require("path"); +const vscode = require("vscode"); class Utilities { static DateCompare(date, compareDuration) { var moment = require('moment'); @@ -11,6 +14,29 @@ class Utilities { } return false; } + static GetActiveLanguageConfig() { + const editor = vscode.window.activeTextEditor; + const documentLanguageId = editor.document.languageId; + var langConfigFilepath = null; + for (const _ext of vscode.extensions.all) { + // All vscode default extensions ids starts with "vscode." + if (_ext.id.startsWith("vscode.") && + _ext.packageJSON.contributes && + _ext.packageJSON.contributes.languages) { + // Find language data from "packageJSON.contributes.languages" for the languageId + const packageLangData = _ext.packageJSON.contributes.languages.find(_packageLangData => (_packageLangData.id === documentLanguageId)); + // If found, get the absolute config file path + if (!!packageLangData) { + langConfigFilepath = path.join(_ext.extensionPath, packageLangData.configuration); + break; + } + } + } + // Validate config file existance + if (!!langConfigFilepath && fs.existsSync(langConfigFilepath)) { + return require(langConfigFilepath); + } + } } exports.Utilities = Utilities; //# sourceMappingURL=utilities.js.map \ No newline at end of file diff --git a/out/utilities.js.map b/out/utilities.js.map index 956085d..625c9f4 100644 --- a/out/utilities.js.map +++ b/out/utilities.js.map @@ -1 +1 @@ -{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":";;AACA,MAAa,SAAS;IAGX,MAAM,CAAC,WAAW,CAAC,IAAU,EAAE,eAAuB;QACzD,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE/B,IAAI,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,SAAS,GAAG,MAAM,EAAE,CAAC;QAEzB,IAAI,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,WAAW,EAAC,SAAS,CAAC,CAAC;QAEhD,IAAG,GAAG,GAAG,eAAe,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;QAE1C,OAAO,KAAK,CAAC;IACjB,CAAC;CAIJ;AAlBD,8BAkBC"} \ No newline at end of file +{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":";;AAAA,yBAAyB;AACzB,6BAA6B;AAC7B,iCAAiC;AAEjC,MAAa,SAAS;IAGX,MAAM,CAAC,WAAW,CAAC,IAAU,EAAE,eAAuB;QACzD,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE/B,IAAI,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,SAAS,GAAG,MAAM,EAAE,CAAC;QAEzB,IAAI,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,WAAW,EAAC,SAAS,CAAC,CAAC;QAEhD,IAAG,GAAG,GAAG,eAAe,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;QAE1C,OAAO,KAAK,CAAC;IACjB,CAAC;IAIM,MAAM,CAAC,uBAAuB;QACjC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;QAC9C,MAAM,kBAAkB,GAAU,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC7D,IAAI,kBAAkB,GAAU,IAAI,CAAC;QACrC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;YAC1C,0DAA0D;YAC1D,IACI,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;gBAC7B,IAAI,CAAC,WAAW,CAAC,WAAW;gBAC5B,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,EACxC;gBACE,iFAAiF;gBACjF,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CACnE,gBAAgB,CAAC,EAAE,CAAC,CAAC,gBAAgB,CAAC,EAAE,KAAK,kBAAkB,CAAC,CAC/D,CAAC;gBACF,8CAA8C;gBAC9C,IAAI,CAAC,CAAC,eAAe,EAAE;oBACvB,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAC1B,IAAI,CAAC,aAAa,EAClB,eAAe,CAAC,aAAa,CAChC,CAAC;oBACF,MAAM;iBACL;aACJ;SACA;QACD,iCAAiC;QACjC,IAAI,CAAC,CAAC,kBAAkB,IAAI,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE;YAC7D,OAAO,OAAO,CAAC,kBAAkB,CAAC,CAAC;SACpC;IACL,CAAC;CAEJ;AAjDD,8BAiDC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c28b3d1..da56f5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "twp", - "version": "0.5.8", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -99,11 +99,6 @@ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz", "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==" }, - "adaptivecards": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/adaptivecards/-/adaptivecards-1.1.3.tgz", - "integrity": "sha512-UeU/w8SqkeBE1NuiI+5C1XxQJtxA/o7l5uDfDG2XCS3oKt73vfj3Bh0DRHtxyVFecoegmBNPzpRo7C6QTcxIRg==" - }, "agent-base": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz", @@ -114,12 +109,14 @@ } }, "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", + "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", "requires": { - "co": "^4.6.0", - "json-stable-stringify": "^1.0.1" + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, "ansi-styles": { @@ -152,9 +149,9 @@ } }, "assert-plus": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" }, "async-limiter": { "version": "1.0.0", @@ -167,9 +164,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-sign2": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=" + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { "version": "1.8.0", @@ -177,12 +174,12 @@ "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, "axios": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", - "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.1.tgz", + "integrity": "sha512-0BfJq4NSfQXd+SkFdrvFbG7addhYSBA2mQwISr46pD6E5iqkWg02RAs8vyTT/j0RTnoYmeXauBuSv1qKwR179g==", "requires": { - "follow-redirects": "^1.3.0", - "is-buffer": "^1.1.5" + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" } }, "balanced-match": { @@ -203,14 +200,6 @@ "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" }, - "boom": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", - "requires": { - "hoek": "2.x.x" - } - }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -286,11 +275,6 @@ } } }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" - }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -328,11 +312,21 @@ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "cryptiles": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-4.1.3.tgz", + "integrity": "sha512-gT9nyTMSUC1JnziQpPbxKGBbUg8VL7Zn2NB4E1cJYvuXdElHrwxrV9bmltZGDzet45zSDGyYceueke1TjynGzw==", "requires": { - "boom": "2.x.x" + "boom": "7.x.x" + }, + "dependencies": { + "boom": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-7.3.0.tgz", + "integrity": "sha512-Swpoyi2t5+GhOEGw8rEsKvTxFLIDiiKoUc2gsoV6Lyr43LHBIzch3k2MvYUs8RTROrIkVJ3Al0TkaOGjnb+B6A==", + "requires": { + "hoek": "6.x.x" + } + } } }, "css-select": { @@ -410,7 +404,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, "requires": { "ms": "2.0.0" } @@ -578,26 +571,11 @@ } }, "follow-redirects": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.7.0.tgz", - "integrity": "sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ==", + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", "requires": { - "debug": "^3.2.6" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "requires": { - "ms": "^2.1.1" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" - } + "debug": "=3.1.0" } }, "forever-agent": { @@ -606,12 +584,12 @@ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" }, "form-data": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "requires": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.5", + "combined-stream": "^1.0.6", "mime-types": "^2.1.12" } }, @@ -664,17 +642,17 @@ "dev": true }, "har-schema": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", - "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" }, "har-validator": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", - "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", "requires": { - "ajv": "^4.9.1", - "har-schema": "^1.0.5" + "ajv": "^6.5.5", + "har-schema": "^2.0.0" } }, "has-flag": { @@ -682,17 +660,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, - "hawk": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", - "requires": { - "boom": "2.x.x", - "cryptiles": "2.x.x", - "hoek": "2.x.x", - "sntp": "1.x.x" - } - }, "he": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", @@ -700,9 +667,9 @@ "dev": true }, "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=" + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-6.1.3.tgz", + "integrity": "sha512-YXXAAhmF9zpQbC7LEcREFtXfGq5K1fmd+4PHkBq8NUqmzW3G+Dq10bI/i0KucLRwss3YYFQ0fSfoxBZYiGUqtQ==" }, "html-encoding-sniffer": { "version": "1.0.2", @@ -756,11 +723,11 @@ } }, "http-signature": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "requires": { - "assert-plus": "^0.2.0", + "assert-plus": "^1.0.0", "jsprim": "^1.2.2", "sshpk": "^1.7.0" } @@ -798,9 +765,9 @@ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" }, "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", + "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==" }, "is-typedarray": { "version": "1.0.0", @@ -824,9 +791,9 @@ "dev": true }, "js-yaml": { - "version": "3.13.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.0.tgz", - "integrity": "sha512-pZZoSxcCYco+DIKBTimr67J6Hy+EYGZDY/HCWC+iAEA9h1ByhMXAIVUXMcMFpOCxQ/xjXmPI2MkDL5HRm5eFrQ==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -991,14 +958,6 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "requires": { - "jsonify": "~0.0.0" - } - }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", @@ -1012,11 +971,6 @@ "vscode-nls": "^2.0.2" } }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" - }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -1058,9 +1012,9 @@ } }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" }, "lodash.sortby": { "version": "4.7.0", @@ -1192,8 +1146,7 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, "mute-stream": { "version": "0.0.8", @@ -1214,9 +1167,9 @@ "integrity": "sha512-RowAaJGEgYXEZfQ7tvvdtAQUKPyTR6T6wNu0fwlNsGQYr/h3yQc6oI8WnVZh3Y/Sylwc+dtAlvPqfFZjhTyk3A==" }, "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" }, "once": { "version": "1.4.0", @@ -1288,9 +1241,9 @@ "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" }, "performance-now": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", - "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, "pn": { "version": "1.1.0", @@ -1318,9 +1271,9 @@ "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" }, "qs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=" + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "querystringify": { "version": "2.1.1", @@ -1348,32 +1301,41 @@ } }, "request": { - "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", "requires": { - "aws-sign2": "~0.6.0", - "aws4": "^1.2.1", + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", "caseless": "~0.12.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", "forever-agent": "~0.6.1", - "form-data": "~2.1.1", - "har-validator": "~4.2.1", - "hawk": "~3.1.3", - "http-signature": "~1.1.0", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", "is-typedarray": "~1.0.0", "isstream": "~0.1.2", "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.7", - "oauth-sign": "~0.8.1", - "performance-now": "^0.2.0", - "qs": "~6.4.0", - "safe-buffer": "^5.0.1", - "stringstream": "~0.0.4", - "tough-cookie": "~2.3.0", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", "tunnel-agent": "^0.6.0", - "uuid": "^3.0.0" + "uuid": "^3.3.2" + }, + "dependencies": { + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + } + } } }, "request-promise-core": { @@ -1437,14 +1399,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==" }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", - "requires": { - "hoek": "2.x.x" - } - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -1498,11 +1452,6 @@ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" }, - "stringstream": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz", - "integrity": "sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA==" - }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", diff --git a/package.json b/package.json index e17a946..e2e9499 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/teamwork/vscode-projects/issues", "email": "integrations@teamwork.com" }, - "icon": "media/projects.png", + "icon": "resources/projects.png", "repository": { "type": "Github", "url": "https://github.com/Teamwork/vscode-projects" @@ -25,7 +25,7 @@ "url": "https://twitter.com/Teamwork" } ], - "version": "0.5.8", + "version": "1.0.0", "engines": { "vscode": "^1.33.0" }, @@ -44,13 +44,15 @@ "type": "object", "title": "Teamwork Projects Configuration", "properties": { - "twp.APIKey": { - "type": "string", - "description": "Teamwork Projects API Key" + "twp.OnlySelfAssigned": { + "default": false, + "type": "boolean", + "description": "Only show tasks assigned to you." }, - "twp.APIRoot": { - "type": "string", - "description": "Teamwork Projects Installation root eg: https://xxx.teamwork.com" + "twp.showUnAssigned": { + "default": true, + "type": "boolean", + "description": "Show tasks not assigned to anyone" }, "twp.ShowTeamworkPanel": { "default": false, @@ -65,7 +67,7 @@ { "id": "twp_Outline", "title": "Teamwork Projects", - "icon": "media/projects-white.svg" + "icon": "resources/projects-white.svg" } ] }, @@ -82,8 +84,8 @@ "command": "twp.completeTask", "title": "Complete Task", "icon": { - "light": "media/task.svg", - "dark": "media/task.svg" + "light": "resources/task.svg", + "dark": "resources/task.svg" } }, { @@ -102,13 +104,29 @@ "dark": "resources/dark/refresh.svg" } }, + { + "command": "twp.SetAccount", + "title": "Account", + "icon": { + "light": "resources/light/user.svg", + "dark": "resources/dark/user.svg" + } + }, { "command": "twp.SetProject", - "title": "Teamwork: Select Project for Repository" + "title": "Select Project for Repository", + "icon": { + "light": "resources/projects-white.svg", + "dark": "resources/projects-white.svg" + } + }, + { + "command": "twp.SetActiveProject", + "title": "Select the Active Project for Repository" }, { "command": "twp.RefreshData", - "title": "Teamwork: Refresh all Project Data" + "title": "Refresh all Project Data" }, { "command": "twp.editTaskFilter", @@ -125,9 +143,23 @@ "light": "resources/icons/clear_filter_light.svg", "dark": "resources/icons/clear_filter_dark.svg" } + }, + { + "command": "twp.linkTask", + "title": "Create Task", + "icon": { + "light": "resources/icons/clear_filter_light.svg", + "dark": "resources/icons/clear_filter_dark.svg" + } } ], "menus": { + "editor/context": [ + { + "command": "twp.linkTask", + "group": "twpGroup" + } + ], "view/item/context": [ { "command": "twp.completeTask", @@ -140,6 +172,16 @@ "command": "taskOutline.refresh", "when": "view == taskOutline", "group": "navigation" + }, + { + "command": "twp.SetProject", + "when": "view == taskOutline", + "group": "navigation" + }, + { + "command": "twp.SetAccount", + "when": "view == taskOutline", + "group": "navigation" } ] } @@ -160,14 +202,15 @@ "@types/rimraf": "^2.0.2" }, "dependencies": { - "adaptivecards": "^1.1.3", - "axios": "^0.18.0", + "axios": "^0.18.1", + "cryptiles": ">=4.1.2", "dateformat": "^3.0.3", "ftp": "^0.3.10", + "hoek": ">=4.2.1", "jsonc-parser": "^0.4.2", "mkdirp": "^0.5.1", "moment": "^2.24.0", - "request": "^2.81.0", + "request": "^2.88.0", "rimraf": "^2.6.2", "turndown": "^5.0.3", "vsce": "^1.59.0" diff --git a/media/dark/clear_filter_dark.svg b/resources/dark/clear_filter_dark.svg similarity index 100% rename from media/dark/clear_filter_dark.svg rename to resources/dark/clear_filter_dark.svg diff --git a/media/dark/filter_dark.svg b/resources/dark/filter_dark.svg similarity index 100% rename from media/dark/filter_dark.svg rename to resources/dark/filter_dark.svg diff --git a/media/dark/play.svg b/resources/dark/play.svg similarity index 100% rename from media/dark/play.svg rename to resources/dark/play.svg diff --git a/media/dark/stop.svg b/resources/dark/stop.svg similarity index 100% rename from media/dark/stop.svg rename to resources/dark/stop.svg diff --git a/media/dark/task_priority_high.svg b/resources/dark/task_priority_high.svg similarity index 100% rename from media/dark/task_priority_high.svg rename to resources/dark/task_priority_high.svg diff --git a/media/dark/task_priority_low.svg b/resources/dark/task_priority_low.svg similarity index 100% rename from media/dark/task_priority_low.svg rename to resources/dark/task_priority_low.svg diff --git a/media/dark/task_priority_medium.svg b/resources/dark/task_priority_medium.svg similarity index 100% rename from media/dark/task_priority_medium.svg rename to resources/dark/task_priority_medium.svg diff --git a/media/dark/twdesk_dark.svg b/resources/dark/twdesk_dark.svg similarity index 100% rename from media/dark/twdesk_dark.svg rename to resources/dark/twdesk_dark.svg diff --git a/media/dark/user.svg b/resources/dark/user.svg similarity index 100% rename from media/dark/user.svg rename to resources/dark/user.svg diff --git a/media/edit.svg b/resources/edit.svg similarity index 100% rename from media/edit.svg rename to resources/edit.svg diff --git a/media/edit_white.svg b/resources/edit_white.svg similarity index 100% rename from media/edit_white.svg rename to resources/edit_white.svg diff --git a/media/file.svg b/resources/file.svg similarity index 100% rename from media/file.svg rename to resources/file.svg diff --git a/media/light/clear_filter_light.svg b/resources/light/clear_filter_light.svg similarity index 100% rename from media/light/clear_filter_light.svg rename to resources/light/clear_filter_light.svg diff --git a/resources/light/dark.zip b/resources/light/dark.zip new file mode 100644 index 0000000..f8ca720 Binary files /dev/null and b/resources/light/dark.zip differ diff --git a/media/light/filter_light.svg b/resources/light/filter_light.svg similarity index 100% rename from media/light/filter_light.svg rename to resources/light/filter_light.svg diff --git a/resources/light/light.zip b/resources/light/light.zip new file mode 100644 index 0000000..26711d4 Binary files /dev/null and b/resources/light/light.zip differ diff --git a/media/light/play.svg b/resources/light/play.svg similarity index 100% rename from media/light/play.svg rename to resources/light/play.svg diff --git a/media/light/stop.svg b/resources/light/stop.svg similarity index 100% rename from media/light/stop.svg rename to resources/light/stop.svg diff --git a/media/light/task_priority_high.svg b/resources/light/task_priority_high.svg similarity index 100% rename from media/light/task_priority_high.svg rename to resources/light/task_priority_high.svg diff --git a/media/light/task_priority_low.svg b/resources/light/task_priority_low.svg similarity index 100% rename from media/light/task_priority_low.svg rename to resources/light/task_priority_low.svg diff --git a/media/light/task_priority_medium.svg b/resources/light/task_priority_medium.svg similarity index 100% rename from media/light/task_priority_medium.svg rename to resources/light/task_priority_medium.svg diff --git a/media/light/twdesk_light.svg b/resources/light/twdesk_light.svg similarity index 100% rename from media/light/twdesk_light.svg rename to resources/light/twdesk_light.svg diff --git a/media/light/user.svg b/resources/light/user.svg similarity index 100% rename from media/light/user.svg rename to resources/light/user.svg diff --git a/media/projects-white.svg b/resources/projects-white.svg similarity index 100% rename from media/projects-white.svg rename to resources/projects-white.svg diff --git a/resources/projects-white_active..svg b/resources/projects-white_active..svg new file mode 100644 index 0000000..6302bd7 --- /dev/null +++ b/resources/projects-white_active..svg @@ -0,0 +1,12 @@ + + + + + + + diff --git a/media/projects.png b/resources/projects.png similarity index 100% rename from media/projects.png rename to resources/projects.png diff --git a/media/task.svg b/resources/task.svg similarity index 100% rename from media/task.svg rename to resources/task.svg diff --git a/media/task_notify.png b/resources/task_notify.png similarity index 100% rename from media/task_notify.png rename to resources/task_notify.png diff --git a/media/treeicon.svg b/resources/treeicon.svg similarity index 100% rename from media/treeicon.svg rename to resources/treeicon.svg diff --git a/src/extension.ts b/src/extension.ts index 50ace16..607686e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -14,30 +14,40 @@ export async function activate(context: vscode.ExtensionContext) { const taskProvider = new TaskProvider(context,twp); vscode.window.registerTreeDataProvider('taskOutline', taskProvider); + // Register Url Handler for App + vscode.window.registerUriHandler({ + handleUri(uri: vscode.Uri) { + if(uri.toString().indexOf("VSCODE") > 0){ + vscode.window.showInformationMessage("Teamwork: finishing login, please wait a second"); + let code = uri.query.toString().replace("code=","").replace("state=VSCODE",""); + let account = twp.FinishLogin(context,code); + }else{ + // Not yet implemented + } + } + }); + // Refresh Data on startup and setup status bar twp.statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 0); - let projectConfig : ProjectConfig = await twp.GetProjectForRepository(); - twp.statusBarItem.command = "twp.SetProject"; - twp.statusBarItem.show(); - twp.statusBarItem.text = "Teamwork: " + projectConfig.ActiveProjectName; - twp.statusBarItem.tooltip = "Click to refresh Project Data"; - - setTimeout( () => twp.RefreshData(),1*60*1000); + twp.Config = await twp.GetProjectForRepository(); + if(twp.Config !== undefined){ + twp.statusBarItem.command = "twp.SetActiveProject"; + twp.statusBarItem.show(); + twp.statusBarItem.text = twp.Config.ActiveProjectName; + twp.statusBarItem.tooltip = "Click to refresh Project Data"; + setTimeout( () => twp.RefreshData(),1*60*1000); + } vscode.commands.registerCommand('taskOutline.refresh', task => { + twp.RefreshData(); taskProvider.refresh(); - }); + } + ); vscode.commands.registerCommand('taskOutline.showElement',task => { twp.openResource(task); }); - //vscode.commands.registerCommand('twp.assignTask',(task:TaskItemNode) => { - // twp.AssignTask(task); - // taskProvider.refresh(task); - // vscode.window.showInformationMessage("Task assigned"); - //}); - vscode.commands.registerCommand('twp.completeTask',(task:TaskItemNode) => { twp.CompleteTask(task.id); task.isComplete = true; @@ -45,8 +55,12 @@ export async function activate(context: vscode.ExtensionContext) { vscode.window.showInformationMessage("Task completed"); }); + vscode.commands.registerCommand('twp.SetActiveProject', task => {twp.SelectActiveProject();}); vscode.commands.registerCommand('twp.SetProject', task => {twp.SelectProject();}); vscode.commands.registerCommand('twp.RefreshData', task => {twp.RefreshData();}); + vscode.commands.registerCommand('twp.linkTask', task => { twp.QuickAddTask();}); + vscode.commands.registerCommand('twp.SetAccount', task => {twp.SelectAccount();}); + // Refresh data once every 30 minutes diff --git a/src/model/nodes/EmptyNode.ts b/src/model/nodes/EmptyNode.ts new file mode 100644 index 0000000..0c1fbb4 --- /dev/null +++ b/src/model/nodes/EmptyNode.ts @@ -0,0 +1,27 @@ +import * as vscode from "vscode"; +import { INode } from "./INode"; + +export class EmptyNode implements INode { + + + constructor( + private readonly label: string, + readonly id: number,) { + } + + public getTreeItem(): vscode.TreeItem { + return { + label: this.label, + collapsibleState: vscode.TreeItemCollapsibleState.None, + contextValue: "twp-Empty", + }; + } + + public async getChildren(context: vscode.ExtensionContext): Promise { + return []; + } + + + + +} diff --git a/src/model/nodes/ProjectNode.ts b/src/model/nodes/ProjectNode.ts index aaefee5..09bd5c5 100644 --- a/src/model/nodes/ProjectNode.ts +++ b/src/model/nodes/ProjectNode.ts @@ -3,24 +3,31 @@ import { INode } from "./INode"; import * as path from 'path'; import { TeamworkProjects } from "../../teamworkProjects"; -import { Person } from "../responses/peopleResponse"; import { Project } from "../responses/projectresponse"; import { TaskProvider } from "../../taskProvider"; export class ProjectNode implements INode { + public IsActiveProject : boolean; + constructor(private readonly label: string, readonly id: number,public Project: Project, public readonly provider: TaskProvider, private readonly twp: TeamworkProjects) { } public getTreeItem(): vscode.TreeItem { return { - iconPath: vscode.Uri.file(path.join(this.twp._context.extensionPath, 'media', `projects-white.svg` )), + iconPath: this.GetIcon(), label: this.label, collapsibleState: vscode.TreeItemCollapsibleState.Collapsed }; } + public GetIcon() { + if(this.Project === this.twp.SelectActiveProject) { + return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'resources', `projects-white.svg` )); + } + } + public async getChildren(context: vscode.ExtensionContext): Promise { try { diff --git a/src/model/nodes/TaskItemNode.ts b/src/model/nodes/TaskItemNode.ts index 3b241a4..10536b1 100644 --- a/src/model/nodes/TaskItemNode.ts +++ b/src/model/nodes/TaskItemNode.ts @@ -4,6 +4,9 @@ import { TeamworkProjects } from "../../teamworkProjects"; import * as path from 'path'; import { TaskListNode } from "./TaskListNode"; import { TaskProvider } from "../../taskProvider"; +import { TodoItem } from "../responses/TaskItemResponse"; +import { isNullOrUndefined } from "util"; +import { TeamworkAccount } from "../teamworkAccount"; export class TaskItemNode implements INode { constructor( @@ -14,11 +17,13 @@ export class TaskItemNode implements INode { public priority: string, public hasDesk: boolean, public isComplete: boolean, + public hasChildren: boolean, public assignedTo: string, - public parentNode: TaskListNode, + public parentNode: TaskListNode | TaskItemNode, public contextValue: string, private readonly provider: TaskProvider, - private readonly twp: TeamworkProjects) { + private readonly twp: TeamworkProjects, + public subTasks?: TodoItem[],) { } public getTreeItem(): vscode.TreeItem { @@ -26,7 +31,7 @@ export class TaskItemNode implements INode { label: this.label, description: this.description, iconPath: this.getIcon(this.priority,this.hasDesk, this.isComplete), - collapsibleState: vscode.TreeItemCollapsibleState.None, + collapsibleState: this.hasChildren ? vscode.TreeItemCollapsibleState.Collapsed : vscode.TreeItemCollapsibleState.None, contextValue: this.contextValue, command: { command: "taskOutline.showElement", @@ -36,20 +41,59 @@ export class TaskItemNode implements INode { }; } - public getChildren(): INode[] { - return []; + public async getChildren(): Promise { + try { + if(isNullOrUndefined(this.subTasks)){ + return []; + }else{ + let nodeList: INode[] = []; + + var config = vscode.workspace.getConfiguration('twp'); + var onlySelf = config.get("OnlySelfAssigned"); + let userData : TeamworkAccount = this.twp._context.globalState.get("twp.data.activeAccount"); + let userId = userData.userId; + var showUnassigned = config.get("showUnAssigned"); + for(let i = 0; i < this.subTasks.length; i++){ + let element = this.subTasks[i]; + if(!isNullOrUndefined(element["responsible-party-ids"]) && element["responsible-party-ids"].indexOf(userId.toString()) < 0 && onlySelf){ + continue; + } + if(isNullOrUndefined(element["responsible-party-ids"]) && !showUnassigned){ + continue; + } + nodeList.push(new TaskItemNode(element.content, + isNullOrUndefined(element["responsible-party-summary"]) ? "Anyone" : element["responsible-party-summary"],"", + element.id, + element.priority, + element.hasTickets, + element.completed, + !isNullOrUndefined(element.subTasks) && element.subTasks.length > 0, + element["responsible-party-ids"], + this, + "taskItem", + this.provider, + this.twp)); + } + return nodeList; + } + } catch (error) { + vscode.window.showErrorMessage(error); + return []; + } + + } public getIcon(priority: string, hasDesk: boolean = false, isComplete: boolean = false) { if(isComplete){ - return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'media', 'task.svg')); + return vscode.Uri.file(path.join(this.twp._context.extensionPath, 'resources', 'task.svg')); } if(hasDesk){ return { - light: path.join(this.twp._context.extensionPath, 'media/light', 'twdesk_light.svg'), - dark: path.join(this.twp._context.extensionPath, 'media/dark', 'twdesk_dark.svg'), + light: path.join(this.twp._context.extensionPath, 'resources/light', 'twdesk_light.svg'), + dark: path.join(this.twp._context.extensionPath, 'resources/dark', 'twdesk_dark.svg'), }; } @@ -58,8 +102,8 @@ export class TaskItemNode implements INode { } return { - light: path.join(this.twp._context.extensionPath, 'media/light', `task_priority_${priority}.svg`), - dark: path.join(this.twp._context.extensionPath, 'media/dark', `task_priority_${priority}.svg`), + light: path.join(this.twp._context.extensionPath, 'resources/light', `task_priority_${priority}.svg`), + dark: path.join(this.twp._context.extensionPath, 'resources/dark', `task_priority_${priority}.svg`), }; diff --git a/src/model/projectConfig.ts b/src/model/projectConfig.ts index 1e49335..a46b742 100644 --- a/src/model/projectConfig.ts +++ b/src/model/projectConfig.ts @@ -1,19 +1,39 @@ import { Project } from "./responses/projectListResponse"; +import { isNullOrUndefined } from "util"; export class ProjectConfig{ public ActiveProjectName : string; public ActiveProjectId: string; + public ActiveTaskListId: string; + public ActiveTaskListName: string; public Projects: ProjectConfigEntry[]; constructor(projects) { this.Projects = projects; - if(projects){ - this.ActiveProjectName = projects[0].Name; - this.ActiveProjectId = projects[0].Id; - }else{ + + if(isNullOrUndefined(this.Projects)){ this.ActiveProjectName = "No Project Selected"; - this.ActiveProjectId = "0"; + this.ActiveProjectId = "0"; + return; + } + + // Active Project no longer selected -> clear + if(!this.Projects.find(p=>p.Id === parseInt(this.ActiveProjectId))){ + this.ActiveProjectName = ""; + this.ActiveProjectId = ""; } + + if(this.ActiveProjectName && this.ActiveProjectName.length < 1){ + if(projects ){ + this.ActiveProjectName = projects[0].Name; + this.ActiveProjectId = projects[0].Id; + }else{ + this.ActiveProjectName = "No Project Selected"; + this.ActiveProjectId = "0"; + } + } + + } } diff --git a/src/model/responses/TaskItemResponse.ts b/src/model/responses/TaskItemResponse.ts new file mode 100644 index 0000000..5f20b1b --- /dev/null +++ b/src/model/responses/TaskItemResponse.ts @@ -0,0 +1,88 @@ +// To parse this data: +// +// import { Convert, TaskItemResponse } from "./file"; +// +// const taskItemResponse = Convert.toTaskItemResponse(json); + +export interface TaskItemResponse { + STATUS?: string; + "todo-items"?: TodoItem[]; +} +export interface TodoItem { + id?: number; + boardColumn?: BoardColumn; + canComplete?: boolean; + "comments-count"?: number; + description?: string; + "has-reminders"?: boolean; + "has-unread-comments"?: boolean; + private?: number; + content?: string; + order?: number; + "project-id"?: number; + "project-name"?: string; + "todo-list-id"?: number; + "todo-list-name"?: string; + "tasklist-private"?: boolean; + "tasklist-isTemplate"?: boolean; + status?: string; + "company-name"?: string; + "company-id"?: number; + "creator-id"?: number; + "creator-firstname"?: string; + "creator-lastname"?: string; + "updater-id"?: number; + "updater-firstname"?: string; + "updater-lastname"?: string; + completed?: boolean; + "start-date"?: string; + "due-date-base"?: string; + "due-date"?: string; + "created-on"?: Date; + "last-changed-on"?: Date; + position?: number; + "estimated-minutes"?: number; + priority?: string; + progress?: number; + "harvest-enabled"?: boolean; + parentTaskId?: string; + lockdownId?: string; + "tasklist-lockdownId"?: string; + "has-dependencies"?: number; + "has-predecessors"?: number; + hasTickets?: boolean; + timeIsLogged?: string; + "attachments-count"?: number; + "responsible-party-ids"?: string; + "responsible-party-id"?: string; + "responsible-party-names"?: string; + "responsible-party-type"?: string; + "responsible-party-firstname"?: string; + "responsible-party-lastname"?: string; + "responsible-party-summary"?: string; + predecessors?: any[]; + "parent-task"?: ParentTask; + canEdit?: boolean; + viewEstimatedTime?: boolean; + "creator-avatar-url"?: string; + canLogTime?: boolean; + commentFollowerSummary?: string; + changeFollowerSummary?: string; + commentFollowerIds?: string; + changeFollowerIds?: string; + userFollowingComments?: boolean; + userFollowingChanges?: boolean; + DLM?: number; + subTasks?: TodoItem[]; +} + +export interface BoardColumn { + id?: number; + name?: string; + color?: string; +} + +export interface ParentTask { + content?: string; + id?: string; +} diff --git a/src/model/responses/TaskListResponse.ts b/src/model/responses/TaskListResponse.ts index dbc2671..c09bb32 100644 --- a/src/model/responses/TaskListResponse.ts +++ b/src/model/responses/TaskListResponse.ts @@ -1,3 +1,5 @@ +import { TodoItem } from "./TaskItemResponse"; + // To parse this data: // // import { Convert, TaskListResponse } from "./file"; @@ -9,9 +11,8 @@ export interface TaskListResponse { STATUS?: string; } -export interface TodoList { +export class TodoList { "project-id"?: string; - "todo-items"?: TodoItem[]; name?: string; description?: string; "milestone-id"?: string; @@ -26,63 +27,7 @@ export interface TodoList { id?: string; position?: string; "completed-count"?: string; -} - -export interface TodoItem { - "project-id"?: string; - "tasklist-isTemplate"?: boolean; - order?: string; - "comments-count"?: string; - "created-on"?: Date; - canEdit?: boolean; - "has-predecessors"?: string; - id?: string; - completed?: boolean; - position?: string; - "estimated-minutes"?: string; - description?: string; - progress?: string; - "harvest-enabled"?: boolean; - parentTaskId?: string; - "responsible-party-lastname"?: string; - "company-id"?: string; - "creator-avatar-url"?: string; - "creator-id"?: string; - "project-name"?: string; - "start-date"?: string; - "tasklist-private"?: boolean; - lockdownId?: string; - canComplete?: boolean; - "responsible-party-id"?: string; - "creator-lastname"?: string; - "has-reminders"?: boolean; - "has-unread-comments"?: boolean; - "todo-list-name"?: string; - "due-date-base"?: string; - private?: string; - userFollowingComments?: boolean; - "responsible-party-summary"?: string; - status?: string; - "todo-list-id"?: string; - predecessors?: any[]; - tags?: any[]; - content?: string; - "responsible-party-type"?: string; - "company-name"?: string; - "creator-firstname"?: string; - "last-changed-on"?: Date; - "due-date"?: string; - "has-dependencies"?: string; - "attachments-count"?: string; - userFollowingChanges?: boolean; - priority?: string; - "responsible-party-firstname"?: string; - viewEstimatedTime?: boolean; - "responsible-party-ids"?: string; - "responsible-party-names"?: string; - "tasklist-lockdownId"?: string; - canLogTime?: boolean; - timeIsLogged?: string; + TodoItems: TodoItem[]; } // Converts JSON strings to/from your types diff --git a/src/model/responses/projectListResponse.ts b/src/model/responses/projectListResponse.ts index b671ffa..74af986 100644 --- a/src/model/responses/projectListResponse.ts +++ b/src/model/responses/projectListResponse.ts @@ -1,5 +1,5 @@ import { Person } from "./peopleResponse"; - +import { TodoList } from "./TaskListResponse"; export interface ProjectListResponse { STATUS?: string; projects?: Project[]; @@ -12,6 +12,7 @@ export interface Project { status?: string; companyId?: string; people?: Person[]; + TodoLists : TodoList[]; } // Converts JSON strings to/from your types diff --git a/src/model/taskQuickAdd.ts b/src/model/taskQuickAdd.ts new file mode 100644 index 0000000..8278114 --- /dev/null +++ b/src/model/taskQuickAdd.ts @@ -0,0 +1,16 @@ +export class TaskQuickAdd { + content?: string; + tasklistId?: number; + "creator-id"?: number; + notify?: boolean; + private?: boolean; + "todo-item"?: TodoItemQuick; +} + +export class TodoItemQuick { + "responsible-party-id"?: string; + "start-date"?: string; + "due-date"?: string; + priority?: string; + description?: string; +} diff --git a/src/model/teamworkAccount.ts b/src/model/teamworkAccount.ts new file mode 100644 index 0000000..d14b9cc --- /dev/null +++ b/src/model/teamworkAccount.ts @@ -0,0 +1,23 @@ + + +export class TeamworkAccount{ + + public installationId: Number; + public userId: Number; + public userName: string; + public userEmail: string; + public token: string; + public rootUrl: string; + + + constructor(installationId: number, userId: number, userName: string, userEmail: string, token: string, root: string) { + this.userId = userId; + this.installationId = installationId; + this.userName = userName; + this.userEmail = userEmail; + this.token = token; + this.rootUrl = root; + } + + +} \ No newline at end of file diff --git a/src/protocolHandler.ts b/src/protocolHandler.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/taskProvider.ts b/src/taskProvider.ts index 39817c8..30ac6ee 100644 --- a/src/taskProvider.ts +++ b/src/taskProvider.ts @@ -3,6 +3,8 @@ import {INode} from './model/nodes/INode'; import { TeamworkProjects } from './teamworkProjects'; import { ProjectNode } from './model/nodes/ProjectNode'; import { ProjectErrorNode } from './model/nodes/ProjectErrorNode'; +import { isNullOrUndefined } from 'util'; +import { TeamworkAccount } from './model/teamworkAccount'; export class TaskProvider implements vscode.TreeDataProvider { @@ -41,8 +43,19 @@ export class TaskProvider implements vscode.TreeDataProvider { return items; } if(!config){ - items.push(new ProjectErrorNode("-> Select Project for Repository","","",0)); - return items; + + let userData : TeamworkAccount = this.twp._context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; + + if(isNullOrUndefined(token) ||isNullOrUndefined(root)){ + items.push(new ProjectErrorNode("-> Please login first.","","",0)); + return items; + }else{ + items.push(new ProjectErrorNode("-> Select Project for Repository","","",0)); + return items; + } + } } return element.getChildren(this.context); diff --git a/src/teamworkProjects.ts b/src/teamworkProjects.ts index 87b4078..1445b81 100644 --- a/src/teamworkProjects.ts +++ b/src/teamworkProjects.ts @@ -13,18 +13,30 @@ import { Utilities } from './utilities'; import { ProjectNode } from './model/nodes/ProjectNode'; import { Person, PeopleResponse } from './model/responses/peopleResponse'; import { TaskProvider } from './taskProvider'; +import { TeamworkProjectsApi } from './teamworkProjectsApi'; +import { EmptyNode } from './model/nodes/EmptyNode'; +import { WebViews } from './webviews'; +import { TeamworkAccount } from './model/teamworkAccount'; +import { isNullOrUndefined } from 'util'; + export class TeamworkProjects{ private readonly _extensionPath: string; - panel: vscode.WebviewPanel | undefined; + private panel: vscode.WebviewPanel | undefined; + private loginPanel: vscode.WebviewPanel | undefined; public statusBarItem: vscode.StatusBarItem; public readonly _context: vscode.ExtensionContext; - public Projects: Project[]; + public Config : ProjectConfig; + public API: TeamworkProjectsApi; + public IsLoading: Boolean = false; + public WebViews: WebViews; constructor(private context: vscode.ExtensionContext,extensionPath: string) { this._context = context; this._extensionPath = extensionPath; + this.API = new TeamworkProjectsApi(this._context); + this.WebViews = new WebViews(this._context, this._extensionPath); } private _disposables: vscode.Disposable[] = []; public dispose() { @@ -46,7 +58,7 @@ export class TeamworkProjects{ if(this.panel){ this.panel.reveal(column); this.panel.title = taskItem.label; - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.panel.webview.html = await this.GetWebViewContent(taskItem.id); }else{ this.panel = vscode.window.createWebviewPanel("twp.TaskPreview","Task: " + taskItem.label,vscode.ViewColumn.Beside,{ @@ -56,10 +68,10 @@ export class TeamworkProjects{ ] }); this.panel.iconPath = { - light: vscode.Uri.file(path.join(this._extensionPath, 'media', 'projects-white.svg')), - dark: vscode.Uri.file(path.join(this._extensionPath, 'media', 'projects-white.svg')) - } - this.panel.webview.html = this.GetWebViewContentLoader(); + light: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'projects-white.svg')), + dark: vscode.Uri.file(path.join(this._extensionPath, 'resources', 'projects-white.svg')) + }; + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.panel.webview.html = await this.GetWebViewContent(taskItem.id); this.panel.webview.onDidReceiveMessage( @@ -67,11 +79,11 @@ export class TeamworkProjects{ var data = JSON.parse(message.text); switch (data.type) { case 'comment': - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.CreateComment(data.taskId, data.comment); return; case 'complete': - this.panel.webview.html = this.GetWebViewContentLoader(); + this.panel.webview.html = this.WebViews.GetWebViewContentLoader(); this.CompleteTask(data.taskId); return; } @@ -86,77 +98,22 @@ export class TeamworkProjects{ } public async CreateComment(taskItem: number, content: string){ - - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - - if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - const url = root + '/tasks/' + taskItem + '/comments.json'; - - var comment = { - "comment": { - "body": "" + content + "", - "notify": "false", - "isPrivate": false, - "content-type":"text", - "ParseMentions": true, - }}; - - let json = await axios({ - method: 'post', - url: url, - data: comment, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(comment); - console.log(error); - }); - + await this.API.AddComment(taskItem, content); this.panel.webview.html = await this.GetWebViewContent(taskItem, true); - } public async CompleteTask(taskItem: number){ - - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - const url = root + '/tasks/' + taskItem + '/complete.json'; + await this.API.CompleteTask(taskItem); + if(isNullOrUndefined(this.panel) || isNullOrUndefined(this.panel.webview)){ + }else{ + this.panel.webview.html = await this.GetWebViewContent(taskItem, true); + } - let json = await axios({ - method: 'put', - url: url, - data: "", - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - - this.panel.webview.html = await this.GetWebViewContent(taskItem, true); } - public async GetPeopleQuickTips(people: Person[], assignedTo: String[]) : Promise{ let personTips: PersonQuickTip[] = []; @@ -173,302 +130,142 @@ export class TeamworkProjects{ } public async AssignTask(node: TaskItemNode){ - - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - - if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - - - let assignedTo : string[] = node.assignedTo.split(","); - let people: Person[] = await this.GetPeopleInProject(true, node.parentNode.parentNode.id.toString()); - - const selectedPeople = await vscode.window.showQuickPick( - this.GetPeopleQuickTips(people,assignedTo), - { placeHolder: "Select Person", ignoreFocusOut: true, canPickMany: true }, - ); - if (selectedPeople) { - - vscode.window.showInformationMessage("et voila"); - } } public async GetWebViewContent(taskItem: number, force: boolean = false){ var config = vscode.workspace.getConfiguration('twp'); var showTeamworkPanel = config.get("ShowTeamworkPanel"); if(showTeamworkPanel){ - return await this.GetWebViewContentTeamwork(taskItem,force); + return await this.WebViews.GetWebViewContentTeamwork(taskItem,force); }else{ - return await this.GetWebViewContentAdaptiveCard(taskItem,force); + return await this.WebViews.GetWebViewContentAdaptiveCard(taskItem,force); } } - public GetWebViewContentLoader(){ - - // jquery - const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); - const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); - - const nonce = this.getNonce(); - - const ACstyle = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'loader.css')); - const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); - - return ` - - - - - Cat Coding - - - - - -
- -

- please wait... -

-
-
- - `; - - - } - - public async GetWebViewContentAdaptiveCard(taskItem: number, force: boolean = false) { - var todo = await this.getTodoItem(this._context, taskItem,force); - if(todo){ - const templateFile = require(path.join(this._extensionPath, 'media/cards', 'taskCard.json')); - var  _templatePayload: object = templateFile; - - -  let template = new Template( _templatePayload); -  let context = new EvaluationContext(); -  context.$root = todo; -  let expandedTemplatePayload = template.expand(context); - - // Local path to main script run in the webview - const scriptPathOnDisk = vscode.Uri.file( - path.join(this._extensionPath, 'media/js', 'mainAdaptive.js') - ); - // And the uri we use to load this script in the webview - const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' }); - - // jquery - const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); - const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); - - // AdaptiveCards - const ACPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'adaptivecards.min.js')); - const ACUri = ACPath.with({ scheme: 'vscode-resource' }); - const MarkdownPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'markdown-it.min.js')); - const MarkdownUri = MarkdownPath.with({ scheme: 'vscode-resource' }); - - - const mainstyle = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'msteamsstyle.css')); - const mainstyleUri = mainstyle.with({ scheme: 'vscode-resource' }); - - const ACstyle = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'editormain.css')); - const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); - - - const nonce = this.getNonce(); - - return ` - - - - - Cat Coding - - - - - - -
-
- - - - - - - `; + public async QuickAddTask(){ + + if(this.IsLoading){ + return; } - } - public async GetWebViewContentTeamwork(taskItem: number, force: boolean = false) { - var config = vscode.workspace.getConfiguration('twp'); - var root = config.get("APIRoot"); + var editor = vscode.window.activeTextEditor; + if (!editor) { + vscode.window.showInformationMessage("You need to have code selected to use this."); + } - var auth = "Basic " + Buffer.from(config.get("APIKey") + ":xxxxxx").toString("base64"); - var todo = await this.getTodoItem(this._context, taskItem); + var workspaceRoot = vscode.workspace.rootPath; + var fileName = editor.document.fileName.replace(workspaceRoot,""); + var selection = editor.selection; + var line = selection.start.line; + var cursor = selection.start.character; + var text = editor.document.getText(selection); - if(todo){ - const nonce = this.getNonce(); - const scriptPathOnDisk = vscode.Uri.file( - path.join(this._extensionPath, 'media/js', 'mainTeamwork.js') + var list = await this.GetTaskListQuickTip(true); + if(list !== null && list.length > 0){ + const taskList = await vscode.window.showQuickPick( + list, + { placeHolder: "Select Tasklist", ignoreFocusOut: true, canPickMany: false }, ); - // And the uri we use to load this script in the webview - const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' }); - - // jquery - const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); - const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); - + + if(taskList !== null){ + const result = await vscode.window.showInputBox({ + placeHolder: 'Task Title @person [today|tomorrow]', + }); - return ` - - - - - Cat Coding - - - - - - - - - `; - } - - - } - - private getNonce() { - let text = ""; - const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - for (let i = 0; i < 32; i++) { - text += possible.charAt(Math.floor(Math.random() * possible.length)); + const gitExtension = vscode.extensions.getExtension('vscode.git').exports; + var gitLink = ""; + var gitBranch = ""; + if(gitExtension){ + const api = gitExtension.getAPI(1); + if(api && api.repositories.length > 0){ + var repo = api.repositories[0]; + var remote = repo.state.remotes[0]; + gitBranch = repo.state.HEAD.name; + gitLink = remote.fetchUrl.replace(".git","") + "/blob/" + gitBranch + fileName + "#L" + line; + } + } + var taskDescription = "Task added from VSCode: \n"; + taskDescription += "File: " + fileName + "\n"; + taskDescription += "Line: " + line + "\n"; + if(gitBranch.length > 0) {taskDescription += "Branch:" + gitBranch + "\n";} + if(gitLink.length > 0) {taskDescription += "Link:" + gitLink + "\n";} + taskDescription += "Selection: " + "\n"; + taskDescription += text; + + var newTask = await this.API.postTodoItem(this._context,parseInt(this.Config.ActiveProjectId),parseInt(taskList.id),result,taskDescription); + + let userData : TeamworkAccount = this._context.globalState.get("twp.data.activeAccount"); + let root = userData.rootUrl; + + if(!isNullOrUndefined(newTask)){ + var id = newTask["data"]["taskIds"]; + var taskDetails = await this.API.getTodoItem(this._context,parseInt(id),true); + + var langConfig = Utilities.GetActiveLanguageConfig(); + var commentWrapper = langConfig.comments.lineComment; + var content = taskDetails.content; + var responsible = taskDetails["responsible-party-names"]; + + + editor.edit(edit => { + edit.setEndOfLine(vscode.EndOfLine.CRLF); + edit.insert(new vscode.Position(line, cursor), commentWrapper + "Task: " + content + "\r\n"); + edit.insert(new vscode.Position(line, cursor), commentWrapper + "Link: " + root + "/tasks/" + id + "\r\n"); + edit.insert(new vscode.Position(line, cursor), commentWrapper + "Assigned To: " + responsible + "\r\n"+ "\r\n"); + }); + + vscode.window.showInformationMessage("Task was added"); + } + } } - return text; } public async RefreshData(){ - - this.statusBarItem.text = "Teamwork: Updating Projects"; - let project : ProjectConfig = await this.GetProjectForRepository(); - - project.Projects.forEach(async element => { - this.statusBarItem.text = "Teamwork: Refreshing TaskLists"; - var taskLists = await this.getTaskLists(this._context,null,element.Id,true) - - this.statusBarItem.text = "Teamwork: Refreshing TodoItems"; - taskLists.forEach(async subelement =>{ - var taskItems = await this.getTaskItems(this._context,null,null,subelement.id,true); - }); - this.statusBarItem.text = "Teamwork: " + project.ActiveProjectName; - }); - - - } - - public toProjectListResponse(json: string): ProjectListResponse { - return JSON.parse(json); - } - - public async GetProjects(force: boolean = false, includePeople: boolean= false, getAll: boolean = false, getList: string = "") : Promise{ - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); + let userData : TeamworkAccount = this.context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); return; - } - - let result; - // Load from cache if duration less than 30 minutes - let cachedProjects : Project[] = this._context.globalState.get("twp.data.projects",null); - let lastUpdated : Date = this._context.globalState.get("twp.data.projects.lastUpdated", new Date() ); - if(cachedProjects && cachedProjects.length > 0 && lastUpdated && !force){ - if(Utilities.DateCompare(lastUpdated,30)){ - result = cachedProjects; - } } - if(!result){ - const url = root + '/tasks/projects.json?type=canAddItem&pageSize=200'; - result = await axios({ - method:'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); + + if(this.IsLoading){ + return; } - if(includePeople){ - result.data.projects.forEach(async element =>{ - element.people = await this.GetPeopleInProject(force,element.id); + this.IsLoading = true; + + this.statusBarItem.text = "Teamwork: Updating Projects"; + if(this.Config === null) { + this.Config = await this.GetProjectForRepository(); + } + + if(this.Config.Projects !== null){ + this.Config.Projects.forEach(async element =>{ + + this.statusBarItem.text = "Teamwork: Refreshing TaskLists"; + element.Project.TodoLists = await this.API.getTaskLists(this._context,element.Id,true); + + this.statusBarItem.text = "Teamwork: Refreshing TodoItems"; + element.Project.TodoLists.forEach(async subelement =>{ + subelement.TodoItems = await this.API.getTaskItems(this._context,parseInt(subelement.id),true); + }); + this.statusBarItem.text = "Teamwork: " + this.Config.ActiveProjectName; }); } + + this.IsLoading = false; + } - this.Projects = result.data.projects; - this._context.globalState.update("twp.data.projects",result.data.projects); - this._context.globalState.update("twp.data.projects.lastUpdated", new Date() ); - return result.projects; + public toProjectListResponse(json: string): ProjectListResponse { + return JSON.parse(json); } public async GetProjectQuickTips(force: boolean = false, selected: ProjectConfigEntry[], includePeople: boolean = false): Promise { @@ -476,7 +273,7 @@ export class TeamworkProjects{ let nodeList: ProjectQuickTip[] = []; - let projects = await this.GetProjects(force,includePeople); + this.Projects = await this.API.GetProjects(this._context,force,includePeople); this.Projects.forEach(element => { var isPicked = false; @@ -487,48 +284,69 @@ export class TeamworkProjects{ nodeList.push(item); }); - this._context.globalState.update("twp.data.projects",projects ); - this._context.globalState.update("twp.data.projects.lastUpdated",Date.now()) + this._context.globalState.update("twp.data.projects",this.Projects ); + this._context.globalState.update("twp.data.projects.lastUpdated",Date.now()); return nodeList; } + public async GetTaskListQuickTip(force: boolean = false, includePeople: boolean = false): Promise { - public async GetPeopleInProject(force: boolean = false,id: string) : Promise{ - - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; + let nodeList: ProjectQuickTip[] = []; + + if(this.Config === null) { + this.Config = await this.GetProjectForRepository(); + } + + + if (this.Config.ActiveProjectId === ""){ + this.SelectActiveProject(); } - - var url = root + '/projects/' + id + "/people.json"; - let json = await axios({ - method:'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' + + this.Config.Projects.forEach(element => { + if(element.Id.toString() === this.Config.ActiveProjectId){ + + if(element.Project === undefined || element.Project === null){ + vscode.window.showInformationMessage("Please pick a project for this repository first"); + return null; + }else{ + if(element.Project.TodoLists && element.Project.TodoLists.length > 0){ + element.Project.TodoLists.forEach(subelement => { + var item = new ProjectQuickTip(subelement.name, subelement.id,false); + nodeList.push(item); + }); + }else{ + vscode.window.showInformationMessage("Please wait for Project data to be loaded"); + this.RefreshData(); + return null; + } + } + + + } - }) - .catch(function (error) { - console.log(error); }); - return json.people; + return nodeList; } public async GetProjectForRepository(): Promise{ try{ + + let userData : TeamworkAccount = this.context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; + + if(!token || !root){ + return; + } + var path = vscode.workspace.rootPath + "/twp.json"; + let config : ProjectConfig; if (fs.existsSync(path)) { - let config = JSON.parse(fs.readFileSync(path, 'utf8')); - + config = JSON.parse(fs.readFileSync(path, 'utf8')); if(config){ return config; } @@ -543,8 +361,31 @@ export class TeamworkProjects{ } } + public async SelectAccount() : Promise{ + vscode.env.openExternal(vscode.Uri.parse('https://www.teamwork.com/launchpad/login?state=VSCODE&redirect_uri=vscode://teamwork.twp/loginData')); + return true; + } + public async FinishLogin(context: vscode.ExtensionContext, code: string) : Promise{ + var api = new TeamworkProjectsApi(this._context); + var userData = await api.getLoginData(context,code); + console.log(JSON.stringify(userData)); + context.globalState.update("twp.data.activeAccount", userData); + this.RefreshData(); + return null; + } public async SelectProject() : Promise{ + + let userData : TeamworkAccount = this._context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + let root = userData.rootUrl; + + if(isNullOrUndefined(token) || isNullOrUndefined(root)){ + this.SelectAccount(); + return; + } + + let savedConfig: ProjectConfig = await this.GetProjectForRepository(); const projectItem = await vscode.window.showQuickPick( @@ -556,229 +397,118 @@ export class TeamworkProjects{ var items : ProjectConfigEntry[] = []; projectItem.forEach(async element =>{ items.push(new ProjectConfigEntry(element.label,element.id,element)); - }) - var config = new ProjectConfig(items); + }); + this.Config = new ProjectConfig(items); var path = vscode.workspace.rootPath + "/twp.json"; - let data = JSON.stringify(config); + let data = JSON.stringify(this.Config); fs.writeFileSync(path, data); + this.RefreshData(); vscode.commands.executeCommand("taskOutline.refresh"); - return config; + return this.Config; } } - - public async getTaskLists(context: vscode.ExtensionContext, node: ProjectNode,id: number = 0, force: boolean = false) : Promise{ - var statusBarText = this.statusBarItem.text; - this.statusBarItem.text = "Loading Tasklists......"; - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - - if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } + public async SelectActiveProject() : Promise{ + let savedConfig: ProjectConfig = await this.GetProjectForRepository(); - var idToUse: number = id !== 0 ? id : node.id; + let nodeList: ProjectQuickTip[] = []; + savedConfig.Projects.forEach(element => { + var isPicked = false; + if(parseInt(savedConfig.ActiveProjectId) === element.Id){ + isPicked = true; + } + var item = new ProjectQuickTip(element.Name, element.Id.toString(),isPicked); + nodeList.push(item); + }); - // Lets check our cache first - let nodeList: INode[] = []; + const projectItem = await vscode.window.showQuickPick(nodeList, + { placeHolder: "Select Active Project", ignoreFocusOut: true, canPickMany: false }, + ); + if (projectItem) { + + savedConfig.ActiveProjectId = projectItem.id; + savedConfig.ActiveProjectName = projectItem.name; + this.statusBarItem.text = "Teamwork: " + projectItem.name; - // Load from cache if duration less than 30 minutes - let cachedNodes : INode[] = context.globalState.get("twp.data." + idToUse + ".tasklists",[]); - let lastUpdated : Date = context.globalState.get("twp.data.tasklists." + idToUse + ".lastUpdated",new Date() ); - if(cachedNodes.length > 0 && lastUpdated && !force){ - if(Utilities.DateCompare(lastUpdated,30)){ - return cachedNodes; - } - } + var path = vscode.workspace.rootPath + "/twp.json"; + let data = JSON.stringify(savedConfig); + fs.writeFileSync(path, data); - const url = root + '/projects/' + idToUse + '/todo_lists.json?getNewTaskDefaults=true&nestSubTasks=true'; + this.Config.ActiveProjectId = projectItem.id; + this.Config.ActiveProjectName = projectItem.name; + return savedConfig; + } + } - let json = await axios({ - method:'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); + + public async getTaskLists(context: vscode.ExtensionContext,parentNode: ProjectNode, id: number = 0, force: boolean = false) : Promise{ + var statusBarText = this.statusBarItem.text; + this.statusBarItem.text = "Loading Tasklists......"; - json.data["todo-lists"].forEach(element => { - nodeList.push(new TaskListNode(element.name, element.id,node,node.provider,this)); + // Load task lists + var taskLists = await this.API.getTaskLists(context,parentNode.id,force); + let nodeList: INode[] = []; + taskLists.forEach(element => { + nodeList.push(new TaskListNode(element.name, parseInt(element.id),parentNode, null, this)); }); - context.globalState.update("twp.data." + idToUse + ".tasklists",nodeList); - context.globalState.update("twp.data.tasklists." + idToUse + ".lastUpdated",Date.now()) - this.statusBarItem.text = statusBarText; + + if(taskLists.length === 0){ + nodeList.push(new EmptyNode("No TaskLists",0)); + } + + + this.statusBarItem.text = "Teamwork: " + this.Config.ActiveProjectName; return nodeList; } - public async getTaskItems(context: vscode.ExtensionContext, node: TaskListNode,provider: TaskProvider, id: number = 0, force: boolean = false) : Promise{ - - var statusBarText = this.statusBarItem.text; - this.statusBarItem.text = "Loading tasks......"; - - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - - if(!token || !root){ - vscode.window.showErrorMessage("Please Configure the extension first!"); - return; - } - var idToUse: number = id !== 0 ? id : node.id; + this.statusBarItem.text = "Loading tasks......"; + let todoItems = await this.API.getTaskItems(context, node.id, force); let nodeList: INode[] = []; - // Load from cache if duration less than 30 minutes - let cachedNodes : INode[] = context.globalState.get("twp.data." + idToUse + ".todoitems",[]); - let lastUpdated : Date = context.globalState.get("twp.data.tasklists." + idToUse + ".todoitems", new Date()) - if(cachedNodes.length > 0 && lastUpdated && !force){ - if(Utilities.DateCompare(lastUpdated,30)){ - return cachedNodes; - } - } - - const url = root + '/tasklists/' + idToUse + '/tasks.json'; - let json = await axios({ - method:'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' + var config = vscode.workspace.getConfiguration('twp'); + var onlySelf = config.get("OnlySelfAssigned"); + var showUnassigned = config.get("showUnAssigned"); + let userData : TeamworkAccount = this._context.globalState.get("twp.data.activeAccount"); + let userId = userData.userId; + + for(let i = 0; i < todoItems.length; i++){ + let element = todoItems[i]; + if(!isNullOrUndefined(element["responsible-party-ids"]) && element["responsible-party-ids"].indexOf(userId.toString()) < 0 && onlySelf){ + continue; + } + if(isNullOrUndefined(element["responsible-party-ids"]) && !showUnassigned){ + continue; } - }) - .catch(function (error) { - console.log(error); - }); - - json.data["todo-items"].forEach(element => { nodeList.push(new TaskItemNode(element.content, - element["responsible-party-summary"],"", + isNullOrUndefined(element["responsible-party-summary"]) ? "Anyone" : element["responsible-party-summary"],"", element.id, element.priority, element.hasTickets, - element.isComplete, + element.completed, + !isNullOrUndefined(element.subTasks) && element.subTasks.length > 0, element["responsible-party-ids"], node, "taskItem", provider, - this)); - }); - - - context.globalState.update("twp.data." + idToUse + ".todoitems", nodeList); - context.globalState.update("twp.data.tasklists." + idToUse + ".todoitems", Date.now()); - this.statusBarItem.text = statusBarText; - return nodeList; - } - - - public async getTodoItem(context: vscode.ExtensionContext, id: number, force: boolean = false){ - - var statusBarText = this.statusBarItem.text; - this.statusBarItem.text = "Fetching task details"; - - var axios = require("axios"); - var config = vscode.workspace.getConfiguration('twp'); - var token = config.get("APIKey"); - var root = config.get("APIRoot"); - - - var item = this._context.globalState.get("twp.data.task." + id,""); - var lastUpdated = this._context.globalState.get("twp.data.task." + id + ".lastUpdated", new Date()); - var todo; - if(item && !force){ - if(Utilities.DateCompare(lastUpdated,30)){ - todo = item; - } - }else{ - const url = root + '/tasks/' + id + '.json'; - - - let json = await axios({ - method:'get', - url, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - - todo = json.data["todo-item"]; - this._context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); - this._context.globalState.update("twp.data.task." + id, todo); + this, + element.subTasks)); } - var dateFormat = require('dateformat'); - todo['created-on'] = dateFormat(Date.parse(todo['created-on']), "ddd-mm-yyyy"); - todo['description'] = todo['description'].replace('\'','´'); - todo['content'] = todo['content'].replace('\'','´'); - - // If task has comments -> Load them - if(todo["comments-count"] > 0){ - const commenturl = root + '/tasks/' + id + '/comments.json'; - let comments = await axios({ - method:'get', - url: commenturl, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - - var TurndownService = require('turndown') - var turndownService = new TurndownService() - - comments.data.comments.forEach(element => { - var newBody = turndownService.turndown(element['html-body']); - newBody = newBody.replace('\'','´'); - element.body = newBody; - element["datetime"] = dateFormat(Date.parse(todo.datetime), "ddd-mm-yyyy hh:MM"); - }); - - todo["comments"] = comments.data.comments; - } - - if(todo["attachments-count"] > 0){ - const attachment = root + '/v/2/tasks/' + id + '/files.json?getCategoryPath=true&getLikes=true&getVersions=true&page=1&pageSize=50'; - let comments = await axios({ - method:'get', - url: attachment, - auth: { - username: token, - password: 'xxxxxxxxxxxxx' - } - }) - .catch(function (error) { - console.log(error); - }); - - todo["attachments"] = comments.data.files; + if(todoItems.length === 0){ + nodeList.push(new EmptyNode("No Tasks",0)); } - todo["rooturl"] = root; - todo.rooturl = root; - this._context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); - this._context.globalState.update("twp.data.task." + id, todo); - this.statusBarItem.text = statusBarText; - return todo; + + this.statusBarItem.text = "Teamwork: " + this.Config.ActiveProjectName; + return nodeList; } + + } \ No newline at end of file diff --git a/src/teamworkProjectsApi.ts b/src/teamworkProjectsApi.ts new file mode 100644 index 0000000..d49cba2 --- /dev/null +++ b/src/teamworkProjectsApi.ts @@ -0,0 +1,376 @@ + +import * as vscode from 'vscode'; +import { Utilities } from './utilities'; +import { TaskListResponse, TodoList } from './model/responses/TaskListResponse'; +import { TodoItem, TaskItemResponse} from './model/responses/TaskItemResponse'; +import { Project, ProjectListResponse} from './model/responses/projectListResponse'; +import { Person, PeopleResponse} from './model/responses/peopleResponse'; +import { TaskQuickAdd, TodoItemQuick } from './model/taskQuickAdd'; +import { TeamworkAccount } from './model/teamworkAccount'; +import { isNullOrUndefined } from 'util'; + +export class TeamworkProjectsApi{ + + + private axios = require("axios"); + private isConfigured: boolean; + private root: string; + + constructor(context: vscode.ExtensionContext) { + let userData : TeamworkAccount = context.globalState.get("twp.data.activeAccount"); + let token = userData.token; + this.root = userData.rootUrl; + + + if(!token || !this.root){ + this.isConfigured = false; + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + this.axios.defaults.headers.common = { + 'User-Agent': `tw-vscode (${process.platform} | ${vscode.extensions.getExtension('teamwork.twp').packageJSON.version})`, + 'Authorization': `Bearer ${token}`}; + + this.isConfigured = true; + } + + + + + + + public async GetProjects(context: vscode.ExtensionContext, force: boolean = false, includePeople: boolean= false, getAll: boolean = false, getList: string = "") : Promise{ + + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + let result; + // Load from cache if duration less than 30 minutes + let cachedProjects : Project[] = context.globalState.get("twp.data.project",null); + let lastUpdated : Date = context.globalState.get("twp.data.projects.lastUpdated", new Date() ); + if(cachedProjects && cachedProjects.length > 0 && lastUpdated && !force){ + if(Utilities.DateCompare(lastUpdated,30)){ + result = cachedProjects; + } + } + + if(!result){ + const url = this.root + '/tasks/projects.json?type=canAddItem&pageSize=200'; + + result = await this.axios({ + method:'get', + url, + }) + .catch(function (error) { + console.log(error); + }); + } + + if(includePeople){ + result.data.projects.forEach(async element =>{ + element.people = await this.GetPeopleInProject(context,force,element.id); + }); + } + + if(!isNullOrUndefined(result.data)){ context.globalState.update("twp.data.project",result.data.projects);} + if(!isNullOrUndefined(result.data)){ context.globalState.update("twp.data.projects.lastUpdated", new Date() );} + return result.data.projects; + } + + public async GetPeopleInProject(context: vscode.ExtensionContext,force: boolean = false,id: string) : Promise{ + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + var url = this.root + '/projects/' + id + "/people.json"; + let json = await this.axios({ + method:'get', + url + }) + .catch(function (error) { + console.log(error); + }); + + return json.people; + } + + public async getTaskLists(context: vscode.ExtensionContext, id: number = 0, force: boolean = false) : Promise{ + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + // Lets check our cache first + let response: TaskListResponse; + + // Load from cache if duration less than 30 minutes + let cachedNodes : TaskListResponse = context.globalState.get("twp.data." + id + ".tasklist",null); + let lastUpdated : Date = context.globalState.get("twp.data.tasklists." + id + ".lastUpdated",new Date() ); + if(cachedNodes !== null && cachedNodes["data"]["tasklists"].length > 0 && lastUpdated && !force){ + if(Utilities.DateCompare(lastUpdated,30)){ + return cachedNodes["data"]["tasklists"]; + } + } + + const url = this.root + '/projects/api/v1/projects/' + id + '/tasklists.json?page=1&pageSize=100'; + + response = await this.axios({ + method:'get', + url + }) + .catch(function (error) { + console.log(error); + }); + + + context.globalState.update("twp.data." + id + ".tasklist",response); + context.globalState.update("twp.data.tasklists." + id + ".lastUpdated",Date.now()); + return response["data"]["tasklists"]; + } + + public async getTaskItems(context: vscode.ExtensionContext, id: number = 0, force: boolean = false) : Promise{ + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + let todoItems: TodoItem[] = []; + let todoResponse: TaskItemResponse; + // Load from cache if duration less than 30 minutes + todoItems = context.globalState.get("twp.data." + id + ".todoitem",[]); + let lastUpdated : Date = context.globalState.get("twp.data.tasklists." + id + ".todoitem", new Date()); + if(todoItems.length > 0 && lastUpdated && !force){ + if(Utilities.DateCompare(lastUpdated,30)){ + return todoItems; + } + } + + const url = this.root + '/tasklists/' + id + '/tasks.json?nestSubTasks=true'; + todoResponse = await this.axios({ + method:'get', + url, + }) + .catch(function (error) { + console.log(error); + }); + + todoItems = todoResponse["data"]["todo-items"]; + + context.globalState.update("twp.data." + id + ".todoitem", todoItems); + context.globalState.update("twp.data.tasklists." + id + ".todoitem", Date.now()); + return todoItems; + } + + public async getTodoItem(context: vscode.ExtensionContext, id: number, force: boolean = false){ + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + var item = context.globalState.get("twp.data.task." + id,""); + var lastUpdated = context.globalState.get("twp.data.task." + id + ".lastUpdated", new Date()); + var todo; + if(item && !force){ + if(Utilities.DateCompare(lastUpdated,30)){ + todo = item; + } + }else{ + const url = this.root + '/tasks/' + id + '.json'; + + let json = await this.axios({ + method:'get', + url + }) + .catch(function (error) { + console.log(error); + }); + + todo = json.data["todo-item"]; + context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); + context.globalState.update("twp.data.task." + id, todo); + } + + var dateFormat = require('dateformat'); + todo['created-on'] = dateFormat(Date.parse(todo['created-on']), "ddd-mm-yyyy"); + todo['description'] = todo['description'].replace('\'','´'); + todo['content'] = todo['content'].replace('\'','´'); + + // If task has comments -> Load them + if(todo["comments-count"] > 0){ + const commenturl = this.root + '/tasks/' + id + '/comments.json'; + let comments = await this.axios({ + method:'get', + url: commenturl, + headers: { + "Content-Type": "application/json", + }, + }) + .catch(function (error) { + console.log(error); + }); + + var TurndownService = require('turndown'); + var turndownService = new TurndownService(); + + comments.data.comments.forEach(element => { + var newBody = turndownService.turndown(element['html-body']); + newBody = newBody.replace('\'','´'); + element.body = newBody; + element["datewritten"] = dateFormat(Date.parse(element.datetime), "ddd-mm-yyyy hh:MM"); + }); + + todo["comments"] = comments.data.comments; + } + + if(todo["attachments-count"] > 0){ + const attachment = this.root + '/v/2/tasks/' + id + '/files.json?getCategoryPath=true&getLikes=true&getVersions=true&page=1&pageSize=50'; + let comments = await this.axios({ + method:'get', + url: attachment, + headers: { + "Content-Type": "application/json", + }, + }) + .catch(function (error) { + console.log(error); + }); + + todo["attachments"] = comments.data.files; + } + + todo["rooturl"] = this.root; + todo.rooturl = this.root; + context.globalState.update("twp.data.task." + id + ".lastUpdated", Date.now()); + context.globalState.update("twp.data.task." + id, todo); + return todo; + } + + + public async postTodoItem(context: vscode.ExtensionContext, id: number, tasklistid: number, title:string, description:string) { + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + + const url = this.root + '/projects/' + id + "/tasks/quickadd.json"; + + var task = new TaskQuickAdd(); + task.tasklistId = tasklistid; + task.notify = false; + task.private = false; + task.content = title; + + var todoDetails = new TodoItemQuick(); + todoDetails.description = description; + task["todo-item"] = todoDetails; + + let json = await this.axios({ + method: 'post', + data: task, + url:url, + headers: { + "Content-Type": "application/json", + }, + }) + .catch(function (error) { + console.log(error); + }); + + return json; + } + + public async CompleteTask(taskItem: number) : Promise{ + + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + const url = this.root + '/tasks/' + taskItem + '/complete.json'; + let json = await this.axios({ + method: 'put', + url: url, + data: "" + }) + .catch(function (error) { + console.log(error); + return false; + }); + return true; + } + + + public async AddComment(taskItem: number, content: string) : Promise{ + if(!this.isConfigured){ + vscode.window.showErrorMessage("Please Configure the extension first!"); + return; + } + const url = this.root + '/tasks/' + taskItem + '/comments.json'; + + var comment = { + "comment": { + "body": "" + content + "", + "notify": "false", + "isPrivate": false, + "content-type":"text", + "ParseMentions": true, + }}; + + let json = await this.axios({ + method: 'post', + url: url, + data: comment + }) + .catch(function (error) { + console.log(comment); + console.log(error); + return false; + }); + return true; + } + + + public async getLoginData(context: vscode.ExtensionContext, code: string): Promise { + + + var loginaxios = require("axios"); + var config = vscode.workspace.getConfiguration('twp'); + + let url = 'https://api.teamwork.com/launchpad/v1/token.json?code=' + code; + + let data = { + code: code, + }; + + let json = await loginaxios({ + method:'post', + data: JSON.stringify(data), + url, + }) + .catch(function (error) { + console.log(error); + return null; + }); + + + let loginData = json["data"]; + + let user = new TeamworkAccount( + loginData.installation.id, + loginData.user.id, + loginData.user.firstName + " " + loginData.user.lastName, + loginData.user.email, + loginData["access_token"], + loginData.installation.apiEndPoint,); + + return user; + } + +} + + + + \ No newline at end of file diff --git a/src/utilities.ts b/src/utilities.ts index d6ee2f9..4cc4ad1 100644 --- a/src/utilities.ts +++ b/src/utilities.ts @@ -1,4 +1,7 @@ import * as fs from 'fs'; +import * as path from 'path'; +import * as vscode from 'vscode'; + export class Utilities{ @@ -17,4 +20,35 @@ export class Utilities{ + public static GetActiveLanguageConfig() : vscode.LanguageConfiguration{ + const editor = vscode.window.activeTextEditor; + const documentLanguageId:string = editor.document.languageId; + var langConfigFilepath:string = null; + for (const _ext of vscode.extensions.all) { + // All vscode default extensions ids starts with "vscode." + if ( + _ext.id.startsWith("vscode.") && + _ext.packageJSON.contributes && + _ext.packageJSON.contributes.languages + ) { + // Find language data from "packageJSON.contributes.languages" for the languageId + const packageLangData = _ext.packageJSON.contributes.languages.find( + _packageLangData => (_packageLangData.id === documentLanguageId) + ); + // If found, get the absolute config file path + if (!!packageLangData) { + langConfigFilepath = path.join( + _ext.extensionPath, + packageLangData.configuration + ); + break; + } + } + } + // Validate config file existance + if (!!langConfigFilepath && fs.existsSync(langConfigFilepath)) { + return require(langConfigFilepath); + } + } + } \ No newline at end of file diff --git a/src/webviews.ts b/src/webviews.ts new file mode 100644 index 0000000..6fa4a44 --- /dev/null +++ b/src/webviews.ts @@ -0,0 +1,266 @@ +import * as path from 'path'; +import * as vscode from 'vscode'; +import {Template} from './adaptiveCards/templateEngine'; +import {EvaluationContext} from './adaptiveCards/expressionParser'; +import { TeamworkProjectsApi } from './teamworkProjectsApi'; + + +export class WebViews{ + private readonly _extensionPath: string; + public readonly _context: vscode.ExtensionContext; + public API: TeamworkProjectsApi; + + constructor(private context: vscode.ExtensionContext,extensionPath: string) { + this._context = context; + this._extensionPath = extensionPath; + this.API = new TeamworkProjectsApi(this._context); + } + + public GetWebViewContentLoader(){ + + // jquery + const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); + const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); + + const nonce = this.getNonce(); + + const ACstyle = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'loader.css')); + const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); + + return ` + + + + + Cat Coding + + + + + +
+ +

+ please wait... +

+
+
+ + `; + + + } + + public GetWebViewLogin(){ + + // jquery + const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); + const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); + + const scriptPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'mainTeamwork.js')); + const scriptUri = scriptPath.with({ scheme: 'vscode-resource' }); + + const nonce = this.getNonce(); + + const ACstyle = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'loader.css')); + const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); + + return ` + + + + + Cat Coding + + + + + + + + + `; + + + } + + public async GetWebViewContentAdaptiveCard(taskItem: number, force: boolean = false) { + var todo = await this.API.getTodoItem(this._context, taskItem,force); + if(todo){ + const templateFile = require(path.join(this._extensionPath, 'media/cards', 'taskCard.json')); + var  _templatePayload: object = templateFile; + + +  let template = new Template( _templatePayload); +  let context = new EvaluationContext(); +  context.$root = todo; +  let expandedTemplatePayload = template.expand(context); + + // Local path to main script run in the webview + const scriptPathOnDisk = vscode.Uri.file( + path.join(this._extensionPath, 'media/js', 'mainAdaptive.js') + ); + // And the uri we use to load this script in the webview + const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' }); + + // jquery + const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); + const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); + + + // AdaptiveCards + let url = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'fabric.min.js')); + const FabricUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'adaptivecards.min.js')); + const ACUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'adaptivecards-fabric.min.js')); + const ACUFabricUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'react.min.js')); + const ReactUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'react-dom.min.js')); + const ReactDomUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'markdown-it.min.js')); + const MarkdownUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'msteamsstyle.css')); + const mainstyleUri = url.with({ scheme: 'vscode-resource' }); + + url = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'fabric.components.min.css')); + const FabricStyleUri = url.with({ scheme: 'vscode-resource' }); + + const ACstyle = vscode.Uri.file( path.join(this._extensionPath, 'media/css', 'editormain.css')); + const ACStyleUri = ACstyle.with({ scheme: 'vscode-resource' }); + + + const nonce = this.getNonce(); + + return ` + + + + + Cat Coding + + + + + + + +
+
+ + + + + + + + + + + + + + `; + } + } + + public async GetWebViewContentTeamwork(taskItem: number, force: boolean = false) { + var config = vscode.workspace.getConfiguration('twp'); + var root = config.get("APIRoot"); + + var auth = "Basic " + Buffer.from(config.get("APIKey") + ":xxxxxx").toString("base64"); + + var todo = await this.API.getTodoItem(this._context, taskItem); + + if(todo){ + const nonce = this.getNonce(); + + const scriptPathOnDisk = vscode.Uri.file( + path.join(this._extensionPath, 'media/js', 'mainTeamwork.js') + ); + // And the uri we use to load this script in the webview + const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' }); + + // jquery + const jqueryPath = vscode.Uri.file( path.join(this._extensionPath, 'media/js', 'jquery.min.js')); + const jqueryUri = jqueryPath.with({ scheme: 'vscode-resource' }); + + + return ` + + + + + Cat Coding + + + + + + + + + `; + } + + + } + + private getNonce() { + let text = ""; + const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; + for (let i = 0; i < 32; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)); + } + return text; + } + + +} \ No newline at end of file diff --git a/twp-0.0.1.vsix b/twp-0.0.1.vsix deleted file mode 100644 index 386ff62..0000000 Binary files a/twp-0.0.1.vsix and /dev/null differ diff --git a/twp-0.5.0.vsix b/twp-0.5.0.vsix deleted file mode 100644 index b41ef65..0000000 Binary files a/twp-0.5.0.vsix and /dev/null differ