From 158a72b4f67da1d258b38e7aaf1fcab78df958dc Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Wed, 2 Jun 2021 23:37:24 -0400 Subject: [PATCH] Fixed a few linting issues, readme and sample.json --- samples/react-datatable/README.md | 5 +- samples/react-datatable/assets/sample.json | 4 +- .../config/package-solution.json | 2 +- samples/react-datatable/package.json | 2 +- .../react-datatable.json | 104 +++++ ...-e57c-4005-ad6a-5b066f1acd65.manifest.json | 154 +++++++ .../report.20210602.124620.14768.0.001.json | 417 ------------------ .../ExportListItemsToCSVFormatter.ts | 1 + .../ExportListItemsToPDF.tsx | 10 +- .../ExportListItemsToPDFFormatter.ts | 3 +- .../RenderImageOrLink/RenderImageOrLink.tsx | 4 +- .../RenderProfilePicture.tsx | 4 +- .../components/ReactDatatable.tsx | 2 +- ...-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json | 71 +++ ...tributors-web-part_4d2033f670297cd13b0c.js | 1 + ..._en-us_6ae41e2edb727df21538267edcd92249.js | 17 + .../react-pagecontributors.json | 104 +++++ ...-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json | 71 +++ ...-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json | 71 +++ 19 files changed, 613 insertions(+), 434 deletions(-) create mode 100644 samples/react-datatable/release/component-dependency-audit/react-datatable.json create mode 100644 samples/react-datatable/release/manifests/9d6e26c1-e57c-4005-ad6a-5b066f1acd65.manifest.json delete mode 100644 samples/react-datatable/report.20210602.124620.14768.0.001.json create mode 100644 samples/react-pagecontributors/release/assets/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json create mode 100644 samples/react-pagecontributors/release/assets/page-contributors-web-part_4d2033f670297cd13b0c.js create mode 100644 samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js create mode 100644 samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json create mode 100644 samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json create mode 100644 samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json diff --git a/samples/react-datatable/README.md b/samples/react-datatable/README.md index 12df9c393..93f8d988f 100644 --- a/samples/react-datatable/README.md +++ b/samples/react-datatable/README.md @@ -17,8 +17,8 @@ This web part provides easy way to render SharePoint custom list in datatable vi ## Compatibility -![SPFx 1.11](https://img.shields.io/badge/SPFx-1.11.0-green.svg) -![Node.js LTS 10.x](https://img.shields.io/badge/Node.js-LTS%2010.x-green.svg) +![SPFx 1.12.1](https://img.shields.io/badge/SPFx-1.12.1-green.svg) +![Node.js LTS v14 | LTS v12 | LTS v10](https://img.shields.io/badge/Node.js-LTS%20v14%20%7C%20LTS%20v12%20%7C%20LTS%20v10-green.svg) ![SharePoint Online](https://img.shields.io/badge/SharePoint-Online-yellow.svg) ![Teams N/A: Untested with Microsoft Teams](https://img.shields.io/badge/Teams-N%2FA-lightgrey.svg "Untested with Microsoft Teams") ![Workbench Hosted](https://img.shields.io/badge/Workbench-%20Hosted-yellow.svg) @@ -44,6 +44,7 @@ Version|Date|Comments 1.2|March 01, 2021|Fixed search issue for number field 1.3|March 31,2021| Changed UI as per SharePoint list, Set themeing as per current SharePoint site theme, Created custom pagination by using reusable controls, Added features to export CSV based on the filter if the filter is available, Added hyperlink feature for image and link column in export to pdf and also set alternative row formatting in generated pdf as per property pane configuration odd/even row color, fixed object issue (for people/hyperlink, etc) in export to CSV. 1.4|April 10, 2021|Added feature to show profile picture in user column and shows display name of user field in export to CSV and PDF. +1.5|June 2, 2021|Added feature to show image in dataTable and upgraded to the SPFx version 1.12.1. ## Disclaimer diff --git a/samples/react-datatable/assets/sample.json b/samples/react-datatable/assets/sample.json index 654a5a1dc..3e14151de 100644 --- a/samples/react-datatable/assets/sample.json +++ b/samples/react-datatable/assets/sample.json @@ -9,7 +9,7 @@ "This web part provides easy way to render SharePoint custom list in data table view with all the necessary features." ], "creationDateTime": "2021-03-01", - "updateDateTime": "2021-04-10", + "updateDateTime": "2021-06-02", "products": [ "SharePoint", "Office" @@ -21,7 +21,7 @@ }, { "key": "SPFX-VERSION", - "value": "1.11.0" + "value": "1.12.1" }, { "key": "PNPCONTROLS", diff --git a/samples/react-datatable/config/package-solution.json b/samples/react-datatable/config/package-solution.json index 6615b7d45..a969febac 100644 --- a/samples/react-datatable/config/package-solution.json +++ b/samples/react-datatable/config/package-solution.json @@ -3,7 +3,7 @@ "solution": { "name": "react-datatable-client-side-solution", "id": "35299377-f8c8-4721-bd53-05602fc0c4ee", - "version": "1.1.0.0", + "version": "1.5.0.0", "includeClientSideAssets": true, "isDomainIsolated": false, "developer": { diff --git a/samples/react-datatable/package.json b/samples/react-datatable/package.json index 0ab76cd85..b84100ae5 100644 --- a/samples/react-datatable/package.json +++ b/samples/react-datatable/package.json @@ -1,6 +1,6 @@ { "name": "react-datatable", - "version": "1.1.0", + "version": "1.5.0", "private": true, "main": "lib/index.js", "engines": { diff --git a/samples/react-datatable/release/component-dependency-audit/react-datatable.json b/samples/react-datatable/release/component-dependency-audit/react-datatable.json new file mode 100644 index 000000000..b91626fdd --- /dev/null +++ b/samples/react-datatable/release/component-dependency-audit/react-datatable.json @@ -0,0 +1,104 @@ +{ + "bundles": { + "react-datatable-web-part": { + "dependencies": [ + { + "componentId": "f9e737b7-f0df-4597-ba8c-3060f82380db", + "componentName": "@microsoft/sp-property-pane", + "componentVersion": "1.12.1", + "isDirectDependency": true + }, + { + "componentId": "1c6c9123-7aac-41f3-a376-3caea41ed83f", + "componentName": "@microsoft/sp-loader", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "8217e442-8ed3-41fd-957d-b112e841286a", + "componentName": "@ms/sp-telemetry", + "componentVersion": "0.19.2", + "isDirectDependency": false + }, + { + "componentId": "e40f8203-b39d-425a-a957-714852e33b79", + "componentName": "@microsoft/sp-dynamic-data", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a", + "componentName": "@microsoft/sp-lodash-subset", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", + "componentName": "@microsoft/sp-core-library", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "01c4df03-e775-48cb-aa14-171ee5199a15", + "componentName": "tslib", + "componentVersion": "1.10.0", + "isDirectDependency": false + }, + { + "componentId": "2e09fb9b-13bb-48f2-859f-97d6fff71176", + "componentName": "@ms/odsp-core-bundle", + "componentVersion": "1.1.13", + "isDirectDependency": false + }, + { + "componentId": "78359e4b-07c2-43c6-8d0b-d060b4d577e8", + "componentName": "@microsoft/sp-diagnostics", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8", + "componentName": "@microsoft/sp-page-context", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "229b8d08-79f3-438b-8c21-4613fc877abd", + "componentName": "@microsoft/load-themed-styles", + "componentVersion": "0.1.2", + "isDirectDependency": false + }, + { + "componentId": "c07208f0-ea3b-4c1a-9965-ac1b825211a6", + "componentName": "@microsoft/sp-http", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", + "componentName": "react", + "componentVersion": "16.9.0", + "isDirectDependency": false + }, + { + "componentId": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", + "componentName": "react-dom", + "componentVersion": "16.9.0", + "isDirectDependency": false + }, + { + "componentId": "974a7777-0990-4136-8fa6-95d80114c2e0", + "componentName": "@microsoft/sp-webpart-base", + "componentVersion": "1.12.1", + "isDirectDependency": true + }, + { + "componentId": "467dc675-7cc5-4709-8aac-78e3b71bd2f6", + "componentName": "@microsoft/sp-component-base", + "componentVersion": "1.12.1", + "isDirectDependency": false + } + ] + } + } +} diff --git a/samples/react-datatable/release/manifests/9d6e26c1-e57c-4005-ad6a-5b066f1acd65.manifest.json b/samples/react-datatable/release/manifests/9d6e26c1-e57c-4005-ad6a-5b066f1acd65.manifest.json new file mode 100644 index 000000000..cfe97582d --- /dev/null +++ b/samples/react-datatable/release/manifests/9d6e26c1-e57c-4005-ad6a-5b066f1acd65.manifest.json @@ -0,0 +1,154 @@ +{ + "id": "9d6e26c1-e57c-4005-ad6a-5b066f1acd65", + "alias": "ReactDatatableWebPart", + "componentType": "WebPart", + "version": "1.1.0", + "manifestVersion": 2, + "requiresCustomScript": false, + "supportedHosts": [ + "SharePointWebPart" + ], + "preconfiguredEntries": [ + { + "groupId": "5c03119e-3074-46fd-976b-c60198311f70", + "group": { + "default": "Other" + }, + "title": { + "default": "Datatable" + }, + "description": { + "default": "Shows the sharepoint list items in data table format with some advanced features." + }, + "officeFabricIconFontName": "Table", + "properties": { + "title": "Webpart Title (eg. DataTable)", + "enableSorting": true, + "enableSearching": true, + "enableDownloadAsCsv": true, + "enableDownloadAsPdf": true, + "enablePagination": true + } + } + ], + "loaderConfig": { + "internalModuleBaseUrls": [ + "" + ], + "entryModuleId": "react-datatable-web-part", + "scriptResources": { + "react-datatable-web-part": { + "type": "path", + "path": "react-datatable-web-part.js" + }, + "@microsoft/sp-property-pane": { + "type": "component", + "id": "f9e737b7-f0df-4597-ba8c-3060f82380db", + "version": "1.12.1" + }, + "@microsoft/sp-lodash-subset": { + "type": "component", + "id": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a", + "version": "1.12.1" + }, + "ControlStrings": { + "type": "localizedPath", + "paths": { + "bg-BG": "ControlStrings_bg-bg.js", + "ca-ES": "ControlStrings_ca-es.js", + "da-DK": "ControlStrings_da-dk.js", + "de-DE": "ControlStrings_de-de.js", + "el-GR": "ControlStrings_el-gr.js", + "en-US": "ControlStrings_en-us.js", + "es-ES": "ControlStrings_es-es.js", + "et-EE": "ControlStrings_et-ee.js", + "eu-ES": "ControlStrings_eu-es.js", + "fi-FI": "ControlStrings_fi-fi.js", + "fr-CA": "ControlStrings_fr-ca.js", + "fr-FR": "ControlStrings_fr-fr.js", + "it-IT": "ControlStrings_it-it.js", + "ja-JP": "ControlStrings_ja-jp.js", + "lt-LT": "ControlStrings_lt-lt.js", + "lv-LV": "ControlStrings_lv-lv.js", + "nb-NO": "ControlStrings_nb-no.js", + "nl-NL": "ControlStrings_nl-nl.js", + "pl-PL": "ControlStrings_pl-pl.js", + "pt-PT": "ControlStrings_pt-pt.js", + "ro-RO": "ControlStrings_ro-ro.js", + "ru-RU": "ControlStrings_ru-ru.js", + "sk-SK": "ControlStrings_sk-sk.js", + "sr-Latn-RS": "ControlStrings_sr-latn-rs.js", + "sv-SE": "ControlStrings_sv-se.js", + "tr-TR": "ControlStrings_tr-tr.js", + "vi-VN": "ControlStrings_vi-vn.js", + "zh-CN": "ControlStrings_zh-cn.js", + "zh-TW": "ControlStrings_zh-tw.js" + }, + "defaultPath": "ControlStrings_en-us.js" + }, + "@microsoft/sp-core-library": { + "type": "component", + "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", + "version": "1.12.1" + }, + "ReactDatatableWebPartStrings": { + "type": "path", + "path": "ReactDatatableWebPartStrings_en-us.js" + }, + "@microsoft/sp-webpart-base": { + "type": "component", + "id": "974a7777-0990-4136-8fa6-95d80114c2e0", + "version": "1.12.1" + }, + "react": { + "type": "component", + "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", + "version": "16.9.0" + }, + "react-dom": { + "type": "component", + "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", + "version": "16.9.0" + }, + "@microsoft/sp-http": { + "type": "component", + "id": "c07208f0-ea3b-4c1a-9965-ac1b825211a6", + "version": "1.12.1" + }, + "PropertyControlStrings": { + "type": "localizedPath", + "paths": { + "bg-BG": "PropertyControlStrings_bg-bg.js", + "ca-ES": "PropertyControlStrings_ca-es.js", + "da-DK": "PropertyControlStrings_da-dk.js", + "de-DE": "PropertyControlStrings_de-de.js", + "el-GR": "PropertyControlStrings_el-gr.js", + "en-US": "PropertyControlStrings_en-us.js", + "es-ES": "PropertyControlStrings_es-es.js", + "et-EE": "PropertyControlStrings_et-ee.js", + "fi-FI": "PropertyControlStrings_fi-fi.js", + "fr-FR": "PropertyControlStrings_fr-fr.js", + "it-IT": "PropertyControlStrings_it-it.js", + "ja-JP": "PropertyControlStrings_ja-jp.js", + "lt-LT": "PropertyControlStrings_lt-lt.js", + "lv-LV": "PropertyControlStrings_lv-lv.js", + "nb-NO": "PropertyControlStrings_nb-no.js", + "nl-NL": "PropertyControlStrings_nl-nl.js", + "no": "PropertyControlStrings_no.js", + "pl-PL": "PropertyControlStrings_pl-pl.js", + "pt-PT": "PropertyControlStrings_pt-pt.js", + "ro-RO": "PropertyControlStrings_ro-ro.js", + "ru-RU": "PropertyControlStrings_ru-ru.js", + "sk-SK": "PropertyControlStrings_sk-sk.js", + "sr-Latn-RS": "PropertyControlStrings_sr-latn-rs.js", + "sv-SE": "PropertyControlStrings_sv-se.js", + "tr-TR": "PropertyControlStrings_tr-tr.js", + "vi-VN": "PropertyControlStrings_vi-vn.js", + "zh-CN": "PropertyControlStrings_zh-cn.js", + "zh-TW": "PropertyControlStrings_zh-tw.js" + }, + "defaultPath": "PropertyControlStrings_en-us.js" + } + } + } +} \ No newline at end of file diff --git a/samples/react-datatable/report.20210602.124620.14768.0.001.json b/samples/react-datatable/report.20210602.124620.14768.0.001.json deleted file mode 100644 index 7ab618992..000000000 --- a/samples/react-datatable/report.20210602.124620.14768.0.001.json +++ /dev/null @@ -1,417 +0,0 @@ - -{ - "header": { - "reportVersion": 1, - "event": "Allocation failed - JavaScript heap out of memory", - "trigger": "FatalError", - "filename": "report.20210602.124620.14768.0.001.json", - "dumpEventTime": "2021-06-02T12:46:20Z", - "dumpEventTimeStamp": "1622618180110", - "processId": 14768, - "cwd": "E:\\Contribution\\New folder\\sp-dev-fx-webparts\\samples\\react-datatable", - "commandLine": [ - "node", - "C:\\Users\\chand\\AppData\\Roaming\\npm\\\\node_modules\\gulp\\bin\\gulp.js", - "serve" - ], - "nodejsVersion": "v12.14.1", - "wordSize": 64, - "arch": "x64", - "platform": "win32", - "componentVersions": { - "node": "12.14.1", - "v8": "7.7.299.13-node.16", - "uv": "1.33.1", - "zlib": "1.2.11", - "brotli": "1.0.7", - "ares": "1.15.0", - "modules": "72", - "nghttp2": "1.40.0", - "napi": "5", - "llhttp": "2.0.1", - "http_parser": "2.8.0", - "openssl": "1.1.1d", - "cldr": "35.1", - "icu": "64.2", - "tz": "2019c", - "unicode": "12.1" - }, - "release": { - "name": "node", - "lts": "Erbium", - "headersUrl": "https://nodejs.org/download/release/v12.14.1/node-v12.14.1-headers.tar.gz", - "sourceUrl": "https://nodejs.org/download/release/v12.14.1/node-v12.14.1.tar.gz", - "libUrl": "https://nodejs.org/download/release/v12.14.1/win-x64/node.lib" - }, - "osName": "Windows_NT", - "osRelease": "10.0.19042", - "osVersion": "Windows 10 Home Single Language", - "osMachine": "x86_64", - "cpus": [ - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 13953359, - "nice": 0, - "sys": 15767687, - "idle": 182585796, - "irq": 5659031 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 10010015, - "nice": 0, - "sys": 4092453, - "idle": 198203953, - "irq": 369468 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 21141484, - "nice": 0, - "sys": 7090640, - "idle": 184074281, - "irq": 154328 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 12378453, - "nice": 0, - "sys": 3737593, - "idle": 196190375, - "irq": 85062 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 18379718, - "nice": 0, - "sys": 6315421, - "idle": 187611281, - "irq": 154468 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 11441718, - "nice": 0, - "sys": 3824656, - "idle": 197040031, - "irq": 110984 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 16488281, - "nice": 0, - "sys": 4759500, - "idle": 191058625, - "irq": 124890 - }, - { - "model": "Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz", - "speed": 1800, - "user": 12924500, - "nice": 0, - "sys": 3775546, - "idle": 195606359, - "irq": 76937 - } - ], - "networkInterfaces": [ - { - "name": "Wi-Fi", - "internal": false, - "mac": "70:66:55:2d:c5:39", - "address": "fe80::7507:ee0b:69f6:446b", - "netmask": "ffff:ffff:ffff:ffff::", - "family": "IPv6", - "scopeid": 16 - }, - { - "name": "Wi-Fi", - "internal": false, - "mac": "70:66:55:2d:c5:39", - "address": "192.168.0.110", - "netmask": "255.255.255.0", - "family": "IPv4" - }, - { - "name": "Loopback Pseudo-Interface 1", - "internal": true, - "mac": "00:00:00:00:00:00", - "address": "::1", - "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", - "family": "IPv6", - "scopeid": 0 - }, - { - "name": "Loopback Pseudo-Interface 1", - "internal": true, - "mac": "00:00:00:00:00:00", - "address": "127.0.0.1", - "netmask": "255.0.0.0", - "family": "IPv4" - } - ], - "host": "DESKTOP-8QJ03GL" - }, - "javascriptStack": { - "message": "No stack.", - "stack": [ - "Unavailable." - ] - }, - "nativeStack": [ - { - "pc": "0x00007ff639f91759", - "symbol": "std::basic_ostream >::operator<<+10873" - }, - { - "pc": "0x00007ff639f95b7c", - "symbol": "std::basic_ostream >::operator<<+28316" - }, - { - "pc": "0x00007ff639f94b38", - "symbol": "std::basic_ostream >::operator<<+24152" - }, - { - "pc": "0x00007ff63a08433b", - "symbol": "v8::base::CPU::has_sse+37723" - }, - { - "pc": "0x00007ff63a888c5e", - "symbol": "v8::Isolate::ReportExternalAllocationLimitReached+94" - }, - { - "pc": "0x00007ff63a870ca1", - "symbol": "v8::SharedArrayBuffer::Externalize+833" - }, - { - "pc": "0x00007ff63a73e56c", - "symbol": "v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436" - }, - { - "pc": "0x00007ff63a749910", - "symbol": "v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312" - }, - { - "pc": "0x00007ff63a746444", - "symbol": "v8::internal::Heap::PageFlagsAreConsistent+3204" - }, - { - "pc": "0x00007ff63a73bcd3", - "symbol": "v8::internal::Heap::CollectGarbage+1283" - }, - { - "pc": "0x00007ff63a73a4a4", - "symbol": "v8::internal::Heap::AddRetainedMap+2356" - }, - { - "pc": "0x00007ff63a75b775", - "symbol": "v8::internal::Factory::NewFillerObject+53" - }, - { - "pc": "0x00007ff63a4c7a49", - "symbol": "v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+4057" - }, - { - "pc": "0x00007ff63acb463d", - "symbol": "v8::internal::SetupIsolateDelegate::SetupHeap+567949" - }, - { - "pc": "0x000003f8677dc35a", - "symbol": "" - } - ], - "javascriptHeap": { - "totalMemory": 2158989312, - "totalCommittedMemory": 2158989312, - "usedMemory": 2111357968, - "availableMemory": 51217168, - "memoryLimit": 2197815296, - "heapSpaces": { - "read_only_space": { - "memorySize": 262144, - "committedMemory": 262144, - "capacity": 261872, - "used": 32296, - "available": 229576 - }, - "new_space": { - "memorySize": 7340032, - "committedMemory": 7340032, - "capacity": 3666208, - "used": 451984, - "available": 3214224 - }, - "old_space": { - "memorySize": 2075766784, - "committedMemory": 2075766784, - "capacity": 2041666664, - "used": 2036385488, - "available": 5281176 - }, - "code_space": { - "memorySize": 1736704, - "committedMemory": 1736704, - "capacity": 1389824, - "used": 1389824, - "available": 0 - }, - "map_space": { - "memorySize": 3149824, - "committedMemory": 3149824, - "capacity": 2531280, - "used": 2531280, - "available": 0 - }, - "large_object_space": { - "memorySize": 70111232, - "committedMemory": 70111232, - "capacity": 70016696, - "used": 70016696, - "available": 0 - }, - "code_large_object_space": { - "memorySize": 622592, - "committedMemory": 622592, - "capacity": 550400, - "used": 550400, - "available": 0 - }, - "new_large_object_space": { - "memorySize": 0, - "committedMemory": 0, - "capacity": 3666208, - "used": 0, - "available": 3666208 - } - } - }, - "resourceUsage": { - "userCpuSeconds": 295.187, - "kernelCpuSeconds": 145.64, - "cpuConsumptionPercent": 93.993, - "maxRss": 2579755008, - "pageFaults": { - "IORequired": 1406918, - "IONotRequired": 0 - }, - "fsActivity": { - "reads": 6606, - "writes": 17 - } - }, - "libuv": [ - ], - "environmentVariables": { - "=C:": "C:\\", - "=E:": "E:\\Contribution\\New folder\\sp-dev-fx-webparts\\samples\\react-datatable", - "ALLUSERSPROFILE": "C:\\ProgramData", - "APPDATA": "C:\\Users\\chand\\AppData\\Roaming", - "CHROME_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_13224_HSXGQWUYIBCUPTWO", - "CommonProgramFiles": "C:\\Program Files\\Common Files", - "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files", - "CommonProgramW6432": "C:\\Program Files\\Common Files", - "COMPUTERNAME": "DESKTOP-8QJ03GL", - "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe", - "dp0": "C:\\Users\\chand\\AppData\\Roaming\\npm\\", - "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData", - "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer", - "FPS_BROWSER_USER_PROFILE_STRING": "Default", - "HOMEDRIVE": "C:", - "HOMEPATH": "\\Users\\chand", - "INIT_CWD": "E:\\Contribution\\New folder\\sp-dev-fx-webparts\\samples\\react-datatable", - "LOCALAPPDATA": "C:\\Users\\chand\\AppData\\Local", - "LOGONSERVER": "\\\\DESKTOP-8QJ03GL", - "NUMBER_OF_PROCESSORS": "8", - "OneDrive": "C:\\Users\\chand\\OneDrive", - "OneDriveConsumer": "C:\\Users\\chand\\OneDrive", - "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined", - "OS": "Windows_NT", - "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\nodejs\\;C:\\Users\\chand\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\chand\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\chand\\AppData\\Roaming\\npm", - "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC", - "PROCESSOR_ARCHITECTURE": "AMD64", - "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 142 Stepping 12, GenuineIntel", - "PROCESSOR_LEVEL": "6", - "PROCESSOR_REVISION": "8e0c", - "ProgramData": "C:\\ProgramData", - "ProgramFiles": "C:\\Program Files", - "ProgramFiles(x86)": "C:\\Program Files (x86)", - "ProgramW6432": "C:\\Program Files", - "PROMPT": "$P$G", - "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules", - "PUBLIC": "C:\\Users\\Public", - "SESSIONNAME": "Console", - "SystemDrive": "C:", - "SystemRoot": "C:\\WINDOWS", - "TEMP": "C:\\Users\\chand\\AppData\\Local\\Temp", - "TMP": "C:\\Users\\chand\\AppData\\Local\\Temp", - "USERDOMAIN": "DESKTOP-8QJ03GL", - "USERDOMAIN_ROAMINGPROFILE": "DESKTOP-8QJ03GL", - "USERNAME": "Chandani", - "USERPROFILE": "C:\\Users\\chand", - "windir": "C:\\WINDOWS", - "ZES_ENABLE_SYSMAN": "1", - "TERM_PROGRAM": "vscode", - "TERM_PROGRAM_VERSION": "1.56.2", - "LANG": "en_US.UTF-8", - "COLORTERM": "truecolor", - "VSCODE_GIT_IPC_HANDLE": "\\\\.\\pipe\\vscode-git-e76725359d-sock", - "GIT_ASKPASS": "c:\\Users\\chand\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh", - "VSCODE_GIT_ASKPASS_NODE": "C:\\Users\\chand\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe", - "VSCODE_GIT_ASKPASS_MAIN": "c:\\Users\\chand\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js", - "_prog": "node" - }, - "sharedObjects": [ - "C:\\Program Files\\nodejs\\node.exe", - "C:\\WINDOWS\\SYSTEM32\\ntdll.dll", - "C:\\WINDOWS\\System32\\KERNEL32.DLL", - "C:\\WINDOWS\\System32\\KERNELBASE.dll", - "C:\\WINDOWS\\System32\\WS2_32.dll", - "C:\\WINDOWS\\System32\\RPCRT4.dll", - "C:\\WINDOWS\\System32\\ADVAPI32.dll", - "C:\\WINDOWS\\SYSTEM32\\dbghelp.dll", - "C:\\WINDOWS\\System32\\msvcrt.dll", - "C:\\WINDOWS\\System32\\ucrtbase.dll", - "C:\\WINDOWS\\System32\\sechost.dll", - "C:\\WINDOWS\\System32\\USER32.dll", - "C:\\WINDOWS\\System32\\win32u.dll", - "C:\\WINDOWS\\System32\\GDI32.dll", - "C:\\WINDOWS\\System32\\gdi32full.dll", - "C:\\WINDOWS\\System32\\msvcp_win.dll", - "C:\\WINDOWS\\System32\\PSAPI.DLL", - "C:\\WINDOWS\\System32\\CRYPT32.dll", - "C:\\WINDOWS\\System32\\bcrypt.dll", - "C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL", - "C:\\WINDOWS\\SYSTEM32\\USERENV.dll", - "C:\\WINDOWS\\SYSTEM32\\WINMM.dll", - "C:\\WINDOWS\\System32\\IMM32.DLL", - "C:\\WINDOWS\\SYSTEM32\\powrprof.dll", - "C:\\WINDOWS\\SYSTEM32\\UMPDC.dll", - "C:\\WINDOWS\\SYSTEM32\\CRYPTBASE.DLL", - "C:\\WINDOWS\\system32\\uxtheme.dll", - "C:\\WINDOWS\\System32\\combase.dll", - "C:\\WINDOWS\\system32\\mswsock.dll", - "C:\\WINDOWS\\SYSTEM32\\kernel.appcore.dll", - "C:\\WINDOWS\\System32\\bcryptprimitives.dll", - "\\\\?\\E:\\Contribution\\New folder\\sp-dev-fx-webparts\\samples\\react-datatable\\node_modules\\node-sass\\vendor\\win32-x64-72\\binding.node", - "\\\\?\\E:\\Contribution\\New folder\\sp-dev-fx-webparts\\samples\\react-datatable\\node_modules\\deasync\\bin\\win32-x64-node-12\\deasync.node", - "\\\\?\\E:\\Contribution\\New folder\\sp-dev-fx-webparts\\samples\\react-datatable\\node_modules\\keytar\\build\\Release\\keytar.node", - "C:\\WINDOWS\\System32\\NSI.dll", - "C:\\WINDOWS\\SYSTEM32\\dhcpcsvc6.DLL", - "C:\\WINDOWS\\SYSTEM32\\dhcpcsvc.DLL", - "C:\\WINDOWS\\SYSTEM32\\DNSAPI.dll", - "C:\\WINDOWS\\system32\\napinsp.dll", - "C:\\WINDOWS\\system32\\pnrpnsp.dll", - "C:\\WINDOWS\\system32\\wshbth.dll", - "C:\\WINDOWS\\system32\\NLAapi.dll", - "C:\\WINDOWS\\System32\\winrnr.dll", - "C:\\Windows\\System32\\rasadhlp.dll", - "C:\\WINDOWS\\System32\\fwpuclnt.dll" - ] -} \ No newline at end of file diff --git a/samples/react-datatable/src/shared/common/ExportListItemsToCSV/ExportListItemsToCSVFormatter.ts b/samples/react-datatable/src/shared/common/ExportListItemsToCSV/ExportListItemsToCSVFormatter.ts index ad5a54593..0685c303d 100644 --- a/samples/react-datatable/src/shared/common/ExportListItemsToCSV/ExportListItemsToCSVFormatter.ts +++ b/samples/react-datatable/src/shared/common/ExportListItemsToCSV/ExportListItemsToCSVFormatter.ts @@ -8,6 +8,7 @@ export function csvCellFormatter(value: any, type: string) { break; case 'SP.FieldUser': value = value.props.displayName; + break; default: break; } diff --git a/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDF.tsx b/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDF.tsx index 8fd650329..a779f34bf 100644 --- a/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDF.tsx +++ b/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDF.tsx @@ -28,13 +28,13 @@ export function ExportListItemsToPDF(props: IExportToPDF) { let dataTableRows = dataSource().map(lItem => columns.reduce((arr, c) => [...arr, isNullOrUndefined(lItem[c]) ? '' : lItem[c]], [])); let data = { - content: [ + content: [ { text: title, fontSize: 16, alignment: 'center', margin: [0, 0, 0, 15] - }, + }, { style: 'tableExample', table: { @@ -46,7 +46,7 @@ export function ExportListItemsToPDF(props: IExportToPDF) { ] }, layout: { - fillColor: function (rowIndex: number) { + fillColor: (rowIndex: number)=> { if (oddRowColor && evenRowColor) return (rowIndex % 2 === 0) ? evenRowColor : oddRowColor; else @@ -57,7 +57,7 @@ export function ExportListItemsToPDF(props: IExportToPDF) { ] }; pdfMake.createPdf(data).download(`${listName}.pdf`); - } + } return ( ); -} \ No newline at end of file +} diff --git a/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDFFormatter.ts b/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDFFormatter.ts index 09fc67008..618f9a6d8 100644 --- a/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDFFormatter.ts +++ b/samples/react-datatable/src/shared/common/ExportListItemsToPDF/ExportListItemsToPDFFormatter.ts @@ -8,7 +8,8 @@ export function pdfCellFormatter(value: any, type: string) { value = { text, link, color: 'blue' }; break; case 'SP.FieldUser': - value = value.props.displayName; + value = value.props.displayName; + break; default: break; } diff --git a/samples/react-datatable/src/shared/common/RenderImageOrLink/RenderImageOrLink.tsx b/samples/react-datatable/src/shared/common/RenderImageOrLink/RenderImageOrLink.tsx index 4d99ef1e0..61a46a7ea 100644 --- a/samples/react-datatable/src/shared/common/RenderImageOrLink/RenderImageOrLink.tsx +++ b/samples/react-datatable/src/shared/common/RenderImageOrLink/RenderImageOrLink.tsx @@ -39,6 +39,6 @@ export function RenderImageOrLink(props: IImageOrLinkProps) { ) ) } - + ; -} \ No newline at end of file +} diff --git a/samples/react-datatable/src/shared/common/RenderProfilePicture/RenderProfilePicture.tsx b/samples/react-datatable/src/shared/common/RenderProfilePicture/RenderProfilePicture.tsx index 7d9c4991a..b82c0c465 100644 --- a/samples/react-datatable/src/shared/common/RenderProfilePicture/RenderProfilePicture.tsx +++ b/samples/react-datatable/src/shared/common/RenderProfilePicture/RenderProfilePicture.tsx @@ -16,7 +16,7 @@ export function RenderProfilePicture(props: IProfilePicProps) { getUserProfileUrl().then(url => { setProfileUrl(url); }); - }, [props]) + }, [props]); return ( ); -} \ No newline at end of file +} diff --git a/samples/react-datatable/src/webparts/reactDatatable/components/ReactDatatable.tsx b/samples/react-datatable/src/webparts/reactDatatable/components/ReactDatatable.tsx index 01fbae0aa..0ba59ace5 100644 --- a/samples/react-datatable/src/webparts/reactDatatable/components/ReactDatatable.tsx +++ b/samples/react-datatable/src/webparts/reactDatatable/components/ReactDatatable.tsx @@ -47,7 +47,7 @@ export default class ReactDatatable extends React.Component { - return this._services.getUserProfileUrl(loginName) + return this._services.getUserProfileUrl(loginName); } public componentDidUpdate(prevProps: IReactDatatableProps) { diff --git a/samples/react-pagecontributors/release/assets/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json b/samples/react-pagecontributors/release/assets/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json new file mode 100644 index 000000000..60db02d5d --- /dev/null +++ b/samples/react-pagecontributors/release/assets/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json @@ -0,0 +1,71 @@ +{ + "id": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b", + "alias": "PageContributorsWebPart", + "componentType": "WebPart", + "version": "1.0.0", + "manifestVersion": 2, + "requiresCustomScript": false, + "supportedHosts": [ + "SharePointWebPart" + ], + "preconfiguredEntries": [ + { + "groupId": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b", + "group": { + "default": "Other" + }, + "title": { + "default": "Page Contributors" + }, + "description": { + "default": "Displays page contributors in reverse chronological order" + }, + "officeFabricIconFontName": "People", + "properties": { + "numberOfFaces": 5, + "personaSize": 3 + } + } + ], + "loaderConfig": { + "internalModuleBaseUrls": [ + "https://localhost:4321/dist/" + ], + "entryModuleId": "page-contributors-web-part", + "scriptResources": { + "page-contributors-web-part": { + "type": "path", + "path": "page-contributors-web-part_4d2033f670297cd13b0c.js" + }, + "@microsoft/sp-property-pane": { + "type": "component", + "id": "f9e737b7-f0df-4597-ba8c-3060f82380db", + "version": "1.12.1" + }, + "@microsoft/sp-core-library": { + "type": "component", + "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", + "version": "1.12.1" + }, + "pageContributorsStrings": { + "type": "path", + "path": "pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js" + }, + "@microsoft/sp-webpart-base": { + "type": "component", + "id": "974a7777-0990-4136-8fa6-95d80114c2e0", + "version": "1.12.1" + }, + "react": { + "type": "component", + "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", + "version": "16.9.0" + }, + "react-dom": { + "type": "component", + "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", + "version": "16.9.0" + } + } + } +} \ No newline at end of file diff --git a/samples/react-pagecontributors/release/assets/page-contributors-web-part_4d2033f670297cd13b0c.js b/samples/react-pagecontributors/release/assets/page-contributors-web-part_4d2033f670297cd13b0c.js new file mode 100644 index 000000000..ec305f14e --- /dev/null +++ b/samples/react-pagecontributors/release/assets/page-contributors-web-part_4d2033f670297cd13b0c.js @@ -0,0 +1 @@ +define("dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b_1.0.0",["@microsoft/sp-property-pane","@microsoft/sp-core-library","pageContributorsStrings","@microsoft/sp-webpart-base","react","react-dom"],function(e,t,n,r,o,i){return 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="ilMd")}({"1qzS":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(l(a.registeredStyles),a.registeredStyles=[]),3!==i&&1!==i||(l(a.registeredThemableStyles),a.registeredThemableStyles=[]),o=[].concat.apply([],e),a.loadStyles?a.loadStyles(c(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=c(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),s&&n.setAttribute("nonce",s),n.appendChild(document.createTextNode(o)),a.perf.count++,t.appendChild(n);var u=document.createEvent("HTMLEvents");u.initEvent("styleinsert",!0,!1),u.args={newStyle:n},document.dispatchEvent(u);var l={styleElement:n,themableStyle:e};i?a.registeredThemableStyles.push(l):a.registeredStyles.push(l)}}(o))}var o,i}()}function l(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function c(e){var t=a.theme,n=!1;return{styleString:(e||[]).map(function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console,o||i}return e.rawString}).join(""),themable:n}}}).call(this,n("l9+2"))},"26ea":function(t,n){t.exports=e},"6P9w":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};n[e]&&r[e]||(r[e]=t,(n[e]=n[e]||[]).push(t))}}i("@uifabric/set-version","6.0.0")},UWqr:function(e,n){e.exports=t},bmmE:function(e,t){e.exports=n},br4S:function(e,t){e.exports=r},cDcd:function(e,t){e.exports=o},faye:function(e,t){e.exports=i},ilMd:function(e,t,n){"use strict";n.r(t);var r=n("cDcd"),o=n("faye"),i=n("UWqr"),s=n("br4S"),a=n("26ea"),u=n("bmmE"),l=function(e,t){return(l=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 c(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function f(){for(var e=0,t=0,n=arguments.length;t0){n.subComponentStyles={};var d=n.subComponentStyles,h=function(e){if(r.hasOwnProperty(e)){var t=r[e];d[e]=function(e){return m.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var l in r)h(l)}return n}function g(e){for(var t=[],n=1;n=0)i(a.split(" "));else{var u=o.argsFromClassName(a);u?i(u):-1===n.indexOf(a)&&n.push(a)}else Array.isArray(a)?i(a):"object"==typeof a&&r.push(a)}}return i(e),{classes:n,objects:r}}function A(e){L!==e&&(L=e)}function U(){return void 0===L&&(L="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),L}function z(){return{rtl:U()}}L=U();var W,j={},H={"user-select":1};function K(e,t){var n=function(){if(!W){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;W=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.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 W}(),r=e[t];if(H[r]){var o=e[t+1];H[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var q,V=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function G(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=V.indexOf(n)>-1,i=n.indexOf("--")>-1,s=o||i?"":"px";e[t+1]=""+r+s}}var X="left",Q="right",J=((q={})[X]=Q,q[Q]=X,q),Z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Y(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(X)>=0)t[n]=r.replace(X,Q);else if(r.indexOf(Q)>=0)t[n]=r.replace(Q,X);else if(String(o).indexOf(X)>=0)t[n+1]=o.replace(X,Q);else if(String(o).indexOf(Q)>=0)t[n+1]=o.replace(Q,X);else if(J[r])t[n]=J[r];else if(Z[o])t[n+1]=Z[o];else switch(r){case"margin":case"padding":t[n+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}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}function $(e){var t=e&&e["&"];return t?t.displayName:void 0}var ee,te=/\:global\((.+?)\)/g;function ne(e,t){return e.indexOf(":global(")>=0?e.replace(te,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function re(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?oe([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!te.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)},e)}(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return oe([r],t,ne(n,e))}):oe([r],t,ne(n,e))}function oe(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=O.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,s=e;i(e.cacheSize||50)&&((null===(u=null===(a=v())||void 0===a?void 0:a.FabricConfig)||void 0===u?void 0:u.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0),l.__retval__}}function be(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 _e(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||n&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(u))||(i[u]=e[u])}return i}var Me=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){e.setState({isRendered:!0})},t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?r.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(r.Component),Re=ve(),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,o=e.ariaLabel,i=e.ariaLive,s=e.styles,a=e.label,u=e.theme,l=e.className,c=e.labelPosition,d=o,h=De(this.props,ke,["size"]),f=n;void 0===f&&void 0!==t&&(f=t===P.large?w.large:w.medium);var m=Re(s,{theme:u,size:f,className:l,labelPosition:c});return r.createElement("div",p({},h,{className:m.root}),r.createElement("div",{className:m.circle}),a&&r.createElement("div",{className:m.label},a),d&&r.createElement("div",{role:"status","aria-live":i},r.createElement(Me,null,r.createElement("div",{className:m.screenReaderText},d))))},t.defaultProps={size:w.medium,ariaLive:"polite",labelPosition:"bottom"},t}(r.Component);function Be(){for(var e=[],t=0;t0&&i>t)&&(o=Kt(),i=0,s=Nt),u=o;for(var l=0;l-1;e[r]=i?o:cn(e[r]||{},o,n)}}return n.pop(),e}function pn(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(dn(e,t,p({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function dn(e,t,n,r,o){var i,s,a;void 0===o&&(o=!1);var u={},l=e||{},c=l.white,d=l.black,h=l.themePrimary,f=l.themeDark,m=l.themeDarker,g=l.themeDarkAlt,y=l.themeLighter,v=l.neutralLight,b=l.neutralLighter,_=l.neutralDark,S=l.neutralQuaternary,I=l.neutralQuaternaryAlt,w=l.neutralPrimary,P=l.neutralSecondary,C=l.neutralSecondaryAlt,x=l.neutralTertiary,T=l.neutralTertiaryAlt,E=l.neutralLighterAlt,k=l.accent;return c&&(u.bodyBackground=c,u.bodyFrameBackground=c,u.accentButtonText=c,u.buttonBackground=c,u.primaryButtonText=c,u.primaryButtonTextHovered=c,u.primaryButtonTextPressed=c,u.inputBackground=c,u.inputForegroundChecked=c,u.listBackground=c,u.menuBackground=c,u.cardStandoutBackground=c),d&&(u.bodyTextChecked=d,u.buttonTextCheckedHovered=d),h&&(u.link=h,u.primaryButtonBackground=h,u.inputBackgroundChecked=h,u.inputIcon=h,u.inputFocusBorderAlt=h,u.menuIcon=h,u.menuHeader=h,u.accentButtonBackground=h),f&&(u.primaryButtonBackgroundPressed=f,u.inputBackgroundCheckedHovered=f,u.inputIconHovered=f),m&&(u.linkHovered=m),g&&(u.primaryButtonBackgroundHovered=g),y&&(u.inputPlaceholderBackgroundChecked=y),v&&(u.bodyBackgroundChecked=v,u.bodyFrameDivider=v,u.bodyDivider=v,u.variantBorder=v,u.buttonBackgroundCheckedHovered=v,u.buttonBackgroundPressed=v,u.listItemBackgroundChecked=v,u.listHeaderBackgroundPressed=v,u.menuItemBackgroundPressed=v,u.menuItemBackgroundChecked=v),b&&(u.bodyBackgroundHovered=b,u.buttonBackgroundHovered=b,u.buttonBackgroundDisabled=b,u.buttonBorderDisabled=b,u.primaryButtonBackgroundDisabled=b,u.disabledBackground=b,u.listItemBackgroundHovered=b,u.listHeaderBackgroundHovered=b,u.menuItemBackgroundHovered=b),S&&(u.primaryButtonTextDisabled=S,u.disabledSubtext=S),I&&(u.listItemBackgroundCheckedHovered=I),x&&(u.disabledBodyText=x,u.variantBorderHovered=(null===(i=n)||void 0===i?void 0:i.variantBorderHovered)||x,u.buttonTextDisabled=x,u.inputIconDisabled=x,u.disabledText=x),w&&(u.bodyText=w,u.actionLink=w,u.buttonText=w,u.inputBorderHovered=w,u.inputText=w,u.listText=w,u.menuItemText=w),E&&(u.bodyStandoutBackground=E,u.defaultStateBackground=E),_&&(u.actionLinkHovered=_,u.buttonTextHovered=_,u.buttonTextChecked=_,u.buttonTextPressed=_,u.inputTextHovered=_,u.menuItemTextHovered=_),P&&(u.bodySubtext=P,u.focusBorder=P,u.inputBorder=P,u.smallInputBorder=P,u.inputPlaceholderText=P),C&&(u.buttonBorder=C),T&&(u.disabledBodySubtext=T,u.disabledBorder=T,u.buttonBackgroundChecked=T,u.menuDivider=T),k&&(u.accentButtonBackground=k),(null===(s=t)||void 0===s?void 0:s.elevation4)&&(u.cardShadow=t.elevation4),!r&&(null===(a=t)||void 0===a?void 0:a.elevation8)?u.cardShadowHovered=t.elevation8:u.variantBorderHovered&&(u.cardShadowHovered="0 0 1px "+u.variantBorderHovered),p(p({},u),n)}!function(e){if(e){var t=e+"/fonts";un(t,It.Thai,"leelawadeeui-thai","leelawadeeui"),un(t,It.Arabic,"segoeui-arabic"),un(t,It.Cyrillic,"segoeui-cyrillic"),un(t,It.EastEuropean,"segoeui-easteuropean"),un(t,It.Greek,"segoeui-greek"),un(t,It.Hebrew,"segoeui-hebrew"),un(t,It.Vietnamese,"segoeui-vietnamese"),un(t,It.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),un(t,wt.Selawik,"selawik","selawik"),un(t,It.Armenian,"segoeui-armenian"),un(t,It.Georgian,"segoeui-georgian"),an("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Ct.light),an("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Ct.semibold)}}(null!=(on=null===(rn=null===(nn=v())||void 0===nn?void 0:nn.FabricConfig)||void 0===rn?void 0:rn.fontBaseUrl)?on:"https://static2.sharepointonline.com/files/fabric/assets");var hn={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function fn(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o,i;void 0===t&&(t={});var s=ln({},e,t,{semanticColors:dn(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(s.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,u=Object.keys(s.fonts);a=s&&(!t||a)?(l=n,c&&(r.clearTimeout(c),c=null),o=e.apply(r._parent,i)):null===c&&u&&(c=r.setTimeout(p,h)),o};return function(){for(var e=[],t=0;t=a&&(n=!0),p=t);var o=t-p,s=a-o,f=t-d,y=!1;return null!==c&&(f>=c&&h?y=!0:s=Math.min(s,c-f)),o>=a||y||n?m(t):null!==h&&e||!l||(h=r.setTimeout(g,s)),i},y=function(){return!!h},v=function(){for(var e=[],t=0;t-1)for(var s=n.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 Un(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 Kn(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(n){return t[e]=n}),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,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))}}(r.Component);var Gn=((Hn={})[38]=1,Hn[40]=1,Hn[37]=1,Hn[39]=1,Hn[36]=1,Hn[35]=1,Hn[9]=1,Hn[33]=1,Hn[34]=1,Hn),Xn=new WeakMap;function Qn(e,t){var n,r=Xn.get(e);return n=r?r+t:1,Xn.set(e,n),n}var Jn=function(e){var t;return t=e.rootRef,r.useEffect(function(){var e,n,r=v(null===(e=t)||void 0===e?void 0:e.current);if(r&&!0!==(null===(n=r.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var o=Qn(r,1);return o<=1&&(r.addEventListener("mousedown",Zn,!0),r.addEventListener("pointerdown",Yn,!0),r.addEventListener("keydown",$n,!0)),function(){var e;r&&!0!==(null===(e=r.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(o=Qn(r,-1))&&(r.removeEventListener("mousedown",Zn,!0),r.removeEventListener("pointerdown",Yn,!0),r.removeEventListener("keydown",$n,!0))}}},[t]),null};function Zn(e){Ft(!1,e.target)}function Yn(e){"mouse"!==e.pointerType&&Ft(!1,e.target)}function $n(e){var t;t=e.which,Gn[t]&&Ft(!0,e.target)}function er(){for(var e=[],t=0;t0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:ir.loaded}))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,r=e.height;if((t===rr.cover||t===rr.contain||t===rr.centerContain||t===rr.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var o;o="number"==typeof n&&"number"==typeof r&&t!==rr.centerContain&&t!==rr.centerCover?n/r:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>o?or.landscape:or.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(r.Component),cr={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"},pr=M(lr,function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,u=e.isLandscape,l=e.isCenter,c=e.isContain,p=e.isCover,d=e.isCenterContain,h=e.isCenterCover,f=e.isNone,m=e.isError,g=e.isNotImageFit,y=e.theme,b=Vt(cr,y),_={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},S=v(),I=void 0!==S&&void 0===S.navigator.msMaxTouchPoints,w=c&&u||p&&!u?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[b.root,y.fonts.medium,{overflow:"hidden"},o&&[b.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&s&&!a&&Tt.fadeIn400,(l||c||p||d||h)&&{position:"relative"},t],image:[b.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[b.imageCenter,_],c&&[b.imageContain,I&&{width:"100%",height:"100%",objectFit:"contain"},!I&&w,_],p&&[b.imageCover,I&&{width:"100%",height:"100%",objectFit:"cover"},!I&&w,_],d&&[b.imageCenterContain,u&&{maxWidth:"100%"},!u&&{maxHeight:"100%"},_],h&&[b.imageCenterCover,u&&{maxHeight:"100%"},!u&&{maxWidth:"100%"},_],f&&[b.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],u&&b.imageLandscape,!u&&b.imagePortrait,!i&&"is-notLoaded",s&&"is-fadeIn",m&&"is-error"]}},void 0,{scope:"Image"},!0),dr=pe({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),hr=jt(function(e){var t=function(e){var t,n=void 0,r=bn.__options;if(e=e?function(e){return e.toLowerCase()}(e):"",e=bn.__remapped[e]||e)if(n=bn[e]){var o=n.subset;o&&o.fontFace&&(o.isRegistered||(Jt(o.fontFace),o.isRegistered=!0),o.className||(o.className=Be(o.style,{fontFamily:o.fontFace.fontFamily,fontWeight:o.fontFace.fontWeight||"normal",fontStyle:o.fontFace.fontStyle||"normal"})))}else!r.disableWarnings&&r.warnOnMissingIcons&&(t='The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.',console&&console.warn&&console.warn(t));return n}(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily}:null},void 0,!0),fr=function(e){var t=e.iconName,n=e.className,o=e.style,i=void 0===o?{}:o,s=hr(t)||{},a=s.iconClassName,u=s.children,l=s.fontFamily,c=De(e,Pe),d=e["aria-label"]?{}:{role:"presentation","aria-hidden":!0};return r.createElement("i",p({"data-icon-name":t},d,c,{className:Ln("ms-Icon",dr.root,a,!t&&dr.placeholder,n),style:p({fontFamily:l},i)}),u)},mr=(jt(function(e,t,n){return fr({iconName:e,className:t,"aria-label":n})}),ve({cacheSize:100})),gr=M(function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===ir.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=e.styles,i=e.iconName,s=e.imageErrorAs,a=e.theme,u="string"==typeof i&&0===i.length,l=!!this.props.imageProps||this.props.iconType===nr.image||this.props.iconType===nr.Image,c=hr(i)||{},d=c.iconClassName,h=c.children,f=mr(o,{theme:a,className:n,iconClassName:d,isImage:l,isPlaceholder:u}),m=l?"span":"i",g=De(this.props,Pe,["aria-label"]),y=this.state.imageLoadError,v=p(p({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=y&&s||pr,_=this.props["aria-label"]||this.props.ariaLabel,S=_?{"aria-label":_}:{"aria-hidden":!this.props["aria-labelledby"]&&!v["aria-labelledby"]};return r.createElement(m,p({"data-icon-name":i},S,g,{className:f.root}),l?r.createElement(b,p({},v)):t||h)},t}(r.Component),function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&dr.placeholder,dr.root,o&&dr.image,n,t,i&&i.root,i&&i.imageContainer]}},void 0,{scope:"Icon"},!0);gr.displayName="Icon";var yr,vr,br=function(e){var t=e.className,n=e.imageProps,o=De(e,Pe),i=e["aria-label"]?{}:{role:"presentation","aria-hidden":!n.alt&&!n["aria-labelledby"]};return r.createElement("div",p({},i,o,{className:Ln("ms-Icon",dr.root,dr.image,t)}),r.createElement(pr,p({},n)))};function _r(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=On(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function Sr(e,t,n,r,o,i,s,a){if(!t||!s&&t===e)return null;var u=wr(t);if(o&&u&&(i||!Cr(t)&&!xr(t))){var l=Sr(e,t.lastElementChild,!0,!0,!0,i,s,a);if(l){if(a&&Pr(l,!0)||!a)return l;var c=Sr(e,l.previousElementSibling,!0,!0,!0,i,s,a);if(c)return c;for(var p=l.parentElement;p&&p!==t;){var d=Sr(e,p.previousElementSibling,!0,!0,!0,i,s,a);if(d)return d;p=p.parentElement}}}return n&&u&&Pr(t,a)?t:Sr(e,t.previousElementSibling,!0,!0,!0,i,s,a)||(r?null:Sr(e,t.parentElement,!0,!1,!1,i,s,a))}function Ir(e,t,n,r,o,i,s,a){if(!t||t===e&&o&&!s)return null;var u=wr(t);if(n&&u&&Pr(t,a))return t;if(!o&&u&&(i||!Cr(t)&&!xr(t))){var l=Ir(e,t.firstElementChild,!0,!0,!1,i,s,a);if(l)return l}return t===e?null:Ir(e,t.nextElementSibling,!0,!0,!1,i,s,a)||(r?null:Ir(e,t.parentElement,!1,!1,!0,i,s,a))}function wr(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Pr(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,s=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&s:s}function Cr(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function xr(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Tr(e,t){return"true"!==function(e,t){var n=Nn(e,function(e){return e.hasAttribute(t)});return n&&n.getAttribute(t)}(e,t)}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(yr||(yr={})),function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(vr||(vr={}));var Er,kr,Dr=void 0;function Mr(e){var t=function(e){var t;return"function"==typeof Event?t=new Event("MouseEvents"):(t=document.createEvent("Event")).initEvent("MouseEvents",!0,!0),t}();t.initEvent("click",!0,!0),e.dispatchEvent(t)}function Rr(){if(void 0===Er){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),Er=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Er}Be({overflow:"hidden !important"});var Fr,Br={},Lr=new Set,Or=["text","number","password","email","tel","url","search"],Nr=function(e){function t(t){var n=e.call(this,t)||this;return n._root=r.createRef(),n._mergedRef=ar(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,r=n.props,o=r.onActiveElementChanged,i=r.doNotAllowFocusEventToPropagate,s=r.stopFocusPropagation,a=r.onFocusNotification,u=r.onFocus,l=r.shouldFocusInnerElementWhenReceivedFocus,c=r.defaultTabbableElement,p=n._isImmediateDescendantOfZone(e.target);if(p)t=e.target;else for(var d=e.target;d&&d!==n._root.current;){if(Pr(d)&&n._isImmediateDescendantOfZone(d)){t=d;break}d=On(d,!1)}if(l&&e.target===n._root.current){var h=c&&"function"==typeof c&&c(n._root.current);h&&Pr(h)?(t=h,h.focus()):(n.focus(!0),n._activeElement&&(t=null))}var f=!n._activeElement;t&&t!==n._activeElement&&((p||f)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,f&&n._updateTabIndexes()),o&&o(n._activeElement,e),(s||i)&&e.stopPropagation(),u?u(e):a&&a()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,r=[];t&&t!==n._root.current;)r.push(t),t=On(t,!1);for(;r.length&&((t=r.pop())&&Pr(t)&&n._setActiveElement(t,!0),!Cr(t)););}},n._onKeyDown=function(e,t){if(!n._portalContainsElement(e.target)){var r=n.props,o=r.direction,i=r.disabled,s=r.isInnerZoneKeystroke,a=r.pagingSupportDisabled,u=r.shouldEnterInnerZone;if(!(i||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((u&&u(e)||s&&s(e))&&n._isImmediateDescendantOfZone(e.target)){var l=n._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!xr(e.target))return;if(!n.focusElement(Ir(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(n._tryInvokeClickForFocusable(e.target))break;return;case 37:if(o!==vr.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusLeft(t)))break;return;case 39:if(o!==vr.vertical&&(n._preventDefaultWhenHandled(e),n._moveFocusRight(t)))break;return;case 38:if(o!==vr.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusUp()))break;return;case 40:if(o!==vr.horizontal&&(n._preventDefaultWhenHandled(e),n._moveFocusDown()))break;return;case 34:if(!a&&n._moveFocusPaging(!0))break;return;case 33:if(!a&&n._moveFocusPaging(!1))break;return;case 9:if(n.props.allowTabKey||1===n.props.handleTabKey||2===n.props.handleTabKey&&n._isElementInput(e.target)){var c;if(n._processingTabKey=!0,c=o!==vr.vertical&&n._shouldWrapFocus(n._activeElement,"data-no-horizontal-wrap")?(me(t)?!e.shiftKey:e.shiftKey)?n._moveFocusLeft(t):n._moveFocusRight(t):e.shiftKey?n._moveFocusUp():n._moveFocusDown(),n._processingTabKey=!1,c)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case 36:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var p=n._root.current&&n._root.current.firstChild;if(n._root.current&&p&&n.focusElement(Ir(n._root.current,p,!0)))break;return;case 35:if(n._isContentEditableElement(e.target)||n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var d=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(Sr(n._root.current,d,!0,!0,!0)))break;return;case 13:if(n._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,r){var o=n._focusAlignment.left||n._focusAlignment.x||0,i=Math.floor(r.top),s=Math.floor(t.bottom),a=Math.floor(r.bottom),u=Math.floor(t.top);return e&&i>s||!e&&a=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},xn(n),n._id=Fn("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1,n}return c(t,e),t.getOuterZones=function(){return Lr.size},t._onKeyDownCapture=function(e){9===e.which&&Lr.forEach(function(e){return e._updateTabIndexes()})},t.prototype.componentDidMount=function(){var e=this._root.current;if(Br[this._id]=this,e){this._windowElement=v(e);for(var n=On(e,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Cr(n)){this._isInnerZone=!0;break}n=On(n,!1)}this._isInnerZone||(Lr.add(this),this._windowElement&&1===Lr.size&&this._windowElement.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r-1&&(-1===i||c=0&&c<0)break}}while(o);if(s&&s!==this._activeElement)a=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Ir(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Sr(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,function(r,o){var i=-1,s=Math.floor(o.top),a=Math.floor(r.bottom);return s=a||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,function(r,o){var i=-1,s=Math.floor(o.bottom),a=Math.floor(o.top),u=Math.floor(r.top);return s>u?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&s<=u||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(me(e),function(r,o){var i=-1;return(me(e)?parseFloat(o.top.toFixed(3))parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==vr.vertical?i=r.right-o.right:n||(i=-999999999),i},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!me(e),function(r,o){var i=-1;return(me(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))=r.left&&t.props.direction!==vr.vertical?i=o.left-r.left:n||(i=-999999999),i},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=function(e){for(var t=e,n=he(e);t&&t!==n.body;){if("true"===t.getAttribute("data-is-scrollable"))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute("data-is-scrollable")){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=v(e)),t}(n);if(!r)return!1;var o=-1,i=void 0,s=-1,a=-1,u=r.clientHeight,l=n.getBoundingClientRect();do{if(n=e?Ir(this._root.current,n):Sr(this._root.current,n)){var c=n.getBoundingClientRect(),p=Math.floor(c.top),d=Math.floor(l.bottom),h=Math.floor(c.bottom),f=Math.floor(l.top),m=this._getHorizontalDistanceFromCenter(e,l,c);if(e&&p>d+u||!e&&h-1&&(e&&p>s?(s=p,o=m,i=n):!e&&h-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Tr(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&An(e,this._root.current)},t.prototype._getDocument=function(){return he(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:vr.bidirectional,shouldRaiseClicks:!0},t}(r.Component);function Ar(e){if(void 0===Fr||e){var t=v(),n=t&&t.navigator.userAgent;Fr=!!n&&-1!==n.indexOf("Macintosh")}return!!Fr}var Ur=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function zr(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Wr(e){return!(!e.subMenuProps&&!e.items)}function jr(e){return!(!e.isDisabled&&!e.disabled)}function Hr(e){return null!==zr(e)?"menuitemcheckbox":"menuitem"}var Kr=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"],qr=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return c(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=Kr);var r=[],o=function(o){"function"!=typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],n=0;nYr[t];)t++}catch(e){t=$r()}return Qr=t,t}(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new Kn(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:$r()},n}return c(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===Gr.unknown?null:r.createElement(e,p({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(qr)).contextType=Xr,t);return Vr(e,n)}function to(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Jr||(Jr={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Zr||(Zr={}));var no,ro=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,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}();function oo(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var io=((no={})[0]=oo(Jr.top,Jr.left),no[1]=oo(Jr.top),no[2]=oo(Jr.top,Jr.right),no[3]=oo(Jr.top,void 0,!0),no[4]=oo(Jr.bottom,Jr.left),no[5]=oo(Jr.bottom),no[6]=oo(Jr.bottom,Jr.right),no[7]=oo(Jr.bottom,void 0,!0),no[8]=oo(Jr.left,Jr.top),no[9]=oo(Jr.left),no[10]=oo(Jr.left,Jr.bottom),no[11]=oo(Jr.right,Jr.top),no[12]=oo(Jr.right),no[13]=oo(Jr.right,Jr.bottom),no);function so(e,t){return!(e.topt.bottom||e.leftt.right)}function ao(e,t){var n=[];return e.topt.bottom&&n.push(Jr.bottom),e.leftt.right&&n.push(Jr.right),n}function uo(e,t){return e[Jr[t]]}function lo(e,t,n){return e[Jr[t]]=n,e}function co(e,t){var n=So(t);return(uo(e,n.positiveEdge)+uo(e,n.negativeEdge))/2}function po(e,t){return e>0?t:-1*t}function ho(e,t){return po(e,uo(t,e))}function fo(e,t,n){return po(n,uo(e,n)-uo(t,n))}function mo(e,t,n){var r=uo(e,t)-n;return e=lo(e,t,n),lo(e,-1*t,uo(e,-1*t)-r)}function go(e,t,n,r){return void 0===r&&(r=0),mo(e,n,uo(t,n)+po(n,r))}function yo(e,t,n){return ho(n,e)>ho(n,t)}function vo(e,t,n){for(var r=0,o=e;rMath.abs(fo(e,n,-1*t))?-1*t:t}function wo(e,t,n){var r=co(t,e),o=co(n,e),i=So(e),s=i.positiveEdge,a=i.negativeEdge;return r<=o?s:a}function Po(e){var t=e.getBoundingClientRect();return new ro(t.left,t.right,t.top,t.bottom)}function Co(e){return new ro(e.left,e.right,e.top,e.bottom)}function xo(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new ro(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Po(t);else{var o=t,i=o.left||o.x,s=o.top||o.y;n=new ro(i,i,s,s)}if(!so(n,e))for(var a=0,u=ao(n,e);a0&&(i.indexOf(-1*a)>-1?a*=-1:(u=a,a=i.slice(-1)[0]),s=_o(e,t,{targetEdge:a,alignmentEdge:u},o))}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}}(e,t,n,r,o));var c=ao(e,n);if(u){if(l.alignmentEdge&&c.indexOf(-1*l.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,s=-1*o;return{elementRectangle:_o(e.elementRectangle,t,{targetEdge:i,alignmentEdge:s},n,r),targetEdge:i,alignmentEdge:s}}(l,t,o,s);if(so(p.elementRectangle,n))return p;l=vo(ao(p.elementRectangle,n),l,n)}}else l=vo(c,l,n);return l}(e,t,n,r,o,i,s)}(Po(t),i,n,s,o,e.directionalHintFixed,e.coverTarget);return p(p({},a),{targetRectangle:i})}function To(e,t,n,r,o){var i=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(i)/2+(e.gapSpace?e.gapSpace:0),a=e;a.gapSpace=s;var u=e.bounds?Co(e.bounds):new ro(0,window.innerWidth-Rr(),0,window.innerHeight),l=xo(a,n,u,r),c=function(e,t,n){var r=-1*e.targetEdge,o=new ro(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},s=Io(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:So(r).positiveEdge,n);return i[Jr[r]]=uo(t,r),i[Jr[s]]=fo(t,o,s),{elementPosition:p({},i),closestEdge:wo(e.targetEdge,t,o),targetEdge:r}}(l,function(e,t){var n=t.targetRectangle,r=So(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,s=co(n,t.targetEdge),a=new ro(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new ro(0,e,0,e);return yo(u=bo(u=mo(u,-1*t.targetEdge,-e/2),-1*t.targetEdge,s-ho(o,t.elementRectangle)),a,o)?yo(u,a,i)||(u=go(u,a,i)):u=go(u,a,o),u}(i,l),u);return p(p({},function(e,t,n,r,o){return{elementPosition:function(e,t,n,r,o,i,s){var a={},u=Po(t),l=i?n:-1*n,c=Jr[l],p=o||So(n).positiveEdge;return s||(p=Io(e,p,r)),a[c]=fo(e,u,l),a[Jr[p]]=fo(e,u,p),a}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(l,t,u,e.coverTarget,o)),{beakPosition:c})}var Eo,ko=function(e){function t(t){var n=e.call(this,t)||this;return n._root=r.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case 27:n.props.onDismiss&&(n.props.onDismiss(e),e.preventDefault(),e.stopPropagation())}},n._onFocus=function(){n._containsFocus=!0},n._onBlur=function(e){n._root.current&&e.relatedTarget&&!_r(n._root.current,e.relatedTarget)&&(n._containsFocus=!1)},n._async=new Un(n),n.state={needsVerticalScrollBar:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=he().activeElement},t.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(to(this._root.current,"focus",this._onFocus,!0),to(this._root.current,"blur",this._onBlur,!0));var e=v(this._root.current);e&&this._disposables.push(to(e,"keydown",this._onKeyDown)),function(e){var t=he(e),n=t&&t.activeElement;return!(!n||!_r(e,n))}(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},t.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},t.prototype.componentWillUnmount=function(){var e;if(this._disposables.forEach(function(e){return e()}),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus;(void 0===t?Do:t)({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:(null===(e=he())||void 0===e?void 0:e.hasFocus())||!1})}delete this._originalFocusedElement},t.prototype.render=function(){var e=this.props,t=e.role,n=e.className,o=e.ariaLabel,i=e.ariaLabelledBy,s=e.ariaDescribedBy,a=e.style;return r.createElement("div",p({ref:this._root},De(this.props,ke),{className:n,role:t,"aria-label":o,"aria-labelledby":i,"aria-describedby":s,onKeyDown:this._onKeyDown,style:p({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},a)}),this.props.children)},t.prototype._updateScrollBarAsync=function(){var e=this;this._async.requestAnimationFrame(function(){e._getScrollBar()})},t.prototype._getScrollBar=function(){if(!this.props.style||!this.props.style.overflowY){var e=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,n=this._root.current.firstElementChild.clientHeight;t>0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(r.Component);function Do(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}var Mo=((Eo={})[Jr.top]=Tt.slideUpIn10,Eo[Jr.bottom]=Tt.slideDownIn10,Eo[Jr.left]=Tt.slideLeftIn10,Eo[Jr.right]=Tt.slideRightIn10,Eo),Ro=ve({disableCaching:!0}),Fo={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Bo=["role","aria-roledescription"],Lo=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=r.createRef(),n._calloutElement=r.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnScroll;n.state.positions&&(r&&!r(e)||!r&&!o)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnResize;(r&&!r(e)||!r&&!o)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnLostFocus;(r&&!r(e)||!r&&!o)&&n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame(function(){return!!(t=Ir(e=n._calloutElement.current,e,!0,!1,!1,!0))&&(function(e){if(e){if(Dr)return void(Dr=e);Dr=e;var t=v(e);t&&t.requestAnimationFrame(function(){var e=Dr;Dr=void 0,e&&(e.getAttribute&&"true"===e.getAttribute("data-is-focusable")&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())})}}(t),!0);var e,t},n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!r||r(e))&&(r||o)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new Un(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return c(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!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden||zn(this.props,e)&&zn(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(e){return e()})},t.prototype.UNSAFE_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(),this._didPositionPropsChange(e,this.props)&&(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,n=t.styles,o=t.style,i=t.ariaLabel,s=t.ariaDescribedBy,a=t.ariaLabelledBy,u=t.className,l=t.isBeakVisible,c=t.children,d=t.beakWidth,h=t.calloutWidth,f=t.calloutMaxWidth,m=t.finalHeight,g=t.hideOverflow,y=void 0===g?!!m:g,v=t.backgroundColor,b=t.calloutMaxHeight,_=t.onScroll,S=t.shouldRestoreFocus,I=void 0===S||S;e=this._getTarget();var w=this.state.positions,P=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,C=b&&P&&b0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var s={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,u=n;a=r&&o&&l.top<=o&&l.bottom>=o&&(s={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return s}(this._target,this._targetWindow)).top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}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,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame(function(){e._target&&(e._maxHeight=function(e,t,n,r,o){void 0===n&&(n=0);var i=e,s=e,a=e,u=r?Co(r):new ro(0,window.innerWidth-Rr(),0,window.innerHeight),l=a.left||a.x,c=a.top||a.y;return function(e,t,n,r,o){var i,s=io[t],a=o?-1*s.targetEdge:s.targetEdge;return(i=a===Jr.top?uo(e,s.targetEdge)-r.top-n:a===Jr.bottom?r.bottom-uo(e,s.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}(i.stopPropagation?new ro(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==l&&void 0!==c?new ro(l,l,c,c):Po(s),t,n,u,o)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())},this._target)}else this._maxHeight=this._getBounds().height;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 n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=he(t);this._target=n?n.querySelector(e):null,this._targetWindow=v(t)}else if(e.stopPropagation)this._targetWindow=v(e.target),this._target=e;else if(e.getBoundingClientRect){var r=e;this._targetWindow=v(r),this._target=r}else void 0!==e.current?(this._target=e.current,this._targetWindow=v(this._target)):(this._targetWindow=v(t),this._target=e);else this._targetWindow=v(t)},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 n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}function Qo(e,t,n){return function(o){var i,s=((i=function(i){function s(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return c(s,i),s.prototype.componentDidMount=function(){E.observe(this._onSettingChanged)},s.prototype.componentWillUnmount=function(){E.unobserve(this._onSettingChanged)},s.prototype.render=function(){var i=this;return r.createElement(k.Consumer,null,function(s){var a=E.getSettings(t,e,s.customizations),u=i.props;if(a.styles&&"function"==typeof a.styles&&(a.styles=a.styles(p(p({},a),u))),n&&a.styles){if(i._styleCache.default!==a.styles||i._styleCache.component!==u.styles){var l=m(a.styles,u.styles);i._styleCache.default=a.styles,i._styleCache.component=u.styles,i._styleCache.merged=l}return r.createElement(o,p({},a,u,{styles:i._styleCache.merged}))}return r.createElement(o,p({},a,u))})},s.prototype._onSettingChanged=function(){this.forceUpdate()},s}(r.Component)).displayName="Customized"+e,i);return Vr(o,s)}}var Jo,Zo,Yo={},$o=ve(),ei=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=r.createRef(),n._createLayerElement=function(){var e=n.props.hostId,t=he(n._rootRef.current),r=n._getHost();if(t&&r){n._removeLayerElement();var o=t.createElement("div"),i=n._getClassNames();o.className=i.root,o.setAttribute("data-portal-element","true"),Xo(o,n._rootRef.current),n.props.insertFirst?r.insertBefore(o,r.firstChild):r.appendChild(o),n.setState({hostId:e,layerElement:o},function(){var e=n.props,t=e.onLayerDidMount,r=e.onLayerMounted;r&&r(),t&&t()})}},n.state={},n}return c(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){Yo[e]||(Yo[e]=[]),Yo[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return r.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&o.createPortal(r.createElement(Go,p({},!n&&(Jo||(Jo={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return Jo[e]=ti})),Jo),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(Yo[e]){var n=Yo[e].indexOf(t);n>=0&&(Yo[e].splice(n,1),0===Yo[e].length&&delete Yo[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&Xo(t,null),e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return $o(n,{theme:r,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=he(this._rootRef.current);if(t)return e?t.getElementById(e):t.body},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},h([Qo("Layer",["theme","hostId"])],t)}(r.Component),ti=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},ni={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ri=M(ei,function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Vt(ni,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Mt.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}},void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=d(e,["layerProps"]),o=r.createElement(Ao,p({},n));return this.props.doNotLayer?o:r.createElement(ri,p({},t),o)},t}(r.Component),ii=function(e){var t=e.item,n=e.hasIcons,o=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):r.createElement(gr,p({},i,{className:o.icon})):null},si=function(e){var t=e.onCheckmarkClick,n=e.item,o=e.classNames,i=zr(n);return t?r.createElement(gr,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:o.checkmarkIcon,onClick:function(e){return t(n,e)}}):null},ai=function(e){var t=e.item,n=e.classNames;return t.text||t.name?r.createElement("span",{className:n.label},t.text||t.name):null},ui=function(e){var t=e.item,n=e.classNames;return t.secondaryText?r.createElement("span",{className:n.secondaryText},t.secondaryText):null},li=function(e){var t=e.item,n=e.classNames,o=e.theme;return Wr(t)?r.createElement(gr,p({iconName:me(o)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},ci=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();Wr(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;Wr(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},xn(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,o=t.onRenderContent||this._renderLayout;return r.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},o(this.props,{renderCheckMarkIcon:si,renderItemIcon:ii,renderItemName:ai,renderSecondaryText:ui,renderSubMenuIcon:li}))},t.prototype._renderLayout=function(e,t){return r.createElement(r.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(r.Component),pi=jt(function(e){return pe({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),di=kt(0,639),hi=jt(function(){var e;return{selectors:(e={},e[Et]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)}}),fi=jt(function(e){var t,n,r,o,i,s,a,u=e.semanticColors,l=e.fonts,c=e.palette,d=u.menuItemBackgroundHovered,h=u.menuItemTextHovered,f=u.menuItemBackgroundPressed,g=u.bodyDivider;return m({item:[l.medium,{color:u.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:g,position:"relative"},root:[Bt(e),l.medium,{color:u.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:u.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:p((t={},t[Et]={color:"GrayText",opacity:1},t),Dt())},rootHovered:p({backgroundColor:d,color:h,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},hi()),rootFocused:p({backgroundColor:c.white},hi()),rootChecked:p({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},hi()),rootPressed:p({backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},hi()),rootExpanded:p({backgroundColor:f,color:u.bodyTextChecked},hi()),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:36,fontSize:xt.medium,width:xt.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[di]={fontSize:xt.large,width:xt.large},n)},iconColor:{color:u.menuIcon,selectors:(r={},r[Et]={color:"inherit"},r["$root:hover &"]={selectors:(o={},o[Et]={color:"HighlightText"},o)},r["$root:focus &"]={selectors:(i={},i[Et]={color:"HighlightText"},i)},r)},iconDisabled:{color:u.disabledBodyText},checkmarkIcon:{color:u.bodySubtext,selectors:(s={},s[Et]={color:"HighlightText"},s)},subMenuIcon:{height:36,lineHeight:36,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:xt.small,selectors:(a={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}},a[di]={fontSize:xt.medium},a[Et]={color:"HighlightText"},a)},splitButtonFlexContainer:[Bt(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})}),mi=kt(0,639),gi=jt(function(e){var t;return pe(pi(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[mi]={right:32},t)},divider:{height:16,width:1}})}),yi={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",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},vi=jt(function(e,t,n,r,o,i,s,a,u,l,c,p){var d,h,f,m,g=fi(e),y=Vt(yi,e);return pe({item:[y.item,g.item,s],divider:[y.divider,g.divider,a],root:[y.root,g.root,r&&[y.isChecked,g.rootChecked],o&&g.anchorLink,n&&[y.isExpanded,g.rootExpanded],t&&[y.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(d={":hover":g.rootHovered,":active":g.rootPressed},d["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,d["."+Rt+" &:hover"]={background:"inherit;"},d)}],p],splitPrimary:[g.root,{width:"calc(100% - 28px)"},r&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!r&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ ."+y.splitMenu]=g.rootHovered,h[":active"]=g.rootPressed,h["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,h["."+Rt+" &:hover"]={background:"inherit;"},h)}]],splitMenu:[y.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(f={":hover":g.rootHovered,":active":g.rootPressed},f["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,f["."+Rt+" &:hover"]={background:"inherit;"},f)}]],anchorLink:g.anchorLink,linkContent:[y.linkContent,g.linkContent],linkContentMenu:[y.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[y.icon,i&&g.iconColor,g.icon,u,t&&[y.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[y.checkmarkIcon,i&&g.checkmarkIcon,g.icon,u],subMenuIcon:[y.subMenuIcon,g.subMenuIcon,l,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[y.label,g.label],secondaryText:[y.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(m={},m["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,m)}]],screenReaderText:[y.screenReaderText,g.screenReaderText,Lt,{visibility:"hidden"}]})}),bi=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,p=e.primaryDisabled,d=e.className;return vi(t,n,r,o,i,s,a,u,l,c,p,d)},_i=M(ci,bi,void 0,{scope:"ContextualMenuItem"}),Si=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubMenuId=function(e){var t=n.props.getSubMenuId;if(t)return t(e)},n._getSubmenuTarget=function(){},xn(n),n}return c(t,e),t.prototype.shouldComponentUpdate=function(e){return!zn(e,this.props)},t}(r.Component);!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Zo||(Zo={}));var Ii=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Zo.PERSISTED_KEYTIP_ADDED:Zo.KEYTIP_ADDED;Kn.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Kn.raise(this,Zo.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Zo.PERSISTED_KEYTIP_REMOVED:Zo.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Kn.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Kn.raise(this,Zo.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Kn.raise(this,Zo.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map(function(t){return e.keytips[t].keytip})},e.prototype.addParentOverflow=function(e){var t=f(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return p(p({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Kn.raise(this,Zo.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Fn()),{keytip:p({},e),uniqueID:t}},e._instance=new e,e}();function wi(e){return e.reduce(function(e,t){return e+"-"+t.split("").join("-")},"ktp")}var Pi=function(e){var t,n=e.children,o=function(e){var t,n,o,i,s=r.useRef(),a=e.keytipProps?p({disabled:e.disabled},e.keytipProps):void 0,u=(o=Ii.getInstance(),void 0===(i=r.useRef()).current&&(i.current={value:"function"==typeof o?o():o}),i.current.value);r.useEffect(function(){return a&&(s.current=u.register(a)),function(){a&&u.unregister(a,s.current)}},[]);var l=function(e){var t=Object(r.useRef)();return Object(r.useEffect)(function(){t.current=e}),t.current}(e);s.current&&a&&((null===(t=l)||void 0===t?void 0:t.keytipProps)!==e.keytipProps||(null===(n=l)||void 0===n?void 0:n.disabled)!==e.disabled)&&u.update(a,s.current);var c={ariaDescribedBy:void 0,keytipId:void 0};return a&&(c=function(e,t,n){var r=e.addParentOverflow(t),o=er(n,function(e){return e.length?" ktp-layer-id "+wi(e):" ktp-layer-id"}(r.keySequences)),i=f(r.keySequences);return r.overflowSetSequence&&(i=function(e,t){var n,r,o;return n=t.length-1,r=f(t).pop(),(o=f(e).slice()).splice(n,0,r),o}(i,r.overflowSetSequence)),{ariaDescribedBy:o,keytipId:wi(i)}}(u,a,e.ariaDescribedBy)),c}(d(e,["children"])),i=o.keytipId,s=o.ariaDescribedBy;return n(((t={})["data-ktp-target"]=i,t["data-ktp-execute-target"]=i,t["aria-describedby"]=s,t))},Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=r.createRef(),t._getMemoizedMenuButtonKeytipProps=jt(function(e){return p(p({},e),{hasMenu:!0})}),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?r.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,s=t.focusableElementIndex,a=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=void 0===c?_i:c,h=t.expandedMenuItemKey,f=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,y=t.dismissMenu,v=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var b=this._getSubMenuId(n),_=Wr(n),S=De(n,xe),I=jr(n),w=n.itemProps,P=n.ariaDescription,C=n.keytipProps;return C&&_&&(C=this._getMemoizedMenuButtonKeytipProps(C)),P&&(this._ariaDescriptionId=Fn()),r.createElement("div",null,r.createElement(Pi,{keytipProps:n.keytipProps,ariaDescribedBy:S["aria-describedby"],disabled:I},function(t){return r.createElement("a",p({},S,t,{ref:e._anchor,href:n.href,target:n.target,rel:v,className:o.root,role:"menuitem","aria-owns":n.key===h?b:void 0,"aria-haspopup":_||void 0,"aria-expanded":_?n.key===h:void 0,"aria-posinset":s+1,"aria-setsize":a,"aria-disabled":jr(n),"aria-describedby":er(P?e._ariaDescriptionId:void 0,t?t["aria-describedby"]:void 0),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:_?e._onItemKeyDown:void 0}),r.createElement(d,p({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&f?f:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},w)),e._renderAriaDescription(P,o.screenReaderText))}))},t}(Si),xi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=r.createRef(),t._getMemoizedMenuButtonKeytipProps=jt(function(e){return p(p({},e),{hasMenu:!0})}),t._renderAriaDescription=function(e,n){return e?r.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,s=t.focusableElementIndex,a=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=void 0===c?_i:c,h=t.expandedMenuItemKey,f=t.onItemMouseDown,m=t.onItemClick,g=t.openSubMenu,y=t.dismissSubMenu,v=t.dismissMenu,b=this._getSubMenuId(n),_=zr(n),S=null!==_,I=Hr(n),w=Wr(n),P=n.itemProps,C=n.ariaLabel,x=n.ariaDescription,T=De(n,Te);delete T.disabled;var E=n.role||I;x&&(this._ariaDescriptionId=Fn());var k=x?this._ariaDescriptionId:void 0,D={className:o.root,onClick:this._onItemClick,onKeyDown:w?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return f?f(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":C,"aria-describedby":k,"aria-haspopup":w||void 0,"aria-owns":n.key===h?b:void 0,"aria-expanded":w?n.key===h:void 0,"aria-posinset":s+1,"aria-setsize":a,"aria-disabled":jr(n),"aria-checked":"menuitemcheckbox"!==E&&"menuitemradio"!==E||!S?void 0:!!_,"aria-selected":"menuitem"===E&&S?!!_:void 0,role:E,style:n.style},M=n.keytipProps;return M&&w&&(M=this._getMemoizedMenuButtonKeytipProps(M)),r.createElement(Pi,{keytipProps:M,ariaDescribedBy:T["aria-describedby"],disabled:jr(n)},function(t){return r.createElement("button",p({ref:e._btn},T,D,t,{"aria-describedby":er(D["aria-describedby"],t?t["aria-describedby"]:void 0)}),r.createElement(d,p({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&m?m:void 0,hasIcons:l,openSubMenu:g,dismissSubMenu:y,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},P)),e._renderAriaDescription(x,o.screenReaderText))})},t}(Si),Ti=ve(),Ei=function(e){var t=e.styles,n=e.theme,o=e.getClassNames,i=e.className,s=Ti(t,{theme:n,getClassNames:o,className:i});return r.createElement("span",{className:s.wrapper},r.createElement("span",{className:s.divider}))};Ei.displayName="VerticalDividerBase";var ki=M(Ei,function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},void 0,{scope:"VerticalDivider"}),Di=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=jt(function(e){return p(p({},e),{hasMenu:!0})}),n._renderAriaDescription=function(e,t){return e?r.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;13===e.which?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(p(p({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(p(p({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,i=t.onItemClick;if(!r.disabled&&!r.isDisabled)return n._processingTouch&&i?i(r,e):void(o&&o(r,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new Un(n),n._events=new Kn(n),n}return c(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,s=t.focusableElementIndex,a=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.onItemMouseLeave,d=t.expandedMenuItemKey,h=Wr(n),f=n.keytipProps;f&&(f=this._getMemoizedMenuButtonKeytipProps(f));var m=n.ariaDescription;return m&&(this._ariaDescriptionId=Fn()),r.createElement(Pi,{keytipProps:f,disabled:jr(n)},function(t){return r.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:Hr(n),"aria-label":n.ariaLabel,className:o.splitContainer,"aria-disabled":jr(n),"aria-expanded":h?n.key===d:void 0,"aria-haspopup":!0,"aria-describedby":er(m?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":s+1,"aria-setsize":a,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,p(p({},n),{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":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,o,i,u,l),e._renderSplitDivider(n),e._renderSplitIconButton(n,o,i,t),e._renderAriaDescription(m,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(e,t,n,o,i){var s=this.props,a=s.contextualMenuItemAs,u=void 0===a?_i:a,l=s.onItemClick,c={key:e.key,disabled:jr(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},d=e.itemProps;return r.createElement("button",p({},De(c,Te)),r.createElement(u,p({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:o&&l?l:void 0,hasIcons:i},d)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||gi;return r.createElement(ki,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,o){var i=this.props,s=i.contextualMenuItemAs,a=void 0===s?_i:s,u=i.onItemMouseLeave,l=i.onItemMouseDown,c=i.openSubMenu,d=i.dismissSubMenu,h=i.dismissMenu,f={onClick:this._onIconItemClick,disabled:jr(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},m=p(p({},De(f,Te)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.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":o["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return r.createElement("button",p({},m),r.createElement(a,p({componentRef:e.componentRef,item:f,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:d,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(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}(Si),Mi=ve(),Ri=ve();function Fi(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Bi=jt(function(){for(var e=[],t=0;t0){for(var z=0,W=0,j=o;W0?r.createElement("li",{role:"presentation",key:u.key||e.key||"section-"+n},r.createElement("div",p({},c),r.createElement("ul",{className:this._classNames.list},u.topDivider&&this._renderSeparator(n,t,!0,!0),l&&this._renderListItem(l,e.key||n,t,e.title),u.items.map(function(e,t){return a._renderMenuItem(e,t,t,u.items.length,o,i)}),u.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,o){return r.createElement("li",{role:"presentation",title:o,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,o){return o||e>0?r.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,r,o,i,s){return e.onRender?e.onRender(p({"aria-posinset":r+1,"aria-setsize":o},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,r,o,i,s):e.split&&Wr(e)?this._renderSplitButton(e,t,n,r,o,i,s):this._renderButtonItem(e,t,n,r,o,i,s)},t.prototype._renderHeaderMenuItem=function(e,t,n,o,i){var s=this.props.contextualMenuItemAs,a=void 0===s?_i:s,u=e.itemProps,l=e.id,c=u&&De(u,ke);return r.createElement("div",p({id:l,className:this._classNames.header},c,{style:e.style}),r.createElement(a,p({item:e,classNames:t,index:n,onCheckmarkClick:o?this._onItemClick:void 0,hasIcons:i},u)))},t.prototype._renderAnchorMenuItem=function(e,t,n,o,i,s,a){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Ci,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:s,hasIcons:a,contextualMenuItemAs:u,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,n,o,i,s,a){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(xi,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:s,hasIcons:a,contextualMenuItemAs:u,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,n,o,i,s,a){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Di,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:s,hasIcons:a,contextualMenuItemAs:u,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 18===e.which||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var r=this,o=n||t.currentTarget,i=this.props.subMenuHoverDelay,s=void 0===i?250:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&o.focus(),Wr(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){o.focus(),r.setState({expandedByMouseClick:!0}),r._onItemSubMenuExpand(e,o),r._enterTimerId=void 0},s)):this._enterTimerId=this._async.setTimeout(function(){r._onSubMenuDismiss(t),o.focus(),r._enterTimerId=void 0},s))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,r=this._findItemByKey(n),o=null;return r&&(o={items:Fi(r),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:me(this.props.theme)?8:11,className:this.props.className,gapSpace:0,isBeakVisible:!1},r.subMenuProps&&Wn(o,r.subMenuProps)),o},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,r=t;n *":{position:"relative",left:0,top:0}}}],rootDisabled:[Bt(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:a,borderColor:a,color:u,cursor:"default",pointerEvents:"none",selectors:{":hover":qi,":focus":qi}}],iconDisabled:{color:u,selectors:(t={},t[Et]={color:"GrayText"},t)},menuIconDisabled:{color:u,selectors:(n={},n[Et]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Vi(i.mediumPlus.fontSize),menuIcon:Vi(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Lt}}),Xi=jt(function(e,t){var n,r,o,i,s,a,u,l,c,d,h,f,g=e.effects,y=e.palette,v=e.semanticColors,b={position:"absolute",width:1,right:31,top:8,bottom:8};return m({splitButtonContainer:[Bt(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[Et]={color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0",MsHighContrastAdjust:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[Et]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Et]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:v.buttonTextDisabled,selectors:(i={},i[Et]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(s={},s[Et]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},s)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(a={},a[Et]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},a)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:g.roundedCorner2,borderBottomRightRadius:g.roundedCorner2,border:"1px solid "+y.neutralSecondaryAlt,borderLeft:"none",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:p(p({},b),{selectors:(u={},u[Et]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:p(p({},b),{selectors:(l={},l[Et]={backgroundColor:"GrayText"},l)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(c={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(d={},d[Et]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)},".ms-Button-menuIcon":{selectors:(h={},h[Et]={color:"GrayText"},h)}},c[Et]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},c)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:p((f={},f[Et]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f),Dt())}},t)}),Qi=jt(function(e,t){var n,r=Gi(e),o=Xi(e),i=e.palette;return m(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Et]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},o,t)}),Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return r.createElement(Ki,p({},this.props,{variantClassName:"ms-Button--icon",styles:Qi(n,t),onRenderText:Vn,onRenderDescription:Vn}))},h([Qo("IconButton",["theme","styles"],!0)],t)}(r.Component);!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(Ai||(Ai={}));var Zi,Yi,$i,es,ts=ve(),ns=function(e){function t(t){var n,r=e.call(this,t)||this;return r.ICON_MAP=((n={})[Ai.info]="Info",n[Ai.warning]="Info",n[Ai.error]="ErrorBadge",n[Ai.blocked]="Blocked2",n[Ai.severeWarning]="Warning",n[Ai.success]="Completed",n),r._getRegionProps=function(){var e=!!r._getActionsDiv()||!!r._getDismissDiv(),t={"aria-describedby":r.state.labelId,role:"region"};return e?t:{}},r._onClick=function(e){r.setState({expandSingleLine:!r.state.expandSingleLine})},xn(r),r.state={labelId:Fn("MessageBar"),showContent:!1,expandSingleLine:!1},r}return c(t,e),t.prototype.render=function(){var e=this.props.isMultiline;return this._classNames=this._getClassNames(),e?this._renderMultiLine():this._renderSingleLine()},t.prototype._getActionsDiv=function(){return this.props.actions?r.createElement("div",{className:this._classNames.actions},this.props.actions):null},t.prototype._getDismissDiv=function(){var e=this.props,t=e.onDismiss,n=e.dismissIconProps;return t?r.createElement(Ji,{disabled:!1,className:this._classNames.dismissal,onClick:t,iconProps:n||{iconName:"Clear"},title:this.props.dismissButtonAriaLabel,ariaLabel:this.props.dismissButtonAriaLabel}):null},t.prototype._getDismissSingleLine=function(){return this.props.onDismiss?r.createElement("div",{className:this._classNames.dismissSingleLine},this._getDismissDiv()):null},t.prototype._getExpandSingleLine=function(){return!this.props.actions&&this.props.truncated?r.createElement("div",{className:this._classNames.expandSingleLine},r.createElement(Ji,{disabled:!1,className:this._classNames.expand,onClick:this._onClick,iconProps:{iconName:this.state.expandSingleLine?"DoubleChevronUp":"DoubleChevronDown"},ariaLabel:this.props.overflowButtonAriaLabel,"aria-expanded":this.state.expandSingleLine})):null},t.prototype._getIconSpan=function(){var e=this.props.messageBarIconProps;return r.createElement("div",{className:this._classNames.iconContainer,"aria-hidden":!0},e?r.createElement(gr,p({},e,{className:Ln(this._classNames.icon,e.className)})):r.createElement(gr,{iconName:this.ICON_MAP[this.props.messageBarType],className:this._classNames.icon}))},t.prototype._renderMultiLine=function(){return r.createElement("div",p({className:this._classNames.root},this._getRegionProps()),r.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getDismissDiv()),this._getActionsDiv())},t.prototype._renderSingleLine=function(){return r.createElement("div",p({className:this._classNames.root},this._getRegionProps()),r.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getExpandSingleLine(),this._getActionsDiv(),this._getDismissSingleLine()))},t.prototype._renderInnerText=function(){var e=De(this.props,Pe,["className"]);return r.createElement("div",{className:this._classNames.text,id:this.state.labelId,role:"status","aria-live":this._getAnnouncementPriority()},r.createElement("span",p({className:this._classNames.innerText},e),r.createElement(Me,null,r.createElement("span",null,this.props.children))))},t.prototype._getClassNames=function(){var e=this.props,t=e.theme,n=e.className,r=e.messageBarType,o=e.onDismiss,i=e.actions,s=e.truncated,a=e.isMultiline,u=this.state.expandSingleLine;return ts(this.props.styles,{theme:t,messageBarType:r||Ai.info,onDismiss:void 0!==o,actions:void 0!==i,truncated:s,isMultiline:a,expandSingleLine:u,className:n})},t.prototype._getAnnouncementPriority=function(){switch(this.props.messageBarType){case Ai.blocked:case Ai.error:case Ai.severeWarning:return"assertive"}return"polite"},t.defaultProps={messageBarType:Ai.info,onDismiss:void 0,isMultiline:!0},t}(r.Component),rs={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},os=((Zi={})[Ai.error]="errorBackground",Zi[Ai.blocked]="errorBackground",Zi[Ai.success]="successBackground",Zi[Ai.warning]="warningBackground",Zi[Ai.severeWarning]="severeWarningBackground",Zi[Ai.info]="infoBackground",Zi),is=((Yi={})[Ai.error]="rgba(255, 0, 0, 0.3)",Yi[Ai.blocked]="rgba(255, 0, 0, 0.3)",Yi[Ai.success]="rgba(48, 241, 73, 0.3)",Yi[Ai.warning]="rgba(255, 254, 57, 0.3)",Yi[Ai.severeWarning]="rgba(255, 0, 0, 0.3)",Yi[Ai.info]="Window",Yi),ss=(($i={})[Ai.error]="errorIcon",$i[Ai.blocked]="errorIcon",$i[Ai.success]="successIcon",$i[Ai.warning]="warningIcon",$i[Ai.severeWarning]="severeWarningIcon",$i[Ai.info]="infoIcon",$i),as=M(ns,function(e){var t,n,r,o,i,s=e.theme,a=e.className,u=e.onDismiss,l=e.truncated,c=e.isMultiline,d=e.expandSingleLine,h=e.messageBarType,f=void 0===h?Ai.info:h,m=s.semanticColors,g=s.fonts,y=kt(0,479),v=Vt(rs,s),b={fontSize:xt.xSmall,height:10,lineHeight:"10px",color:m.messageText,selectors:(t={},t[Et]={MsHighContrastAdjust:"none",color:"WindowText"},t)},_=[Bt(s,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":b,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[v.root,g.medium,f===Ai.error&&v.error,f===Ai.blocked&&v.blocked,f===Ai.severeWarning&&v.severeWarning,f===Ai.success&&v.success,f===Ai.warning&&v.warning,c?v.multiline:v.singleline,!c&&u&&v.dismissalSingleLine,!c&&l&&v.expandingSingleLine,{background:m[os[f]],color:m.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:m.messageLink,selectors:{":hover":{color:m.messageLinkHovered}}}},n[Et]={MsHighContrastAdjust:"none",background:is[f],border:"1px solid WindowText",color:"WindowText"},n)},c&&{flexDirection:"column"},a],content:[v.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[v.iconContainer,{fontSize:xt.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:m[ss[f]],selectors:(r={},r[Et]={MsHighContrastAdjust:"none",color:"WindowText"},r)},text:[v.text,p(p({minWidth:0,display:"flex",flexGrow:1,margin:8},g.small),{selectors:(o={},o[Et]={MsHighContrastAdjust:"none"},o)}),!u&&{marginRight:12}],innerText:[v.innerText,{lineHeight:16,selectors:{"& span a":{paddingLeft:4}}},l&&{overflow:"visible",whiteSpace:"pre-wrap"},!c&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!c&&!l&&{selectors:(i={},i[y]={overflow:"visible",whiteSpace:"pre-wrap"},i)},d&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:v.dismissSingleLine,expandSingleLine:v.expandSingleLine,dismissal:[v.dismissal,_],expand:[v.expand,_],actions:[c?v.actions:v.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},c&&{marginBottom:8},u&&!c&&{marginRight:0}]}},void 0,{scope:"MessageBar"});!function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(es||(es={}));var us,ls=jt(function(e,t,n){var r=Gi(e),o=m(r,n);return p(p({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})}),cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,o=d(e,["className","styles"]),i=ls(this.props.theme,t,n);return r.createElement(Ki,p({},o,{variantClassName:"ms-Button--facepile",styles:i,onRenderDescription:Vn}))},h([Qo("FacepileButton",["theme","styles"],!0)],t)}(r.Component);!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(us||(us={}));var ps,ds=ve(),hs=M(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return r.createElement("p",{className:t._classNames.subText},e.content)},t}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,o=e.directionalHint,i=e.directionalHintForRTL,s=e.styles,a=e.id,u=e.maxWidth,l=e.onRenderContent,c=void 0===l?this._onRenderContent:l,d=e.targetElement,h=e.theme;return this._classNames=ds(s,{theme:h,className:t||n&&n.className,beakWidth:n&&n.beakWidth,gapSpace:n&&n.gapSpace,maxWidth:u}),r.createElement(oi,p({target:d,directionalHint:o,directionalHintForRTL:i},n,De(this.props,ke,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:a,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},c(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:1,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(r.Component),function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,s=e.maxWidth,a=e.theme,u=a.semanticColors,l=a.fonts,c=a.effects,p=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,Tt.fadeIn200,{background:u.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:p,left:p,right:p,top:p,zIndex:0}}},t],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:u.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(ps||(ps={}));var fs,ms,gs,ys,vs,bs,_s,Ss=ve(),Is=function(e){function t(n){var o=e.call(this,n)||this;return o._tooltipHost=r.createRef(),o._defaultTooltipId=Fn("tooltip"),o.show=function(){o._toggleTooltip(!0)},o.dismiss=function(){o._hideTooltip()},o._getTargetElement=function(){if(o._tooltipHost.current){var e=o.props.overflowMode;if(void 0!==e)switch(e){case us.Parent:return o._tooltipHost.current.parentElement;case us.Self:return o._tooltipHost.current}return o._tooltipHost.current}},o._onTooltipMouseEnter=function(e){var n,r=o.props,i=r.overflowMode,s=r.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==o&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=o,void 0!==i){var a=o._getTargetElement();if(a&&!function(e){return e.clientWidth32),p=t?t/3<40?t/3+"px":"40px":"",d=t?{fontSize:t?t/6<20?t/6+"px":"20px":"",lineHeight:p}:void 0,h=t?{width:p,height:p}:void 0,f=Fs(o,{theme:s,presence:i,size:this.props.size,isOutOfOffice:n,presenceColors:u});return i===ms.none?null:r.createElement("div",{role:"presentation",className:f.presence,style:h,title:a},c&&this._onRenderIcon(f.presenceIcon,d))},t}(r.Component);function Ls(e,t){if(e){switch(ms[e]){case"online":return"SkypeCheck";case"away":return t?"SkypeArrow":"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?"SkypeArrow":""}return""}}var Os={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function Ns(e){return{color:e,borderColor:e}}function As(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function Us(e){return{height:e,width:e}}function zs(e){return{backgroundColor:e}}var Ws=M(Bs,function(e){var t,n,r,o,i,s,a=e.theme,u=e.presenceColors,l=a.semanticColors,c=a.fonts,p=Vt(Os,a),d=Ds(e.size),h=Rs(e.presence),f=u&&u.available||"#6BB700",m=u&&u.away||"#FFAA44",g=u&&u.busy||"#C43148",y=u&&u.dnd||"#C50F1F",v=u&&u.offline||"#8A8886",b=u&&u.oof||"#B4009E",_=u&&u.background||l.bodyBackground,S=h.isOffline||e.isOutOfOffice&&(h.isAvailable||h.isBusy||h.isAway||h.isDoNotDisturb),I=d.isSize72||d.isSize100?"2px":"1px";return{presence:[p.presence,{position:"absolute",height:_s.size12,width:_s.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+_,textAlign:"center",boxSizing:"content-box",backgroundClip:"content-box",MsHighContrastAdjust:"none",selectors:(t={},t[Et]={borderColor:"Window",backgroundColor:"WindowText"},t)},(d.isSize8||d.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(n={},n[Et]={top:"9px",border:"1px solid WindowText"},n)},(d.isSize8||d.isSize10||d.isSize24||d.isSize28||d.isSize32)&&Us(_s.size8),(d.isSize40||d.isSize48)&&Us(_s.size12),d.isSize16&&{height:_s.size6,width:_s.size6,borderWidth:"1.5px"},d.isSize56&&Us(_s.size16),d.isSize72&&Us(_s.size20),d.isSize100&&Us(_s.size28),d.isSize120&&Us(_s.size32),h.isAvailable&&{backgroundColor:f,selectors:(r={},r[Et]=zs("Highlight"),r)},h.isAway&&zs(m),h.isBlocked&&[{selectors:(o={":after":d.isSize40||d.isSize48||d.isSize72||d.isSize100?{content:'""',width:"100%",height:I,backgroundColor:g,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[Et]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],h.isBusy&&zs(g),h.isDoNotDisturb&&zs(y),h.isOffline&&zs(v),(S||h.isBlocked)&&[{backgroundColor:_,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:I+" solid "+g,borderRadius:"50%",boxSizing:"border-box"}},i[Et]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],S&&h.isAvailable&&As(I,f),S&&h.isBusy&&As(I,g),S&&h.isAway&&As(I,b),S&&h.isDoNotDisturb&&As(I,y),S&&h.isOffline&&As(I,v),S&&h.isOffline&&e.isOutOfOffice&&As(I,b)],presenceIcon:[p.presenceIcon,{color:_,fontSize:"6px",lineHeight:_s.size12,verticalAlign:"top",selectors:(s={},s[Et]={color:"Window"},s)},d.isSize56&&{fontSize:"8px",lineHeight:_s.size16},d.isSize72&&{fontSize:c.small.fontSize,lineHeight:_s.size20},d.isSize100&&{fontSize:c.medium.fontSize,lineHeight:_s.size28},d.isSize120&&{fontSize:c.medium.fontSize,lineHeight:_s.size32},h.isAway&&{position:"relative",left:S?void 0:"1px"},S&&h.isAvailable&&Ns(f),S&&h.isBusy&&Ns(g),S&&h.isAway&&Ns(b),S&&h.isDoNotDisturb&&Ns(y),S&&h.isOffline&&Ns(v),S&&h.isOffline&&e.isOutOfOffice&&Ns(b)]}},void 0,{scope:"PersonaPresence"}),js=[gs.lightBlue,gs.blue,gs.darkBlue,gs.teal,gs.green,gs.darkGreen,gs.lightPink,gs.pink,gs.magenta,gs.purple,gs.orange,gs.lightRed,gs.darkRed,gs.violet,gs.gold,gs.burgundy,gs.warmGray,gs.cyan,gs.rust,gs.coolGray],Hs=js.length,Ks=ve({cacheSize:100}),qs=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderCoin=function(e){var t=n.props,o=t.coinSize,i=t.styles,s=t.imageUrl,a=t.imageAlt,u=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,p=t.showUnknownPersonaCoin;if(!s)return null;var d=n.props.size,h=Ks(i,{theme:c,size:d,showUnknownPersonaCoin:p}),f=o||Ms[d];return r.createElement(pr,{className:h.image,imageFit:rr.cover,src:s,width:f,height:f,alt:a,shouldFadeIn:u,shouldStartVisible:l,onLoadingStateChange:n._onPhotoLoadingStateChange})},n._onRenderInitials=function(e){var t=e.imageInitials,o=e.allowPhoneInitials;if(e.showUnknownPersonaCoin)return r.createElement(gr,{iconName:"Help"});var i=me(n.props.theme);return""!==(t=t||function(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(Cs,"")).replace(xs,"")).replace(Es," ")).trim()}(e),ks.test(e)||!n&&Ts.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}(n._getText(),i,o))?r.createElement("span",null,t):r.createElement(gr,{iconName:"Contact"})},n._onPhotoLoadingStateChange=function(e){n.setState({isImageLoaded:e===ir.loaded,isImageError:e===ir.error}),n.props.onPhotoLoadingStateChange&&n.props.onPhotoLoadingStateChange(e)},n.state={isImageLoaded:!1,isImageError:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.imageUrl!==this.props.imageUrl&&this.setState({isImageLoaded:!1,isImageError:!1})},t.prototype.render=function(){var e,t,n,o,i=this.props,s=i.className,a=i.coinProps,u=i.showUnknownPersonaCoin,l=i.coinSize,c=i.styles,d=i.imageUrl,h=i.isOutOfOffice,f=i.onRenderCoin,m=void 0===f?this._onRenderCoin:f,g=i.onRenderPersonaCoin,y=void 0===g?m:g,v=i.onRenderInitials,b=void 0===v?this._onRenderInitials:v,_=i.presence,S=i.presenceTitle,I=i.presenceColors,w=i.showInitialsUntilImageLoads,P=i.theme,C=this.props.size,x=De(this.props,ke),T=De(a||{},ke),E=l?{width:l,height:l}:void 0,k=u,D={coinSize:l,isOutOfOffice:h,presence:_,presenceTitle:S,presenceColors:I,size:C,theme:P},M=Ks(c,{theme:P,className:a&&a.className?a.className:s,size:C,coinSize:l,showUnknownPersonaCoin:u}),R=Boolean(!this.state.isImageLoaded&&(w&&d||!d||this.state.isImageError||k));return r.createElement("div",p({role:"presentation"},x,{className:M.coin}),C!==fs.size8&&C!==fs.size10&&C!==fs.tiny?r.createElement("div",p({role:"presentation"},T,{className:M.imageArea,style:E}),R&&r.createElement("div",{className:Be(M.initials,!u&&{backgroundColor:(e=this.props,t=e.primaryText,n=e.text,o=e.initialsColor,"string"==typeof o?o:function(e){switch(e){case gs.lightBlue:return"#4F6BED";case gs.blue:return"#0078D4";case gs.darkBlue:return"#004E8C";case gs.teal:return"#038387";case gs.lightGreen:case gs.green:return"#498205";case gs.darkGreen:return"#0B6A0B";case gs.lightPink:return"#C239B3";case gs.pink:return"#E3008C";case gs.magenta:return"#881798";case gs.purple:return"#5C2E91";case gs.orange:return"#CA5010";case gs.red:return"#EE1111";case gs.lightRed:return"#D13438";case gs.darkRed:return"#A4262C";case gs.transparent:return"transparent";case gs.violet:return"#8764B8";case gs.gold:return"#986F0B";case gs.burgundy:return"#750B1C";case gs.warmGray:return"#7A7574";case gs.cyan:return"#005B70";case gs.rust:return"#8E562E";case gs.coolGray:return"#69797E";case gs.black:return"#1D1D1D";case gs.gray:return"#393939"}}(o=void 0!==o?o:function(e){var t=gs.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),i=r%8;n^=(o<>8-i)}return js[n%Hs]}(n||t)))}),style:E,"aria-hidden":"true"},b(this.props,this._onRenderInitials)),!k&&y(this.props,this._onRenderCoin),r.createElement(Ws,p({},D))):this.props.presence?r.createElement(Ws,p({},D)):r.createElement(gr,{iconName:"Contact",className:M.size10WithoutPresenceIcon}),this.props.children)},t.prototype._getText=function(){return this.props.text||this.props.primaryText||""},t.defaultProps={size:fs.size48,presence:ms.none,imageAlt:""},t}(r.Component),Vs={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",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",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},Gs=M(qs,function(e){var t,n=e.className,r=e.theme,o=e.coinSize,i=r.palette,s=r.fonts,a=Ds(e.size),u=Vt(Vs,r),l=o||e.size&&Ms[e.size]||48;return{coin:[u.coin,s.medium,a.isSize8&&u.size8,a.isSize10&&u.size10,a.isSize16&&u.size16,a.isSize24&&u.size24,a.isSize28&&u.size28,a.isSize32&&u.size32,a.isSize40&&u.size40,a.isSize48&&u.size48,a.isSize56&&u.size56,a.isSize72&&u.size72,a.isSize100&&u.size100,a.isSize120&&u.size120,n],size10WithoutPresenceIcon:{fontSize:s.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[u.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:l,width:l},l<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[u.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:[u.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":i.white,fontSize:s.large.fontSize,fontWeight:Ct.semibold,lineHeight:48===l?46:l,height:l,selectors:(t={},t[Et]={border:"1px solid WindowText",MsHighContrastAdjust:"none",color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"},t.i={fontWeight:Ct.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},l<32&&{fontSize:s.xSmall.fontSize},l>=32&&l<40&&{fontSize:s.medium.fontSize},l>=40&&l<56&&{fontSize:s.mediumPlus.fontSize},l>=56&&l<72&&{fontSize:s.xLarge.fontSize},l>=72&&l<100&&{fontSize:s.xxLarge.fontSize},l>=100&&{fontSize:s.superLarge.fontSize}]}},void 0,{scope:"PersonaCoin"}),Xs=ve(),Qs=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderPersonaCoin=function(e){return r.createElement(Gs,p({},e))},n}return c(t,e),t.prototype.render=function(){var e=this._onRenderText(this._getText()),t=this._onRenderText(this.props.secondaryText),n=this._onRenderText(this.props.tertiaryText),o=this._onRenderText(this.props.optionalText),i=this.props,s=i.hidePersonaDetails,a=i.onRenderOptionalText,u=void 0===a?o:a,l=i.onRenderPrimaryText,c=void 0===l?e:l,d=i.onRenderSecondaryText,h=void 0===d?t:d,f=i.onRenderTertiaryText,m=void 0===f?n:f,g=i.onRenderPersonaCoin,y=void 0===g?this._onRenderPersonaCoin:g,v=this.props.size,b=this.props,_=b.allowPhoneInitials,S=b.className,I=b.coinProps,w=b.showUnknownPersonaCoin,P=b.coinSize,C=b.styles,x=b.imageAlt,T=b.imageInitials,E=b.imageShouldFadeIn,k=b.imageShouldStartVisible,D=b.imageUrl,M=b.initialsColor,R=b.isOutOfOffice,F=b.onPhotoLoadingStateChange,B=b.onRenderCoin,L=b.onRenderInitials,O=b.presence,N=b.presenceTitle,A=b.presenceColors,U=b.showInitialsUntilImageLoads,z=b.showSecondaryText,W=b.theme,j=p({allowPhoneInitials:_,showUnknownPersonaCoin:w,coinSize:P,imageAlt:x,imageInitials:T,imageShouldFadeIn:E,imageShouldStartVisible:k,imageUrl:D,initialsColor:M,onPhotoLoadingStateChange:F,onRenderCoin:B,onRenderInitials:L,presence:O,presenceTitle:N,showInitialsUntilImageLoads:U,size:v,text:this._getText(),isOutOfOffice:R,presenceColors:A},I),H=Xs(C,{theme:W,className:S,showSecondaryText:z,presence:O,size:v}),K=De(this.props,ke),q=r.createElement("div",{className:H.details},this._renderElement(H.primaryText,c,e),this._renderElement(H.secondaryText,h,t),this._renderElement(H.tertiaryText,m,n),this._renderElement(H.optionalText,u,o),this.props.children);return r.createElement("div",p({},K,{className:H.root,style:P?{height:P,minWidth:P}:void 0}),y(j,this._onRenderPersonaCoin),(!s||v===fs.size8||v===fs.size10||v===fs.tiny)&&q)},t.prototype._renderElement=function(e,t,n){return r.createElement("div",{dir:"auto",className:e},t&&t(this.props,n))},t.prototype._getText=function(){return this.props.text||this.props.primaryText||""},t.prototype._onRenderText=function(e){return e?function(){return r.createElement(Ps,{content:e,overflowMode:us.Parent,directionalHint:0},e)}:void 0},t.defaultProps={size:fs.size48,presence:ms.none,imageAlt:""},t}(r.Component),Js={root:"ms-Persona",size8:"ms-Persona--size8",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",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},Zs=M(Qs,function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,s=Vt(Js,r),a=Ds(e.size),u=Rs(e.presence),l={color:o.bodySubtext,fontWeight:Ct.regular,fontSize:i.small.fontSize};return{root:[s.root,r.fonts.medium,yn,{color:o.bodyText,position:"relative",height:vs.size48,minWidth:vs.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},a.isSize8&&[s.size8,{height:vs.size8,minWidth:vs.size8}],a.isSize10&&[s.size10,{height:vs.size10,minWidth:vs.size10}],a.isSize16&&[s.size16,{height:vs.size16,minWidth:vs.size16}],a.isSize24&&[s.size24,{height:vs.size24,minWidth:vs.size24}],a.isSize24&&n&&{height:"36px"},a.isSize28&&[s.size28,{height:vs.size28,minWidth:vs.size28}],a.isSize28&&n&&{height:"32px"},a.isSize32&&[s.size32,{height:vs.size32,minWidth:vs.size32}],a.isSize40&&[s.size40,{height:vs.size40,minWidth:vs.size40}],a.isSize48&&s.size48,a.isSize56&&[s.size56,{height:vs.size56,minWidth:vs.size56}],a.isSize72&&[s.size72,{height:vs.size72,minWidth:vs.size72}],a.isSize100&&[s.size100,{height:vs.size100,minWidth:vs.size100}],a.isSize120&&[s.size120,{height:vs.size120,minWidth:vs.size120}],u.isAvailable&&s.available,u.isAway&&s.away,u.isBlocked&&s.blocked,u.isBusy&&s.busy,u.isDoNotDisturb&&s.doNotDisturb,u.isOffline&&s.offline,t],details:[s.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(a.isSize8||a.isSize10)&&{paddingLeft:17},(a.isSize24||a.isSize28||a.isSize32)&&{padding:"0 8px"},(a.isSize40||a.isSize48)&&{padding:"0 12px"}],primaryText:[s.primaryText,vn,{color:o.bodyText,fontWeight:Ct.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:"16px",lineHeight:"16px",overflowX:"hidden"},(a.isSize8||a.isSize10)&&{fontSize:i.small.fontSize,lineHeight:vs.size8},a.isSize16&&{lineHeight:vs.size28},(a.isSize24||a.isSize28||a.isSize32||a.isSize40||a.isSize48)&&n&&{height:18},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&{fontSize:i.xLarge.fontSize},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&n&&{height:22}],secondaryText:[s.secondaryText,vn,l,(a.isSize8||a.isSize10||a.isSize16||a.isSize24||a.isSize28||a.isSize32)&&{display:"none"},n&&{display:"block",height:"16px",lineHeight:"16px",overflowX:"hidden"},a.isSize24&&n&&{height:18},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&{fontSize:i.medium.fontSize},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&n&&{height:18}],tertiaryText:[s.tertiaryText,vn,l,{display:"none",fontSize:i.medium.fontSize},(a.isSize72||a.isSize100||a.isSize120)&&{display:"block"}],optionalText:[s.optionalText,vn,l,{display:"none",fontSize:i.medium.fontSize},(a.isSize100||a.isSize120)&&{display:"block"}],textContent:[s.textContent,vn]}},void 0,{scope:"Persona"}),Ys=ve(),$s=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=Ys(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,o=t.getPersonaProps,i=t.personaSize;return r.createElement(Zs,p({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},o?o(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,o=t.getPersonaProps,i=t.personaSize;return r.createElement(Gs,p({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},o?o(e):null))},xn(n),n._ariaDescriptionId=Fn(),n}return c(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,o=t.maxDisplayablePersonas,i=t.personas,s=t.overflowPersonas,a=t.showAddButton,u=t.ariaLabel,l=this._classNames,c="number"==typeof o?Math.min(i.length,o):i.length;n&&!e&&(e=n);var p=s&&s.length>0,d=p?i:i.slice(0,c),h=(p?s:i.slice(c))||[];return r.createElement("div",{className:l.root},this.onRenderAriaDescription(),r.createElement("div",{className:l.itemContainer},a?this._getAddNewElement():null,r.createElement("ul",{className:l.members,"aria-label":u},this._onRenderVisiblePersonas(d,0===h.length&&1===i.length)),e?this._getOverflowElement(h):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&r.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t){var n=this,o=this.props,i=o.onRenderPersona,s=void 0===i?this._getPersonaControl:i,a=o.onRenderPersonaCoin,u=void 0===a?this._getPersonaCoinControl:a;return e.map(function(e,o){var i=t?s(e,n._getPersonaControl):u(e,n._getPersonaCoinControl);return r.createElement("li",{key:(t?"persona":"personaCoin")+"-"+o,className:n._classNames.member},e.onClick?n._getElementWithOnClickEvent(i,e,o):n._getElementWithoutOnClickEvent(i,e,o))})},t.prototype._getElementWithOnClickEvent=function(e,t,n){var o=t.keytipProps;return r.createElement(cs,p({},De(t,Te),this._getElementProps(t,n),{keytipProps:o,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n){return r.createElement("div",p({},De(t,Te),this._getElementProps(t,n)),e)},t.prototype._getElementProps=function(e,t){var n=this._classNames;return{key:(e.imageUrl?"i":"")+t,"data-is-focusable":!0,className:n.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 es.descriptive:return this._getDescriptiveOverflowElement(e);case es.downArrow:return this._getIconElement("ChevronDown");case es.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 n=e.map(function(e){return e.personaName}).join(", "),o=p({title:n},this.props.overflowButtonProps),i=Math.max(e.length,0),s=this._classNames;return r.createElement(cs,p({},o,{ariaDescription:o.title,className:s.descriptiveOverflowButton}),r.createElement(Gs,{size:t,onRenderInitials:this._renderInitialsNotPictured(i),initialsColor:gs.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,o=t.personaSize,i=this._classNames;return r.createElement(cs,p({},n,{className:i.overflowButton}),r.createElement(Gs,{size:o,onRenderInitials:this._renderInitials(e,!0),initialsColor:gs.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,o=this._classNames;return r.createElement(cs,p({},t,{className:o.addButton}),r.createElement(Gs,{size:n,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 n=this._classNames;return function(){return r.createElement(gr,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return r.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:fs.size32},t}(r.Component),ea={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"},ta=M($s,function(e){var t=e.className,n=e.theme,r=e.spacingAroundItemButton,o=void 0===r?2:r,i=n.palette,s=n.fonts,a=Vt(ea,n),u={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[a.root,n.fonts.medium,{width:"auto"},t],addButton:[a.addButton,Bt(n,{inset:-1}),u,{fontSize:s.medium.fontSize,color:i.white,backgroundColor:i.themePrimary,marginRight:2*o+"px",selectors:{"&:hover":{backgroundColor:i.themeDark},"&:focus":{backgroundColor:i.themeDark},"&:active":{backgroundColor:i.themeDarker},"&:disabled":{backgroundColor:i.neutralTertiaryAlt}}}],descriptiveOverflowButton:[a.descriptiveOverflowButton,Bt(n,{inset:-1}),u,{fontSize:s.small.fontSize,color:i.neutralSecondary,backgroundColor:i.neutralLighter,marginLeft:2*o+"px"}],itemButton:[a.itemButton,u],itemContainer:[a.itemContainer,{display:"flex"}],members:[a.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-"+o+"px"}],member:[a.member,{display:"inline-flex",flex:"0 0 auto",margin:o+"px"}],overflowButton:[a.overflowButton,Bt(n,{inset:-1}),u,{fontSize:s.medium.fontSize,color:i.neutralSecondary,backgroundColor:i.neutralLighter,marginLeft:2*o+"px"}],overflowInitialsIcon:[{color:i.neutralPrimary}],screenReaderOnly:Lt}},void 0,{scope:"Facepile"}),na=function(e,t){return(na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oa=function(){return(oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function sa(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})}function aa(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function la(e,t){for(var n=0,r=t.length,o=e.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}Object.create,Object.create;var Ea=["defaultCachingStore","defaultCachingTimeoutSeconds","globalCacheDisable","enableCacheExpiration","cacheExpirationIntervalMilliseconds","spfxContext","ie11"],ka=[],Da=function(){function e(e){var t=this;void 0===e&&(e=new Map),this._v=e;var n=function(e,n){t._v.has(e)||t._v.set(e,n)};n(Ea[0],"session"),n(Ea[1],60),n(Ea[2],!1),n(Ea[3],!1),n(Ea[4],750),n(Ea[5],null),n(Ea[6],!1),ka.forEach(function(e){return e(t)})}return e.prototype.assign=function(e){var t;this._v=function(e){for(var t=[],n=1;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._v),o=r.next();!o.done;o=r.next()){var i=Ta(o.value,2),s=i[0],a=i[1];"__isDefault__"!==s&&n.set(s,a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e}(),Ma=new Da(new Map([["__isDefault__",!0]])),Ra=n("lC+Z");function Fa(e,t){ma(t)&&new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}function Ba(e,t){if(ma(t)){var n=ya(e.headers||{},t.headers);(e=ya(e,t)).headers=n}}var La=function(){function e(){}return e.prototype.fetch=function(e,t){return Ra.a.fetch(e,t)},e}(),Oa=(function(e){function t(t){var n=e.call(this,function(e){return Ca(n,void 0,void 0,function(){return xa(this,function(n){switch(n.label){case 0:return[4,t.aadTokenProviderFactory.getTokenProvider()];case 1:return[2,n.sent().getToken((r=e.url,o=new URL(r),o.protocol+"//"+o.hostname))]}var r,o})})})||this;return n.context=t,n}Pa(t,e),t.prototype.getToken=function(e){return Ca(this,void 0,void 0,function(){return xa(this,function(t){switch(t.label){case 0:return[4,this.context.aadTokenProviderFactory.getTokenProvider()];case 1:return[2,t.sent().getToken(e)]}})})}}(function(e){function t(t){var n=e.call(this,null)||this;return n.tokenFactory=t,n}return Pa(t,e),t.prototype.fetch=function(t,n){return Ca(this,void 0,void 0,function(){var r;return xa(this,function(o){switch(o.label){case 0:return r=this,[4,this.tokenFactory({url:t,options:n})];case 1:return r.token=o.sent(),[2,e.prototype.fetch.call(this,t,n)]}})})},t}(function(e){function t(t){var n=e.call(this)||this;return n.token=t,n}return Pa(t,e),t.prototype.fetch=function(t,n){void 0===n&&(n={});var r=new Headers;return Fa(r,n.headers),r.set("Authorization","Bearer "+this.token),n.headers=r,e.prototype.fetch.call(this,t,n)},t}(La))),function(){function e(e,t){void 0===t&&(t=-1),this.store=e,this.defaultTimeoutMinutes=t,this.enabled=this.test(),Ma.get("enableCacheExpiration")&&this.cacheExpirationHandler()}return e.bind=function(t){return new e(void 0===t?new Na:t)},e.prototype.get=function(e){if(!this.enabled)return null;var t=this.store.getItem(e);if(!ma(t))return null;var n=JSON.parse(t);return new Date(n.expiration)<=new Date?(this.delete(e),null):n.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){return Ca(this,void 0,void 0,function(){var r;return xa(this,function(o){switch(o.label){case 0:return this.enabled?null!==(r=this.get(e))?[3,2]:[4,t()]:[2,t()];case 1:r=o.sent(),this.put(e,r,n),o.label=2;case 2:return[2,r]}})})},e.prototype.deleteExpired=function(){return Ca(this,void 0,void 0,function(){var e,t;return xa(this,function(n){switch(n.label){case 0:if(!this.enabled)return[2];e=0,n.label=1;case 1:return e0&&(n=60*this.defaultTimeoutMinutes),t=pa(new Date,"second",n)}return _a({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;this.enabled&&this.deleteExpired().then(function(){setTimeout(ca(e,e.cacheExpirationHandler),Ma.get("cacheExpirationIntervalMilliseconds"))}).catch(console.error)},e}()),Na=function(){function e(e){void 0===e&&(e=new Map),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.size},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return Array.from(this._store)[e][0]},e.prototype.removeItem=function(e){this._store.delete(e)},e.prototype.setItem=function(e,t){this._store.set(e,t)},e}(),Aa=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local=new Oa("undefined"==typeof localStorage?new Na:localStorage)),this._local},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session=new Oa("undefined"==typeof sessionStorage?new Na:sessionStorage)),this._session},enumerable:!1,configurable:!0}),e}(),Ua=function(){function e(e){void 0===e&&(e=ha()),this._batchId=e,this._reqs=[],this._deps=[],this._rDeps=[],this._index=-1}return Object.defineProperty(e.prototype,"batchId",{get:function(){return this._batchId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._reqs.sort(function(e,t){return e.index-t.index})},enumerable:!1,configurable:!0}),e.prototype.track=function(e){e.data.batch=this,(void 0===e.data.batchIndex||e.data.batchIndex<0)&&(e.data.batchIndex=++this._index)},e.prototype.add=function(e){var t={id:e.requestId,index:e.batchIndex,method:e.method.toUpperCase(),options:e.options,parser:e.parser,reject:null,resolve:null,url:e.url},n=new Promise(function(e,n){t.resolve=e,t.reject=n});return this._reqs.push(t),n},e.prototype.addDependency=function(){var e=function(){};return this._deps.push(new Promise(function(t){e=t})),e},e.prototype.addResolveBatchDependency=function(e){this._rDeps.push(e)},e.prototype.execute=function(){var e=this;return Promise.all(this._deps).then(function(){return Promise.all(e._deps)}).then(function(){return e.executeImpl()}).then(function(){return Promise.all(e._rDeps)}).then(function(){})},e}(),za=new Aa,Wa=function(){function e(e,t,n){this.key=e,this.storeName=t,this.expiration=n}return Object.defineProperty(e.prototype,"store",{get:function(){return"local"===this.storeName?za.local:za.session},enumerable:!1,configurable:!0}),e}(),ja=function(){function e(e,t){this.parser=e,this.cacheOptions=t}return e.prototype.parse=function(e){var t=this;return this.parser.parse(e).then(function(e){return t.cacheData(e)})},e.prototype.cacheData=function(e){return null!==this.cacheOptions.store&&this.cacheOptions.store.put(this.cacheOptions.key,e,this.cacheOptions.expiration),e},e}();function Ha(e,t,n,r){Reflect.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get:function(){return n(this,r)}})}var Ka=function(e,t){return(Ka=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function qa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ka(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Va(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function Ga(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Xa(e,t){for(var n=0,r=t.length,o=e.length;n0?JSON.parse(e):{}}).then(function(e){return t(r.parseODataJSON(e))}).catch(function(e){return n(e)})},e.prototype.handleError=function(e,t){return e.ok||uu.init(e).then(t),e.ok},e.prototype.parseODataJSON=function(e){var t=e;return Sa(e,"d")?t=Sa(e.d,"results")?e.d.results:e.d:Sa(e,"value")&&(t=e.value),t},e}(),ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){e.text().then(t)},t}(ru),iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){e.blob().then(t)},t}(ru),su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){e.json().then(t)},t}(ru),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){fa(e.arrayBuffer)?e.arrayBuffer().then(t):e.buffer().then(t)},t}(ru),uu=(function(e){function t(t){var n=e.call(this)||this;return n.parser=t,n}qa(t,e),t.prototype.parseImpl=function(e,t){this.parser(e).then(t)}}(ru),function(e){function t(t,n,r,o){void 0===r&&(r=n.status),void 0===o&&(o=n.statusText);var i=e.call(this,t)||this;return i.response=n,i.status=r,i.statusText=o,i.isHttpRequestError=!0,i}return qa(t,e),t.init=function(e){return n=this,void 0,o=function(){var n;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1] "+n,e.clone())]}})},new((r=void 0)||(r=Promise))(function(e,t){function i(e){try{a(o.next(e))}catch(e){t(e)}}function s(e){try{a(o.throw(e))}catch(e){t(e)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(i,s)}a((o=o.apply(n,[])).next())});var n,r,o},t}(Error));function lu(e){var t;e.options&&e.options.body&&(t=e.options.body,e.options.body="-");var n=JSON.stringify(e,function(e,t){switch(e){case"query":return JSON.stringify(Xa([],Ga(t)));case"batch":case"batchDependency":case"cachingOptions":case"clientFactory":case"parser":return"-";default:return t}},0),r=JSON.parse(n,function(t,n){switch(t){case"query":return new Map(JSON.parse(n));case"batch":case"batchDependency":case"cachingOptions":case"clientFactory":case"parser":return e[t];default:return n}});return t&&(r.options.body=t,e.options.body=t),r}var cu,pu=function(){function e(e){void 0===e&&(e={}),this._data=Object.assign({},{cloneParentWasCaching:!1,options:{},parentUrl:"",parser:new ru,query:new Map,url:"",useCaching:!1},lu(e)),this._runtime=null}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=Object.assign({},this.data,lu(e))},enumerable:!1,configurable:!0}),e.prototype.getRuntime=function(){return null===this._runtime?Ma:this._runtime},e.prototype.setRuntime=function(){for(var e=[],t=0;t1&&ma(e[1])&&this._runtime.assign(e[1])),this},e.prototype.toUrl=function(){return this.data.url},e.prototype.concat=function(e){return this.data.url+=e,this},Object.defineProperty(e.prototype,"query",{get:function(){return this.data.query},enumerable:!1,configurable:!0}),e.prototype.configure=function(e){return Ba(this.data.options,e),this},e.prototype.configureFrom=function(e){Ba(this.data.options,e.data.options);var t=e.getRuntime();return t.get("__isDefault__")||this.setRuntime(t),this},e.prototype.usingCaching=function(e){var t=this.getRuntime();if(!t.get("globalCacheDisable")){if(this.data.useCaching=!0,"string"==typeof e){if(ba(e))throw Error("Cache key cannot be empty.");e={key:e}}var n={expiration:pa(new Date,"second",t.get("defaultCachingTimeoutSeconds")),storeName:t.get("defaultCachingStore")};this.data.cachingOptions=ya(n,e)}return this},e.prototype.usingParser=function(e){return this.data.parser=e,this},e.prototype.withPipeline=function(e){return this.data.pipes=e.slice(0),this},e.prototype.append=function(e){this.data.url=da(this.data.url,e)},e.prototype.inBatch=function(e){if(this.hasBatch)throw Error("This query is already part of a batch.");return ma(e)&&e.track(this),this},e.prototype.addBatchDependency=function(){return ma(this.data.batch)?this.data.batch.addDependency():function(){return null}},Object.defineProperty(e.prototype,"hasBatch",{get:function(){return ma(this.data.batch)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"batch",{get:function(){return this.hasBatch?this.data.batch:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentUrl",{get:function(){return this.data.parentUrl},enumerable:!1,configurable:!0}),e.prototype.cloneTo=function(e,t){return void 0===t&&(t={}),t=ya({includeBatch:!0,includeQuery:!1},t),e.data=Object.assign({},lu(this.data),{batch:null,cloneParentCacheOptions:null,cloneParentWasCaching:!1},lu(e.data)),e.configureFrom(this),t.includeBatch&&e.inBatch(this.batch),t.includeQuery&&this.query.size>0&&this.query.forEach(function(t,n){return e.query.set(n,t)}),this.data.useCaching&&(e.data.cloneParentWasCaching=!0,e.data.cloneParentCacheOptions=this.data.cachingOptions),e},e}(),du=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(t){e.instance.activeLogLevel=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new hu),e._instance},enumerable:!1,configurable:!0}),e.subscribe=function(){for(var t=[],n=0;n0?e.pipes.shift()(e):Promise.resolve(e)}function gu(e){return void 0===e&&(e=!1),function(t,n,r){var o=r.value;r.value=function(){for(var r=[],i=0;i0&&Sa(r[0],"hasResult")&&r[0].hasResult?(du.write("["+r[0].requestId+"] ("+(new Date).getTime()+") Skipping request pipeline method "+n+", existing result in pipeline.",0),Promise.resolve(r[0])):(du.write("["+r[0].requestId+"] ("+(new Date).getTime()+") Calling request pipeline method "+n+".",0),o.apply(t,r).then(function(e){return mu(e)}))}}}!function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Off=99]="Off"}(cu||(cu={})),function(){function e(){}e.prototype.log=function(e){var t=this.format(e);switch(e.level){case 0:case 1:console.log(t);break;case 2:console.warn(t);break;case 3:console.error(t)}},e.prototype.format=function(e){var t=[];if(t.push("Message: "+e.message),void 0!==e.data)try{t.push(" Data: "+JSON.stringify(e.data))}catch(e){t.push(" Data: Error in stringify of supplied data "+e)}return t.join("")}}();var yu,vu=function(){function e(){}return e.logStart=function(e){return new Promise(function(t){du.log({data:1===du.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Beginning "+e.method+" request ("+e.url+")"}),t(e)})},e.caching=function(e){return new Promise(function(t){if(e.useCaching){du.write("["+e.requestId+"] ("+(new Date).getTime()+") Caching is enabled for request, checking cache...",1);var n=new Wa(e.url.toLowerCase());if(void 0!==e.cachingOptions&&(n=ya(n,e.cachingOptions)),null!==n.store){var r=n.store.get(n.key);if(null!==r)return du.log({data:1===du.activeLogLevel?{}:r,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Value returned from cache."}),fa(e.batchDependency)&&e.batchDependency(),Sa(e.parser,"hydrate")&&(r=e.parser.hydrate(r)),fu(e,r).then(function(e){return t(e)})}du.write("["+e.requestId+"] ("+(new Date).getTime()+") Value not found in cache.",1),e.parser=new ja(e.parser,n)}return t(e)})},e.send=function(e){return new Promise(function(t,n){if(e.isBatched){var r=e.batch.add(e);fa(e.batchDependency)&&e.batchDependency(),du.write("["+e.requestId+"] ("+(new Date).getTime()+") Batching request in batch "+e.batch.batchId+".",1),t(fu(e,r))}else{du.write("["+e.requestId+"] ("+(new Date).getTime()+") Sending request.",1);var o=e.clientFactory(),i=ya(e.options||{},{method:e.method});o.fetch(e.url,i).then(function(t){return e.parser.parse(t)}).then(function(t){return fu(e,t)}).then(function(e){return t(e)}).catch(function(e){return n(e)})}})},e.logEnd=function(e){return new Promise(function(t){e.isBatched?du.log({data:1===du.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") "+e.method+" request will complete in batch "+e.batch.batchId+"."}):du.log({data:1===du.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Completing "+e.method+" request."}),t(e)})},Va([gu(!0)],e,"logStart",null),Va([gu()],e,"caching",null),Va([gu()],e,"send",null),Va([gu(!0)],e,"logEnd",null),e}(),bu=(yu=[vu.logStart,vu.caching,vu.send,vu.logEnd].slice(0),function(e){return function(t){return function(n){return function(e){if(e.pipes.length<1)throw du.write("["+e.requestId+"] ("+(new Date).getTime()+") Request pipeline contains no methods!",3),Error("Request pipeline contains no methods!");var t=mu(e).then(function(e){return function(e){return du.log({data:0===du.activeLogLevel?e.result:{},level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Returning result from pipeline. Set logging to verbose to see data."}),Promise.resolve(e.result)}(e)}).catch(function(e){throw du.error(e),e});return e.isBatched&&e.batch.addResolveBatchDependency(t),t}(Object.assign({},{batch:null,batchDependency:null,batchIndex:-1,cachingOptions:null,clientFactory:e,cloneParentCacheOptions:null,cloneParentWasCaching:!1,hasResult:!1,isBatched:ma(n.batch),method:t,options:null,parentUrl:"",parser:new ru,pipes:yu.slice(0),query:new Map,requestId:ha(),url:"",useCaching:/^get$/i.test(n.method)&&n.useCaching},lu(n)))}}});function _u(e,t){return Object.assign({body:_a(e)},t)}function Su(e,t){return Object.assign({headers:e},t)}function Iu(e){return{__metadata:{type:e}}}function wu(e){if(ba(e))return"";var t=e.indexOf("_api/");return t<0&&(t=e.indexOf("_vti_bin/")),t>-1?e.substr(0,t):e}function Pu(e){return function(t,n,r){void 0===r&&(r=Object.getOwnPropertyDescriptor(t,n));var o=r.value;return r.value=function(){for(var t=[],n=0;n0&&t[0]instanceof Da?t[0]:Ma,this._impl=t.length>1&&ma(t[1])?t[1]:(null===(e=this._runtime.get("sp"))||void 0===e?void 0:e.fetchClientFactory())||null,null===this._impl)throw Error("Could not generate fetchClientFactory in SPHttpClient.");this._digestCache=Tu(this)}return e.prototype.fetch=function(e,t){var n;return void 0===t&&(t={}),sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return r=ya(t,{cache:"no-cache",credentials:"same-origin"},!0),Fa(o=new Headers,null===(n=this._runtime.get("sp"))||void 0===n?void 0:n.headers),Fa(o,t.headers),o.has("Accept")||o.append("Accept","application/json"),o.has("Content-Type")||o.append("Content-Type","application/json;odata=verbose;charset=utf-8"),o.has("X-ClientService-ClientTag")||(i=Pu.getClientTag(o),(s="PnPCoreJS:2.5.0:"+i).length>32&&(s=s.substr(0,32)),o.append("X-ClientService-ClientTag",s)),!(r=ya(r,{headers:o})).method||"GET"===r.method.toUpperCase()||o.has("X-RequestDigest")||o.has("Authorization")?[3,2]:[4,this._digestCache(wu(e))];case 1:a=u.sent(),o.append("X-RequestDigest",a),u.label=2;case 2:return[2,this.fetchRaw(e,r)]}})})},e.prototype.fetchRaw=function(e,t){var n=this;void 0===t&&(t={});var r=new Headers;Fa(r,t.headers),t=ya(t,{headers:r});var o=function(r){var i=function(e){var t;e.headers.has("Retry-After")?t=1e3*parseInt(e.headers.get("Retry-After"),10):(t=r.delay,r.delay*=2),r.attempts++,r.retryCount<=r.attempts?r.reject(Error("Retry count exceeded ("+r.retryCount+") for request. Response status: ["+e.status+"] "+e.statusText)):setTimeout(ca(n,o,r),t)};n._impl.fetch(e,t).then(function(e){429===e.status?i(e):r.resolve(e)}).catch(function(e){503===e.status||504===e.status?i(e):r.reject(e)})};return new Promise(function(e,t){o.call(n,{attempts:0,delay:100,reject:t,resolve:e,retryCount:7})})},e.prototype.get=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"GET"});return this.fetch(e,n)},e.prototype.post=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"POST"});return this.fetch(e,n)},e.prototype.patch=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"PATCH"});return this.fetch(e,n)},e.prototype.delete=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"DELETE"});return this.fetch(e,n)},e}(),xu=new Map;function Tu(e){var t=this;return function(n){return sa(t,void 0,void 0,function(){var t,r,o,i,s,a,u,l;return aa(this,function(c){switch(c.label){case 0:return void 0!==(t=xu.get(n))&&new Date0)return da(u.substr(0,n),e)})),[2,e]})})}var ku=function(e){return function(t,n){return sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return r=t.getRuntime(),o=bu(function(e){return function(){return new Cu(e)}}(r))(e),i=lu(t.data),s=ma(i.batch)?i.batch.addDependency():function(){},[4,Eu(t.toUrlAndQuery(),r)];case 1:return a=u.sent(),Ba(i.options,n),[2,o(Object.assign({},i,{batchDependency:s,url:a}))]}})})}},Du=function(e,t){return e.data.cloneParentWasCaching&&e.usingCaching(e.data.cloneParentCacheOptions),e._forceCaching&&(e.data.useCaching=!0),ku("GET")(e,t)},Mu=function(e,t){return ku("POST")(e,t)},Ru=function(e){return nu(e)},Fu=function(e){function t(t,n){var r=this,o="",i="",s=new Map;if("string"==typeof t)if(va(t)||t.lastIndexOf("/")<0)i=t,o=da(t,n);else if(t.lastIndexOf("/")>t.lastIndexOf("(")){var a=t.lastIndexOf("/");i=t.slice(0,a),n=da(t.slice(a),n),o=da(i,n)}else a=t.lastIndexOf("("),i=t.slice(0,a),o=da(t,n);else{o=da(i=t.toUrl(),n||"");var u=t.query.get("@target");void 0!==u&&s.set("@target",u)}return r=e.call(this,{parentUrl:i,query:s,url:o})||this,"string"!=typeof t&&r.configureFrom(t),r._forceCaching=!1,r}return ra(t,e),t.prototype.toUrlAndQuery=function(){var e=new Map(this.query),t=this.toUrl().replace(/'!(@.*?)::(.*?)'/gi,function(t,n,r){return du.write("Rewriting aliased parameter from match "+t+" to label: "+n+" value: "+r,0),e.set(n,"'"+r+"'"),n});if(e.size>0){var n=t.indexOf("?")>-1?"&":"?";t+=""+n+Array.from(e).map(function(e){return e[0]+"="+e[1]}).join("&")}return t},t.prototype.select=function(){for(var e=[],t=0;t0&&this.query.set("$select",e.map(encodeURIComponent).join(",")),this},t.prototype.get=function(e){return Du(this,e)},t.prototype.expand=function(){for(var e=[],t=0;t0&&this.query.set("$expand",e.map(encodeURIComponent).join(",")),this},t.prototype.clone=function(t,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var i=e.prototype.cloneTo.call(this,t(this,n),{includeBatch:r,includeQuery:o});if(!o){var s="@target";this.query.has(s)&&i.query.set(s,this.query.get(s))}return i},t.prototype.defaultAction=function(e){return Du(this,e)},t.prototype.getParent=function(e,t,n,r){void 0===t&&(t=this.parentUrl);var o=e(t,n).configureFrom(this),i="@target";return this.query.has(i)&&o.query.set(i,this.query.get(i)),void 0!==r&&(o=o.inBatch(r)),o},t}(pu),Bu=Ru(Fu),Lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.filter=function(e){return this.query.set("$filter",encodeURIComponent(e)),this},t.prototype.orderBy=function(e,t){void 0===t&&(t=!0);var n="$orderby",r=this.query.has(n)?this.query.get(n).split(","):[];return r.push(encodeURIComponent(e)+" "+(t?"asc":"desc")),this.query.set(n,r.join(",")),this},t.prototype.skip=function(e){return this.query.set("$skip",e.toString()),this},t.prototype.top=function(e){return this.query.set("$top",e.toString()),this},t}(Fu),Ou=Ru(Lu),Nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype._update=function(e,t){var n=this;return function(r){return Mu(Pu.configure(n,e+".Update"),{body:_a(ya(Iu(e),r)),headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return t(e,r)})}},t}(Fu),Au=Ru(Nu);function Uu(e){return function(){return t=Pu.configure(this,e+".delete"),n=Object.assign(Su({"X-HTTP-Method":"DELETE"}),void 0),Mu(t,n);var t,n}}function zu(e){return function(t){return void 0===t&&(t="*"),function(e,t,n){void 0===n&&(n="*");var r=Object.assign(Su({"X-HTTP-Method":"DELETE","IF-Match":n}),{});return Mu(e,r)}(Pu.configure(this,e+".delete"),0,t)}}var Wu=function(e){function t(t,n){void 0===n&&(n=Ma);var r=e.call(this)||this;return r.url=t,r.runtime=n,r}return ra(t,e),t.ParseResponse=function(e){for(var t,n,r=[],o=new RegExp("^HTTP/[0-9.]+ +([0-9]+) +(.*)","i"),i=e.split("\n"),s="batch",a=0;a0&&(o.push("--changeset_"+i+"--\n\n"),i=""),o.push("--batch_"+this.batchId+"\n")):(i.length<1&&(i=ha(),o.push("--batch_"+this.batchId+"\n"),o.push('Content-Type: multipart/mixed; boundary="changeset_'+i+'"\n\n')),o.push("--changeset_"+i+"\n")),o.push("Content-Type: application/http\n"),o.push("Content-Transfer-Encoding: binary\n\n"),u=new Headers,l=va(a.url)?a.url:da(r,a.url),du.write("["+this.batchId+"] ("+(new Date).getTime()+") Adding request "+a.method+" "+l+" to batch.",0),"GET"!==a.method?(c=a.method,p=a.options.headers,Sa(a,"options")&&Sa(a.options,"headers")&&void 0!==p["X-HTTP-Method"]&&(c=p["X-HTTP-Method"],delete p["X-HTTP-Method"]),o.push(c+" "+l+" HTTP/1.1\n"),u.set("Content-Type","application/json;odata=verbose;charset=utf-8")):o.push(a.method+" "+l+" HTTP/1.1\n"),Fa(u,null===(e=this.runtime.get("sp"))||void 0===e?void 0:e.headers),a.options&&Fa(u,a.options.headers),u.has("Accept")||u.append("Accept","application/json"),u.has("Content-Type")||u.append("Content-Type","application/json;odata=verbose;charset=utf-8"),u.has("X-ClientService-ClientTag")||u.append("X-ClientService-ClientTag","PnPCoreJS:@pnp-2.5.0:batch"),u.forEach(function(e,t){o.push(t+": "+e+"\n")}),o.push("\n"),a.options.body&&o.push(a.options.body+"\n\n");return i.length>0&&(o.push("--changeset_"+i+"--\n\n"),i=""),o.push("--batch_"+this.batchId+"--\n"),d={body:o.join(""),headers:{"Content-Type":"multipart/mixed; boundary=batch_"+this.batchId},method:"POST"},du.write("["+this.batchId+"] ("+(new Date).getTime()+") Sending batch request.",1),[4,n.fetch(da(r,"/_api/$batch"),d)];case 2:return(h=y.sent()).ok?[3,4]:[4,uu.init(h)];case 3:throw y.sent();case 4:return[4,h.clone().text()];case 5:if(f=y.sent(),(m=t.ParseResponse(f)).length!==this.requests.length)throw Error("Could not properly parse responses to match requests in batch.");return du.write("["+this.batchId+"] ("+(new Date).getTime()+") Resolving batched requests.",1),[2,m.reduce(function(e,t,n){return e.then(function(){return sa(g,void 0,void 0,function(){var e,r,o,i;return aa(this,function(s){switch(s.label){case 0:e=this.requests[n],du.write("["+e.id+"] ("+(new Date).getTime()+") Resolving request in batch "+this.batchId+".",1),s.label=1;case 1:return s.trys.push([1,3,,4]),o=(r=e).resolve,[4,e.parser.parse(t)];case 2:return o.apply(r,[s.sent()]),[3,4];case 3:return i=s.sent(),e.reject(i),[3,4];case 4:return[2]}})})})},Promise.resolve(void 0))]}})})},t}(Ua);function ju(e){return function(t){return function(t){function n(){for(var n=[],r=0;r1&&void 0!==n[1]?n[1]:e)||this}return ra(n,t),n}(t)}}var Hu,Ku="00000000-0000-0000-0000-000000000000";function qu(e,t){void 0===t&&(t=Ma),t.assign(e)}Hu=function(e){var t=e.get("sp"),n=Object.assign({},{fetchClientFactory:function(){return new La}},t);e.assign({sp:n})},ka.indexOf(Hu)<0&&(Hu(Ma),ka.push(Hu));var Vu,Gu,Xu,Qu=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=""),void 0===n&&(n=Ma),this._options=e,this._baseUrl=t,this._runtime=n}return e.prototype.configure=function(t,n){return void 0===n&&(n=""),new e(t,n)},e.prototype.setup=function(e){e.pageContext?qu({spfxContext:e},this._runtime):qu(e,this._runtime)},e.prototype.createIsolated=function(t){return sa(this,void 0,void 0,function(){var n,r,o,i,s;return aa(this,function(a){return t=Object.assign({baseUrl:"",cloneGlobal:!0,config:{},options:{}},t||{}),n=t.baseUrl,r=t.cloneGlobal,o=t.options,i=t.config,(s=r?new Da(Ma.export()):new Da).assign(i),[2,new e(o,n,s)]})})},e.prototype.childConfigHook=function(e){return e({options:this._options,baseUrl:this._baseUrl,runtime:this._runtime})},e}(),Ju=new Qu;function Zu(e){return ba(e)?"":/!(@.*?)::(.*?)/gi.test(e)?e.replace(/!(@.*?)::(.*)$/gi,function(e,t,n){return du.write("Rewriting aliased parameter from match "+e+" to label: "+t+" value: "+n,0),"!"+t+"::"+encodeURIComponent(n.replace(/'/gi,"''"))}):encodeURIComponent(e.replace(/'/gi,"''"))}function Yu(e){var t=[],n=["odata.type","odata.editLink","__metadata","odata.metadata","odata.id"];if(Sa(e,n[0])&&"SP.Web"===e[n[0]])Sa(e,n[4])?t.push(e[n[4]]):Sa(e,n[2])&&t.push(e.__metadata.uri);else if(Sa(e,n[3])&&Sa(e,n[1])){var r=va(e[n[1]])?e[n[1]].split("_api")[1]:e[n[1]];t.push(wu(e[n[3]]),"_api",r)}else Sa(e,n[1])?t.push("_api",e[n[1]]):Sa(e,n[2])&&t.push(e.__metadata.uri);return t.length<1?(du.write("No uri information found in ODataEntity parsing, chaining will fail for this object.",2),""):da.apply(void 0,la([],ua(t)))}!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.DistributionList=2]="DistributionList",e[e.SecurityGroup=4]="SecurityGroup",e[e.SharePointGroup=8]="SharePointGroup",e[e.All=15]="All"}(Vu||(Vu={})),function(e){e[e.None=0]="None",e[e.UserInfoList=1]="UserInfoList",e[e.Windows=2]="Windows",e[e.MembershipProvider=4]="MembershipProvider",e[e.RoleProvider=8]="RoleProvider",e[e.All=15]="All"}(Gu||(Gu={})),function(e){e[e.Invalid=-1]="Invalid",e[e.DefaultView=0]="DefaultView",e[e.NormalView=1]="NormalView",e[e.DialogView=2]="DialogView",e[e.View=3]="View",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.SolutionForm=10]="SolutionForm",e[e.PAGE_MAXITEMS=11]="PAGE_MAXITEMS"}(Xu||(Xu={}));var $u=function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){return ya(n.factory(Yu(e),null),e)},n}return ra(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){return ya(n.factory(Yu(e),null),e)})},t}(ru);!function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){return e.map(function(e){return ya(n.factory(Yu(e),null),e)})},n}ra(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){return e.map(function(e){return ya(n.factory(Yu(e),null),e)})})}}(ru);var el=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=function(){return(tl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.forEach(function(e,t){return o.query.set(t,e)}),Mu(o,_u(r))},t.prototype.renderListFormData=function(e,t,n){return sa(this,void 0,void 0,function(){var r;return aa(this,function(o){switch(o.label){case 0:return[4,Mu(this.clone(vl,"renderlistformdata(itemid="+e+", formid='"+t+"', mode='"+n+"')"))];case 1:return r=o.sent(),[2,JSON.parse(Sa(r,"RenderListFormData")?r.RenderListFormData:r)]}})})},t.prototype.reserveListItemId=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(vl,"reservelistitemid"))];case 1:return[2,Sa(e=t.sent(),"ReserveListItemId")?e.ReserveListItemId:e]}})})},t.prototype.getListItemEntityTypeFullName=function(){return this.clone(vl,null,!1).select("ListItemEntityTypeFullName").usingCaching({expiration:pa(new Date,"day",5),key:"PnPjs-ListEntityName:"+this.toUrl(),storeName:"local"})().then(function(e){return e.ListItemEntityTypeFullName})},t.prototype.addValidateUpdateItemUsingPath=function(e,t,n,r,o){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return i={FolderPath:hl(t)},ma(o)&&(o.leafName&&(i.LeafName=hl(o.leafName)),o.objectType&&(i.UnderlyingObjectType=o.objectType)),[4,Mu(this.clone(vl,"AddValidateUpdateItemUsingPath()"),_u({bNewDocumentUpdate:n,checkInComment:r,formValues:e,listItemCreateInfo:ya(Iu("SP.ListItemCreationInformationUsingPath"),i)}))];case 1:return[2,Sa(s=a.sent(),"AddValidateUpdateItemUsingPath")?s.AddValidateUpdateItemUsingPath:s]}})})},t.prototype.getParentInfos=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.select("Id","RootFolder/UniqueId","RootFolder/ServerRelativeUrl","RootFolder/ServerRelativePath","ParentWeb/Id","ParentWeb/Url","ParentWeb/ServerRelativeUrl","ParentWeb/ServerRelativePath").expand("RootFolder","ParentWeb")()];case 1:return[2,{List:{Id:(e=t.sent()).Id,RootFolderServerRelativePath:e.RootFolder.ServerRelativePath,RootFolderServerRelativeUrl:e.RootFolder.ServerRelativeUrl,RootFolderUniqueId:e.RootFolder.UniqueId},ParentWeb:{Id:e.ParentWeb.Id,ServerRelativePath:e.ParentWeb.ServerRelativePath,ServerRelativeUrl:e.ParentWeb.ServerRelativeUrl,Url:e.ParentWeb.Url}}]}})})},ia([Pu("l.update")],t.prototype,"update",null),ia([Pu("l.getChanges")],t.prototype,"getChanges",null),ia([Pu("l.CAMLQuery")],t.prototype,"getItemsByCAMLQuery",null),ia([Pu("l.ChangesSinceToken")],t.prototype,"getListItemChangesSinceToken",null),ia([Pu("l.recycle")],t.prototype,"recycle",null),ia([Pu("l.renderListData")],t.prototype,"renderListData",null),ia([Pu("l.AsStream")],t.prototype,"renderListDataAsStream",null),ia([Pu("l.renderListFormData")],t.prototype,"renderListFormData",null),ia([Pu("l.reserveListItemId")],t.prototype,"reserveListItemId",null),ia([Pu("l.getListItemEntityTypeFullName")],t.prototype,"getListItemEntityTypeFullName",null),ia([Pu("l.addValidateUpdateItemUsingPath")],t.prototype,"addValidateUpdateItemUsingPath",null),t}(Nu),vl=Ru(yl);!function(e){e[e.None=0]="None",e[e.ContextInfo=1]="ContextInfo",e[e.ListData=2]="ListData",e[e.ListSchema=4]="ListSchema",e[e.MenuView=8]="MenuView",e[e.ListContentType=16]="ListContentType",e[e.FileSystemItemId=32]="FileSystemItemId",e[e.ClientFormSchema=64]="ClientFormSchema",e[e.QuickLaunch=128]="QuickLaunch",e[e.Spotlight=256]="Spotlight",e[e.Visualization=512]="Visualization",e[e.ViewMetadata=1024]="ViewMetadata",e[e.DisableAutoHyperlink=2048]="DisableAutoHyperlink",e[e.EnableMediaTAUrls=4096]="EnableMediaTAUrls",e[e.ParentInfo=8192]="ParentInfo",e[e.PageContextInfo=16384]="PageContextInfo",e[e.ClientSideComponentManifest=32768]="ClientSideComponentManifest"}(fl||(fl={})),function(e){e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(ml||(ml={}));var bl=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Sl(this).concat("("+e+")"),"is.getById")},t.prototype.getItemByStringId=function(e){return Pu.configure(Sl(this.parentUrl,"getItemByStringId('"+e+"')"),"is.getItemByStringId")},t.prototype.skip=function(e,t){return void 0===t&&(t=!1),t?this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&PagedPrev=TRUE&p_ID="+e)):this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&p_ID="+e)),this},t.prototype.getPaged=function(){return this.usingParser(new Cl(this))()},t.prototype.getAll=function(e,t){void 0===e&&(e=2e3),void 0===t&&(t="application/json;odata=nometadata"),du.write("Calling items.getAll should be done sparingly. Ensure this is the correct choice. If you are unsure, it is not.",2);var n=bl(this,"").top(e).configure({headers:{Accept:t}});return this.query.forEach(function(e,t){/^\$select|filter|top|expand$/i.test(t)&&n.query.set(t,e)}),new Promise(function(e,t){var r=[],o=function(n){[].push.apply(r,n.results),n.hasNext?n.getNext().then(o).catch(t):e(r)};n.getPaged().then(o).catch(t)})},t.prototype.add=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),sa(this,void 0,void 0,function(){var n,r,o,i,s=this;return aa(this,function(a){switch(a.label){case 0:return n=this.addBatchDependency(),[4,this.ensureListItemEntityTypeName(t)];case 1:return r=a.sent(),o=_u(ya(Iu(r),e)),i=Mu(this.clone(bl,""),o).then(function(e){return{data:e,item:s.getById(e.Id)}}),n(),[2,i]}})})},t.prototype.ensureListItemEntityTypeName=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,e||this.getParent(vl).getListItemEntityTypeFullName()]})})},ia([Pu("is.getPaged")],t.prototype,"getPaged",null),ia([Pu("is.getAll")],t.prototype,"getAll",null),ia([Pu("is.add")],t.prototype,"add",null),ia([ju("items")],t)}(Lu)),_l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=zu("i"),t}return ra(t,e),Object.defineProperty(t.prototype,"effectiveBasePermissions",{get:function(){return Pu.configure(Bu(this,"EffectiveBasePermissions"),"i.effectiveBasePermissions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissionsForUI",{get:function(){return Pu.configure(Bu(this,"EffectiveBasePermissionsForUI"),"i.effectiveBasePermissionsForUI")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsHTML",{get:function(){return Pu.configure(Au(this,"FieldValuesAsHTML"),"i.fvHTML")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsText",{get:function(){return Pu.configure(Au(this,"FieldValuesAsText"),"i.fvText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesForEdit",{get:function(){return Pu.configure(Au(this,"FieldValuesForEdit"),"i.fvEdit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return Pu.configure(Il(this),"i.versions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return this.getParent(vl,this.parentUrl.substr(0,this.parentUrl.lastIndexOf("/")))},enumerable:!1,configurable:!0}),t.prototype.update=function(e,t,n){return void 0===t&&(t="*"),void 0===n&&(n=null),sa(this,void 0,void 0,function(){var r,o,i,s;return aa(this,function(a){switch(a.label){case 0:return r=this.addBatchDependency(),[4,this.ensureListItemEntityTypeName(n)];case 1:return o=a.sent(),i=_u(ya(Iu(o),e),Su({"IF-Match":t,"X-HTTP-Method":"MERGE"})),r(),s=Pu.configure(this.clone(Sl).usingParser(new xl),"i.update"),[4,Mu(s,i)];case 2:return[2,{data:a.sent(),item:this}]}})})},t.prototype.recycle=function(){return Mu(this.clone(Sl,"recycle"))},t.prototype.deleteWithParams=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,Mu(this.clone(Sl,"DeleteWithParameters"),_u({parameters:e}))]})})},t.prototype.getWopiFrameUrl=function(e){return void 0===e&&(e=0),sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return(t=this.clone(Sl,"getWOPIFrameUrl(@action)")).query.set("@action",e),[4,Mu(t)];case 1:return Sa(n=r.sent(),"GetWOPIFrameUrl")?[2,n.GetWOPIFrameUrl]:[2,n]}})})},t.prototype.validateUpdateListItem=function(e,t){return void 0===t&&(t=!1),Mu(this.clone(Sl,"validateupdatelistitem"),_u({formValues:e,bNewDocumentUpdate:t}))},t.prototype.getParentInfos=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.select("Id","ParentList/Id","ParentList/RootFolder/UniqueId","ParentList/RootFolder/ServerRelativeUrl","ParentList/RootFolder/ServerRelativePath","ParentList/ParentWeb/Id","ParentList/ParentWeb/Url","ParentList/ParentWeb/ServerRelativeUrl","ParentList/ParentWeb/ServerRelativePath").expand("ParentList","ParentList/RootFolder","ParentList/ParentWeb")()];case 1:return[2,{Item:{Id:(e=t.sent()).Id},ParentList:{Id:e.ParentList.Id,RootFolderServerRelativePath:e.ParentList.RootFolder.ServerRelativePath,RootFolderServerRelativeUrl:e.ParentList.RootFolder.ServerRelativeUrl,RootFolderUniqueId:e.ParentList.RootFolder.UniqueId},ParentWeb:{Id:e.ParentList.ParentWeb.Id,ServerRelativePath:e.ParentList.ParentWeb.ServerRelativePath,ServerRelativeUrl:e.ParentList.ParentWeb.ServerRelativeUrl,Url:e.ParentList.ParentWeb.Url}}]}})})},t.prototype.ensureListItemEntityTypeName=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,e||this.list.getListItemEntityTypeFullName()]})})},ia([Pu("i.recycle")],t.prototype,"recycle",null),ia([Pu("i.del-params")],t.prototype,"deleteWithParams",null),ia([Pu("i.getWopiFrameUrl")],t.prototype,"getWopiFrameUrl",null),ia([Pu("i.validateUpdateListItem")],t.prototype,"validateUpdateListItem",null),t}(Nu),Sl=Ru(_l),Il=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(wl(this).concat("("+e+")"),"iv.getById")},ia([ju("versions")],t)}(Lu)),wl=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=zu("iv"),t}return ra(t,e),t}(Nu)),Pl=function(){function e(e,t,n){this.parent=e,this.nextUrl=t,this.results=n}return Object.defineProperty(e.prototype,"hasNext",{get:function(){return"string"==typeof this.nextUrl&&this.nextUrl.length>0},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){return this.hasNext?Pu.configure(bl(this.nextUrl,null).configureFrom(this.parent),"ip.getNext").getPaged():new Promise(function(e){return e(null)})},e}(),Cl=function(e){function t(t){var n=e.call(this)||this;return n._parent=t,n}return ra(t,e),t.prototype.parse=function(e){var t=this;return new Promise(function(n,r){t.handleError(e,r)&&e.json().then(function(e){var r=Sa(e,"d")&&Sa(e.d,"__next")?e.d.__next:e["odata.nextLink"];n(new Pl(t._parent,r,t.parseODataJSON(e)))})})},t}(ru),xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.parse=function(e){var t=this;return new Promise(function(n,r){t.handleError(e,r)&&n({"odata.etag":e.headers.get("etag")})})},t}(ru);Ha(yl,"items",bl);var Tl,El,kl,Dl=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getByName=function(e){if(/%#/.test(e))throw Error("For file names containing % or # please use web.getFileByServerRelativePath");return Pu.configure(Rl(this).concat("('"+Zu(e)+"')"),"fis.getByName")},t.prototype.add=function(e,t,n){return void 0===n&&(n=!0),sa(this,void 0,void 0,function(){return aa(this,function(r){switch(r.label){case 0:return[4,Mu(Dl(this,"add(overwrite="+n+",url='"+Zu(e)+"')"),{body:t})];case 1:return[2,{data:r.sent(),file:this.getByName(e)}]}})})},t.prototype.addUsingPath=function(e,t,n){return void 0===n&&(n={Overwrite:!1}),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=["AddUsingPath(decodedurl='"+Zu(e)+"'"],n&&(n.Overwrite&&r.push(",Overwrite=true"),n.AutoCheckoutOnInvalidData&&r.push(",AutoCheckoutOnInvalidData=true"),ba(n.XorHash)||r.push(",XorHash="+Zu(n.XorHash))),r.push(")"),[4,Mu(Dl(this,r.join("")),{body:t})];case 1:return[2,{data:o=i.sent(),file:Rl(Yu(o))}]}})})},t.prototype.addChunked=function(e,t,n,r,o){return void 0===r&&(r=!0),void 0===o&&(o=10485760),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return[4,Mu(this.clone(Dl,"add(overwrite="+r+",url='"+Zu(e)+"')",!1))];case 1:return i=a.sent(),!ba(s=Yu(i))&&/%27/i.test(s)&&(s=s.replace(/%27/gi,"''")),[4,Rl(s).setContentChunked(t,n,o)];case 2:return[2,a.sent()]}})})},t.prototype.addTemplateFile=function(e,t){return sa(this,void 0,void 0,function(){var n;return aa(this,function(r){switch(r.label){case 0:return[4,Mu(this.clone(Dl,"addTemplateFile(urloffile='"+Zu(e)+"',templatefiletype="+t+")",!1))];case 1:return[2,{data:n=r.sent(),file:Rl(Yu(n))}]}})})},ia([Pu("fis.add")],t.prototype,"add",null),ia([Pu("fis.addUsingPath")],t.prototype,"addUsingPath",null),ia([Pu("fis.addChunked")],t.prototype,"addChunked",null),ia([Pu("fis.addTemplateFile")],t.prototype,"addTemplateFile",null),ia([ju("files")],t)}(Lu)),Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=zu("fi"),t}return ra(t,e),Object.defineProperty(t.prototype,"listItemAllFields",{get:function(){return Pu.configure(Au(this,"listItemAllFields"),"fi.listItemAllFields")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return Pu.configure(Fl(this),"fi.versions")},enumerable:!1,configurable:!0}),t.prototype.approve=function(e){return void 0===e&&(e=""),Mu(this.clone(Rl,"approve(comment='"+Zu(e)+"')"))},t.prototype.cancelUpload=function(e){return Mu(this.clone(Rl,"cancelUpload(uploadId=guid'"+e+"')",!1))},t.prototype.checkin=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t=Tl.Major),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"checkin(comment='"+Zu(e)+"',checkintype="+t+")"))},t.prototype.checkout=function(){return Mu(this.clone(Rl,"checkout"))},t.prototype.copyTo=function(e,t){return void 0===t&&(t=!0),Mu(this.clone(Rl,"copyTo(strnewurl='"+Zu(e)+"',boverwrite="+t+")"))},t.prototype.copyByPath=function(e,t,n){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,this.select("ServerRelativeUrl")()];case 1:return r=u.sent(),o=r.ServerRelativeUrl,i=r["odata.id"],s=wu(i),a=s.replace("://","___").split("/")[0].replace("___","://"),[4,Mu(Rl(s,"/_api/SP.MoveCopyUtil.CopyFileByPath(overwrite=@a1)?@a1="+t),_u({destPath:hl(va(e)?e:""+a+e),options:{KeepBoth:n,ResetAuthorAndCreatedOnCopy:!0,ShouldBypassSharedLocks:!0,__metadata:{type:"SP.MoveCopyOptions"}},srcPath:hl(va(o)?o:""+a+o)}))];case 2:return u.sent(),[2]}})})},t.prototype.deny=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"deny(comment='"+Zu(e)+"')"))},t.prototype.moveTo=function(e,t){return void 0===t&&(t=El.Overwrite),Mu(this.clone(Rl,"moveTo(newurl='"+Zu(e)+"',flags="+t+")"))},t.prototype.moveByPath=function(e,t,n){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,this.select("ServerRelativeUrl")()];case 1:return r=u.sent(),o=r.ServerRelativeUrl,i=r["odata.id"],s=wu(i),a=s.replace("://","___").split("/")[0].replace("___","://"),[4,Mu(Rl(s,"/_api/SP.MoveCopyUtil.MoveFileByPath(overwrite=@a1)?@a1="+t),_u({destPath:hl(va(e)?e:""+a+e),options:{KeepBoth:n,ResetAuthorAndCreatedOnCopy:!1,ShouldBypassSharedLocks:!0,__metadata:{type:"SP.MoveCopyOptions"}},srcPath:hl(va(o)?o:""+a+o)}))];case 2:return u.sent(),[2]}})})},t.prototype.publish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"publish(comment='"+Zu(e)+"')"))},t.prototype.recycle=function(){return Mu(this.clone(Rl,"recycle"))},t.prototype.deleteWithParams=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,Mu(this.clone(Rl,"DeleteWithParameters"),_u({parameters:e}))]})})},t.prototype.undoCheckout=function(){return Mu(this.clone(Rl,"undoCheckout"))},t.prototype.unpublish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"unpublish(comment='"+Zu(e)+"')"))},t.prototype.exists=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.clone(Rl).select("Exists")()];case 1:return[2,e.sent().Exists];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},t.prototype.getText=function(){return this.clone(Rl,"$value",!1).usingParser(new ou)(Su({binaryStringResponseBody:"true"}))},t.prototype.getBlob=function(){return this.clone(Rl,"$value",!1).usingParser(new iu)(Su({binaryStringResponseBody:"true"}))},t.prototype.getBuffer=function(){return this.clone(Rl,"$value",!1).usingParser(new au)(Su({binaryStringResponseBody:"true"}))},t.prototype.getJSON=function(){return this.clone(Rl,"$value",!1).usingParser(new su)(Su({binaryStringResponseBody:"true"}))},t.prototype.setContent=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Rl,"$value",!1),{body:e,headers:{"X-HTTP-Method":"PUT"}})];case 1:return t.sent(),[2,Rl(this)]}})})},t.prototype.getItem=function(){for(var e=[],t=0;t0))throw Error("Did not find the app with id "+e+" in the appcatalog.");n=s[0].Id,u.label=4;case 4:return(a=Pu.configure(Ll(r,"_api/web/tenantappcatalog/SyncSolutionToTeams(id="+n+")"),"ac.syncSolutionToTeams")).configureFrom(this),[4,Mu(a,{})];case 5:return[2,u.sent()]}})})},t.prototype.add=function(e,t,n){return void 0===n&&(n=!0),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return(r=Pu.configure(Ll(wu(this.toUrl()),"_api/web/tenantappcatalog/add(overwrite="+n+",url='"+e+"')"),"ac.add")).configureFrom(this),[4,Mu(r,{body:t,headers:{binaryStringRequestBody:"true"}})];case 1:return[2,{data:o=i.sent(),file:Rl(Yu(o))}]}})})},t}(Lu)),Ol=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.deploy=function(e){return void 0===e&&(e=!1),this.do("Deploy("+e+")")},t.prototype.retract=function(){return this.do("Retract")},t.prototype.install=function(){return this.do("Install")},t.prototype.uninstall=function(){return this.do("Uninstall")},t.prototype.upgrade=function(){return this.do("Upgrade")},t.prototype.remove=function(){return this.do("Remove")},t.prototype.do=function(e){return Mu(this.clone(Ol,e))},ia([Pu("app.deploy")],t.prototype,"deploy",null),ia([Pu("app.retract")],t.prototype,"retract",null),ia([Pu("app.install")],t.prototype,"install",null),ia([Pu("app.uninstall")],t.prototype,"uninstall",null),ia([Pu("app.upgrade")],t.prototype,"upgrade",null),ia([Pu("app.remove")],t.prototype,"remove",null),t}(Nu));pl.prototype.getAppCatalog=function(e){return Ll(e||this).configureFrom(this)},Qu.prototype.getTenantAppCatalogWeb=function(){return sa(this,void 0,void 0,function(){var e=this;return aa(this,function(t){return[2,this.childConfigHook(function(t){var n=t.options,r=t.runtime;return sa(e,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,Bu("/","_api/SP_TenantSettings_Current").configure(n).setRuntime(r)()];case 1:return e=t.sent(),[2,dl(e.CorporateCatalogUrl).configure(n).setRuntime(r)]}})})})]})})};var Nl=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getByName=function(e){var t=Pu.configure(Al(this),"ats.getByName");return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t){return sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(Nl,"add(FileName='"+e+"')",!1),{body:t})];case 1:return[2,{data:n.sent(),file:this.getByName(e)}]}})})},t.prototype.addMultiple=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:t=0,n.label=1;case 1:return t255)throw Error("Modern Page description is limited to 255 chars.");this.json.Description=e,Sa(this._pageSettings,"htmlAttributes")||(this._pageSettings.htmlAttributes=[]),this._pageSettings.htmlAttributes.indexOf("modifiedDescription")<0&&this._pageSettings.htmlAttributes.push("modifiedDescription"),this._pageSettings.pageSettingsSlice.isDefaultDescription=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layoutType",{get:function(){return this._layoutPart.properties.layoutType},set:function(e){this._layoutPart.properties.layoutType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerTextAlignment",{get:function(){return this._layoutPart.properties.textAlignment},set:function(e){this._layoutPart.properties.textAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTopicHeader",{get:function(){return this._layoutPart.properties.showTopicHeader},set:function(e){this._layoutPart.properties.showTopicHeader=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPublishDate",{get:function(){return this._layoutPart.properties.showPublishDate},set:function(e){this._layoutPart.properties.showPublishDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVerticalSection",{get:function(){return this.sections.findIndex(function(e){return 2===e.layoutIndex})>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorByLine",{get:function(){return ga(this._layoutPart.properties.authorByline)&&this._layoutPart.properties.authorByline.length>0?this._layoutPart.properties.authorByline[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalSection",{get:function(){return this.hasVerticalSection?this.addVerticalSection():null},enumerable:!1,configurable:!0}),t.prototype.addSection=function(){var e=new Ql(this,Ul(this.sections),1);return this.sections.push(e),e},t.prototype.addVerticalSection=function(){var e=this.sections.findIndex(function(e){return 2===e.layoutIndex});if(e>-1)return this.sections[e];var t=new Ql(this,Ul(this.sections),2);return this.sections.push(t),t},t.prototype.fromJSON=function(e){this.json=e;var t=JSON.parse(e.CanvasContent1),n=JSON.parse(e.LayoutWebpartsContent);return n&&n.length>0&&(this._layoutPart=n[0]),this.setControls(t),this},t.prototype.load=function(){return sa(this,void 0,void 0,function(){var e,t;return aa(this,function(n){switch(n.label){case 0:return[4,this.getItem("Id","CommentsDisabled")];case 1:return e=n.sent(),[4,Bu(this,"_api/sitepages/pages("+e.Id+")")()];case 2:return t=n.sent(),this.commentsDisabled=e.CommentsDisabled,[2,this.fromJSON(t)]}})})},t.prototype.save=function(e){return void 0===e&&(e=!0),sa(this,void 0,void 0,function(){var t,n,r,o,i,s,a,u,l,c;return aa(this,function(p){switch(p.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return this._bannerImageDirty?(t=this.bannerImageUrl,o=dl(wu(this.toUrl())).configureFrom(this),i=o.createBatch(),o.getFileByServerRelativePath(t.replace(/%20/gi," ")).select("ListId","WebId","UniqueId","Name","SiteId").inBatch(i)().then(function(e){return n=e}),o.select("Url").inBatch(i)().then(function(e){return r=e.Url}),[4,i.execute()]):[3,2];case 1:p.sent(),(s=Bu(r,"_layouts/15/getpreview.ashx")).query.set("guidSite",""+n.SiteId),s.query.set("guidWeb",""+n.WebId),s.query.set("guidFile",""+n.UniqueId),this.bannerImageUrl=s.toUrlAndQuery(),ma(this._layoutPart.serverProcessedContent)||(this._layoutPart.serverProcessedContent={}),this._layoutPart.serverProcessedContent.imageSources={imageSource:t},ma(this._layoutPart.serverProcessedContent.customMetadata)||(this._layoutPart.serverProcessedContent.customMetadata={}),this._layoutPart.serverProcessedContent.customMetadata.imageSource={listId:n.ListId,siteId:n.SiteId,uniqueId:n.UniqueId,webId:n.WebId},this._layoutPart.properties.webId=n.WebId,this._layoutPart.properties.siteId=n.SiteId,this._layoutPart.properties.listId=n.ListId,this._layoutPart.properties.uniqueId=n.UniqueId,p.label=2;case 2:return this.json.IsPageCheckedOutToCurrentUser?[3,4]:[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/checkoutpage"))];case 3:p.sent(),p.label=4;case 4:return a=Object.assign(Iu("SP.Publishing.SitePage"),{AuthorByline:this.json.AuthorByline||[],CanvasContent1:this.getCanvasContent1(),Description:this.description,LayoutWebpartsContent:this.getLayoutWebpartsContent(),Title:this.title,TopicHeader:this.topicHeader}),(this._bannerImageDirty||this._bannerImageThumbnailUrlDirty)&&(u=this._bannerImageThumbnailUrlDirty?this.thumbnailUrl:this.bannerImageUrl,a=ya(a,{BannerImageUrl:u})),l=ql(this,"_api/sitepages/pages("+this.json.Id+")/savepage"),[4,Mu(l,Su({"if-match":"*"},_u(a)))];case 5:return p.sent(),c=!0,e?[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/publish"))]:[3,7];case 6:(c=p.sent())&&(this.json.IsPageCheckedOutToCurrentUser=!1),p.label=7;case 7:return this._bannerImageDirty=!1,this._bannerImageThumbnailUrlDirty=!1,[2,c]}})})},t.prototype.discardPageCheckout=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/discardPage"),_u(Iu("SP.Publishing.SitePage")))];case 1:return e=t.sent(),this.fromJSON(e),[2]}})})},t.prototype.promoteToNews=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){return[2,this.promoteNewsImpl("promoteToNews")]})})},t.prototype.findControlById=function(e){return this.findControl(function(t){return t.id===e})},t.prototype.findControl=function(e){for(var t=0;t3?{}:{zoneEmphasis:e}},t.prototype.promoteNewsImpl=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null.");return ba(this.json.VersionInfo.LastVersionCreatedBy)&&new Date(this.json.VersionInfo.LastVersionCreated).getFullYear()<2e3?[4,this.save(!0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/"+e),_u(Iu("SP.Publishing.SitePage")))];case 3:return[2,t.sent()]}})})},t.prototype.mergePartToTree=function(e,t){var n,r,o,i=null,s=12,a=0,u=0,l=1;t&&(Sa(t,"zoneIndex")&&(u=t.zoneIndex),Sa(t,"sectionIndex")&&(a=t.sectionIndex),Sa(t,"sectionFactor")&&(s=t.sectionFactor),Sa(t,"layoutIndex")&&(l=t.layoutIndex));var c=null!==(o=null===(r=null===(n=e.data)||void 0===n?void 0:n.emphasis)||void 0===r?void 0:r.zoneEmphasis)&&void 0!==o?o:0,p=this.getOrCreateSection(u,l,c),d=p.columns.filter(function(e){return e.order===a});i=d.length<1?p.addColumn(s,l):d[0],e.column=i,i.addControl(e)},t.prototype.mergeColumnToTree=function(e){var t,n,r=Sa(e.data,"position")&&Sa(e.data.position,"zoneIndex")?e.data.position.zoneIndex:0,o=Sa(e.data,"position")&&Sa(e.data.position,"layoutIndex")?e.data.position.layoutIndex:1,i=this.getOrCreateSection(r,o,(null===(n=null===(t=e.data)||void 0===t?void 0:t.emphasis)||void 0===n?void 0:n.zoneEmphasis)||0);e.section=i,i.columns.push(e)},t.prototype.getOrCreateSection=function(e,t,n){var r=null,o=this.sections.filter(function(n){return n.order===e&&n.layoutIndex===t});return o.length<1?((r=2===t?this.addVerticalSection():this.addSection()).order=e,r.emphasis=n):r=o[0],r},t.prototype.specialSaveHandling=function(e){var t,n,r;if(3===e.data.controlType&&"c70391ea-0b10-4ee9-b2b4-006d3fcad0cd"===e.data.webPartId){var o=(null===(r=null===(n=null===(t=e.data)||void 0===t?void 0:t.webPartData)||void 0===n?void 0:n.serverProcessedContent)||void 0===r?void 0:r.searchablePlainTexts)||null;if(ma(o))for(var i=Object.getOwnPropertyNames(o),s=0;s/gi))?[]:s.map(function(e){return e.trim()})).reduce(function(e,t){var n=//gi.exec(t);if(n.length<1)return du.write("Could not parse default column value from '"+t+"'",2),null;var r=t.match(//gi);return(null===r?[]:r.map(function(e){return e.trim()})).map(function(t){var r=/(.*?)<\/DefaultValue>/gi.exec(t);r.length<1?du.write("Could not parse default column value from '"+t+"'",2):e.push({name:r[1],path:decodeURIComponent(n[1]),value:r[2]})}),e},[]).filter(function(e){return null!==e})]}})})},yl.prototype.setDefaultColumnValues=function(e){return sa(this,void 0,void 0,function(){var t,n,r,o,i,s,a,u,l,c,p,d,h,f,m;return aa(this,function(g){switch(g.label){case 0:return[4,Ou(this,"fields").select("InternalName","TypeAsString").filter("Hidden ne true")()];case 1:for(t=g.sent(),n={},r=0;r'+o+""}),l=a[0].path.replace(/ /gi,"%20"),c=''+u.join("")+"",i.push(c);return p=""+i.join("")+"",[4,this.rootFolder.select("ServerRelativePath")()];case 2:return d=g.sent(),[4,this.select("ParentWeb/Url").expand("ParentWeb")()];case 3:return h=g.sent(),f=da("/",d.ServerRelativePath.DecodedUrl,"Forms"),m=da(h.ParentWeb.Url,"_api/web","getFolderByServerRelativePath(decodedUrl='"+Zu(f)+"')","files"),[4,Mu(nc(m,"add(overwrite=true,url='client_LocationBasedDefaults.html')"),{body:p})];case 4:return g.sent(),[4,this.eventReceivers.filter("ReceiverName eq 'LocationBasedMetadataDefaultsReceiver ItemAdded'").select("ReceiverId")()];case 5:return g.sent().length<1?[4,Mu(vl(this.eventReceivers,"add"),_u({eventReceiverCreationInformation:{EventType:10001,ReceiverAssembly:"Microsoft.Office.DocumentManagement, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c",ReceiverClass:"Microsoft.Office.DocumentManagement.LocationBasedMetadataDefaultsReceiver",ReceiverName:"LocationBasedMetadataDefaultsReceiver ItemAdded",SequenceNumber:1e3,Synchronization:1}}))]:[3,7];case 6:g.sent(),g.label=7;case 7:return[2]}})})},Ha(pl,"lists",gl),Ha(pl,"siteUserInfoList",vl,"siteuserinfolist"),Ha(pl,"defaultDocumentLibrary",vl,"DefaultDocumentLibrary"),Ha(pl,"customListTemplates",Ou,"getcustomlisttemplates"),pl.prototype.getList=function(e){return vl(this,"getList('"+Zu(e)+"')")},pl.prototype.getCatalog=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(dl,"getcatalog("+e+")").select("Id").get()];case 1:return t=n.sent(),[2,vl(Yu(t))]}})})},tc.prototype.getDefaultColumnValues=function(){return sa(this,void 0,void 0,function(){var e,t;return aa(this,function(n){switch(n.label){case 0:return[4,nc(this,"Properties").select("vti_x005f_listname")()];case 1:return e=n.sent(),[4,this.select("ServerRelativePath")()];case 2:return t=n.sent().ServerRelativePath,[4,dl(wu(Yu(e))).configureFrom(this).lists.getById(e.vti_x005f_listname).getDefaultColumnValues()];case 3:return[2,n.sent().filter(function(e){return e.path.toLowerCase()===t.DecodedUrl.toLowerCase()})]}})})},tc.prototype.setDefaultColumnValues=function(e,t){return void 0===t&&(t=!0),sa(this,void 0,void 0,function(){var n,r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,nc(this,"Properties").select("vti_x005f_listname")()];case 1:return n=u.sent(),r=dl(wu(Yu(n))).configureFrom(this),o=r.lists.getById(n.vti_x005f_listname),[4,this.select("ServerRelativePath")()];case 2:return i=u.sent().ServerRelativePath.DecodedUrl,[4,o.getDefaultColumnValues()];case 3:return s=u.sent(),a=t?s:s.filter(function(e){return e.path!==i}),e.forEach(function(e){var t=a.find(function(t){return t.name===e.name&&t.path===i});t?t.value=e.value:a.push({name:e.name,path:i,value:e.value})}),[4,o.setDefaultColumnValues(a)];case 4:return u.sent(),[2]}})})},tc.prototype.clearDefaultColumnValues=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,this.setDefaultColumnValues([],!1)];case 1:return e.sent(),[2]}})})};var rc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.addAvailableContentType=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(rc,"addAvailableContentType"),_u({contentTypeId:e}))];case 1:return t=n.sent(),[2,{contentType:this.getById(t.id),data:t}]}})})},t.prototype.getById=function(e){return Pu.configure(ic(this).concat("('"+e+"')"),"cts.getById")},t.prototype.add=function(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r="Custom Content Types"),void 0===o&&(o={}),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return i=_u(Object.assign(Iu("SP.ContentType"),{Description:n,Group:r,Id:{StringValue:e},Name:t},o)),[4,Mu(this,i)];case 1:return s=a.sent(),[2,{contentType:this.getById(s.id),data:s}]}})})},ia([Pu("cts.addAvailableContentType")],t.prototype,"addAvailableContentType",null),ia([Pu("cts.add")],t.prototype,"add",null),ia([ju("contenttypes")],t)}(Lu)),oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("ct"),t}return ra(t,e),Object.defineProperty(t.prototype,"fieldLinks",{get:function(){return Pu.configure(sc(this),"ct.fieldLinks")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Pu.configure(Ou(this,"fields"),"ct.fields")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return Pu.configure(ic(this,"parent"),"ct.parent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"workflowAssociations",{get:function(){return Pu.configure(Ou(this,"workflowAssociations"),"ct.workflowAssociations")},enumerable:!1,configurable:!0}),t}(Nu),ic=Ru(oc),sc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(ac(this).concat("(guid'"+e+"')"),"fls.getById")},ia([ju("fieldlinks")],t)}(Lu)),ac=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t}(Nu));Ha(pl,"contentTypes",rc),Ha(_l,"contentType",ic,"ContentType"),Ha(yl,"contentTypes",rc);var uc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.add=function(e,t){return void 0===t&&(t=!1),sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(uc,"add"),_u({featdefScope:0,featureId:e,force:t}))];case 1:return[2,{data:n.sent(),feature:this.getById(e)}]}})})},t.prototype.getById=function(e){var t=lc(this);return t.concat("('"+e+"')"),Pu.configure(t,"fes.getById")},t.prototype.remove=function(e,t){return void 0===t&&(t=!1),Mu(this.clone(uc,"remove"),_u({featureId:e,force:t}))},ia([Pu("fes.add")],t.prototype,"add",null),ia([Pu("fes.remove")],t.prototype,"remove",null),ia([ju("features")],t)}(Lu)),lc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.deactivate=function(e){return void 0===e&&(e=!1),sa(this,void 0,void 0,function(){var t,n,r;return aa(this,function(o){switch(o.label){case 0:return t=this.addBatchDependency(),[4,lc(this).select("DefinitionId")()];case 1:return n=o.sent(),r=this.getParent(uc,this.parentUrl,"",this.batch).remove(n.DefinitionId,e),t(),[2,r]}})})},ia([Pu("fe.deactivate")],t.prototype,"deactivate",null),t}(Nu));Ha(ul,"features",uc),Ha(pl,"features",uc);var cc,pc,dc,hc,fc,mc,gc,yc,vc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.createFieldAsXml=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return"string"==typeof e&&(e={SchemaXml:e}),t=_u({parameters:ya(Iu("SP.XmlSchemaFieldCreationInformation"),e)}),[4,Mu(this.clone(vc,"createfieldasxml"),t)];case 1:return[2,{data:n=r.sent(),field:this.getById(n.Id)}]}})})},t.prototype.getById=function(e){return Pu.configure(_c(this).concat("('"+e+"')"),"fs.getById")},t.prototype.getByTitle=function(e){return Pu.configure(_c(this,"getByTitle('"+e+"')"),"fs.getByTitle")},t.prototype.getByInternalNameOrTitle=function(e){return Pu.configure(_c(this,"getByInternalNameOrTitle('"+e+"')"),"fs.getByInternalNameOrTitle")},t.prototype.add=function(e,t,n){return sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=_u(Object.assign(Iu(t),{Title:e},n)),Pu.isTagged(this)||Pu.configure(this,"fs.add"),[4,Mu(this.clone(vc,null),r)];case 1:return[2,{data:o=i.sent(),field:this.getById(o.Id)}]}})})},t.prototype.addText=function(e,t,n){void 0===t&&(t=255);var r={FieldTypeKind:2,MaxLength:t};return this.add(e,"SP.FieldText",ya(r,n))},t.prototype.addCalculated=function(e,t,n,r,o){void 0===r&&(r=cc.Text);var i={DateFormat:n,FieldTypeKind:17,Formula:t,OutputType:r};return this.add(e,"SP.FieldCalculated",ya(i,o))},t.prototype.addDateTime=function(e,t,n,r,o){void 0===t&&(t=pc.DateOnly),void 0===n&&(n=fc.Gregorian),void 0===r&&(r=dc.Unspecified);var i={DateTimeCalendarType:n,DisplayFormat:t,FieldTypeKind:4,FriendlyDisplayFormat:r};return this.add(e,"SP.FieldDateTime",ya(i,o))},t.prototype.addNumber=function(e,t,n,r){var o={FieldTypeKind:9};return void 0!==t&&(o=ya({MinimumValue:t},o)),void 0!==n&&(o=ya({MaximumValue:n},o)),this.add(e,"SP.FieldNumber",ya(o,r))},t.prototype.addCurrency=function(e,t,n,r,o){void 0===r&&(r=1033);var i={CurrencyLocaleId:r,FieldTypeKind:10};return void 0!==t&&(i=ya({MinimumValue:t},i)),void 0!==n&&(i=ya({MaximumValue:n},i)),this.add(e,"SP.FieldCurrency",ya(i,o))},t.prototype.addMultilineText=function(e,t,n,r,o,i,s){void 0===t&&(t=6),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!0);var a={AllowHyperlink:i,AppendOnly:o,FieldTypeKind:3,NumberOfLines:t,RestrictedMode:r,RichText:n};return this.add(e,"SP.FieldMultiLineText",ya(a,s))},t.prototype.addUrl=function(e,t,n){void 0===t&&(t=mc.Hyperlink);var r={DisplayFormat:t,FieldTypeKind:11};return this.add(e,"SP.FieldUrl",ya(r,n))},t.prototype.addUser=function(e,t,n){var r={FieldTypeKind:20,SelectionMode:t};return this.add(e,"SP.FieldUser",ya(r,n))},t.prototype.addLookup=function(e,t,n,r){return sa(this,void 0,void 0,function(){var o,i,s;return aa(this,function(a){switch(a.label){case 0:return o=ya({FieldTypeKind:7,LookupFieldName:n,LookupListId:t,Title:e},r),i=_u({parameters:ya(Iu("SP.FieldCreationInformation"),o)}),[4,Mu(this.clone(vc,"addfield"),i)];case 1:return[2,{data:s=a.sent(),field:this.getById(s.Id)}]}})})},t.prototype.addChoice=function(e,t,n,r,o){void 0===n&&(n=yc.Dropdown);var i={Choices:{results:t},EditFormat:n,FieldTypeKind:6,FillInChoice:r};return this.add(e,"SP.FieldChoice",ya(i,o))},t.prototype.addMultiChoice=function(e,t,n,r){var o={Choices:{results:t},FieldTypeKind:15,FillInChoice:n};return this.add(e,"SP.FieldMultiChoice",ya(o,r))},t.prototype.addBoolean=function(e,t){return this.add(e,"SP.Field",ya({FieldTypeKind:8},t))},t.prototype.addDependentLookupField=function(e,t,n){return sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r="adddependentlookupfield(displayName='"+e+"', primarylookupfieldid='"+t+"', showfield='"+n+"')",[4,Mu(this.clone(vc,r))];case 1:return[2,{data:o=i.sent(),field:this.getById(o.Id)}]}})})},t.prototype.addLocation=function(e,t){return this.add(e,"SP.FieldLocation",ya({FieldTypeKind:33},t))},ia([Pu("fs.createFieldAsXml")],t.prototype,"createFieldAsXml",null),ia([Pu("fs.addText")],t.prototype,"addText",null),ia([Pu("fs.addCalculated")],t.prototype,"addCalculated",null),ia([Pu("fs.addDateTime")],t.prototype,"addDateTime",null),ia([Pu("fs.addNumber")],t.prototype,"addNumber",null),ia([Pu("fs.addCurrency")],t.prototype,"addCurrency",null),ia([Pu("fs.addMultilineText")],t.prototype,"addMultilineText",null),ia([Pu("fs.addUrl")],t.prototype,"addUrl",null),ia([Pu("fs.addUser")],t.prototype,"addUser",null),ia([Pu("fs.addLookup")],t.prototype,"addLookup",null),ia([Pu("fs.addChoice")],t.prototype,"addChoice",null),ia([Pu("fs.addMultiChoice")],t.prototype,"addMultiChoice",null),ia([Pu("fs.addBoolean")],t.prototype,"addBoolean",null),ia([Pu("fs.addDependentLookupField")],t.prototype,"addDependentLookupField",null),ia([Pu("fs.addLocation")],t.prototype,"addLocation",null),ia([ju("fields")],t)}(Lu)),bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("f"),t}return ra(t,e),t.prototype.update=function(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return null!=t?[3,2]:[4,_c(this).select("FieldTypeKind").configure({headers:{Accept:"application/json"}})()];case 1:n=o.sent(),t=n["odata.type"],o.label=2;case 2:return r=_u(ya(Iu(t),e),Su({"X-HTTP-Method":"MERGE"})),[4,Mu(this,r)];case 3:return[2,{data:o.sent(),field:this}]}})})},t.prototype.setShowInDisplayForm=function(e){return Mu(this.clone(_c,"setshowindisplayform("+e+")"))},t.prototype.setShowInEditForm=function(e){return Mu(this.clone(_c,"setshowineditform("+e+")"))},t.prototype.setShowInNewForm=function(e){return Mu(this.clone(_c,"setshowinnewform("+e+")"))},ia([Pu("f.update")],t.prototype,"update",null),ia([Pu("f.setShowInDisplayForm")],t.prototype,"setShowInDisplayForm",null),ia([Pu("f.setShowInEditForm")],t.prototype,"setShowInEditForm",null),ia([Pu("f.setShowInNewForm")],t.prototype,"setShowInNewForm",null),t}(Nu),_c=Ru(bc);!function(e){e[e.Invalid=0]="Invalid",e[e.Integer=1]="Integer",e[e.Text=2]="Text",e[e.Note=3]="Note",e[e.DateTime=4]="DateTime",e[e.Counter=5]="Counter",e[e.Choice=6]="Choice",e[e.Lookup=7]="Lookup",e[e.Boolean=8]="Boolean",e[e.Number=9]="Number",e[e.Currency=10]="Currency",e[e.URL=11]="URL",e[e.Computed=12]="Computed",e[e.Threading=13]="Threading",e[e.Guid=14]="Guid",e[e.MultiChoice=15]="MultiChoice",e[e.GridChoice=16]="GridChoice",e[e.Calculated=17]="Calculated",e[e.File=18]="File",e[e.Attachments=19]="Attachments",e[e.User=20]="User",e[e.Recurrence=21]="Recurrence",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.ModStat=23]="ModStat",e[e.Error=24]="Error",e[e.ContentTypeId=25]="ContentTypeId",e[e.PageSeparator=26]="PageSeparator",e[e.ThreadIndex=27]="ThreadIndex",e[e.WorkflowStatus=28]="WorkflowStatus",e[e.AllDayEvent=29]="AllDayEvent",e[e.WorkflowEventType=30]="WorkflowEventType"}(cc||(cc={})),function(e){e[e.DateOnly=0]="DateOnly",e[e.DateTime=1]="DateTime"}(pc||(pc={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Disabled=1]="Disabled",e[e.Relative=2]="Relative"}(dc||(dc={})),function(e){e[e.DefaultValue=0]="DefaultValue",e[e.AddToDefaultContentType=1]="AddToDefaultContentType",e[e.AddToNoContentType=2]="AddToNoContentType",e[e.AddToAllContentTypes=4]="AddToAllContentTypes",e[e.AddFieldInternalNameHint=8]="AddFieldInternalNameHint",e[e.AddFieldToDefaultView=16]="AddFieldToDefaultView",e[e.AddFieldCheckDisplayName=32]="AddFieldCheckDisplayName"}(hc||(hc={})),function(e){e[e.Gregorian=1]="Gregorian",e[e.Japan=3]="Japan",e[e.Taiwan=4]="Taiwan",e[e.Korea=5]="Korea",e[e.Hijri=6]="Hijri",e[e.Thai=7]="Thai",e[e.Hebrew=8]="Hebrew",e[e.GregorianMEFrench=9]="GregorianMEFrench",e[e.GregorianArabic=10]="GregorianArabic",e[e.GregorianXLITEnglish=11]="GregorianXLITEnglish",e[e.GregorianXLITFrench=12]="GregorianXLITFrench",e[e.KoreaJapanLunar=14]="KoreaJapanLunar",e[e.ChineseLunar=15]="ChineseLunar",e[e.SakaEra=16]="SakaEra",e[e.UmAlQura=23]="UmAlQura"}(fc||(fc={})),function(e){e[e.Hyperlink=0]="Hyperlink",e[e.Image=1]="Image"}(mc||(mc={})),function(e){e[e.PeopleAndGroups=1]="PeopleAndGroups",e[e.PeopleOnly=0]="PeopleOnly"}(gc||(gc={})),function(e){e[e.Dropdown=0]="Dropdown",e[e.RadioButtons=1]="RadioButtons"}(yc||(yc={})),Ha(pl,"fields",vc),Ha(pl,"availablefields",vc,"availablefields"),Ha(yl,"fields",vc),Ha(tc,"files",Dl),Ha(_l,"file",Rl,"file"),Ha(_l,"folder",nc,"folder"),Ha(yl,"rootFolder",nc,"rootFolder"),Ha(pl,"folders",ec),Ha(pl,"rootFolder",nc,"rootFolder"),pl.prototype.getFolderByServerRelativeUrl=function(e){return nc(this,"getFolderByServerRelativeUrl('"+Zu(e)+"')")},pl.prototype.getFolderByServerRelativePath=function(e){return nc(this,"getFolderByServerRelativePath(decodedUrl='"+Zu(e)+"')")},pl.prototype.getFolderById=function(e){return nc(this,"getFolderById('"+e+"')")};var Sc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Ic(this).concat("('"+e+"')"),"fos.getById")},ia([ju("forms")],t)}(Lu)),Ic=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t}(Nu));Ha(yl,"forms",Sc,"forms");var wc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Pc(this,"GetById?hubSiteId='"+e+"'"),"hss.getById")},ia([ju("_api/hubsites")],t)}(Lu)),Pc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getSite=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.select("SiteUrl")()];case 1:return e=t.sent(),[2,ll(e.SiteUrl)]}})})},ia([Pu("hs.getSite")],t.prototype,"getSite",null),t}(Nu));ul.prototype.joinHubSite=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(ll,"joinHubSite('"+e+"')"))];case 1:return t.sent(),[2]}})})},ul.prototype.registerHubSite=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,Mu(this.clone(ll,"registerHubSite"))];case 1:return e.sent(),[2]}})})},ul.prototype.unRegisterHubSite=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,Mu(this.clone(ll,"unRegisterHubSite"))];case 1:return e.sent(),[2]}})})},pl.prototype.hubSiteData=function(e){return void 0===e&&(e=!1),sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(dl,"hubSiteData("+e+")")()];case 1:return"string"==typeof(t=n.sent())?[2,JSON.parse(t)]:[2,t]}})})},pl.prototype.syncHubSiteTheme=function(){return Mu(this.clone(dl,"syncHubSiteTheme"))},Reflect.defineProperty(Qu.prototype,"hubSites",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return wc(n).configure(t).setRuntime(r)})}});var Cc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(xc(this).concat("("+e+")"),"nns.getById")},t.prototype.add=function(e,t,n){return void 0===n&&(n=!0),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=_u(ya(Iu("SP.NavigationNode"),{IsVisible:n,Title:e,Url:t})),[4,Mu(this.clone(Cc,null),r)];case 1:return[2,{data:o=i.sent(),node:this.getById(o.Id)}]}})})},t.prototype.moveAfter=function(e,t){var n=_u({nodeId:e,previousNodeId:t});return Mu(this.clone(Cc,"MoveAfter"),n)},ia([Pu("nns.add")],t.prototype,"add",null),ia([Pu("nns.moveAfter")],t.prototype,"moveAfter",null),t}(Lu)),xc=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("nn"),t}return ra(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return Pu.configure(Cc(this,"children"),"nn.children")},enumerable:!1,configurable:!0}),t.prototype.update=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return t=_u(ya(Iu("SP.NavigationNode"),e),Su({"X-HTTP-Method":"MERGE"})),[4,Mu(this,t)];case 1:return[2,{data:n.sent(),node:this}]}})})},ia([Pu("nn.update")],t.prototype,"update",null),t}(Nu)),Tc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"quicklaunch",{get:function(){return Pu.configure(Cc(this,"quicklaunch"),"n.quicklaunch")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topNavigationBar",{get:function(){return Pu.configure(Cc(this,"topnavigationbar"),"n.topnavigationbar")},enumerable:!1,configurable:!0}),ia([ju("navigation")],t)}(Fu)),Ec=function(e){function t(t){return void 0===t&&(t=null),e.call(this,"_api/navigation",t)||this}return ra(t,e),t.prototype.getMenuState=function(e,t,n,r){return void 0===e&&(e=null),void 0===t&&(t=10),void 0===n&&(n=null),void 0===r&&(r=null),Mu(kc("MenuState"),_u({customProperties:r,depth:t,mapProviderName:n,menuNodeKey:e}))},t.prototype.getMenuNodeKey=function(e,t){return void 0===t&&(t=null),Mu(kc("MenuNodeKey"),_u({currentUrl:e,mapProviderName:t}))},ia([Pu("ns.getMenuState")],t.prototype,"getMenuState",null),ia([Pu("ns.getMenuNodeKey")],t.prototype,"getMenuNodeKey",null),t}(Fu),kc=function(e){return new Ec(e)};Ha(pl,"navigation",Tc),Reflect.defineProperty(Qu.prototype,"navigation",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return kc(n).configure(t).setRuntime(r)})}});var Dc,Mc=Ru(function(e){function t(t,n){void 0===n&&(n="_api/sp.userprofiles.peoplemanager");var r=e.call(this,t,n)||this;return r.clientPeoplePickerQuery=new Bc(t).configureFrom(r),r.profileLoader=new Rc(t).configureFrom(r),r}return ra(t,e),Object.defineProperty(t.prototype,"editProfileLink",{get:function(){return this.clone(Mc,"EditProfileLink").get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMyPeopleListPublic",{get:function(){return this.clone(Mc,"IsMyPeopleListPublic").get()},enumerable:!1,configurable:!0}),t.prototype.amIFollowedBy=function(e){var t=this.clone(Mc,"amifollowedby(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},t.prototype.amIFollowing=function(e){var t=this.clone(Mc,"amifollowing(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},t.prototype.getFollowedTags=function(e){return void 0===e&&(e=20),this.clone(Mc,"getfollowedtags("+e+")").get()},t.prototype.getFollowersFor=function(e){var t=this.clone(Mc,"getfollowersfor(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},Object.defineProperty(t.prototype,"myFollowers",{get:function(){return Ou(this,"getmyfollowers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"myProperties",{get:function(){return new t(this,"getmyproperties")},enumerable:!1,configurable:!0}),t.prototype.getPeopleFollowedBy=function(e){var t=this.clone(Mc,"getpeoplefollowedby(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},t.prototype.getPropertiesFor=function(e){var t=this.clone(Mc,"getpropertiesfor(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},Object.defineProperty(t.prototype,"trendingTags",{get:function(){var e=this.clone(Mc,null);return e.concat(".gettrendingtags"),e.get()},enumerable:!1,configurable:!0}),t.prototype.getUserProfilePropertyFor=function(e,t){var n=this.clone(Mc,"getuserprofilepropertyfor(accountname=@v, propertyname='"+t+"')");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},t.prototype.hideSuggestion=function(e){var t=this.clone(Mc,"hidesuggestion(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),Mu(t)},t.prototype.isFollowing=function(e,t){var n=this.clone(Mc,null);return n.concat(".isfollowing(possiblefolloweraccountname=@v, possiblefolloweeaccountname=@y)"),n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.query.set("@y","'"+encodeURIComponent(t)+"'"),n.get()},t.prototype.setMyProfilePic=function(e){var t=this;return new Promise(function(n,r){var o=new FileReader;o.onload=function(e){return sa(t,void 0,void 0,function(){var t,o;return aa(this,function(i){switch(i.label){case 0:t=e.target.result,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Mu(Mc(this,"setmyprofilepicture"),{body:t})];case 2:return i.sent(),n(),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}})})},o.readAsArrayBuffer(e)})},t.prototype.setSingleValueProfileProperty=function(e,t,n){return Mu(this.clone(Mc,"SetSingleValueProfileProperty"),_u({accountName:e,propertyName:t,propertyValue:n}))},t.prototype.setMultiValuedProfileProperty=function(e,t,n){return Mu(this.clone(Mc,"SetMultiValuedProfileProperty"),_u({accountName:e,propertyName:t,propertyValues:n}))},t.prototype.createPersonalSiteEnqueueBulk=function(){for(var e=[],t=0;tthis.TotalRows?Promise.resolve(null):Yc(this._url)(r)},e.prototype.formatSearchResults=function(e){var t,n,r=new Array;if(void 0===e||null==e)return[];var o=e.results?e.results:e;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=i.next();!s.done;s=i.next()){var a=s.value,u=a.Cells.results?a.Cells.results:a.Cells;r.push(u.reduce(function(e,t){return Reflect.defineProperty(e,t.Key,{configurable:!1,enumerable:!0,value:t.Value,writable:!1}),e},{}))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e}(),ep=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.execute=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return this.mapQueryToQueryString(e),[4,this.get()];case 1:return t=r.sent(),[2,{PeopleNames:(n=Sa(t,"suggest")?function(e){return t.suggest[e].results}:function(e){return t[e]})("PeopleNames"),PersonalResults:n("PersonalResults"),Queries:n("Queries")}]}})})},t.prototype.mapQueryToQueryString=function(e){var t=this;this.query.set("querytext","'"+e.querytext+"'");var n,r=(n=e,function(e){return function(r){Sa(n,e)&&t.query.set(r,n[e].toString())}});r("count")("inumberofquerysuggestions"),r("personalCount")("inumberofresultsuggestions"),r("preQuery")("fprequerysuggestions"),r("hitHighlighting")("fhithighlighting"),r("capitalize")("fcapitalizefirstletters"),r("culture")("culture"),r("stemming")("enablestemming"),r("includePeople")("showpeoplenamesuggestions"),r("queryRules")("enablequeryrules"),r("prefixMatch")("fprefixmatchallterms")},ia([Pu("su.execute")],t.prototype,"execute",null),ia([ju("_api/search/suggest")],t)}(Nu);!function(e){e[e.Ascending=0]="Ascending",e[e.Descending=1]="Descending",e[e.FQLFormula=2]="FQLFormula"}(Gc||(Gc={})),function(e){e[e.ResultContainsKeyword=0]="ResultContainsKeyword",e[e.TitleContainsKeyword=1]="TitleContainsKeyword",e[e.TitleMatchesKeyword=2]="TitleMatchesKeyword",e[e.UrlStartsWith=3]="UrlStartsWith",e[e.UrlExactlyMatches=4]="UrlExactlyMatches",e[e.ContentTypeIs=5]="ContentTypeIs",e[e.FileExtensionMatches=6]="FileExtensionMatches",e[e.ResultHasTag=7]="ResultHasTag",e[e.ManualCondition=8]="ManualCondition"}(Xc||(Xc={})),function(e){e[e.None=0]="None",e[e.StringType=1]="StringType",e[e.Int32Type=2]="Int32Type",e[e.BooleanType=3]="BooleanType",e[e.StringArrayType=4]="StringArrayType",e[e.UnSupportedType=5]="UnSupportedType"}(Qc||(Qc={})),function(){function e(){}e.Documents="e7ec8cee-ded8-43c9-beb5-436b54b31e84",e.ItemsMatchingContentType="5dc9f503-801e-4ced-8a2c-5d1237132419",e.ItemsMatchingTag="e1327b9c-2b8c-4b23-99c9-3730cb29c3f7",e.ItemsRelatedToCurrentUser="48fec42e-4a92-48ce-8363-c2703a40e67d",e.ItemsWithSameKeywordAsThisItem="5c069288-1d17-454a-8ac6-9c642a065f48",e.LocalPeopleResults="b09a7990-05ea-4af9-81ef-edfab16c4e31",e.LocalReportsAndDataResults="203fba36-2763-4060-9931-911ac8c0583b",e.LocalSharePointResults="8413cd39-2156-4e00-b54d-11efd9abdb89",e.LocalVideoResults="78b793ce-7956-4669-aa3b-451fc5defebf",e.Pages="5e34578e-4d08-4edc-8bf3-002acf3cdbcc",e.Pictures="38403c8c-3975-41a8-826e-717f2d41568a",e.Popular="97c71db1-58ce-4891-8b64-585bc2326c12",e.RecentlyChangedItems="ba63bbae-fa9c-42c0-b027-9a878f16557c",e.RecommendedItems="ec675252-14fa-4fbe-84dd-8d098ed74181",e.Wiki="9479bf85-e257-4318-b5a8-81a180f5faa1"}(),Qu.prototype.search=function(e){return this.childConfigHook(function(t){var n=t.options,r=t.baseUrl,o=t.runtime;return Yc(r,n,o)(e)})},Qu.prototype.searchWithCaching=function(e,t){return this.childConfigHook(function(n){var r=n.options,o=n.baseUrl,i=n.runtime;return new Zc(o).configure(r).setRuntime(i).usingCaching(t).execute(e)})},Qu.prototype.searchSuggest=function(e){return this.childConfigHook(function(t){var n=t.options;return function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=Ma),function(r){return new ep(e).configure(t).setRuntime(n).execute(r)}}(t.baseUrl,n,t.runtime)("string"==typeof e?{querytext:e}:e)})};var tp,np,rp,op,ip,sp,ap,up=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(lp(this,"getById("+e+")"),"sus.getById")},t.prototype.getByEmail=function(e){return Pu.configure(lp(this,"getByEmail('"+e+"')"),"sus.getByEmail")},t.prototype.getByLoginName=function(e){return Pu.configure(lp(this).concat("('!@v::"+encodeURIComponent(e)+"')"),"sus.getByLoginName")},t.prototype.removeById=function(e){return Mu(this.clone(up,"removeById("+e+")"))},t.prototype.removeByLoginName=function(e){var t=this.clone(up,"removeByLoginName(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),Mu(t)},t.prototype.add=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this,_u(ya(Iu("SP.User"),{LoginName:e})))];case 1:return t.sent(),[2,this.getByLoginName(e)]}})})},ia([Pu("sus.remId")],t.prototype,"removeById",null),ia([Pu("sus.remLoginName")],t.prototype,"removeByLoginName",null),ia([Pu("sus.add")],t.prototype,"add",null),ia([ju("siteusers")],t)}(Lu)),lp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("su"),t.update=t._update("SP.User",function(e){return{data:e,user:t}}),t}return ra(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return Pu.configure(cp(this,"groups"),"su.groups")},enumerable:!1,configurable:!0}),t}(Nu)),cp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(pp(this).concat("("+e+")"),"sgs.getById")},t.prototype.add=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=_u(ya(Iu("SP.Group"),e)),[4,Mu(Pu.configure(this,"sgs.add"),t)];case 1:return[2,{data:n=r.sent(),group:this.getById(n.Id)}]}})})},t.prototype.getByName=function(e){return Pu.configure(pp(this,"getByName('"+e+"')"),"sgs.getByName")},t.prototype.removeById=function(e){return Mu(this.clone(cp,"removeById('"+e+"')"))},t.prototype.removeByLoginName=function(e){return Mu(this.clone(cp,"removeByLoginName('"+e+"')"))},ia([Pu("sgs.removeById")],t.prototype,"removeById",null),ia([Pu("sgs.removeByLoginName")],t.prototype,"removeByLoginName",null),ia([ju("sitegroups")],t)}(Lu)),pp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.Group",function(e,n){return{data:e,group:Sa(n,"Title")?t.getParent(pp,t.parentUrl,"getByName('"+n.Title+"')"):pp(t)}}),t}return ra(t,e),Object.defineProperty(t.prototype,"users",{get:function(){return Pu.configure(up(this,"users"),"sg.users")},enumerable:!1,configurable:!0}),t.prototype.setUserAsOwner=function(e){return Mu(this.clone(pp,"SetUserAsOwner("+e+")"))},ia([Pu("sg.setUserAsOwner")],t.prototype,"setUserAsOwner",null),t}(Nu)),dp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return hp(this).concat("("+e+")")},t.prototype.add=function(e,t){return sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(dp,"addroleassignment(principalid="+e+", roledefid="+t+")"))];case 1:return n.sent(),[2]}})})},t.prototype.remove=function(e,t){return sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(dp,"removeroleassignment(principalid="+e+", roledefid="+t+")"))];case 1:return n.sent(),[2]}})})},ia([ju("roleassignments")],t)}(Lu)),hp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("ra"),t}return ra(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return Pu.configure(cp(this,"groups"),"ra.groups")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return Ou(this,"roledefinitionbindings")},enumerable:!1,configurable:!0}),t}(Nu)),fp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return mp(this,"getById("+e+")")},t.prototype.getByName=function(e){return mp(this,"getbyname('"+e+"')")},t.prototype.getByType=function(e){return mp(this,"getbytype("+e+")")},t.prototype.add=function(e,t,n,r){return sa(this,void 0,void 0,function(){var o,i;return aa(this,function(s){switch(s.label){case 0:return o=_u({BasePermissions:{High:r.High.toString(),Low:r.Low.toString()},Description:t,Name:e,Order:n,__metadata:{type:"SP.RoleDefinition"}}),[4,Mu(this,o)];case 1:return[2,{data:i=s.sent(),definition:this.getById(i.Id)}]}})})},ia([ju("roledefinitions")],t)}(Lu)),mp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("rd"),t}return ra(t,e),t.prototype.update=function(e){return sa(this,void 0,void 0,function(){var t,n,r,o,i,s;return aa(this,function(a){switch(a.label){case 0:return void 0!==Sa(e,(t=["BasePermissions"])[0])&&(e[t[0]]=ya(Iu("SP."+t[0]),e[t[0]]),(n=e[t[0]]).High=n.High.toString(),n.Low=n.Low.toString()),r=_u(ya(Iu("SP.RoleDefinition"),e),Su({"X-HTTP-Method":"MERGE"})),[4,Mu(this,r)];case 1:return o=a.sent(),i=this,Sa(e,"Name")&&(s=this.getParent(fp,this.parentUrl,""),i=s.getByName(e.Name)),[2,{data:o,definition:i}]}})})},t}(Nu));function gp(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return(t=this.clone(Au,"getUserEffectivePermissions(@user)")).query.set("@user","'"+encodeURIComponent(e)+"'"),[4,t.get()];case 1:return[2,Sa(n=r.sent(),"GetUserEffectivePermissions")?n.GetUserEffectivePermissions:n]}})})}function yp(){return sa(this,void 0,void 0,function(){return aa(this,function(e){return[2,this.clone(Bu,"EffectiveBasePermissions").get().then(function(e){return Sa(e,"EffectiveBasePermissions")?e.EffectiveBasePermissions:e})]})})}function vp(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(Bu,"breakroleinheritance(copyroleassignments="+e+", clearsubscopes="+t+")"))];case 1:return n.sent(),[2]}})})}function bp(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,Mu(this.clone(Bu,"resetroleinheritance"))];case 1:return e.sent(),[2]}})})}function _p(e,t){return sa(this,void 0,void 0,function(){var n;return aa(this,function(r){switch(r.label){case 0:return[4,gp.call(this,e)];case 1:return n=r.sent(),[2,this.hasPermissions(n,t)]}})})}function Sp(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,yp.call(this)];case 1:return t=n.sent(),[2,this.hasPermissions(t,e)]}})})}function Ip(e,t){if(!t)return!0;if(t===tp.FullMask)return 32767==(32767&e.High)&&65535===e.Low;var n=1;return(t-=1)>=0&&t<32?(n<<=t,0!=(e.Low&n)):t>=32&&t<64&&(n<<=t-32,0!=(e.High&n))}function wp(e,t,n){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var r,o,i;return aa(this,function(s){switch(s.label){case 0:return n?[2,Rp(e,t)]:[4,Fp((t=ya(t,{group:null,includeAnonymousLinkInEmail:!1,propagateAcl:!1,useSimplifiedRoles:!0},!0)).role,t.group)];case 1:return r=s.sent(),Array.isArray(t.loginNames)||(t.loginNames=[t.loginNames]),o=_a(t.loginNames.map(function(e){return{Key:e}})),i={peoplePickerInput:o,roleValue:r,url:t.url},void 0!==t.emailData&&null!==t.emailData&&(i=ya(i,{emailBody:t.emailData.body,emailSubject:void 0!==t.emailData.subject?t.emailData.subject:"Shared with you.",sendEmail:!0})),[2,Rp(e,i)]}})})}function Pp(e,t){void 0===t&&(t=null);var n=null!==t?t.toISOString():null,r=Pu.configure(this.clone(Au,"shareLink"),"sh.getShareLink");return Mu(r,_u({request:{createLink:!0,emailData:null,settings:{expiration:n,linkKind:e}}}))}function Cp(e){var t=Pu.configure(this.clone(Au,"checkPermissions"),"sh.checkPermissions");return Mu(t,_u({recipients:e}))}function xp(e,t){void 0===e&&(e=null),void 0===t&&(t=[]);var n=Pu.configure(this.clone(Au,"getSharingInformation"),"sh.getSharingInformation");return Mu(n.expand.apply(n,la([],ua(t))),_u({request:e}))}function Tp(e){void 0===e&&(e=!0);var t=Pu.configure(this.clone(Au,"getObjectSharingSettings"),"sh.getObjectSharingSettings");return Mu(t,_u({useSimplifiedRoles:e}))}function Ep(){return Mu(Pu.configure(this.clone(Au,"unshareObject"),"sh.unshareObject"))}function kp(e){return Mu(Pu.configure(this.clone(Au,"deleteLinkByKind"),"sh.deleteLinkByKind"),_u({linkKind:e}))}function Dp(e,t){return void 0===t&&(t=Ku),Mu(Pu.configure(this.clone(Au,"unshareLink"),"sh.unshareLink"),_u({linkKind:e,shareId:t}))}function Mp(e,t,n,r,o,i){return void 0===r&&(r=!1),void 0===o&&(o=!1),sa(this,void 0,void 0,function(){var s,a,u,l;return aa(this,function(c){switch(c.label){case 0:return Array.isArray(t)||(t=[t]),s=_a(t.map(function(e){return{Key:e}})),a=n===np.Edit?ap.Contributor:ap.Reader,[4,Ou("_api/web","roledefinitions").select("Id").filter("RoleTypeKind eq "+a).get()];case 1:if(u=c.sent(),!Array.isArray(u)||u.length<1)throw Error("Could not locate a role defintion with RoleTypeKind "+a);return l={includeAnonymousLinkInEmail:r,peoplePickerInput:s,propagateAcl:o,roleValue:"role:"+u[0].Id,useSimplifiedRoles:!0},void 0!==i&&(l=ya(l,{emailBody:i.body,emailSubject:void 0!==i.subject?i.subject:"",sendEmail:!0})),[2,Mu(Pu.configure(e.clone(Au,"shareObject"),"sh.shareWith"),_u(l))]}})})}function Rp(e,t){var n=Pu.configure(dl(wu(e.toUrl()),"/_api/SP.Web.ShareObject"),"sh.sendShareObjectRequest");return n.configureFrom(this),Mu(n.expand("UsersWithAccessRequests","GroupsSharedWith"),_u(t))}function Fp(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:if(null==t)return[3,7];switch(t){case ap.Contributor:return[3,1];case ap.Reader:case ap.Guest:return[3,3]}return[3,5];case 1:return[4,dl("_api/web","associatedmembergroup").configureFrom(this).select("Id")()];case 2:return[2,"group: "+o.sent().Id];case 3:return[4,dl("_api/web","associatedvisitorgroup").configureFrom(this).select("Id")()];case 4:return[2,"group: "+o.sent().Id];case 5:throw Error("Could not determine role value for supplied value. Contributor, Reader, and Guest are supported");case 6:return[3,9];case 7:return n=e===np.Edit?ap.Contributor:ap.Reader,[4,fp("_api/web").select("Id").top(1).filter("RoleTypeKind eq "+n)()];case 8:if((r=o.sent()).length<1)throw Error("Could not locate associated role definition for supplied role. Edit and View are supported");return[2,"role: "+r[0].Id];case 9:return[2]}})})}!function(e){e[e.EmptyMask=0]="EmptyMask",e[e.ViewListItems=1]="ViewListItems",e[e.AddListItems=2]="AddListItems",e[e.EditListItems=3]="EditListItems",e[e.DeleteListItems=4]="DeleteListItems",e[e.ApproveItems=5]="ApproveItems",e[e.OpenItems=6]="OpenItems",e[e.ViewVersions=7]="ViewVersions",e[e.DeleteVersions=8]="DeleteVersions",e[e.CancelCheckout=9]="CancelCheckout",e[e.ManagePersonalViews=10]="ManagePersonalViews",e[e.ManageLists=12]="ManageLists",e[e.ViewFormPages=13]="ViewFormPages",e[e.AnonymousSearchAccessList=14]="AnonymousSearchAccessList",e[e.Open=17]="Open",e[e.ViewPages=18]="ViewPages",e[e.AddAndCustomizePages=19]="AddAndCustomizePages",e[e.ApplyThemeAndBorder=20]="ApplyThemeAndBorder",e[e.ApplyStyleSheets=21]="ApplyStyleSheets",e[e.ViewUsageData=22]="ViewUsageData",e[e.CreateSSCSite=23]="CreateSSCSite",e[e.ManageSubwebs=24]="ManageSubwebs",e[e.CreateGroups=25]="CreateGroups",e[e.ManagePermissions=26]="ManagePermissions",e[e.BrowseDirectories=27]="BrowseDirectories",e[e.BrowseUserInfo=28]="BrowseUserInfo",e[e.AddDelPrivateWebParts=29]="AddDelPrivateWebParts",e[e.UpdatePersonalWebParts=30]="UpdatePersonalWebParts",e[e.ManageWeb=31]="ManageWeb",e[e.AnonymousSearchAccessWebLists=32]="AnonymousSearchAccessWebLists",e[e.UseClientIntegration=37]="UseClientIntegration",e[e.UseRemoteAPIs=38]="UseRemoteAPIs",e[e.ManageAlerts=39]="ManageAlerts",e[e.CreateAlerts=40]="CreateAlerts",e[e.EditMyUserInfo=41]="EditMyUserInfo",e[e.EnumeratePermissions=63]="EnumeratePermissions",e[e.FullMask=65]="FullMask"}(tp||(tp={})),Ha(_l,"roleAssignments",dp),Ha(_l,"firstUniqueAncestorSecurableObject",Au),_l.prototype.getUserEffectivePermissions=gp,_l.prototype.getCurrentUserEffectivePermissions=yp,_l.prototype.breakRoleInheritance=vp,_l.prototype.resetRoleInheritance=bp,_l.prototype.userHasPermissions=_p,_l.prototype.currentUserHasPermissions=Sp,_l.prototype.hasPermissions=Ip,Ha(yl,"roleAssignments",dp),Ha(yl,"firstUniqueAncestorSecurableObject",Au),yl.prototype.getUserEffectivePermissions=gp,yl.prototype.getCurrentUserEffectivePermissions=yp,yl.prototype.breakRoleInheritance=vp,yl.prototype.resetRoleInheritance=bp,yl.prototype.userHasPermissions=_p,yl.prototype.currentUserHasPermissions=Sp,yl.prototype.hasPermissions=Ip,Ha(pl,"roleDefinitions",fp),Ha(pl,"roleAssignments",dp),Ha(pl,"firstUniqueAncestorSecurableObject",Au),pl.prototype.getUserEffectivePermissions=gp,pl.prototype.getCurrentUserEffectivePermissions=yp,pl.prototype.breakRoleInheritance=vp,pl.prototype.resetRoleInheritance=bp,pl.prototype.userHasPermissions=_p,pl.prototype.currentUserHasPermissions=Sp,pl.prototype.hasPermissions=Ip,function(e){e[e.None=0]="None",e[e.View=1]="View",e[e.Edit=2]="Edit",e[e.Owner=3]="Owner"}(np||(np={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Folder=2]="Folder",e[e.Item=3]="Item",e[e.List=4]="List",e[e.Web=5]="Web",e[e.Max=6]="Max"}(rp||(rp={})),function(e){e[e.None=0]="None",e[e.AllowList=1]="AllowList",e[e.BlockList=2]="BlockList"}(op||(op={})),function(e){e[e.CompletedSuccessfully=0]="CompletedSuccessfully",e[e.AccessRequestsQueued=1]="AccessRequestsQueued",e[e.NoResolvedUsers=-1]="NoResolvedUsers",e[e.AccessDenied=-2]="AccessDenied",e[e.CrossSiteRequestNotSupported=-3]="CrossSiteRequestNotSupported",e[e.UnknowError=-4]="UnknowError",e[e.EmailBodyTooLong=-5]="EmailBodyTooLong",e[e.ListUniqueScopesExceeded=-6]="ListUniqueScopesExceeded",e[e.CapabilityDisabled=-7]="CapabilityDisabled",e[e.ObjectNotSupported=-8]="ObjectNotSupported",e[e.NestedGroupsNotSupported=-9]="NestedGroupsNotSupported"}(ip||(ip={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Direct=1]="Direct",e[e.OrganizationView=2]="OrganizationView",e[e.OrganizationEdit=3]="OrganizationEdit",e[e.AnonymousView=4]="AnonymousView",e[e.AnonymousEdit=5]="AnonymousEdit",e[e.Flexible=6]="Flexible"}(sp||(sp={})),function(e){e[e.None=0]="None",e[e.Guest=1]="Guest",e[e.Reader=2]="Reader",e[e.Contributor=3]="Contributor",e[e.WebDesigner=4]="WebDesigner",e[e.Administrator=5]="Administrator"}(ap||(ap={})),Ml.prototype.shareWith=function(e,t,n,r){return void 0===t&&(t=np.View),void 0===n&&(n=!1),Mp(this,e,t,n,!1,r)},Ml.prototype.getShareLink=Pp,Ml.prototype.checkSharingPermissions=Cp,Ml.prototype.getSharingInformation=xp,Ml.prototype.getObjectSharingSettings=Tp,Ml.prototype.unshare=Ep,Ml.prototype.deleteSharingLinkByKind=kp,Ml.prototype.unshareLink=Dp,tc.prototype.shareWith=function(e,t,n,r,o){return void 0===t&&(t=np.View),void 0===n&&(n=!1),void 0===r&&(r=!1),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return i=this.addBatchDependency(),[4,this.getShareable()];case 1:return s=a.sent(),i(),[2,s.shareWith(e,t,n,r,o)]}})})},tc.prototype.getShareLink=function(e,t){return void 0===t&&(t=null),sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return n=this.addBatchDependency(),[4,this.getShareable()];case 1:return r=o.sent(),n(),[2,r.getShareLink(e,t)]}})})},tc.prototype.checkSharingPermissions=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.addBatchDependency(),[4,this.getShareable()];case 1:return n=r.sent(),t(),[2,n.checkSharingPermissions(e)]}})})},tc.prototype.getSharingInformation=function(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return n=this.addBatchDependency(),[4,this.getShareable()];case 1:return r=o.sent(),n(),[2,r.getSharingInformation(e,t)]}})})},tc.prototype.getObjectSharingSettings=function(e){return void 0===e&&(e=!0),sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.addBatchDependency(),[4,this.getShareable()];case 1:return n=r.sent(),t(),[2,n.getObjectSharingSettings(e)]}})})},tc.prototype.unshare=function(){return sa(this,void 0,void 0,function(){var e,t;return aa(this,function(n){switch(n.label){case 0:return e=this.addBatchDependency(),[4,this.getShareable()];case 1:return t=n.sent(),e(),[2,t.unshare()]}})})},tc.prototype.deleteSharingLinkByKind=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.addBatchDependency(),[4,this.getShareable()];case 1:return n=r.sent(),t(),[2,n.deleteSharingLinkByKind(e)]}})})},tc.prototype.unshareLink=function(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return n=this.addBatchDependency(),[4,this.getShareable()];case 1:return r=o.sent(),n(),[2,r.unshareLink(e,t)]}})})},_l.prototype.shareWith=function(e,t,n,r){return void 0===t&&(t=np.View),void 0===n&&(n=!1),Mp(this,e,t,n,!1,r)},_l.prototype.getShareLink=Pp,_l.prototype.checkSharingPermissions=Cp,_l.prototype.getSharingInformation=xp,_l.prototype.getObjectSharingSettings=Tp,_l.prototype.unshare=Ep,_l.prototype.deleteSharingLinkByKind=kp,_l.prototype.unshareLink=Dp,pl.prototype.shareWith=function(e,t,n){return void 0===t&&(t=np.View),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=this.addBatchDependency(),[4,new Nu(wu(this.toUrl()),"/_api/web/url").get()];case 1:return o=i.sent(),r(),[2,this.shareObject(da(o,"/_layouts/15/aclinv.aspx?forSharing=1&mbypass=1"),e,t,n)]}})})},pl.prototype.shareObject=function(e,t,n,r,o,i,s,a){return void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===a&&(a=!0),wp(this,{emailData:r,group:o,includeAnonymousLinkInEmail:s,loginNames:t,propagateAcl:i,role:n,url:e,useSimplifiedRoles:a})},pl.prototype.shareObjectRaw=function(e){return wp(this,e,!0)},pl.prototype.unshareObject=function(e){return Mu(dl(this,"unshareObject").configureFrom(this),_u({url:e}))};var Bp=function(e){function t(t,n){void 0===n&&(n="");var r="string"==typeof t?t:t.toUrl();return e.call(this,wu(r),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+n)||this}return ra(t,e),t.prototype.execute=function(e){return Mu(this,_u(e,Su({"Content-Type":"application/json;charset=utf-8"})))},t.prototype.createSiteDesign=function(e){return this.clone(Op,"CreateSiteDesign").execute({info:e})},t.prototype.applySiteDesign=function(e,t){return this.clone(Op,"ApplySiteDesign").execute({siteDesignId:e,webUrl:t})},t.prototype.getSiteDesigns=function(){return this.clone(Op,"GetSiteDesigns").execute({})},t.prototype.getSiteDesignMetadata=function(e){return this.clone(Op,"GetSiteDesignMetadata").execute({id:e})},t.prototype.updateSiteDesign=function(e){return this.clone(Op,"UpdateSiteDesign").execute({updateInfo:e})},t.prototype.deleteSiteDesign=function(e){return this.clone(Op,"DeleteSiteDesign").execute({id:e})},t.prototype.getSiteDesignRights=function(e){return this.clone(Op,"GetSiteDesignRights").execute({id:e})},t.prototype.grantSiteDesignRights=function(e,t,n){return void 0===n&&(n=1),this.clone(Op,"GrantSiteDesignRights").execute({grantedRights:n.toString(),id:e,principalNames:t})},t.prototype.revokeSiteDesignRights=function(e,t){return this.clone(Op,"RevokeSiteDesignRights").execute({id:e,principalNames:t})},t.prototype.addSiteDesignTask=function(e,t){return this.clone(Op,"AddSiteDesignTask").execute({webUrl:e,siteDesignId:t})},t.prototype.addSiteDesignTaskToCurrentWeb=function(e){return this.clone(Op,"AddSiteDesignTaskToCurrentWeb").execute({siteDesignId:e})},t.prototype.getSiteDesignTask=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(Op,"GetSiteDesignTask").execute({taskId:e})];case 1:return[2,Sa(t=n.sent(),"ID")?t:null]}})})},t.prototype.getSiteDesignRun=function(e,t){return this.clone(Op,"GetSiteDesignRun").execute({webUrl:e,siteDesignId:t})},t.prototype.getSiteDesignRunStatus=function(e,t){return this.clone(Op,"GetSiteDesignRunStatus").execute({webUrl:e,runId:t})},ia([Pu("sd.createSiteDesign")],t.prototype,"createSiteDesign",null),ia([Pu("sd.applySiteDesign")],t.prototype,"applySiteDesign",null),ia([Pu("sd.getSiteDesigns")],t.prototype,"getSiteDesigns",null),ia([Pu("sd.getSiteDesignMetadata")],t.prototype,"getSiteDesignMetadata",null),ia([Pu("sd.updateSiteDesign")],t.prototype,"updateSiteDesign",null),ia([Pu("sd.deleteSiteDesign")],t.prototype,"deleteSiteDesign",null),ia([Pu("sd.getSiteDesignRights")],t.prototype,"getSiteDesignRights",null),ia([Pu("sd.grantSiteDesignRights")],t.prototype,"grantSiteDesignRights",null),ia([Pu("sd.revokeSiteDesignRights")],t.prototype,"revokeSiteDesignRights",null),ia([Pu("sd.addSiteDesignTask")],t.prototype,"addSiteDesignTask",null),ia([Pu("sd.addSiteDesignTaskToCurrentWeb")],t.prototype,"addSiteDesignTaskToCurrentWeb",null),ia([Pu("sd.getSiteDesignTask")],t.prototype,"getSiteDesignTask",null),ia([Pu("sd.getSiteDesignRun")],t.prototype,"getSiteDesignRun",null),ia([Pu("sd.getSiteDesignRunStatus")],t.prototype,"getSiteDesignRunStatus",null),t}(Fu),Lp=function(e,t){return new Bp(e,t)},Op=function(e,t){return void 0===t&&(t=""),Lp(e,t)};pl.prototype.getSiteDesignRuns=function(e){return Lp(this,"").getSiteDesignRun(void 0,e)},pl.prototype.addSiteDesignTask=function(e){return Lp(this,"").addSiteDesignTaskToCurrentWeb(e)},pl.prototype.getSiteDesignRunStatus=function(e){return Lp(this,"").getSiteDesignRunStatus(void 0,e)},Reflect.defineProperty(Qu.prototype,"siteDesigns",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return Lp(n).configure(t).setRuntime(r)})}}),Ha(pl,"siteGroups",cp),Ha(pl,"associatedOwnerGroup",pp,"associatedownergroup"),Ha(pl,"associatedMemberGroup",pp,"associatedmembergroup"),Ha(pl,"associatedVisitorGroup",pp,"associatedvisitorgroup"),pl.prototype.createDefaultAssociatedGroups=function(e,t,n,r,o){return void 0===n&&(n=!1),void 0===r&&(r=!0),sa(this,void 0,void 0,function(){var i;return aa(this,function(s){switch(s.label){case 0:return[4,this.breakRoleInheritance(n,r)];case 1:return s.sent(),(i=this.clone(dl,"createDefaultAssociatedGroups(userLogin=@u,userLogin2=@v,groupNameSeed=@s)")).query.set("@u","'"+Zu(t||"")+"'"),i.query.set("@v","'"+Zu(o||"")+"'"),i.query.set("@s","'"+Zu(e||"")+"'"),[2,Mu(i)]}})})};var Np,Ap=function(e){function t(t,n){void 0===n&&(n="");var r="string"==typeof t?t:t.toUrl();return e.call(this,wu(r),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+n)||this}return ra(t,e),t.prototype.execute=function(e){return Mu(this,_u(e))},t.prototype.getSiteScripts=function(){return this.clone(zp,"GetSiteScripts",!0).execute({})},t.prototype.createSiteScript=function(e,t,n){return this.clone(zp,"CreateSiteScript(Title=@title,Description=@desc)?@title='"+Zu(e)+"'&@desc='"+Zu(t)+"'").execute(n)},t.prototype.getSiteScriptMetadata=function(e){return this.clone(zp,"GetSiteScriptMetadata").execute({id:e})},t.prototype.deleteSiteScript=function(e){return this.clone(zp,"DeleteSiteScript").execute({id:e})},t.prototype.updateSiteScript=function(e,t){return t&&(e.Content=JSON.stringify(t)),this.clone(zp,"UpdateSiteScript").execute({updateInfo:e})},t.prototype.getSiteScriptFromList=function(e){return this.clone(zp,"GetSiteScriptFromList").execute({listUrl:e})},t.prototype.getSiteScriptFromWeb=function(e,t){return this.clone(zp,"getSiteScriptFromWeb").execute({webUrl:e,info:t})},t.prototype.executeSiteScriptAction=function(e){return this.clone(zp,"executeSiteScriptAction").execute({actionDefinition:e})},ia([Pu("ss.getSiteScripts")],t.prototype,"getSiteScripts",null),ia([Pu("ss.createSiteScript")],t.prototype,"createSiteScript",null),ia([Pu("ss.getSiteScriptMetadata")],t.prototype,"getSiteScriptMetadata",null),ia([Pu("ss.deleteSiteScript")],t.prototype,"deleteSiteScript",null),ia([Pu("ss.updateSiteScript")],t.prototype,"updateSiteScript",null),ia([Pu("ss.getSiteScriptFromList")],t.prototype,"getSiteScriptFromList",null),ia([Pu("ss.getSiteScriptFromWeb")],t.prototype,"getSiteScriptFromWeb",null),ia([Pu("ss.executeSiteScriptAction")],t.prototype,"executeSiteScriptAction",null),t}(Fu),Up=function(e,t){return new Ap(e,t)},zp=function(e,t){return void 0===t&&(t=""),Up(e,t)};!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure",e[e.NoOp=2]="NoOp",e[e.SucceededWithException=3]="SucceededWithException"}(Np||(Np={})),pl.prototype.getSiteScript=function(e){return Up(this.toUrl(),"").getSiteScriptFromWeb(void 0,e)},yl.prototype.getSiteScript=function(){return sa(this,void 0,void 0,function(){var e,t,n;return aa(this,function(r){switch(r.label){case 0:return[4,this.clone(vl).rootFolder.get()];case 1:return e=r.sent(),[4,dl(wu(this.toUrl())).configureFrom(this).select("Url").get()];case 2:return t=r.sent(),n=da(t.Url,"Lists",e.Name),[2,Up(this,"").getSiteScriptFromList(n)]}})})},Reflect.defineProperty(Qu.prototype,"siteScripts",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return Up(n).configure(t).setRuntime(r)})}}),Ha(pl,"siteUsers",up),Ha(pl,"currentUser",lp,"currentuser"),pl.prototype.ensureUser=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(dl,"ensureuser"),_u({logonName:e}))];case 1:return[2,{data:t=n.sent(),user:lp(Yu(t))}]}})})},pl.prototype.getUserById=function(e){return lp(this,"getUserById("+e+")")};var Wp,jp,Hp,Kp,qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"my",{get:function(){return Gp(this)},enumerable:!1,configurable:!0}),t.prototype.getFollowedSitesUri=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Vp,"FollowedSitesUri").get()];case 1:return[2,(e=t.sent()).FollowedSitesUri||e]}})})},t.prototype.getFollowedDocumentsUri=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Vp,"FollowedDocumentsUri").get()];case 1:return[2,(e=t.sent()).FollowedDocumentsUri||e]}})})},t.prototype.follow=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Vp,"follow"),this.createSocialActorInfoRequestBody(e))];case 1:return[2,t.sent()]}})})},t.prototype.isFollowed=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Vp,"isfollowed"),this.createSocialActorInfoRequestBody(e))];case 1:return[2,t.sent()]}})})},t.prototype.stopFollowing=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Vp,"stopfollowing"),this.createSocialActorInfoRequestBody(e))];case 1:return[2,t.sent()]}})})},t.prototype.createSocialActorInfoRequestBody=function(e){return _u({actor:Object.assign(Iu("SP.Social.SocialActorInfo"),{Id:null},e)})},ia([Pu("soc.getFollowedSitesUri")],t.prototype,"getFollowedSitesUri",null),ia([Pu("soc.getFollowedDocumentsUri")],t.prototype,"getFollowedDocumentsUri",null),ia([Pu("soc.follow")],t.prototype,"follow",null),ia([Pu("soc.isFollowed")],t.prototype,"isFollowed",null),ia([Pu("soc.stopFollowing")],t.prototype,"stopFollowing",null),ia([ju("_api/social.following")],t)}(Nu),Vp=function(e,t){return new qp(e,t)},Gp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.followed=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(Xp,"followed(types="+e+")")()];case 1:return[2,Sa(t=n.sent(),"Followed")?t.Followed.results:t]}})})},t.prototype.followedCount=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(Xp,"followedcount(types="+e+")")()];case 1:return[2,(t=n.sent()).FollowedCount||t]}})})},t.prototype.followers=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Xp,"followers")()];case 1:return[2,Sa(e=t.sent(),"Followers")?e.Followers.results:e]}})})},t.prototype.suggestions=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Xp,"suggestions")()];case 1:return[2,Sa(e=t.sent(),"Suggestions")?e.Suggestions.results:e]}})})},ia([Pu("msoc.followed")],t.prototype,"followed",null),ia([Pu("msoc.followedCount")],t.prototype,"followedCount",null),ia([Pu("msoc.followers")],t.prototype,"followers",null),ia([Pu("msoc.suggestions")],t.prototype,"suggestions",null),ia([ju("my")],t)}(Nu)),Xp=function(e,t){return Gp(e,t)};!function(e){e[e.User=0]="User",e[e.Document=1]="Document",e[e.Site=2]="Site",e[e.Tag=3]="Tag"}(Wp||(Wp={})),function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.Document=2]="Document",e[e.Site=4]="Site",e[e.Tag=8]="Tag",e[e.ExcludeContentWithoutFeeds=268435456]="ExcludeContentWithoutFeeds",e[e.IncludeGroupsSites=536870912]="IncludeGroupsSites",e[e.WithinLast24Hours=1073741824]="WithinLast24Hours"}(jp||(jp={})),function(e){e[e.Ok=0]="Ok",e[e.AlreadyFollowing=1]="AlreadyFollowing",e[e.LimitReached=2]="LimitReached",e[e.InternalError=3]="InternalError"}(Hp||(Hp={})),function(e){e[e.OK=0]="OK",e[e.InvalidRequest=1]="InvalidRequest",e[e.AccessDenied=2]="AccessDenied",e[e.ItemNotFound=3]="ItemNotFound",e[e.InvalidOperation=4]="InvalidOperation",e[e.ItemNotModified=5]="ItemNotModified",e[e.InternalError=6]="InternalError",e[e.CacheReadError=7]="CacheReadError",e[e.CacheUpdateError=8]="CacheUpdateError",e[e.PersonalSiteNotFound=9]="PersonalSiteNotFound",e[e.FailedToCreatePersonalSite=10]="FailedToCreatePersonalSite",e[e.NotAuthorizedToCreatePersonalSite=11]="NotAuthorizedToCreatePersonalSite",e[e.CannotCreatePersonalSite=12]="CannotCreatePersonalSite",e[e.LimitReached=13]="LimitReached",e[e.AttachmentError=14]="AttachmentError",e[e.PartialData=15]="PartialData",e[e.FeatureDisabled=16]="FeatureDisabled",e[e.StorageQuotaExceeded=17]="StorageQuotaExceeded",e[e.DatabaseError=18]="DatabaseError"}(Kp||(Kp={})),Reflect.defineProperty(Qu.prototype,"social",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return function(e){return new qp(e)}(n).configure(t).setRuntime(r)})}});var Qp=Ru(function(e){function t(t,n){var r="string"==typeof t?t:t.toUrl();return e.call(this,wu(r),"_api/SP.Utilities.Utility."+n)||this}return ra(t,e),t.prototype.excute=function(e){return Mu(this,_u(e))},t.prototype.sendEmail=function(e){var t,n={properties:ya(Iu("SP.Utilities.EmailProperties"),{Body:e.Body,From:e.From,Subject:e.Subject})};return e.To&&e.To.length>0&&(n.properties=ya(n.properties,{To:{results:e.To}})),e.CC&&e.CC.length>0&&(n.properties=ya(n.properties,{CC:{results:e.CC}})),e.BCC&&e.BCC.length>0&&(n.properties=ya(n.properties,{BCC:{results:e.BCC}})),e.AdditionalHeaders&&(n.properties=ya(n.properties,{AdditionalHeaders:(t=e.AdditionalHeaders,ya(Iu("Collection(SP.KeyValue)"),{results:Object.keys(t).map(function(e){return ya(Iu("SP.KeyValue"),{Key:e,Value:Reflect.get(t,e),ValueType:"Edm.String"})})}))})),Pu.configure(this.clone(Jp,"SendEmail",!0),"u.sendEmail").excute(n)},t.prototype.getCurrentUserEmailAddresses=function(){return Pu.configure(this.clone(Jp,"GetCurrentUserEmailAddresses",!0),"u.getCurrentUserEmailAddresses").excute({})},t.prototype.resolvePrincipal=function(e,t,n,r,o,i){void 0===i&&(i=!1);var s={addToUserInfoList:o,input:e,inputIsEmailOnly:r,matchUserInfoList:i,scopes:t,sources:n},a=this.clone(Jp,"ResolvePrincipalInCurrentContext",!0);return Pu.configure(a,"u.ResolvePrincipalInCurrentContext").excute(s)},t.prototype.searchPrincipals=function(e,t,n,r,o){var i={groupName:r,input:e,maxCount:o,scopes:t,sources:n},s=this.clone(Jp,"SearchPrincipalsUsingContextWeb",!0);return Pu.configure(s,"u.SearchPrincipalsUsingContextWeb").excute(i)},t.prototype.createEmailBodyForInvitation=function(e){var t={pageAddress:e},n=this.clone(Jp,"CreateEmailBodyForInvitation",!0);return Pu.configure(n,"u.CreateEmailBodyForInvitation").excute(t)},t.prototype.expandGroupsToPrincipals=function(e,t){void 0===t&&(t=30);var n={inputs:e,maxCount:t},r=this.clone(Jp,"ExpandGroupsToPrincipals",!0);return Pu.configure(r,"u.ExpandGroupsToPrincipals").excute(n)},t.prototype.createWikiPage=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.clone(Jp,"CreateWikiPageInContextWeb",!0),[4,Pu.configure(t,"u.CreateWikiPageInContextWeb").excute({parameters:e})];case 1:return[2,{data:n=r.sent(),file:Rl(Yu(n))}]}})})},t}(Fu)),Jp=function(e,t){return Qp(e,t)};Reflect.defineProperty(Qu.prototype,"utility",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return Qp(n,"").configure(t).setRuntime(r)})}});var Zp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Yp(this).concat("('"+e+"')"),"subs.getById")},t.prototype.add=function(e,t,n){return sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r={expirationDateTime:t,notificationUrl:e,resource:this.toUrl()},n&&(r.clientState=n),[4,Mu(this,_u(r,Su({"Content-Type":"application/json"})))];case 1:return[2,{data:o=i.sent(),subscription:this.getById(o.id)}]}})})},ia([Pu("subs.add")],t.prototype,"add",null),ia([ju("subscriptions")],t)}(Lu)),Yp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.update=function(e,t,n){return sa(this,void 0,void 0,function(){var r;return aa(this,function(o){switch(o.label){case 0:return r={},e&&(r.expirationDateTime=e),t&&(r.notificationUrl=t),n&&(r.clientState=n),[4,(i=_u(r,Su({"Content-Type":"application/json"})),ku("PATCH")(this,i))];case 1:return[2,{data:o.sent(),subscription:this}]}var i})})},t.prototype.delete=function(){return ku("DELETE")(this,void 0)},ia([Pu("sub.update")],t.prototype,"update",null),ia([Pu("sub.delete")],t.prototype,"delete",null),t}(Nu));Ha(yl,"subscriptions",Zp);var $p=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return Pu.configure(ed(this),"txts.groups")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sets",{get:function(){return Pu.configure(nd(this),"txts.sets")},enumerable:!1,configurable:!0}),ia([ju("_api/v2.1/termstore")],t)}(Nu)),ed=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(td(this,e),"txtgs.getById")},ia([ju("groups")],t)}(Lu)),td=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"sets",{get:function(){return Pu.configure(nd(this,"sets"),"txtg.sets")},enumerable:!1,configurable:!0}),t}(Nu)),nd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(rd(this,e),"txts.getById")},ia([ju("sets")],t)}(Lu)),rd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"terms",{get:function(){return id(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentGroup",{get:function(){return Pu.configure(td(this,"parentGroup"),"txts.parentGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return Pu.configure(od(this),"txts.children")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relations",{get:function(){return Pu.configure(ad(this),"txts.relations")},enumerable:!1,configurable:!0}),t.prototype.getTermById=function(e){return Pu.configure(this.clone(sd,"terms/"+e),"txts.getTermById")},t.prototype.getAllChildrenAsOrderedTree=function(){return sa(this,void 0,void 0,function(){var e,t,n,r,o=this;return aa(this,function(i){switch(i.label){case 0:return[4,this.select("*","customSortOrder")()];case 1:return e=i.sent(),n=function(t,n,r){if(!ga(n)&&!ga(r))return t;var o=null;if(null===n&&r.length>0)o=la([],ua(r));else{var i=n.findIndex(function(t){return t.setId===e.id});i>=0&&(o=la([],ua(n[i].order)))}if(null!==o){var s=[];return o.forEach(function(e){var n=t.find(function(t){return e===t.id});n&&s.push(n)}),s.push.apply(s,la([],ua(t.filter(function(e){return o.indexOf(e.id)<0})))),s}return t},[4,(r=function(e,t){return sa(o,void 0,void 0,function(){var o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,e.children.select("*","customSortOrder")()];case 1:o=u.sent(),i=0,u.label=2;case 2:return i0?[4,r(this.getTermById(o[i].id),a.children)]:[3,4]):[3,6];case 3:u.sent(),a.children=n(a.children,s.customSortOrder),u.label=4;case 4:t.push(a),u.label=5;case 5:return i++,[3,2];case 6:return[2]}})})})(this,t=[])];case 2:return i.sent(),[2,n(t,null,e.customSortOrder)]}})})},t}(Nu)),od=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),ia([ju("children")],t)}(Lu)),id=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return sd(this,e)},ia([ju("terms")],t)}(Lu)),sd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return Pu.configure(od(this),"txt.children")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relations",{get:function(){return Pu.configure(ad(this),"txt.relations")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"set",{get:function(){return Pu.configure(rd(this,"set"),"txt.set")},enumerable:!1,configurable:!0}),t}(Nu)),ad=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(ud(this,e),"txrs.getById")},ia([ju("relations")],t)}(Lu)),ud=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"fromTerm",{get:function(){return Pu.configure(sd(this,"fromTerm"),"txr.fromTerm")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toTerm",{get:function(){return Pu.configure(sd(this,"toTerm"),"txr.toTerm")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"set",{get:function(){return Pu.configure(rd(this,"set"),"txr.set")},enumerable:!1,configurable:!0}),t}(Nu));Reflect.defineProperty(Qu.prototype,"termStore",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return $p(n).configure(t).setRuntime(r)})}}),Ha(yl,"userCustomActions",jc),Ha(pl,"userCustomActions",jc),Ha(ul,"userCustomActions",jc);var ld,cd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.add=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n={}),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=_u(Object.assign(Iu("SP.View"),{PersonalView:t,Title:e},n)),[4,Mu(this.clone(cd,null),r)];case 1:return[2,{data:o=i.sent(),view:this.getById(o.Id)}]}})})},t.prototype.getById=function(e){return pd(this).concat("('"+e+"')")},t.prototype.getByTitle=function(e){return pd(this,"getByTitle('"+e+"')")},ia([Pu("vs.add")],t.prototype,"add",null),ia([ju("views")],t)}(Lu)),pd=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("vw"),t.update=t._update("SP.View",function(e){return{data:e,view:t}}),t}return ra(t,e),Object.defineProperty(t.prototype,"fields",{get:function(){return dd(this)},enumerable:!1,configurable:!0}),t.prototype.renderAsHtml=function(){return this.clone(pd,"renderashtml")()},t.prototype.setViewXml=function(e){return Mu(this.clone(pd,"SetViewXml"),_u({viewXml:e}))},ia([Pu("v.renderAsHtml")],t.prototype,"renderAsHtml",null),ia([Pu("v.setViewXml")],t.prototype,"setViewXml",null),t}(Nu)),dd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getSchemaXml=function(){return this.clone(dd,"schemaxml")()},t.prototype.add=function(e){return Mu(this.clone(dd,"addviewfield('"+e+"')"))},t.prototype.move=function(e,t){return Mu(this.clone(dd,"moveviewfieldto"),_u({field:e,index:t}))},t.prototype.removeAll=function(){return Mu(this.clone(dd,"removeallviewfields"))},t.prototype.remove=function(e){return Mu(this.clone(dd,"removeviewfield('"+e+"')"))},ia([Pu("vfs.getSchemaXml")],t.prototype,"getSchemaXml",null),ia([Pu("vfs.add")],t.prototype,"add",null),ia([Pu("vfs.move")],t.prototype,"move",null),ia([Pu("vfs.removeAll")],t.prototype,"removeAll",null),ia([Pu("vfs.remove")],t.prototype,"remove",null),ia([ju("viewfields")],t)}(Lu));!function(e){e[e.DefaultValue=0]="DefaultValue",e[e.Recursive=1]="Recursive",e[e.RecursiveAll=2]="RecursiveAll",e[e.FilesOnly=3]="FilesOnly"}(ld||(ld={})),Ha(yl,"views",cd),Ha(yl,"defaultView",pd,"DefaultView"),yl.prototype.getView=function(e){return pd(this,"getView('"+e+"')")};var hd,fd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"scope",{get:function(){return Pu.configure(Bu(this,"Scope"),"f.scope")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"webparts",{get:function(){return yd(this,"webparts")},enumerable:!1,configurable:!0}),t.prototype.export=function(e){return Mu(this.clone(gd,"ExportWebPart"),_u({webPartId:e}))},t.prototype.import=function(e){return Mu(this.clone(gd,"ImportWebPart"),_u({webPartXml:e}))},t}(Fu),md=function(e,t){return new fd(e,t)},gd=function(e,t){return md(e,t)},yd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return vd(this,"getbyid('"+e+"')")},t.prototype.getByControlId=function(e){return vd(this,"getByControlId('"+e+"')")},t}(Lu)),vd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"webpart",{get:function(){return Au(this,"webpart")},enumerable:!1,configurable:!0}),t.prototype.saveChanges=function(){return Mu(this.clone(vd,"SaveWebPartChanges"))},t.prototype.moveTo=function(e,t){return Mu(this.clone(vd,"MoveWebPartTo(zoneID='"+e+"', zoneIndex="+t+")"))},t.prototype.close=function(){return Mu(this.clone(vd,"CloseWebPart"))},t.prototype.open=function(){return Mu(this.clone(vd,"OpenWebPart"))},t.prototype.delete=function(){return Mu(this.clone(vd,"DeleteWebPart"))},t}(Nu));!function(e){e[e.User=0]="User",e[e.Shared=1]="Shared"}(hd||(hd={})),Ml.prototype.getLimitedWebPartManager=function(e){return void 0===e&&(e=hd.Shared),md(this,"getLimitedWebPartManager(scope="+e+")")};var bd=new Qu,_d=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _d(t,e),t.prototype.onInit=function(){var t=this;return e.prototype.onInit.call(this).then(function(e){bd.setup({spfxContext:t.context})})},t.prototype.render=function(){o.render(r.createElement(al,{personaSize:this.properties.personaSize,numberOfFaces:this.properties.numberOfFaces,pageUrl:this.properties.pageUrl}),this.domElement)},Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!0,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[{header:{description:u.PropertyPaneDescription},groups:[{groupName:u.PropertyPaneBasicGroupName,groupFields:[Object(a.PropertyPaneSlider)("numberOfFaces",{label:u.PropertyPaneNbPersonasText,min:1,max:20}),Object(a.PropertyPaneDropdown)("personaSize",{label:u.PropertyPanePersonaSizeText,options:[{key:fs.size8,text:u.PropertyPaneIconsSizeTiny},{key:fs.size24,text:u.PropertyPaneIconsSizeEES},{key:fs.size32,text:u.PropertyPaneIconsSizeES},{key:fs.size40,text:u.PropertyPaneIconsSizeS},{key:fs.size48,text:u.PropertyPaneIconsSizeR},{key:fs.size72,text:u.PropertyPaneIconsSizeL},{key:fs.size100,text:u.PropertyPaneIconsSizeEL}],selectedKey:this.properties.personaSize}),Object(a.PropertyPaneTextField)("pageUrl",{label:u.PropertyPanePageUrlText})]}]}]}},t}(s.BaseClientSideWebPart);t.default=Sd},"l9+2":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"lC+Z":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var r=void 0===e?window:e}).call(this,n("l9+2"))}})}); \ No newline at end of file diff --git a/samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js b/samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js new file mode 100644 index 000000000..2661f5498 --- /dev/null +++ b/samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js @@ -0,0 +1,17 @@ +define([], function() { + return { + "PropertyPaneDescription": "Displays page contributors in reverse chronological order", + "PropertyPaneNbPersonasText": "Maximum number of persons to display", + "PropertyPaneBasicGroupName": "General", + "PropertyPanePersonaSizeText": "Icons size", + "PropertyPaneIconsSizeTiny": "tiny", + "PropertyPaneIconsSizeEES": "extraExtraSmall", + "PropertyPaneIconsSizeES": "extraSmall", + "PropertyPaneIconsSizeS": "small", + "PropertyPaneIconsSizeR": "regular", + "PropertyPaneIconsSizeL": "large", + "PropertyPaneIconsSizeEL": "extraLarge", + "PropertyPanePageUrlText": "Page server relative URL (leave empty for current page)", + "Loading": "Loading..." + } +}); \ No newline at end of file diff --git a/samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json b/samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json new file mode 100644 index 000000000..a228c7c48 --- /dev/null +++ b/samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json @@ -0,0 +1,104 @@ +{ + "bundles": { + "page-contributors-web-part": { + "dependencies": [ + { + "componentId": "f9e737b7-f0df-4597-ba8c-3060f82380db", + "componentName": "@microsoft/sp-property-pane", + "componentVersion": "1.12.1", + "isDirectDependency": true + }, + { + "componentId": "1c6c9123-7aac-41f3-a376-3caea41ed83f", + "componentName": "@microsoft/sp-loader", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "8217e442-8ed3-41fd-957d-b112e841286a", + "componentName": "@ms/sp-telemetry", + "componentVersion": "0.19.2", + "isDirectDependency": false + }, + { + "componentId": "e40f8203-b39d-425a-a957-714852e33b79", + "componentName": "@microsoft/sp-dynamic-data", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a", + "componentName": "@microsoft/sp-lodash-subset", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", + "componentName": "@microsoft/sp-core-library", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "01c4df03-e775-48cb-aa14-171ee5199a15", + "componentName": "tslib", + "componentVersion": "1.10.0", + "isDirectDependency": false + }, + { + "componentId": "2e09fb9b-13bb-48f2-859f-97d6fff71176", + "componentName": "@ms/odsp-core-bundle", + "componentVersion": "1.1.13", + "isDirectDependency": false + }, + { + "componentId": "78359e4b-07c2-43c6-8d0b-d060b4d577e8", + "componentName": "@microsoft/sp-diagnostics", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8", + "componentName": "@microsoft/sp-page-context", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "229b8d08-79f3-438b-8c21-4613fc877abd", + "componentName": "@microsoft/load-themed-styles", + "componentVersion": "0.1.2", + "isDirectDependency": false + }, + { + "componentId": "c07208f0-ea3b-4c1a-9965-ac1b825211a6", + "componentName": "@microsoft/sp-http", + "componentVersion": "1.12.1", + "isDirectDependency": false + }, + { + "componentId": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", + "componentName": "react", + "componentVersion": "16.9.0", + "isDirectDependency": false + }, + { + "componentId": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", + "componentName": "react-dom", + "componentVersion": "16.9.0", + "isDirectDependency": false + }, + { + "componentId": "974a7777-0990-4136-8fa6-95d80114c2e0", + "componentName": "@microsoft/sp-webpart-base", + "componentVersion": "1.12.1", + "isDirectDependency": true + }, + { + "componentId": "467dc675-7cc5-4709-8aac-78e3b71bd2f6", + "componentName": "@microsoft/sp-component-base", + "componentVersion": "1.12.1", + "isDirectDependency": false + } + ] + } + } +} diff --git a/samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json b/samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json new file mode 100644 index 000000000..3f46a5c7c --- /dev/null +++ b/samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json @@ -0,0 +1,71 @@ +{ + "id": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b", + "alias": "PageContributorsWebPart", + "componentType": "WebPart", + "version": "1.0.0", + "manifestVersion": 2, + "requiresCustomScript": false, + "supportedHosts": [ + "SharePointWebPart" + ], + "preconfiguredEntries": [ + { + "groupId": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b", + "group": { + "default": "Other" + }, + "title": { + "default": "Page Contributors" + }, + "description": { + "default": "Displays page contributors in reverse chronological order" + }, + "officeFabricIconFontName": "People", + "properties": { + "numberOfFaces": 5, + "personaSize": 3 + } + } + ], + "loaderConfig": { + "internalModuleBaseUrls": [ + "" + ], + "entryModuleId": "page-contributors-web-part", + "scriptResources": { + "page-contributors-web-part": { + "type": "path", + "path": "page-contributors-web-part_4d2033f670297cd13b0c.js" + }, + "@microsoft/sp-property-pane": { + "type": "component", + "id": "f9e737b7-f0df-4597-ba8c-3060f82380db", + "version": "1.12.1" + }, + "@microsoft/sp-core-library": { + "type": "component", + "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", + "version": "1.12.1" + }, + "pageContributorsStrings": { + "type": "path", + "path": "pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js" + }, + "@microsoft/sp-webpart-base": { + "type": "component", + "id": "974a7777-0990-4136-8fa6-95d80114c2e0", + "version": "1.12.1" + }, + "react": { + "type": "component", + "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", + "version": "16.9.0" + }, + "react-dom": { + "type": "component", + "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", + "version": "16.9.0" + } + } + } +} \ No newline at end of file diff --git a/samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json b/samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json new file mode 100644 index 000000000..3f46a5c7c --- /dev/null +++ b/samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json @@ -0,0 +1,71 @@ +{ + "id": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b", + "alias": "PageContributorsWebPart", + "componentType": "WebPart", + "version": "1.0.0", + "manifestVersion": 2, + "requiresCustomScript": false, + "supportedHosts": [ + "SharePointWebPart" + ], + "preconfiguredEntries": [ + { + "groupId": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b", + "group": { + "default": "Other" + }, + "title": { + "default": "Page Contributors" + }, + "description": { + "default": "Displays page contributors in reverse chronological order" + }, + "officeFabricIconFontName": "People", + "properties": { + "numberOfFaces": 5, + "personaSize": 3 + } + } + ], + "loaderConfig": { + "internalModuleBaseUrls": [ + "" + ], + "entryModuleId": "page-contributors-web-part", + "scriptResources": { + "page-contributors-web-part": { + "type": "path", + "path": "page-contributors-web-part_4d2033f670297cd13b0c.js" + }, + "@microsoft/sp-property-pane": { + "type": "component", + "id": "f9e737b7-f0df-4597-ba8c-3060f82380db", + "version": "1.12.1" + }, + "@microsoft/sp-core-library": { + "type": "component", + "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b", + "version": "1.12.1" + }, + "pageContributorsStrings": { + "type": "path", + "path": "pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js" + }, + "@microsoft/sp-webpart-base": { + "type": "component", + "id": "974a7777-0990-4136-8fa6-95d80114c2e0", + "version": "1.12.1" + }, + "react": { + "type": "component", + "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d", + "version": "16.9.0" + }, + "react-dom": { + "type": "component", + "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a", + "version": "16.9.0" + } + } + } +} \ No newline at end of file