@spfx-extensions/package 1.6.3 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/config/config-scripts/rename-solution.mjs +1 -4
  2. package/config/package-solution.json +2 -2
  3. package/dist/8d1029da-85e6-48cc-aaaf-37a5bbc0b9be.manifest.json +3 -3
  4. package/dist/d6ca1fc2-0591-4c6d-8a25-cae3262c017b.manifest.json +6 -6
  5. package/dist/debug/83e13c11-682e-4eaa-9ae0-74617ca28f96/Extension_8d1029da-85e6-48cc-aaaf-37a5bbc0b9be.xml +1 -1
  6. package/dist/debug/83e13c11-682e-4eaa-9ae0-74617ca28f96/WebPart_d6ca1fc2-0591-4c6d-8a25-cae3262c017b.xml +1 -1
  7. package/dist/debug/AppManifest.xml +1 -1
  8. package/dist/debug/ClientSideAssets/spfx-extension-application-customizer_904f5ff5b9193a389e17.js +2 -0
  9. package/dist/debug/ClientSideAssets/spfx-extensionloader-web-part_39a8b9aa35346cd57e5d.js +2 -0
  10. package/dist/debug/ClientSideAssets/spfx-extensions-classiccustomaction.js +1 -1
  11. package/dist/debug/ClientSideAssets/spfx-extensions-classicwrapper.js +1 -1
  12. package/dist/debug/ClientSideAssets/spfx-extensions-core.js +1 -1
  13. package/dist/debug/ClientSideAssets/spfx-extensions-coreconfigurator.js +45 -45
  14. package/dist/debug/ClientSideAssets/spfx-extensions-loader_c41a3a622722b75e8127.js +2 -0
  15. package/dist/debug/ClientSideAssets.xml +1 -1
  16. package/dist/debug/ClientSideAssets.xml.config.xml +1 -1
  17. package/dist/debug/_rels/ClientSideAssets.xml.rels +1 -1
  18. package/dist/debug/feature_83e13c11-682e-4eaa-9ae0-74617ca28f96.xml +1 -1
  19. package/dist/debug/feature_83e13c11-682e-4eaa-9ae0-74617ca28f96.xml.config.xml +1 -1
  20. package/dist/deploy/sp-fx-extensions.sppkg +0 -0
  21. package/dist/spfx-extension-application-customizer_904f5ff5b9193a389e17.js +2 -0
  22. package/dist/spfx-extensionloader-web-part_39a8b9aa35346cd57e5d.js +2 -0
  23. package/dist/spfx-extensions-classiccustomaction.js +1 -1
  24. package/dist/spfx-extensions-classicwrapper.js +1 -1
  25. package/dist/spfx-extensions-core.js +1 -1
  26. package/dist/spfx-extensions-coreconfigurator.js +45 -45
  27. package/dist/spfx-extensions-loader_c41a3a622722b75e8127.js +2 -0
  28. package/package.json +27 -27
  29. package/src/webparts/spfxExtensionloader/SpfxExtensionloaderWebPart.ts +9 -9
  30. package/dist/debug/ClientSideAssets/spfx-extension-application-customizer_a3a347c8bd029396ec50.js +0 -2
  31. package/dist/debug/ClientSideAssets/spfx-extensionloader-web-part_3b393b3ec530c336b801.js +0 -2
  32. package/dist/debug/ClientSideAssets/spfx-extensions-loader_6e8eb68a4b27d7c6f742.js +0 -2
  33. package/dist/spfx-extension-application-customizer_a3a347c8bd029396ec50.js +0 -2
  34. package/dist/spfx-extensionloader-web-part_3b393b3ec530c336b801.js +0 -2
  35. package/dist/spfx-extensions-loader_6e8eb68a4b27d7c6f742.js +0 -2
  36. package/gulpfile.js +0 -80
@@ -12,11 +12,8 @@ export async function runAsync(params) {
12
12
  const webpartData = await readFile(jsonPath, { encoding: "utf8" });
13
13
  const webpartDataJson = JSON.parse(webpartData);
14
14
  const oldName = webpartDataJson.preconfiguredEntries[0].title.default;
15
- console.log("Old Webpart Name:", oldName);
16
- console.log("New Webpart Name:", newName);
17
15
  webpartDataJson.preconfiguredEntries[0].title.default = newName;
16
+ await writeFile(jsonPath, JSON.stringify(webpartDataJson, null, 2));
18
17
  console.log("Updated webpart manifest with new name.");
19
- console.log(webpartDataJson);
20
- // await writeFile(jsonPath, JSON.stringify(webpartDataJson, null, 2));
21
18
  }
22
19
  }
@@ -3,7 +3,7 @@
3
3
  "solution": {
4
4
  "name": "SPFx Extensions",
5
5
  "id": "7d56fff0-e90e-40a7-98cf-fcdbc63a9b01",
6
- "version": "1.6.3.0",
6
+ "version": "1.6.6.0",
7
7
  "includeClientSideAssets": true,
8
8
  "skipFeatureDeployment": true,
9
9
  "isDomainIsolated": false,
@@ -34,7 +34,7 @@
34
34
  "title": "Application Extension - Deployment of custom action",
35
35
  "description": "Deploys a custom action with ClientSideComponentId association",
36
36
  "id": "83e13c11-682e-4eaa-9ae0-74617ca28f96",
37
- "version": "1.6.3.0",
37
+ "version": "1.6.6.0",
38
38
  "assets": {
39
39
  "elementManifests": [
40
40
  "elements.xml",
@@ -3,7 +3,7 @@
3
3
  "alias": "SpfxExtensionApplicationCustomizer",
4
4
  "componentType": "Extension",
5
5
  "extensionType": "ApplicationCustomizer",
6
- "version": "1.6.3",
6
+ "version": "1.6.6",
7
7
  "manifestVersion": 2,
8
8
  "requiresCustomScript": false,
9
9
  "loaderConfig": {
@@ -14,12 +14,12 @@
14
14
  "scriptResources": {
15
15
  "spfx-extension-application-customizer": {
16
16
  "type": "path",
17
- "path": "spfx-extension-application-customizer_a3a347c8bd029396ec50.js"
17
+ "path": "spfx-extension-application-customizer_904f5ff5b9193a389e17.js"
18
18
  },
19
19
  "@microsoft/sp-application-base": {
20
20
  "type": "component",
21
21
  "id": "4df9bb86-ab0a-4aab-ab5f-48bf167048fb",
22
- "version": "1.22.2"
22
+ "version": "1.23.0"
23
23
  }
24
24
  }
25
25
  }
@@ -2,7 +2,7 @@
2
2
  "id": "d6ca1fc2-0591-4c6d-8a25-cae3262c017b",
3
3
  "alias": "SpfxExtensionloaderWebPart",
4
4
  "componentType": "WebPart",
5
- "version": "1.6.3",
5
+ "version": "1.6.6",
6
6
  "manifestVersion": 2,
7
7
  "requiresCustomScript": false,
8
8
  "supportedHosts": [
@@ -39,27 +39,27 @@
39
39
  "scriptResources": {
40
40
  "spfx-extensionloader-web-part": {
41
41
  "type": "path",
42
- "path": "spfx-extensionloader-web-part_3b393b3ec530c336b801.js"
42
+ "path": "spfx-extensionloader-web-part_39a8b9aa35346cd57e5d.js"
43
43
  },
44
44
  "@microsoft/sp-core-library": {
45
45
  "type": "component",
46
46
  "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
47
- "version": "1.22.2"
47
+ "version": "1.23.0"
48
48
  },
49
49
  "@microsoft/sp-property-pane": {
50
50
  "type": "component",
51
51
  "id": "f9e737b7-f0df-4597-ba8c-3060f82380db",
52
- "version": "1.22.2"
52
+ "version": "1.23.0"
53
53
  },
54
54
  "@microsoft/sp-webpart-base": {
55
55
  "type": "component",
56
56
  "id": "974a7777-0990-4136-8fa6-95d80114c2e0",
57
- "version": "1.22.2"
57
+ "version": "1.23.0"
58
58
  },
59
59
  "@microsoft/sp-component-base": {
60
60
  "type": "component",
61
61
  "id": "467dc675-7cc5-4709-8aac-78e3b71bd2f6",
62
- "version": "1.22.2"
62
+ "version": "1.23.0"
63
63
  }
64
64
  }
65
65
  }
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><ClientSideComponent Name="SpfxExtensionApplicationCustomizer" Id="8d1029da-85e6-48cc-aaaf-37a5bbc0b9be" ComponentManifest="{&quot;id&quot;:&quot;8d1029da-85e6-48cc-aaaf-37a5bbc0b9be&quot;,&quot;alias&quot;:&quot;SpfxExtensionApplicationCustomizer&quot;,&quot;componentType&quot;:&quot;Extension&quot;,&quot;extensionType&quot;:&quot;ApplicationCustomizer&quot;,&quot;version&quot;:&quot;1.6.3&quot;,&quot;manifestVersion&quot;:2,&quot;loaderConfig&quot;:{&quot;internalModuleBaseUrls&quot;:[&quot;HTTPS://SPCLIENTSIDEASSETLIBRARY/&quot;],&quot;entryModuleId&quot;:&quot;spfx-extension-application-customizer&quot;,&quot;scriptResources&quot;:{&quot;spfx-extension-application-customizer&quot;:{&quot;type&quot;:&quot;path&quot;,&quot;path&quot;:&quot;spfx-extension-application-customizer_a3a347c8bd029396ec50.js&quot;},&quot;@microsoft/sp-application-base&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;4df9bb86-ab0a-4aab-ab5f-48bf167048fb&quot;,&quot;version&quot;:&quot;1.22.2&quot;}}}}" Type="Extension"></ClientSideComponent></Elements>
1
+ <?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><ClientSideComponent Name="SpfxExtensionApplicationCustomizer" Id="8d1029da-85e6-48cc-aaaf-37a5bbc0b9be" ComponentManifest="{&quot;id&quot;:&quot;8d1029da-85e6-48cc-aaaf-37a5bbc0b9be&quot;,&quot;alias&quot;:&quot;SpfxExtensionApplicationCustomizer&quot;,&quot;componentType&quot;:&quot;Extension&quot;,&quot;extensionType&quot;:&quot;ApplicationCustomizer&quot;,&quot;version&quot;:&quot;1.6.6&quot;,&quot;manifestVersion&quot;:2,&quot;loaderConfig&quot;:{&quot;internalModuleBaseUrls&quot;:[&quot;HTTPS://SPCLIENTSIDEASSETLIBRARY/&quot;],&quot;entryModuleId&quot;:&quot;spfx-extension-application-customizer&quot;,&quot;scriptResources&quot;:{&quot;spfx-extension-application-customizer&quot;:{&quot;type&quot;:&quot;path&quot;,&quot;path&quot;:&quot;spfx-extension-application-customizer_904f5ff5b9193a389e17.js&quot;},&quot;@microsoft/sp-application-base&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;4df9bb86-ab0a-4aab-ab5f-48bf167048fb&quot;,&quot;version&quot;:&quot;1.23.0&quot;}}}}" Type="Extension"></ClientSideComponent></Elements>
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><ClientSideComponent Name="SPFx Extension Loader" Id="d6ca1fc2-0591-4c6d-8a25-cae3262c017b" ComponentManifest="{&quot;id&quot;:&quot;d6ca1fc2-0591-4c6d-8a25-cae3262c017b&quot;,&quot;alias&quot;:&quot;SpfxExtensionloaderWebPart&quot;,&quot;componentType&quot;:&quot;WebPart&quot;,&quot;version&quot;:&quot;1.6.3&quot;,&quot;manifestVersion&quot;:2,&quot;supportedHosts&quot;:[&quot;SharePointWebPart&quot;,&quot;TeamsPersonalApp&quot;,&quot;TeamsTab&quot;,&quot;SharePointFullPage&quot;],&quot;supportsThemeVariants&quot;:true,&quot;supportsFullBleed&quot;:true,&quot;preconfiguredEntries&quot;:[{&quot;groupId&quot;:&quot;5c03119e-3074-46fd-976b-c60198311f70&quot;,&quot;group&quot;:{&quot;default&quot;:&quot;Advanced&quot;},&quot;title&quot;:{&quot;default&quot;:&quot;SPFx Extension Loader&quot;},&quot;description&quot;:{&quot;default&quot;:&quot;Allows you to add a custom developed app&quot;},&quot;officeFabricIconFontName&quot;:&quot;Page&quot;,&quot;properties&quot;:{&quot;description&quot;:&quot;Select an app to load from the dropdown below&quot;}}],&quot;loaderConfig&quot;:{&quot;internalModuleBaseUrls&quot;:[&quot;HTTPS://SPCLIENTSIDEASSETLIBRARY/&quot;],&quot;entryModuleId&quot;:&quot;spfx-extensionloader-web-part&quot;,&quot;scriptResources&quot;:{&quot;spfx-extensionloader-web-part&quot;:{&quot;type&quot;:&quot;path&quot;,&quot;path&quot;:&quot;spfx-extensionloader-web-part_3b393b3ec530c336b801.js&quot;},&quot;@microsoft/sp-core-library&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;7263c7d0-1d6a-45ec-8d85-d4d1d234171b&quot;,&quot;version&quot;:&quot;1.22.2&quot;},&quot;@microsoft/sp-property-pane&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;f9e737b7-f0df-4597-ba8c-3060f82380db&quot;,&quot;version&quot;:&quot;1.22.2&quot;},&quot;@microsoft/sp-webpart-base&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;974a7777-0990-4136-8fa6-95d80114c2e0&quot;,&quot;version&quot;:&quot;1.22.2&quot;},&quot;@microsoft/sp-component-base&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;467dc675-7cc5-4709-8aac-78e3b71bd2f6&quot;,&quot;version&quot;:&quot;1.22.2&quot;}}}}" Type="WebPart"></ClientSideComponent><Module Name="SPFx Extension Loader" Url="_catalogs/wp" List="113"></Module></Elements>
1
+ <?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><ClientSideComponent Name="SPFx Extension Loader" Id="d6ca1fc2-0591-4c6d-8a25-cae3262c017b" ComponentManifest="{&quot;id&quot;:&quot;d6ca1fc2-0591-4c6d-8a25-cae3262c017b&quot;,&quot;alias&quot;:&quot;SpfxExtensionloaderWebPart&quot;,&quot;componentType&quot;:&quot;WebPart&quot;,&quot;version&quot;:&quot;1.6.6&quot;,&quot;manifestVersion&quot;:2,&quot;supportedHosts&quot;:[&quot;SharePointWebPart&quot;,&quot;TeamsPersonalApp&quot;,&quot;TeamsTab&quot;,&quot;SharePointFullPage&quot;],&quot;supportsThemeVariants&quot;:true,&quot;supportsFullBleed&quot;:true,&quot;preconfiguredEntries&quot;:[{&quot;groupId&quot;:&quot;5c03119e-3074-46fd-976b-c60198311f70&quot;,&quot;group&quot;:{&quot;default&quot;:&quot;Advanced&quot;},&quot;title&quot;:{&quot;default&quot;:&quot;SPFx Extension Loader&quot;},&quot;description&quot;:{&quot;default&quot;:&quot;Allows you to add a custom developed app&quot;},&quot;officeFabricIconFontName&quot;:&quot;Page&quot;,&quot;properties&quot;:{&quot;description&quot;:&quot;Select an app to load from the dropdown below&quot;}}],&quot;loaderConfig&quot;:{&quot;internalModuleBaseUrls&quot;:[&quot;HTTPS://SPCLIENTSIDEASSETLIBRARY/&quot;],&quot;entryModuleId&quot;:&quot;spfx-extensionloader-web-part&quot;,&quot;scriptResources&quot;:{&quot;spfx-extensionloader-web-part&quot;:{&quot;type&quot;:&quot;path&quot;,&quot;path&quot;:&quot;spfx-extensionloader-web-part_39a8b9aa35346cd57e5d.js&quot;},&quot;@microsoft/sp-core-library&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;7263c7d0-1d6a-45ec-8d85-d4d1d234171b&quot;,&quot;version&quot;:&quot;1.23.0&quot;},&quot;@microsoft/sp-property-pane&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;f9e737b7-f0df-4597-ba8c-3060f82380db&quot;,&quot;version&quot;:&quot;1.23.0&quot;},&quot;@microsoft/sp-webpart-base&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;974a7777-0990-4136-8fa6-95d80114c2e0&quot;,&quot;version&quot;:&quot;1.23.0&quot;},&quot;@microsoft/sp-component-base&quot;:{&quot;type&quot;:&quot;component&quot;,&quot;id&quot;:&quot;467dc675-7cc5-4709-8aac-78e3b71bd2f6&quot;,&quot;version&quot;:&quot;1.23.0&quot;}}}}" Type="WebPart"></ClientSideComponent><Module Name="SPFx Extension Loader" Url="_catalogs/wp" List="113"></Module></Elements>
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="utf-8"?><App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="SPFx Extensions" ProductID="7d56fff0-e90e-40a7-98cf-fcdbc63a9b01" SharePointMinVersion="16.0.0.0" IsClientSideSolution="true" Version="1.6.3.0" SkipFeatureDeployment="true" IsDomainIsolated="false"><Properties><Title>SPFx Extensions</Title><DeveloperProperties>{&quot;name&quot;:&quot;SPWizard01&quot;,&quot;websiteUrl&quot;:&quot;https://github.com/SPWizard01/spfx-extensions&quot;,&quot;privacyUrl&quot;:&quot;https://github.com/SPWizard01/spfx-extensions/blob/main/README.md&quot;,&quot;termsOfUseUrl&quot;:&quot;https://github.com/SPWizard01/spfx-extensions/blob/main/LICENSE&quot;,&quot;mpnId&quot;:&quot;Undefined-1.22.2&quot;}</DeveloperProperties><ShortDescription><LocalizedString CultureName="default">SPFxExtensions App allows you to develop framework agnostic apps.</LocalizedString></ShortDescription><LongDescription><LocalizedString CultureName="default">SPFxExtensions App is a SharePoint Framework (SPFx) extension that allows developers to create framework-agnostic applications. This solution provides a streamlined way to deploy extensions and client-side components, enhancing the functionality and user experience of SharePoint sites. With this extension, developers can easily integrate their custom solutions into SharePoint, leveraging the power of SPFx to build robust and scalable applications.</LocalizedString></LongDescription><CategoryID>Content management,Productivity,Site Design</CategoryID><Screenshots></Screenshots></Properties></App>
1
+ <?xml version="1.0" encoding="utf-8"?><App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="SPFx Extensions" ProductID="7d56fff0-e90e-40a7-98cf-fcdbc63a9b01" SharePointMinVersion="16.0.0.0" IsClientSideSolution="true" Version="1.6.6.0" SkipFeatureDeployment="true" IsDomainIsolated="false"><Properties><Title>SPFx Extensions</Title><DeveloperProperties>{&quot;name&quot;:&quot;SPWizard01&quot;,&quot;websiteUrl&quot;:&quot;https://github.com/SPWizard01/spfx-extensions&quot;,&quot;privacyUrl&quot;:&quot;https://github.com/SPWizard01/spfx-extensions/blob/main/README.md&quot;,&quot;termsOfUseUrl&quot;:&quot;https://github.com/SPWizard01/spfx-extensions/blob/main/LICENSE&quot;,&quot;mpnId&quot;:&quot;Undefined-1.22.2&quot;}</DeveloperProperties><ShortDescription><LocalizedString CultureName="default">SPFxExtensions App allows you to develop framework agnostic apps.</LocalizedString></ShortDescription><LongDescription><LocalizedString CultureName="default">SPFxExtensions App is a SharePoint Framework (SPFx) extension that allows developers to create framework-agnostic applications. This solution provides a streamlined way to deploy extensions and client-side components, enhancing the functionality and user experience of SharePoint sites. With this extension, developers can easily integrate their custom solutions into SharePoint, leveraging the power of SPFx to build robust and scalable applications.</LocalizedString></LongDescription><CategoryID>Content management,Productivity,Site Design</CategoryID><Screenshots></Screenshots></Properties></App>
@@ -0,0 +1,2 @@
1
+ (()=>{var e=document.currentScript;define("8d1029da-85e6-48cc-aaaf-37a5bbc0b9be_1.6.6",["@microsoft/sp-application-base"],t=>(()=>{"use strict";var n,a,i,r={367(e,t,n){n.d(t,{Lf:()=>a});const a="[SPFxExtensions]"}
2
+ ,841(e){e.exports=t}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.m=r,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>"spfx-extensions-loader_c41a3a622722b75e8127.js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="8afe8473db6aaa27633056afb1b11bbe:",s.l=(e,t,i,r)=>{if(n[e])n[e].push(t);else{var o,c;if(void 0!==i)for(var d=document.getElementsByTagName("script"),l=0;l<d.length;l++){var u=d[l];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+i){o=u;break}}o||(c=!0,(o=document.createElement("script")).charset="utf-8",s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",a+i),o.src=e,0!==o.src.indexOf(window.location.origin+"/")&&(o.crossOrigin="anonymous")),n[e]=[t];var f=(t,a)=>{o.onerror=o.onload=null,clearTimeout(p);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(a)),t)return t(a)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),c&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i=e?e.src:"",s.p=i.slice(0,i.lastIndexOf("/")+1),(()=>{var e={39:0};s.f.j=(t,n)=>{var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,i)=>a=e[t]=[n,i]);n.push(a[2]=i);var r=s.p+s.u(t),o=new Error;s.l(r,n=>{if(s.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,a[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[r,o,c]=n,d=0;if(r.some(t=>0!==e[t])){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);c&&c(s)}for(t&&t(n);d<r.length;d++)i=r[d],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackJsonp_8afe8473db6aaa27633056afb1b11bbe=self.webpackJsonp_8afe8473db6aaa27633056afb1b11bbe||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(()=>{s.r(c),s.d(c,{default:()=>n});var e=s(841),t=s(367);class n extends e.BaseApplicationCustomizer{corePromise=new Promise(e=>{s.e(573).then(s.bind(s,455)).then(({initCore:n,registerPlaceHolderProvider:a})=>{n("SharePoint").then(()=>{a(this.context.placeholderProvider,this),e(!0)}).catch(e=>{console.error(t.Lf,"Error while initializing core from application customizer",e)})}).catch(e=>{console.error(t.Lf,"Error while importing core from application customizer",e)})});async onInit(){await this.corePromise}waitAndNotifyPlaceholderChanged(e){this.corePromise.then(()=>{window.__SPFxExtensions.Apps.forEach(t=>{t.instances.forEach(t=>{t.executeListeners("onPlaceholdersChanged",e)})})}).catch(()=>{})}onPlaceholdersChanged(e){this.waitAndNotifyPlaceholderChanged(e)}onDispose(){window.__SPFxExtensions?.Apps?.forEach(e=>{e.instances.forEach(e=>{e.executeListeners("onAppCustomizerDisposed",void 0)})})}}})(),c})())})();
@@ -0,0 +1,2 @@
1
+ (()=>{var e=document.currentScript;define(["@microsoft/sp-core-library","@microsoft/sp-property-pane","@microsoft/sp-webpart-base","@microsoft/sp-component-base"],(t,n,a,i)=>(()=>{"use strict";var r,o,s,c={367(e,t,n){n.d(t,{Bc:()=>r,Lf:()=>o,Ne:()=>a,oz:()=>i});const a="Select one of these web parts for this column.",i="Edit page and select webpart.",r="Webpart that loads an app of your choice.",o="[SPFxExtensions]"}
2
+ ,962(e){e.exports=i},676(e){e.exports=t},877(e){e.exports=n},642(e){e.exports=a}},d={};function l(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return c[e](n,n.exports,l),n.exports}l.m=c,l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,n)=>(l.f[n](e,t),t),[])),l.u=e=>"spfx-extensions-loader_c41a3a622722b75e8127.js",l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="8afe8473db6aaa27633056afb1b11bbe:",l.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var i,s;if(void 0!==n)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==o+n){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",o+n),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous")),r[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var a=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s=e?e.src:"",l.p=s.slice(0,s.lastIndexOf("/")+1),(()=>{var e={650:0};l.f.j=(t,n)=>{var a=l.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,i)=>a=e[t]=[n,i]);n.push(a[2]=i);var r=l.p+l.u(t),o=new Error;l.l(r,n=>{if(l.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,a[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[r,o,s]=n,c=0;if(r.some(t=>0!==e[t])){for(a in o)l.o(o,a)&&(l.m[a]=o[a]);s&&s(l)}for(t&&t(n);c<r.length;c++)i=r[c],l.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackJsonp_8afe8473db6aaa27633056afb1b11bbe=self.webpackJsonp_8afe8473db6aaa27633056afb1b11bbe||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var u={};return(()=>{l.r(u),l.d(u,{default:()=>v});var e,t,n,a=l(676),i=l(877),r=l(642),o=l(367),s=l(962),c=function(){return c=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},d="undefined"==typeof window?globalThis:window,f=d&&d.CSPSettings&&d.CSPSettings.nonce,p=((n=d.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(n=c(c({},n),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),n.registeredThemableStyles||(n=c(c({},n),{registeredThemableStyles:[]})),d.__themeState__=n,n),m=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,_=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()};function h(e){var t=_();e();var n=_();p.perf.duration+=n-t}function b(e,t){p.loadStyles?p.loadStyles(g(e).styleString,e):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),a=g(e),i=a.styleString,r=a.themable;n.setAttribute("data-load-themed-styles","true"),f&&n.setAttribute("nonce",f),n.appendChild(document.createTextNode(i)),p.perf.count++,t.appendChild(n);var o=document.createEvent("HTMLEvents");o.initEvent("styleinsert",!0,!1),o.args={newStyle:n},document.dispatchEvent(o);var s={styleElement:n,themableStyle:e};r?p.registeredThemableStyles.push(s):p.registeredStyles.push(s)}}(e)}function g(e){var t=p.theme,n=!1;return{styleString:(e||[]).map(function(e){var a=e.theme;if(a){n=!0;var i=t?t[a]:void 0,r=e.defaultValue||"inherit";return t&&!i&&console,i||r}return e.rawString}).join(""),themable:n}}e='.spfxExtensionloader_845cef2a{color:"[theme:bodyText, default: #323130]";color:var(--bodyText);overflow:hidden;padding:1em}.spfxExtensionloader_845cef2a.teams_845cef2a{font-family:Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.welcome_845cef2a{text-align:center}.welcomeImage_845cef2a{max-width:420px;width:100%}.links_845cef2a a{color:"[theme:link, default:#03787c]";color:var(--link);text-decoration:none}.links_845cef2a a:hover{color:"[theme:linkHovered, default: #014446]";color:var(--linkHovered);text-decoration:underline}.SPFxExtensionApp_845cef2a .loader_845cef2a{animation:rotation_845cef2a 1s linear infinite;border:2px solid #003755;border-bottom-color:#009fda;border-radius:50%;box-sizing:border-box;display:inline-block;height:28px;width:28px}@keyframes rotation_845cef2a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.SPFxExtensionApp_845cef2a .buttonLoader_845cef2a{align-items:center;border:none;display:flex;height:80px;justify-content:center;width:120px}.SPFxExtensionApp_845cef2a .shimmerShine_845cef2a{-webkit-animation-duration:1s;-webkit-animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;-webkit-animation-name:placeholderShimmer_845cef2a;-webkit-animation-timing-function:linear;background:#f6f7f8;background-image:linear-gradient(90deg,#f6f7f8 0,#edeef1 20%,#f6f7f8 40%,#f6f7f8);background-repeat:no-repeat;background-size:200px 80px;border:none;display:block;height:80px;position:relative;width:120px}@keyframes placeholderShimmer_845cef2a{0%{background-position:-80px 0}to{background-position:120px 0}}.SPFxExtensionApp_845cef2a .applicationListSection_845cef2a{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center;min-height:320px;text-align:center}.SPFxExtensionApp_845cef2a .header_845cef2a{color:#242424;font-weight:600;letter-spacing:1px;line-height:32px;padding:0 12px}.SPFxExtensionApp_845cef2a .icon_845cef2a{font-size:28px;font-style:normal;height:28px;line-height:28px;min-width:28px;width:28px}.SPFxExtensionApp_845cef2a .icon_845cef2a>img,.SPFxExtensionApp_845cef2a .icon_845cef2a>svg{height:auto;width:100%}.SPFxExtensionApp_845cef2a .iconFont_845cef2a{background-color:#f6f7f8}.SPFxExtensionApp_845cef2a .appButtonsContainer_845cef2a{align-items:center;display:flex;flex-wrap:wrap;height:100%;justify-content:center}.SPFxExtensionApp_845cef2a .appButtonsWrapper_845cef2a{-ms-flex-pack:start;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:100%;justify-content:flex-start;width:100%}.SPFxExtensionApp_845cef2a .appButton_845cef2a{align-items:center;background-color:unset;border:none;display:flex;flex-direction:column;height:80px;padding-top:14px;width:120px}.SPFxExtensionApp_845cef2a .appButton_845cef2a:hover{background-color:#c8e3fa}',void 0===(t=!0)&&(t=!1),h(function(){var n=Array.isArray(e)?e:function(e){var t=[];if(e){for(var n=0,a=void 0;a=m.exec(e);){var i=a.index;i>n&&t.push({rawString:e.substring(n,i)}),t.push({theme:a[1],defaultValue:a[2]}),n=m.lastIndex}t.push({rawString:e.substring(n)})}return t}(e),a=p.runState,i=a.mode,r=a.buffer,o=a.flushTimer;t||1===i?(r.push(n),o||(p.runState.flushTimer=setTimeout(function(){p.runState.flushTimer=0,h(function(){var e=p.runState.buffer.slice();p.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&b(t)})},0))):b(n)});class v extends r.BaseClientSideWebPart{configuratorUrl="/sites/appcatalog/SPFxExtensionsData/SitePages/SPFxExtensionsConfigurator.aspx";coreInitPromise=new Promise(e=>{l.e(573).then(l.bind(l,455)).then(({initCore:t})=>{t(a.Environment.type===a.EnvironmentType.SharePoint?"SharePoint":"ClassicSharePoint").then(()=>{this.configuratorUrl=window.__SPFxExtensions.Utils.ConfiguratorPageUrl,e(!0)}).catch(e=>{console.error(o.Lf,"Initializing SPFxExtensions Core from WebPart failed",e)})}).catch(e=>{console.error(o.Lf,"Importing SPFxExtensions Core from WebPart failed",e)})});SPFxExtensionInstance;allApps=[];dropDownProps={options:[],selectedKey:"",disabled:!0};appDescription="";hideAppSelectorWhenAppLoaded=!1;hideConfiguratorButton=!1;configDomElement;themeProvider;serviceScope;appButtonElements=[];webpartSectionElement=document.createElement("section");webpartSectionTitle=document.createElement("header");appButtonsWrapper=document.createElement("div");appButtonsContainer=document.createElement("div");appAddedListenerRegistration;webPartContext;webPartComponentId;webPartInstanceId;webPartWidth;async onInit(){this.themeProvider=this.context.serviceScope.consume(s.ThemeProvider.serviceKey),this.serviceScope=this.context.serviceScope,this.webPartContext=this.context,this.webPartInstanceId=this.instanceId,this.webPartComponentId=this.componentId,this.webPartWidth=this.width,await this.coreInitPromise}openPropertyPane(){this.context.propertyPane.open()}closePropertyPane(){this.context.propertyPane.close()}isPropertyPaneOpen(){return this.context.propertyPane.isPropertyPaneOpen()}saveConfigValue(e,t=!0){this.properties.SPFxExtensionAppConfiguration=e,t&&this.SPFxExtensionInstance?.executeListeners("onConfigurationChange",e)}getConfigValue(e){if(e){let t=this.properties[e];return void 0===t&&(t=this.properties.SPFxExtensionAppConfiguration),t}return this.properties.SPFxExtensionAppConfiguration}getSearchData(){return{searchableText:this.properties.searchableText,searchableHtml:this.properties.searchableHtml}}setSearchData(e){this.properties.searchableText=e.searchableText,this.properties.searchableHtml=e.searchableHtml}getTopActions(){return this.properties.topActions??[]}setTopActions(e){this.properties.topActions=e??[]}getThemeProvider(){return this.themeProvider}getConfigDomElement(){return this.configDomElement}getContext(){return this.webPartContext}getServiceScope(){return this.serviceScope}async mountApp(e){this.domElement.innerHTML="";try{const t={domElement:this.domElement,webpart:this,openPropertyPane:()=>{this.openPropertyPane()},closePropertyPane:()=>{this.closePropertyPane()},isPropertyPaneOpen:()=>this.isPropertyPaneOpen(),saveConfigValue:(e,t=!0)=>{this.saveConfigValue(e,t)},getConfigValue:e=>this.getConfigValue(e),getSearchableData:()=>this.getSearchData(),setSearchableData:e=>{this.setSearchData(e)},setTopActions:e=>{this.setTopActions(e)},getTopActions:()=>this.getTopActions(),getThemeProvider:()=>this.getThemeProvider(),getConfigDomElement:()=>this.getConfigDomElement(),getContext:()=>this.getContext(),getServiceScope:()=>this.getServiceScope()};if(this.SPFxExtensionInstance=await window.__SPFxExtensions.InstantiateApp(e,t),!this.SPFxExtensionInstance)return void console.warn(o.Lf,"App instance is undefined, cannot mount app",e);const n=window.__SPFxExtensions.Apps.find(t=>t.id===e);n&&(this.appDescription=n.description)}catch(t){return console.error(o.Lf,"Error while mounting appid",e,t),new Error(`${t}`)}}unmountApp(){this.SPFxExtensionInstance&&this.SPFxExtensionInstance.unmount?.(),this.SPFxExtensionInstance=void 0,this.domElement.innerHTML=""}generateIconElement(e){const t=document.createElement("i");if(t.classList.add("icon_845cef2a"),!e)return t.innerHTML='<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="28" height="28" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg"><path d="M20.84 2.66a2.25 2.25 0 0 0-3.18 0L13.5 6.8v-.56c0-1.24-1-2.25-2.25-2.25h-7C3.01 4 2 5.01 2 6.25v18c0 .97.78 1.75 1.75 1.75h18c1.24 0 2.25-1 2.25-2.25v-7c0-1.24-1-2.25-2.25-2.25h-.56l4.16-4.15c.88-.88.88-2.3 0-3.19l-4.5-4.5ZM17.31 14.5H13.5v-3.8l3.8 3.8Zm1.41-10.78c.3-.3.77-.3 1.06 0l4.5 4.5c.3.3.3.77 0 1.06l-4.5 4.51c-.3.3-.77.3-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.07l4.5-4.5ZM12 6.25v8.25H3.5V6.25c0-.41.34-.75.75-.75h7c.41 0 .75.34.75.75Zm-8.5 17.5V16H12v8.5H4.25a.75.75 0 0 1-.75-.75Zm10-7.75h8.25c.41 0 .75.34.75.75v7c0 .42-.34.75-.75.75H13.5V16Z" fill="currentColor"></path></svg>',t;if("font"===e.iconType&&e.fontFamily&&(t.style.fontFamily=e.fontFamily,t.classList.add("iconFont_845cef2a")),"url"===e.iconType){const n=document.createElement("img");n.src=e.iconData,n.alt="",t.appendChild(n)}return"svg"===e.iconType&&(t.innerHTML=e.iconData),t}createAndAppendAppButtons(e){const t=document.createElement("button");t.title=o.Bc,t.ariaLabel=o.Bc,t.className="appButton_845cef2a";const n=this.generateIconElement(e.icon);t.append(n,e.name),t.title=e.name,t.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault(),this.properties.selectedApp=e.id,this.webpartSectionElement.remove(),this.dropDownProps.selectedKey=e.id,this.context.propertyPane.refresh(),this.mountApp(e.id).catch(()=>{})}),this.appButtonsContainer.appendChild(t),this.appButtonElements.push(t)}createWebpartSection(e){this.webpartSectionElement.className="applicationListSection_845cef2a",this.webpartSectionTitle.className="header_845cef2a",this.webpartSectionElement.appendChild(this.webpartSectionTitle),e&&this.webpartSectionElement.appendChild(this.appButtonsWrapper)}renderDisplayMode(){this.webpartSectionElement.ariaLabel=o.oz,this.webpartSectionTitle.textContent=o.oz,this.createWebpartSection(),this.domElement.appendChild(this.webpartSectionElement)}async renderEditMode(){this.webpartSectionElement.ariaLabel=o.Ne,this.webpartSectionTitle.textContent=o.Ne,this.createWebpartSection(!0),this.appButtonsContainer.className="appButtonsContainer_845cef2a",this.appButtonsContainer.innerHTML="",this.appButtonsWrapper.appendChild(this.appButtonsContainer),this.appButtonsWrapper.className="appButtonsWrapper_845cef2a",this.domElement.appendChild(this.webpartSectionElement),this.appAddedListenerRegistration||(this.appAddedListenerRegistration=window.__SPFxExtensions.AddAppEventListener("appAdded",e=>{e.isWebPartApp&&this.createAndAppendAppButtons(e)})),window.__SPFxExtensions.Apps.filter(e=>e.registrationCompleted).forEach(e=>{e.isWebPartApp&&this.createAndAppendAppButtons(e)});try{await window.__SPFxExtensions.Utils.spAppInitializationPromise,window.__SPFxExtensions.Utils.appManifestPromises.forEach(e=>{const t=document.createElement("div"),n=document.createElement("span");t.className="buttonLoader_845cef2a",n.className="loader_845cef2a",t.appendChild(n),this.appButtonsContainer.append(t),e.catch(()=>{}).finally(()=>{t.remove()})})}catch(e){return console.error(o.Lf,"Error while awaiting app initialization",e),new Error(`Error while awaiting app initialization: ${e}`)}}async renderEmptyApp(){if(this.domElement.innerHTML="",this.domElement.className="SPFxExtensionApp_845cef2a",this.displayMode!==a.DisplayMode.Read)return this.renderEditMode();this.renderDisplayMode()}async render(){let e;await this.coreInitPromise;try{if(this.SPFxExtensionInstance){if(!this.SPFxExtensionInstance.unmountOnRender)return void this.SPFxExtensionInstance.executeListeners("onRender",void 0);this.unmountApp()}if(this.properties.selectedApp&&!this.SPFxExtensionInstance)return void(e=await this.mountApp(this.properties.selectedApp));e=await this.renderEmptyApp()}finally{this.renderCompleted(e,!0)}}renderCompleted(e,t){super.renderCompleted(e,t)}get isRenderAsync(){return!0}get propertiesMetadata(){return{searchableText:{isSearchablePlainText:!0},searchableHtml:{isHtmlString:!0}}}CustomWebpartConfigurationField(e){return{type:i.PropertyPaneFieldType.Custom,targetProperty:e,properties:{key:e,onRender:(e,t,n)=>{this.configDomElement=e,this.SPFxExtensionInstance?.instanceLoadPromise.then(()=>{this.SPFxExtensionInstance?.executeListeners("onConfigurationRender",{domElement:e})}).catch(e=>{console.error(o.Lf,"Error while awaiting app to load",e)})},onDispose:(e,t)=>{this.SPFxExtensionInstance?.executeListeners("onConfigurationClose",{domElement:e}),this.configDomElement=void 0}}}}onPropertyPaneConfigurationStart(){window.__SPFxExtensions.AllAppAssetsLoadedPromise.then(()=>{const e=window.__SPFxExtensions.Apps.find(e=>e.id===this.properties.selectedApp);e&&(this.appDescription=e.description,this.hideAppSelectorWhenAppLoaded=e.hideAppSelectorWhenAppLoaded??!1,this.hideConfiguratorButton=e.hideConfiguratorButton??!1),this.dropDownProps.options?.splice(0,this.dropDownProps.options?.length);const t=window.__SPFxExtensions.Apps.filter(e=>e.isWebPartApp).map(e=>({key:e.id,text:e.name}));this.dropDownProps.options?.push(...t),this.dropDownProps.selectedKey=this.properties.selectedApp,this.dropDownProps.disabled=!1,this.context.propertyPane.refresh()}).catch(e=>{console.error(o.Lf,"Error while awaiting all app assets to load",e)})}getPropertyPaneConfiguration(){const e={groupFields:[(0,i.PropertyPaneLabel)("spfxExtensionLoaderLabel",{text:"App not working? Try refreshing the page. Or go to the configuration page."}),(0,i.PropertyPaneButton)("configuratorButton",{text:"Open Configurator",buttonType:1,onClick:()=>{window.open(`${this.configuratorUrl}?web=${this.context.pageContext.web.absoluteUrl}`,"_blank")}})]},t=this.hideConfiguratorButton?[]:[e],n={groupFields:[(0,i.PropertyPaneDropdown)("selectedApp",{label:"App",disabled:this.dropDownProps.disabled,options:this.dropDownProps.options,selectedKey:this.dropDownProps.selectedKey}),(0,i.PropertyPaneLabel)("selectedAppDecription",{text:this.appDescription})]};return{pages:[{groups:[...t,...this.hideAppSelectorWhenAppLoaded?[]:[n],{groupFields:[this.CustomWebpartConfigurationField("SPFxExtensionAppConfiguration")]}]}]}}getTopActionsConfiguration(){return{topActions:this.properties.topActions??[],onExecute:(e,t)=>{this.SPFxExtensionInstance?.executeListeners("onTopActionExecute",{actionName:e,updatedValue:t})}}}onPropertyPaneConfigurationComplete(){!this.context.propertyPane.isPropertyPaneOpen()&&this.SPFxExtensionInstance&&this.SPFxExtensionInstance.executeListeners("onConfigurationClose",{domElement:this.configDomElement})}onPropertyPaneFieldChanged(e,t,n){if("selectedApp"===e){if(t&&t!==n&&this.SPFxExtensionInstance){if(!confirm("You are about to switch app, this will erase all previous app configuration. Are you sure?"))return void(this.properties[e]=t);this.unmountApp()}n&&(this.webpartSectionElement.remove(),this.mountApp(n).catch(()=>{}))}}onDisplayModeChanged(e){const t=e===a.DisplayMode.Edit?"Read":"Edit";this.SPFxExtensionInstance?.executeListeners("onDisplayModeChange",t)}onAfterPropertyPaneChangesApplied(){this.SPFxExtensionInstance?.executeListeners("onPropertyPaneChangesApplied",void 0)}onAfterResize(e){this.SPFxExtensionInstance?.executeListeners("onAfterResize",{newWidth:e})}onDispose(){this.unmountApp(),this.appAddedListenerRegistration&&window.__SPFxExtensions.RemoveAppEventListener&&(window.__SPFxExtensions.RemoveAppEventListener(this.appAddedListenerRegistration),this.appAddedListenerRegistration=void 0),this.appButtonElements.forEach(e=>{e.remove()}),this.appButtonElements.splice(0,this.appButtonElements.length),this.webpartSectionElement.remove(),this.webpartSectionTitle.remove(),this.appButtonsWrapper.remove(),this.appButtonsContainer.remove()}onThemeChanged(e){this.SPFxExtensionInstance?.executeListeners("onThemeChange",e)}get dataVersion(){return a.Version.parse("1.0")}}})(),u})())})();
@@ -1 +1 @@
1
- (async()=>{let s=document.currentScript,o="/sites/appcatalog/ClientSideAssets/7d56fff0-e90e-40a7-98cf-fcdbc63a9b01/",n="spfx-extensions-classicwrapper.js",e=s?.src??"/sites/appcatalog/ClientSideAssets/7d56fff0-e90e-40a7-98cf-fcdbc63a9b01/";if(!s?.src)console.warn("[SPFxExtensions/ClassicCustomAction] Could not determine script source, falling back to default url.","/sites/appcatalog/ClientSideAssets/7d56fff0-e90e-40a7-98cf-fcdbc63a9b01/");let r=e.slice(0,e.lastIndexOf("/")+1),t=Number(window.localStorage.getItem("SPFXEXT")),a=t>0?`https://localhost:${t}/spfx-extensions-classicwrapper.js?v=${Date.now()}`:`${r}spfx-extensions-classicwrapper.js?v=${Date.now()}`;try{(await import(a)).init()}catch(c){console.error("Error loading classic wrapper",c)}})();
1
+ (async()=>{let a=document.currentScript,i="/sites/appcatalog/ClientSideAssets/7d56fff0-e90e-40a7-98cf-fcdbc63a9b01/",p="spfx-extensions-classicwrapper.js",r=a?.src??"/sites/appcatalog/ClientSideAssets/7d56fff0-e90e-40a7-98cf-fcdbc63a9b01/",m="[SPFxExtensions/ClassicCustomAction]";if(!a?.src)console.warn("[SPFxExtensions/ClassicCustomAction] Could not determine script source, falling back to default url.","/sites/appcatalog/ClientSideAssets/7d56fff0-e90e-40a7-98cf-fcdbc63a9b01/");let o=r.slice(0,r.lastIndexOf("/")+1),s=window.localStorage.getItem("SPFXEXT")??"",n=/^\d+$/.test(s??""),l=s.trim()!=="",t=Date.now(),e=`${o}spfx-extensions-classicwrapper.js?v=${t}`;if(n)e=`https://localhost:${s}/spfx-extensions-classicwrapper.js?v=${t}`;if(l)e=`${s}/spfx-extensions-classicwrapper.js?v=${t}`;try{(await import(e)).init()}catch(c){console.error("[SPFxExtensions/ClassicCustomAction] Error loading classic wrapper",c)}})();
@@ -1 +1 @@
1
- var Y=Object.create;var{getPrototypeOf:Z,defineProperty:L,getOwnPropertyNames:$}=Object;var b=Object.prototype.hasOwnProperty;function A(j){return this[j]}var D,M,m=(j,k,q)=>{var B=j!=null&&typeof j==="object";if(B){var G=k?D??=/*@__PURE__*/new WeakMap:M??=/*@__PURE__*/new WeakMap,H=G.get(j);if(H)return H}q=j!=null?Y(Z(j)):{};let J=k||!j||!j.__esModule?L(q,"default",{value:j,enumerable:!0}):q;for(let K of $(j))if(!b.call(J,K))L(J,K,{get:A.bind(j,K),enumerable:!0});if(B)G.set(j,J);return J};var y=(j,k)=>()=>(k||j((k={exports:{}}).exports,k),k.exports);var f=(j)=>j;function w(j,k){this[j]=f.bind(null,k)}var z=(j,k)=>{for(var q in k)L(j,q,{get:k[q],enumerable:!0,configurable:!0,set:w.bind(k,q)})};async function N(j){let k=Number(localStorage.getItem("SPFXEXT")),q={core:"",configuratorUrl:""};if(k>0){let H=Date.now();return q.core=`https://localhost:${k}/spfx-extensions-core.js?v=${H}`,q.configuratorUrl=`https://localhost:${k}/spfx-extensions-coreconfigurator.js?v=${H}`,q}let{coreUrl:B,configuratorUrl:G}=await j();if(!B)throw Error("[SPFxExtensions/Core] Unable to resolve SPFx Core location");if(!G)throw Error("[SPFxExtensions/Core] Unable to resolve SPFx Core Configurator location");return q.core=B,q.configuratorUrl=G,q}function O(j,k){if(!window.__SPFxExtensions.__CorePromise){let{promise:q,resolve:B}=Promise.withResolvers();window.__SPFxExtensions.__CorePromise=q,window.__SPFxExtensions.__CorePromiseResolver=B}if(!window.__SPFxExtensions.Utils){let{promise:q,resolve:B}=Promise.withResolvers(),{promise:G,resolve:H}=Promise.withResolvers();window.__SPFxExtensions.Utils={environmentType:j,initializedThroughSPFX:k,placeHolderProviderPromise:q,placeHolderResolver:B,appManifestPromises:[],spAppInitializationPromise:G,spAppInitializationPromiseResolver:H,fluentIconsInitialized:!1,ConfiguratorPageUrl:"/sites/appcatalog/SPFxExtensionsData/SitePages/SPFxExtensionsConfigurator.aspx"}}}async function V(j,k,q){if(window.__SPFxExtensions.__CorePromise)return window.__SPFxExtensions.__CorePromise;O(k,q);let B=await N(j);window.__SPFxExtensions.__ConfiguratorUrl=B.configuratorUrl,console.info("[SPFxExtensions/Core]","Loading SPFxExtensions Core from",B);let G=document.createElement("script");return G.src=B.core,G.type="module",G.addEventListener("error",(H)=>{console.error("[SPFxExtensions/Core]","Catastrophic failure, cannot load SPFxExtensions Core from",B,H)}),document.head.appendChild(G),window.__SPFxExtensions.__CorePromise}var Q="[SPFxExtensions/Wrapper]",_=!window._spBodyOnLoadFunctions;async function W(){if(_){console.error(Q,"This module can only be initialized in classic mode");return}if(window.__SPFxExtensions?.__CoreInitializationPromise)return window.__SPFxExtensions.__CoreInitializationPromise;let{promise:j,resolve:k}=Promise.withResolvers();window.__SPFxExtensions={__CoreInitializationPromise:j,__CoreInitializationResolver:k},console.info(Q,"Initializing SPFxExtensions Core from Classic SharePoint page");let q=import.meta.resolve(`./spfx-extensions-core.js?v=${Date.now()}`),B=import.meta.resolve(`./spfx-extensions-coreconfigurator.js?v=${Date.now()}`);await V(async()=>{return{coreUrl:q,configuratorUrl:B}},"ClassicSharePoint",!1),window.__SPFxExtensions.__CoreInitializationResolver()}function d(){if(!window._spBodyOnLoadCalled&&window._spBodyOnLoadFunctions){window._spBodyOnLoadFunctions.push(W);return}if(window._spBodyOnLoadCalled){W();return}console.error(Q,"No _spBodyOnLoadFunctions or _spBodyOnLoadCalled object present. Can not initialize classic wrapper")}export{d as init};
1
+ var z=Object.create;var{getPrototypeOf:M,defineProperty:D,getOwnPropertyNames:W}=Object;var f=Object.prototype.hasOwnProperty;function m(j){return this[j]}var x,y,v=(j,q,H)=>{var K=j!=null&&typeof j==="object";if(K){var B=q?x??=/*@__PURE__*/new WeakMap:y??=/*@__PURE__*/new WeakMap,L=B.get(j);if(L)return L}H=j!=null?z(M(j)):{};let Q=q||!j||!j.__esModule?D(H,"default",{value:j,enumerable:!0}):H;for(let V of W(j))if(!f.call(Q,V))D(Q,V,{get:m.bind(j,V),enumerable:!0});if(K)B.set(j,Q);return Q};var A=(j,q)=>()=>(q||j((q={exports:{}}).exports,q),q.exports);var N=(j)=>j;function O(j,q){this[j]=N.bind(null,q)}var g=(j,q)=>{for(var H in q)D(j,H,{get:q[H],enumerable:!0,configurable:!0,set:O.bind(q,H)})};var Y="[SPFxExtensions/Loader]";var Z="spfx-extensions-core.js",$="spfx-extensions-coreconfigurator.js",G="https://localhost",w="SPFXEXT",I="SPFXEXT_";async function U(j){let q=window.localStorage.getItem(w)??"",H=/^\d+$/.test(q??""),K=q.trim()!=="",B={core:"",configuratorUrl:""},L=Date.now();if(H)return B.core=`${G}:${q}/${Z}?v=${L}`,B.configuratorUrl=`${G}:${q}/${$}?v=${L}`,B;if(K)return B.core=`${q}/${Z}?v=${L}`,B.configuratorUrl=`${q}/${$}?v=${L}`,B;let{coreUrl:Q,configuratorUrl:V}=await j();if(!Q)throw Error(`${Y} Unable to resolve SPFx Core location`);if(!V)throw Error(`${Y} Unable to resolve SPFx Core Configurator location`);return B.core=Q,B.configuratorUrl=V,B}function T(j,q){if(!window.__SPFxExtensions.__CorePromise){let{promise:H,resolve:K}=Promise.withResolvers();window.__SPFxExtensions.__CorePromise=H,window.__SPFxExtensions.__CorePromiseResolver=K}if(!window.__SPFxExtensions.Utils){let{promise:H,resolve:K}=Promise.withResolvers(),{promise:B,resolve:L}=Promise.withResolvers();window.__SPFxExtensions.Utils={environmentType:j,initializedThroughSPFX:q,placeHolderProviderPromise:H,placeHolderResolver:K,appManifestPromises:[],spAppInitializationPromise:B,spAppInitializationPromiseResolver:L,fluentIconsInitialized:!1,ConfiguratorPageUrl:"/sites/appcatalog/SPFxExtensionsData/SitePages/SPFxExtensionsConfigurator.aspx"}}}async function J(j,q,H){if(window.__SPFxExtensions.__CorePromise)return window.__SPFxExtensions.__CorePromise;T(q,H);let K=await U(j);window.__SPFxExtensions.__ConfiguratorUrl=K.configuratorUrl,console.info(Y,"Loading SPFxExtensions Core from",K);let B=document.createElement("script");return B.src=K.core,B.type="module",B.addEventListener("error",(L)=>{console.error(Y,"Catastrophic failure, cannot load SPFxExtensions Core from",K,L)}),document.head.appendChild(B),window.__SPFxExtensions.__CorePromise}var k="[SPFxExtensions/Wrapper]",_=!window._spBodyOnLoadFunctions;async function b(){if(_){console.error(k,"This module can only be initialized in classic mode");return}if(window.__SPFxExtensions?.__CoreInitializationPromise)return window.__SPFxExtensions.__CoreInitializationPromise;let{promise:j,resolve:q}=Promise.withResolvers();window.__SPFxExtensions={__CoreInitializationPromise:j,__CoreInitializationResolver:q},console.info(k,"Initializing SPFxExtensions Core from Classic SharePoint page");let H=import.meta.resolve(`./${Z}?v=${Date.now()}`),K=import.meta.resolve(`./${$}.js?v=${Date.now()}`);await J(async()=>{return{coreUrl:H,configuratorUrl:K}},"ClassicSharePoint",!1),window.__SPFxExtensions.__CoreInitializationResolver()}function E(){if(!window._spBodyOnLoadCalled&&window._spBodyOnLoadFunctions){window._spBodyOnLoadFunctions.push(b);return}if(window._spBodyOnLoadCalled){b();return}console.error(k,"No _spBodyOnLoadFunctions or _spBodyOnLoadCalled object present. Can not initialize classic wrapper")}export{E as init};
@@ -1 +1 @@
1
- var e1=Object.create;var{getPrototypeOf:xw,defineProperty:Kx,getOwnPropertyNames:ww}=Object;var $w=Object.prototype.hasOwnProperty;function yw(x){return this[x]}var _w,nw,d9=(x,w,$)=>{var y=x!=null&&typeof x==="object";if(y){var _=w?_w??=/*@__PURE__*/new WeakMap:nw??=/*@__PURE__*/new WeakMap,n=_.get(x);if(n)return n}$=x!=null?e1(xw(x)):{};let Q=w||!x||!x.__esModule?Kx($,"default",{value:x,enumerable:!0}):$;for(let V of ww(x))if(!$w.call(Q,V))Kx(Q,V,{get:yw.bind(x,V),enumerable:!0});if(y)_.set(x,Q);return Q};var S9=(x,w)=>()=>(w||x((w={exports:{}}).exports,w),w.exports);var Qw=(x)=>x;function Zw(x,w){this[x]=Qw.bind(null,w)}var h9=(x,w)=>{for(var $ in w)Kx(x,$,{get:w[$],enumerable:!0,configurable:!0,set:Zw.bind(w,$)})};var px="7d56fff0-e90e-40a7-98cf-fcdbc63a9b01",Jx="d6ca1fc2-0591-4c6d-8a25-cae3262c017b",A="45e75137-13c5-4bb2-a2b3-8ab6382682ee",ix="SPFxExtensionsConfigurator",T="SitePages/SPFxExtensionsConfigurator.aspx",G="manifest.txt",D="collectionconfig.txt",Wx="Loading...",h="SPFxExtensionsConfiguration",M="SPFxExtensionsWhiteList",v9="SPFxExtensions",v="/SPFxExtensions/",H="SPFxExtensionsData",X="[SPFxExtensionCore]",qx={appDefinitionMap:[],appRelativeEntryPointUrls:[],manualEntries:[]},C9={enabledEverywhere:!1,excludedHubIds:[],excludedIds:[],includedHubIds:[],includedIds:[]},Hx={enabledAppCollections:[],urlMap:[]},t="00000000-0000-0000-0000-000000000000";async function f9(){if(window.moduleLoaderPromise)return(await window.moduleLoaderPromise)?.context;console.error("Unable to retrieve Modern SP Context...")}async function sx(){if(window.moduleLoaderPromise){let x=await window.moduleLoaderPromise;if(x?.context?.pageContext)return{contextType:"SPOModernContext",context:x.context.pageContext};throw"It seems this is a modern page, however it was not possible to retrieve SP Context..."}if(window._spPageContextInfo)return{contextType:"ClassicContext",context:window._spPageContextInfo};throw"It was not possible to retrieve SP Context either through modern or through classic means..."}function B(x,w,$=x){return(y)=>{let _=""+y,n=_.indexOf(w,x.length);return~n?x+Vw(_,w,$,n)+w:x+_+w}}function Vw(x,w,$,y){let _="",n=0;do _+=x.substring(n,y)+$,n=y+w.length,y=x.indexOf(w,n);while(~y);return _+x.substring(n)}var N9=B("\x1B[0m","\x1B[0m"),u9=B("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),I9=B("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),T9=B("\x1B[3m","\x1B[23m"),t9=B("\x1B[4m","\x1B[24m"),c9=B("\x1B[7m","\x1B[27m"),p9=B("\x1B[8m","\x1B[28m"),i9=B("\x1B[9m","\x1B[29m"),s9=B("\x1B[30m","\x1B[39m"),l9=B("\x1B[31m","\x1B[39m"),r9=B("\x1B[32m","\x1B[39m"),a9=B("\x1B[33m","\x1B[39m"),e9=B("\x1B[34m","\x1B[39m"),x3=B("\x1B[35m","\x1B[39m"),w3=B("\x1B[36m","\x1B[39m"),$3=B("\x1B[37m","\x1B[39m"),y3=B("\x1B[90m","\x1B[39m"),_3=B("\x1B[40m","\x1B[49m"),n3=B("\x1B[41m","\x1B[49m"),Q3=B("\x1B[42m","\x1B[49m"),Z3=B("\x1B[43m","\x1B[49m"),V3=B("\x1B[44m","\x1B[49m"),z3=B("\x1B[45m","\x1B[49m"),B3=B("\x1B[46m","\x1B[49m"),Y3=B("\x1B[47m","\x1B[49m"),j3=B("\x1B[90m","\x1B[39m"),K3=B("\x1B[91m","\x1B[39m"),c=B("\x1B[92m","\x1B[39m"),J3=B("\x1B[93m","\x1B[39m"),W3=B("\x1B[94m","\x1B[39m"),q3=B("\x1B[95m","\x1B[39m"),H3=B("\x1B[96m","\x1B[39m"),b3=B("\x1B[97m","\x1B[39m"),k3=B("\x1B[100m","\x1B[49m"),F3=B("\x1B[101m","\x1B[49m"),D3=B("\x1B[102m","\x1B[49m"),P3=B("\x1B[103m","\x1B[49m"),R3=B("\x1B[104m","\x1B[49m"),O3=B("\x1B[105m","\x1B[49m"),G3=B("\x1B[106m","\x1B[49m"),X3=B("\x1B[107m","\x1B[49m");function Z(...x){console.error(c(X),(/*@__PURE__*/new Date()).toISOString(),...x)}function k(...x){console.warn(c(X),(/*@__PURE__*/new Date()).toISOString(),...x)}function j(...x){console.info(c(X),(/*@__PURE__*/new Date()).toISOString(),...x)}function J(...x){}function bx(x,w,$){Z("Error while executing onInstanceRequested for app",x.id,"with name",x.name,$?`Additional Data: ${$}`:"",w)}function C(){return k("The app instance event was called before app instance was initialized."),()=>{}}var kx=window.crypto.randomUUID();function p(){return kx}function lx(){return kx=window.crypto.randomUUID(),kx}function Fx(x){return x.replace("{","").replace("}","")}function d3(x){return JSON.parse(JSON.stringify(x))}function zw(x,w,$){let y=x.instances.findIndex((_)=>_.key===w);if(y>-1){let _=x.instances.splice(y,1);if(_.length<1)return;let n=_[0];n.executeListeners("onConfigurationClose",{domElement:void 0}),n.allEventListeners.splice(0,n.allEventListeners.length),$?.()}}async function rx(x){let w=window.__SPFxExtensions.Apps.filter(($)=>!$.isWebPartApp&&!$.keepOnContextChange&&$.id!==A);for(let $ of w)for(let y of $.instances.filter((_)=>_.contextId!==x))if(y.instanceExecuted)y.unmount()}function i(x,w){if(w.instanceRequested)return;try{w.instanceRequested=!0,x.onInstanceRequested(w).then(($)=>{w.unmount=()=>{zw(x,w.key,$)},w.instanceLoadPromiseResolver(),w.instanceExecuted=!0}).catch(($)=>{bx(x,$)})}catch($){bx(x,$)}}function Bw(x){J("Executing appAdded event for",x.id),window.__SPFxExtensions.AppEventListeners.filter((w)=>w.eventName==="appAdded").forEach((w)=>{try{w.handler(x)}catch($){Z("Error executing appAdded event",$)}})}function Dx(x){let w=window.__SPFxExtensions.Apps.find(($)=>$.id===x);if(!w)J("Registering new app",x),w={id:x,name:Wx,description:Wx,isWebPartApp:!1,unmountOnRender:!0,keepOnContextChange:!1,autoExecute:!1,maxInstances:1/0,hideAppSelectorWhenAppLoaded:!1,hideConfiguratorButton:!1,registrationCompleted:!1,isManual:!1,instances:[],async onInstanceRequested(){return C}},window.__SPFxExtensions.Apps.push(w);return w}function ax(){if(!window.__SPFxExtensions.Apps)window.__SPFxExtensions.Apps=[];if(!window.__SPFxExtensions.RegisterApp)window.__SPFxExtensions.RegisterApp=async(x)=>{let w=Dx(x.id);if(w.registrationCompleted)return w;return w.name=x.name,w.description=x.description,w.isWebPartApp=x.isWebPartApp,w.keepOnContextChange=x.keepOnContextChange??!1,w.autoExecute=x.autoExecute??!1,w.isManual=x.isManual??!1,w.unmountOnRender=x.unmountOnRender??!0,w.maxInstances=x.maxInstances??1/0,w.hideAppSelectorWhenAppLoaded=x.hideAppSelectorWhenAppLoaded??!1,w.hideConfiguratorButton=x.hideConfiguratorButton??!1,w.icon=x.icon,w.onInstanceRequested=x.onInstanceRequested,w.registrationCompleted=!0,Bw(w),w.instances.forEach(($)=>{i(w,$)}),w};if(!window.__SPFxExtensions.UnregisterApp)window.__SPFxExtensions.UnregisterApp=async(x)=>{let w=window.__SPFxExtensions.Apps.findIndex((y)=>y.id===x);if(w<0)return;let $=window.__SPFxExtensions.Apps.splice(w,1);if($.length<1)return;return J("Unregistering app",$[0].id,$[0].name),$[0].instances.forEach((y)=>{if(y.instanceExecuted)y.unmount()}),$[0]}}function Yw(x){let w=(_)=>{let n=x.allEventListeners.findIndex((Q)=>Q.key===_.key);if(n>-1)J("Removing event listener",_),x.allEventListeners.splice(n,1)},$=(_,n)=>{let Q={key:window.crypto.randomUUID(),eventName:_,handler:n};return x.allEventListeners.push(Q),()=>{w(Q)}},y=(_,n)=>{for(let Q of x.allEventListeners){if(Q.eventName!=_)continue;if(Q.handler)Q.handler(n)}};x.addEventListener=$,x.executeListeners=y}function jw(x,w){J("Executing instanceAdded event for app",x.id,"instance",w.key),window.__SPFxExtensions.AppEventListeners.filter(($)=>$.eventName==="instanceAdded").forEach(($)=>{try{$.handler({app:x,instance:w})}catch(y){Z("Error executing instanceAdded event",y)}})}function Kw(x){let{promise:w,resolve:$}=Promise.withResolvers(),y={...x,key:window.crypto.randomUUID(),contextId:p(),instanceRequested:!1,instanceExecuted:!1,unmountOnRender:!0,unmount:C,allEventListeners:[],addEventListener:C,executeListeners:C,instanceLoadPromise:w,instanceLoadPromiseResolver:$};return Yw(y),y}function ex(){if(!window.__SPFxExtensions.InstantiateApp)window.__SPFxExtensions.InstantiateApp=async(x,w)=>{let $=Dx(x);J("Creating app instance for app",x);let y=Kw(w);if(y.unmountOnRender=$.unmountOnRender??!0,$.instances.push(y),jw($,y),$.registrationCompleted)i($,y);return y}}async function U(x,w=0){let y=(/*@__PURE__*/new TextEncoder()).encode(x),_=await window.crypto.subtle.digest("SHA-1",y),Q=Array.from(new Uint8Array(_)).map((V)=>V.toString(16).padStart(2,"0")).join("");return w>0?Q.substring(0,w):Q}var Ox=(x,w)=>w.some(($)=>x instanceof $),x1,w1;function Jw(){return x1||(x1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ww(){return w1||(w1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Gx=/*@__PURE__*/new WeakMap,Px=/*@__PURE__*/new WeakMap,s=/*@__PURE__*/new WeakMap;function qw(x){let w=new Promise(($,y)=>{let _=()=>{x.removeEventListener("success",n),x.removeEventListener("error",Q)},n=()=>{$(o(x.result)),_()},Q=()=>{y(x.error),_()};x.addEventListener("success",n),x.addEventListener("error",Q)});return s.set(w,x),w}function Hw(x){if(Gx.has(x))return;let w=new Promise(($,y)=>{let _=()=>{x.removeEventListener("complete",n),x.removeEventListener("error",Q),x.removeEventListener("abort",Q)},n=()=>{$(),_()},Q=()=>{y(x.error||new DOMException("AbortError","AbortError")),_()};x.addEventListener("complete",n),x.addEventListener("error",Q),x.addEventListener("abort",Q)});Gx.set(x,w)}var Xx={get(x,w,$){if(x instanceof IDBTransaction){if(w==="done")return Gx.get(x);if(w==="store")return $.objectStoreNames[1]?void 0:$.objectStore($.objectStoreNames[0])}return o(x[w])},set(x,w,$){return x[w]=$,!0},has(x,w){if(x instanceof IDBTransaction&&(w==="done"||w==="store"))return!0;return w in x}};function n1(x){Xx=x(Xx)}function bw(x){if(Ww().includes(x))return function(...w){return x.apply(Ex(this),w),o(this.request)};return function(...w){return o(x.apply(Ex(this),w))}}function kw(x){if(typeof x==="function")return bw(x);if(x instanceof IDBTransaction)Hw(x);if(Ox(x,Jw()))return new Proxy(x,Xx);return x}function o(x){if(x instanceof IDBRequest)return qw(x);if(Px.has(x))return Px.get(x);let w=kw(x);if(w!==x)Px.set(x,w),s.set(w,x);return w}var Ex=(x)=>s.get(x);function Q1(x,w,{blocked:$,upgrade:y,blocking:_,terminated:n}={}){let Q=indexedDB.open(x,w),V=o(Q);if(y)Q.addEventListener("upgradeneeded",(z)=>{y(o(Q.result),z.oldVersion,z.newVersion,o(Q.transaction),z)});if($)Q.addEventListener("blocked",(z)=>$(z.oldVersion,z.newVersion,z));return V.then((z)=>{if(n)z.addEventListener("close",()=>n());if(_)z.addEventListener("versionchange",(Y)=>_(Y.oldVersion,Y.newVersion,Y))}).catch(()=>{}),V}function Z1(x,{blocked:w}={}){let $=indexedDB.deleteDatabase(x);if(w)$.addEventListener("blocked",(y)=>w(y.oldVersion,y));return o($).then(()=>{return})}var Fw=["get","getKey","getAll","getAllKeys","count"],Dw=["put","add","delete","clear"],Rx=/*@__PURE__*/new Map;function $1(x,w){if(!(x instanceof IDBDatabase&&!(w in x)&&typeof w==="string"))return;if(Rx.get(w))return Rx.get(w);let $=w.replace(/FromIndex$/,""),y=w!==$,_=Dw.includes($);if(!($ in(y?IDBIndex:IDBObjectStore).prototype)||!(_||Fw.includes($)))return;let n=async function(Q,...V){let z=this.transaction(Q,_?"readwrite":"readonly"),Y=z.store;if(y)Y=Y.index(V.shift());return(await Promise.all([Y[$](...V),_&&z.done]))[0]};return Rx.set(w,n),n}n1((x)=>({...x,get:(w,$,y)=>$1(w,$)||x.get(w,$,y),has:(w,$)=>!!$1(w,$)||x.has(w,$)}));var Pw=["continue","continuePrimaryKey","advance"],y1={},Lx=/*@__PURE__*/new WeakMap,V1=/*@__PURE__*/new WeakMap,Rw={get(x,w){if(!Pw.includes(w))return x[w];let $=y1[w];if(!$)$=y1[w]=function(...y){Lx.set(this,V1.get(this)[w](...y))};return $}};async function*Ow(...x){let w=this;if(!(w instanceof IDBCursor))w=await w.openCursor(...x);if(!w)return;w=w;let $=new Proxy(w,Rw);V1.set($,w),s.set($,Ex(w));while(w)yield $,w=await(Lx.get($)||w.continue()),Lx.delete($)}function _1(x,w){return w===Symbol.asyncIterator&&Ox(x,[IDBIndex,IDBObjectStore,IDBCursor])||w==="iterate"&&Ox(x,[IDBIndex,IDBObjectStore])}n1((x)=>({...x,get(w,$,y){if(_1(w,$))return Ow;return x.get(w,$,y)},has(w,$){return _1(w,$)||x.has(w,$)}}));var m={SPFXEXT:"SPFXEXT_",SPFXEXT_CORE:"SPFXEXT"};function mx(){try{let x=typeof globalThis<"u"?globalThis:void 0;if(x&&x.localStorage)return x.localStorage}catch{}try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{}return}function Gw(){let x=mx();if(!x)return[];try{let w=[];for(let $=0;$<x.length;$++){let y=x.key($);if(y)w.push(y)}return w}catch{return[]}}function Xw(x){let w=mx();if(!w)return null;try{return w.getItem(x)}catch{return null}}function Ew(){return Gw().some((x)=>x.indexOf(m.SPFXEXT)>-1&&Number(Xw(x))>0)}function z1(x){return x.hostname.toLowerCase()==="localhost"}function B1(x){try{let w=`${m.SPFXEXT}${x}`,$=mx(),y=$?$.getItem?$.getItem(w):$[w]:null;return Number(y)>0}catch{return!1}}var E=Ew();var K={AppFolderManifestCache:"AppFolderManifestCache",AppCollectionManifestCache:"AppCollectionManifestCache",AllowedApps:"AllowedApps",HubSiteData:"HubSiteData",SPFxExtensionConfig:"SPFxExtensionConfig"},Y1=`${m.SPFXEXT}COREDB`,Ax=Q1(Y1,1,{blocking(x,w,$){Ax.then((y)=>y.close()),alert("A new version of this page is ready. Please reload the page.")},async upgrade(x,w,$,y,_){if(w===0)x.createObjectStore(K.AppFolderManifestCache,{keyPath:"url"}),x.createObjectStore(K.AppCollectionManifestCache,{keyPath:"url"}),x.createObjectStore(K.AllowedApps,{keyPath:"Id"}),x.createObjectStore(K.HubSiteData,{keyPath:"SiteId"}),x.createObjectStore(K.SPFxExtensionConfig,{keyPath:"Title"})}});Ax.catch((x)=>{throw Z("Error opening database for Core, please contact your administrator."),Z1(Y1).then(()=>{window.location.reload()}),x});var F=await Ax;function f(x){let w="never";if(x!==1/0){let $=/*@__PURE__*/new Date;$.setMinutes($.getMinutes()+x),w=$.toISOString()}return{expires:w}}async function g(x,w){let $=await F.getAll(x),y=/*@__PURE__*/new Date,_=$.filter((Q)=>{if(Q.expires==="never")return!1;let V=new Date(Q.expires);return y>=V}),n=_.length;if(n>0){let Q=F.transaction(x,"readwrite"),V=Q.objectStore(x);_.forEach((z)=>V.delete(z[w])),await Q.done,k(`Evicted ${n} items from ${x} cache.`)}return n}async function ox(){return await g(K.SPFxExtensionConfig,"Title"),F.getAll(K.SPFxExtensionConfig)}async function d(x){return await g(K.SPFxExtensionConfig,"Title"),F.get(K.SPFxExtensionConfig,x)}async function L(x,w=60){await F.put(K.SPFxExtensionConfig,{...x,...f(w)})}async function j1(x,w){let $=F.transaction(K.SPFxExtensionConfig,"readwrite"),y=$.objectStore(K.SPFxExtensionConfig);return x.forEach((_)=>y.put({..._,...f(w)})),$.done}async function K1(){return F.getAll(K.AllowedApps)}async function dx(x){return F.get(K.AppFolderManifestCache,x)}async function Sx(x){return F.get(K.AppCollectionManifestCache,x)}async function J1(x){return F.get(K.HubSiteData,x)}async function W1(x,w=60){await F.put(K.HubSiteData,{...x,...f(w)})}async function Lw(x,w=60){await F.put(K.AppCollectionManifestCache,{...x,...f(w)})}async function mw(x,w=60){await F.put(K.AppFolderManifestCache,{...x,...f(w)})}async function q1(x,w=5){let $=f(w),y=F.transaction(K.AllowedApps,"readwrite"),_=y.objectStore(K.AllowedApps);return x.forEach((n)=>_.put({...n,...$})),y.done}async function Aw(x){return F.delete(K.AppCollectionManifestCache,x)}async function ow(x){return F.delete(K.AppFolderManifestCache,x)}async function dw(){return g(K.AppCollectionManifestCache,"url")}async function Sw(){return g(K.AppFolderManifestCache,"url")}async function H1(){return g(K.AllowedApps,"Id")}async function b1(){return g(K.HubSiteData,"SiteId")}async function l(x){if(x){let w=await dx(x.url);if(w){if(w.hash!==x.hash){await ow(x.url);let $=x.url.toLowerCase().replace(`/${G}`,"");await a([$],!1),k(`Evicted ${G} ${w.url} from cache. Because of hash mismatch.`)}}}return Sw()}async function r(x){if(x){let w=await Sx(x.url);if(w){if(w.hash!==x.hash)await Aw(x.url),await a([x.url],!1),k(`Evicted ${D} ${w.url} from cache. Because of hash mismatch.`)}}return dw()}async function k1(x){if(await l(),E)return;return dx(x)}async function F1(x,w){await l(x);let $=await dx(x.url);if($&&$.hash===x.hash&&!E)return;await mw(x,w)}async function D1(x,w){await r(x);let $=await Sx(x.url);if($&&$.hash===x.hash&&!E)return;await Lw(x,w)}async function P1(x){if(await r(),E)return;return Sx(x)}var hx=/*@__PURE__*/new Map;async function R1(x,w=!1){let $="";if(hx.has(x)&&!w)$=hx.get(x)||"";if($)return $;let y=await fetch(`${x}/_api/contextinfo`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json"}});if(y.status===200){let n=(await y.json()).d.GetContextWebInformation.FormDigestValue;return hx.set(x,n),n}else Z("Error while getting digest",y.status);return""}var Mx=(x)=>{},e;async function xx(x=""){if(e)return e;e=new Promise((w)=>{Mx=w});try{let y=(await(await fetch(`${x}/_api/SP_TenantSettings_Current`,{headers:{Accept:"application/json;odata=verbose"}})).json()).d.CorporateCatalogUrl;Mx(y)}catch(w){Z("Error while getting app catalog url. Trying default /sites/appcatalog",w);let $=`${window.location.origin}/sites/appcatalog`;Mx($)}return e}async function O1(x=""){let w=await d("AppCatalogUrl");if(w?.Data)return w.Data;let $=await xx(x);return await L({Title:"AppCatalogUrl",Data:$},240),$}async function R(x=""){let $=`${await O1()}${x?`/${x}`:""}`;return R1($)}var hw=await O1(),W=`${hw}/${H}`;var X1={RootCDNLocation:"RootCDNLocation",InterceptHistory:"InterceptHistory",EnableAppWhiteList:"EnableAppWhiteList",AppCatalogUrl:"AppCatalogUrl",SPFxDataSite:"SPFxDataSite",ConfiguratorPageData:"ConfiguratorPageData",AppWhiteList:"AppWhiteList",Version:"2026-03-18T22:42:54.268Z"},G1=[{Title:"InterceptHistory",Data:"true"},{Title:"EnableAppWhiteList",Data:"false"},{Title:"RootCDNLocation",Data:`/sites/appcatalog/${H}`}];function E1(x){let w=G1.find(($)=>$.Title==="RootCDNLocation");if(w)w.Data=x;return G1}var Mw=Object.keys(X1).length,wx;async function vw(){let x=`${W}/_api/web/lists/GetByTitle('${h}')/fields`;try{let w=await fetch(x,{headers:{Accept:"application/json;odata=verbose"}});if(w.status===200){let y=(await w.json()).d.results,_=y.map((Q)=>Q.InternalName),n=y.find((Q)=>Q.InternalName==="Title");if(!n){Z("Title field not found.");return}if(!n.EnforceUniqueValues){let Q=await R(H);if((await fetch(`${W}/_api/web/lists/GetByTitle('${h}')/fields('${n.Id}')`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":Q,"X-HTTP-Method":"MERGE","If-Match":"*"},body:JSON.stringify({__metadata:{type:"SP.Field"},Indexed:!0,EnforceUniqueValues:!0})})).status===204)j("Title field updated successfully.");else Z("Unable to update Title field.")}if(!_.includes("Data")){let Q=await R(H);if((await fetch(x,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":Q},body:JSON.stringify({__metadata:{type:"SP.Field"},Title:"Data",FieldTypeKind:2,Required:!0})})).status===201)j("Data field added successfully.");else Z("Unable to add Data field.")}}}catch(w){Z("Error while ensuring configuration list data fields.",w)}}async function Cw(){let x=!1;try{if(x=(await fetch(`${W}/_api/web/lists/GetByTitle('${h}')`)).status===404,x){let $=await R(H);if(j("Creating configuration list."),(await fetch(`${W}/_api/web/lists`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":$},body:JSON.stringify({__metadata:{type:"SP.List"},BaseTemplate:100,Title:"SPFxExtensionsConfiguration",Description:"Configuration list for SPFxExtensions"})})).status===201)j("Configuration list created successfully.");else Z("Unable to create configuration list.")}await vw()}catch(w){Z("Error while ensuring configuration list.",w)}return x}async function L1(){let x=`${W}/_api/web/lists/GetByTitle('${h}')/items?$select=Title,Data`,$=await fetch(x,{...{headers:{Accept:"application/json;odata=verbose"}}});if($.status!==200)return Z("Unable to fetch configuration list items."),[];return(await $.json()).d.results}async function Uw(){let x=await R(H);for(let w of E1(W))if((await fetch(`${W}/_api/web/lists/GetByTitle('${h}')/items`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":x},body:JSON.stringify({__metadata:{type:"SP.Data.SPFxExtensionsConfigurationListItem"},...w})})).status===201)j(`Item ${w.Title} added successfully.`);else Z(`Unable to add item ${w.Title}.`)}function m1(x=!1){if(x)return L1();if(wx)return wx;return wx=fw(),wx}async function fw(){let x=await ox();if(x.length<Mw){if(await Cw())await Uw();let $=await L1();await j1($,240),x=await ox()}return x}async function gw(x){let w=await xx(),$=await R(),y=await fetch(`${w}/_api/web/webs/add`,{method:"POST",headers:{Accept:"application/json;odata=nometadata","Content-Type":"application/json","X-RequestDigest":$},body:JSON.stringify({parameters:{Description:"Site that stores SPFxExtensions Data and global apps",Language:1033,Title:"SPFxExtensions Data",Url:x,UseSamePermissionsAsParentSite:!0,WebTemplate:"STS"}})});if(!y.ok)throw Error(`Failed to create SPFxExtensionsData web in ${w}`);return await y.json()}async function Nw(){let x=await xx(),w=await R(),$=await fetch(`${x}/${H}/_api/web`,{method:"GET",headers:{Accept:"application/json;odata=nometadata","X-RequestDigest":w}});if(!$.ok){if($.status===404)return{data:void 0,isError:!1,error:"",warnings:[`SPFxExtensionsData web not found in ${x}`]};return Z(`Failed to fetch data from ${x}/${H}/_api/web`),{data:void 0,isError:!0,error:`Failed to fetch data from ${x}/${H}/_api/web`,warnings:[]}}return{data:await $.json(),isError:!1,error:"",warnings:[]}}async function uw(){return(await d("SPFxDataSite"))?.Data}var $x;function A1(){if($x)return $x;return $x=Iw(),$x}async function Iw(){let x=await uw();if(!x){let w=await Nw();if(!w.isError&&!w.data){let $=await gw(H);w.data=$}return await L({Title:"SPFxDataSite",Data:w.data},240),w.data}return x}var vx="f3ab710f-2c08-422e-a7ad-5d93eb51e7a3",yx={accept:"application/json"},Tw={"Content-Type":"application/json"};async function tw(){let w={"X-RequestDigest":await R(H)};return(await(await fetch(`${W}/_api/sitepages/pages`,{headers:{...yx,...w,...Tw},body:JSON.stringify({PageLayoutType:"SingleWebPartAppPage",PromotedState:0}),method:"POST"})).json()).Id}async function Cx(){let x=await fetch(`${W}/_api/sitepages/pages/GetByUrl('${T}')`,{headers:{...yx},method:"GET"});if(x.status===404)return;return await x.json()}var cw=[{dataVersion:"1.4",description:"Title Region Description",id:"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",instanceId:"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",properties:{authorByline:[],authors:[],layoutType:"FullWidthImage",showPublishDate:!1,showTopicHeader:!1,textAlignment:"Left",title:"SPFx Extensions Configurator",topicHeader:"",enableGradientEffect:!0},reservedHeight:280,serverProcessedContent:{htmlStrings:{},searchablePlainTexts:{},imageSources:{},links:{}},title:"Title area"}],pw=[{addedFromPersistedData:!1,controlType:3,displayMode:2,emphasis:{},id:vx,position:{controlIndex:1,layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1},reservedHeight:500,reservedWidth:500,webPartData:{dataVersion:"1.0",description:"Allows you to add a custom developed app",id:Jx,instanceId:vx,properties:{description:"Select an app to load from the dropdown below",selectedApp:A,SPFxExtensionAppConfiguration:void 0},title:"SPFx Extension Loader"},webPartId:Jx},{controlType:0,pageSettingsSlice:{isDefaultDescription:!0,isDefaultThumbnail:!0}}],iw={CanvasContent1:`${JSON.stringify(pw)}`,LayoutWebpartsContent:`${JSON.stringify(cw)}`,Title:ix};async function o1(x){let $={"X-RequestDigest":await R(H)};await fetch(`${W}/_api/sitepages/pages(${x})/savepage`,{headers:{"Content-Type":"application/json",...yx,...$},body:JSON.stringify(iw),method:"POST"}),await fetch(`${W}/_api/sitepages/pages(${x})/publish`,{headers:{...yx,...$},method:"POST"})}async function sw(){let x=await tw();return await o1(x),Cx()}async function lw(){let x=await d("ConfiguratorPageData");if(x?.Data)return x.Data;let w=await Cx();if(w)await L({Title:"ConfiguratorPageData",Data:w},480);return w}async function d1(){let x=await lw();if(!x)return sw();if(x.CanvasContent1.indexOf(vx)===-1){await o1(x.Id);let w=await Cx();return await L({Title:"ConfiguratorPageData",Data:w},480),w}return x}async function rw(){let x=`${W}/_api/web/lists/GetByTitle('${M}')/fields`;try{let w=await fetch(x,{headers:{Accept:"application/json;odata=verbose"}});if(w.status===200){if(!(await w.json()).d.results.map((n)=>n.InternalName).some((n)=>n==="EntryPointUrl"))await aw(x,"EntryPointUrl","Full URL to the Entrypoint JS file, if * is specified all entries will be allowed.",!0)}}catch(w){Z("Error while ensuring list fields.",w)}}async function aw(x,w,$,y){let _=await R(H);if((await fetch(x,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":_},body:JSON.stringify({__metadata:{type:"SP.Field"},Title:w,FieldTypeKind:3,Required:y,Description:$})})).status===201)j(w,"field added successfully.");else Z(w,"Unable to add field.")}async function ew(){try{let x=await fetch(`${W}/_api/web/lists/GetByTitle('${M}')?$select=*`,{method:"GET",headers:{Accept:"application/json;odata=verbose"}});if(x.status===404){j("Creating app white list.");let $=await R(H),y=await fetch(`${W}/_api/web/lists`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":$},body:JSON.stringify({__metadata:{type:"SP.List"},BaseTemplate:100,Title:M,Description:"App whitelist for SPFxExtensions"})});if(y.status===201)return j("App whitelist created successfully."),y.json();else{Z("Unable to create app whitelist.");return}}return await rw(),x.json()}catch(x){Z("Error while ensuring app whitelist.",x)}return}async function S1(){let x=await d("AppWhiteList");if(x?.Data)return x.Data;let w=await ew();if(w)await L({Title:"AppWhiteList",Data:w},480);return w}var _x;async function Ux(){if(_x)return _x;return _x=x9(),_x}async function x9(){await A1(),await S1(),await d1(),window.__SPFxExtensions.Utils.ConfiguratorPageUrl=`${W}/${T}`}async function S(x=!1){return await Ux(),m1(x)}async function h1(){return`${`${(await S()).find((y)=>y.Title==="RootCDNLocation")?.Data??`${W}`}${v}`}${D}`}async function M1(){let x=await S(),w=[px];if(x.find(($)=>$.Title==="Version")?.Data!=="2026-03-18T22:42:54.268Z")await L({Title:"Version",Data:"2026-03-18T22:42:54.268Z"},1/0),await a(w,!0)}async function a(x,w){let $=await window.caches.keys(),y=!1;for(let _ of $){let n=await window.caches.open(_),Q=await n.keys(),V=[];for(let z of Q){let Y=z.url.toLowerCase();if(x.some((P)=>Y.indexOf(P.toLowerCase())>-1))j("Deleting cache key",z,"from",_),y=!0,V.push(n.delete(z,{ignoreMethod:!0,ignoreSearch:!0,ignoreVary:!0}))}await Promise.allSettled(V)}if(y&&w)window.location.reload()}function I4(){return U(`${Date.now()}`,13)}var w9=$9();async function $9(){try{let x=await H1(),w=await K1();if(w.length>0&&!x)return w;if(w.length>0)j("Cache mismatch, loading allowed apps data...");let $=await v1();return await q1($,5),$}catch(x){return Z("Unable to load allowed apps data...",x),[]}}async function v1(x=!1){if((await S(x)).find((y)=>y.Title==="EnableAppWhiteList")?.Data!=="true")return[{Id:1,Title:"All apps allowed",EntryPointUrl:"*",date:(/*@__PURE__*/new Date()).toISOString(),expires:(/*@__PURE__*/new Date()).toISOString()}];return y9()}async function y9(){let x=`${W}/_api/web/lists/getByTitle('${M}')/Items?$select=Id,Title,EntryPointUrl&$top=1000`;return await _9(x)}async function _9(x){let w=x,$=[];while(w){let _=await(await fetch(w,{method:"GET",headers:{Accept:"application/json;odata=verbose"}})).json();if(_.error)throw Error(JSON.stringify(_.error));$.push(..._.d.results),w=_.d.__next}return $}function n9(x,w){if(w.some((_)=>_.EntryPointUrl==="*"))return!0;let y=(x.origin+x.pathname).toLowerCase();return w.some((_)=>{try{let n=new URL(_.EntryPointUrl),Q=n.origin+n.pathname;return y===Q.toLowerCase()}catch(n){return Z("Error while parsing allowed entry URL",_.EntryPointUrl,n),!1}})}async function C1(x,w,$=!1){if(z1(x))return!0;let y=$?await v1($):await w9;if(!n9(x,y))return k("File",x,`is not allowed to be executed. Please add it to whitelist @ ${W}.`),k(`If you are a developer you can enable this app by adding window.localStorage item ${m.SPFXEXT}${w} with a number value corresponding to development port of the localhost server.`),!1;return!0}function U1(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.web.id.toString():Fx(window.__SPFxExtensions.__CurrentContext.context.webId)}function fx(){return(window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.web.absoluteUrl:window.__SPFxExtensions.__CurrentContext.context.webAbsoluteUrl).replace(/\/$/,"")}function nx(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.site.id.toString():Fx(window.__SPFxExtensions.__CurrentContext.context.siteId)}function gx(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.site.absoluteUrl:window.__SPFxExtensions.__CurrentContext.context.siteAbsoluteUrl}function Qx(){return(window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.legacyPageContext.hubSiteId?.toString():window.__SPFxExtensions.__CurrentContext.context.hubSiteId)??t}function f1(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.legacyPageContext.isHubSite:window.__SPFxExtensions.__CurrentContext.context.isHubSite}function Q9(x){if(!Array.isArray(x.enabledAppCollections))throw`${X} ${D} enabledAppCollections should be an array`;if(!Array.isArray(x.urlMap))throw`${X} ${D} urlMap should be an array`}async function Zx(x,w,$,y,_=!1,n=60){let Q=Hx,V=x.toLowerCase();if(!_&&!E){let q=await P1(V);if(q)return q.isHubFetch=y,q}let z=`${V}?v=${Date.now()}`;try{J(`Fetching ${D} from`,z);let N=await(await fetch(z)).text();Q=JSON.parse(N)}catch(q){k(`Unable to fetch ${D} from`,z,q)}try{Q9(Q)}catch(q){Z(`Error while parsing ${D} from`,z,q),Q=Hx}let Y=await U(JSON.stringify(Q)),O={manifest:Q,...{name:w,url:V,type:$,hash:Y}};return await D1(O,E?1:n),O.isHubFetch=y,O}async function Vx(x,w,$,y=!1){let _=[],n=await h1();_.push(Zx(n,"apps","root",!0,y));let Q=x+v;if(_.push(Zx(`${Q}${D}`,"apps","site",!1,y)),$){let q=$+v;_.push(Zx(`${q}${D}`,"apps","site",!0,y))}let z=`${w+v}${D}`,Y=x.toLowerCase()===w.toLowerCase(),P=z.toLowerCase()===n.toLowerCase();if(!Y&&!P)_.push(Zx(z,"apps","web",!1,y));return await Promise.all(_)}function g1(x){if(!x.appDefinitionMap)x.appDefinitionMap=[];if(!x.appRelativeEntryPointUrls)x.appRelativeEntryPointUrls=[];if(!x.manualEntries)x.manualEntries=[];return x}function Z9(x){if(Array.isArray(x)||typeof x!=="object")throw`${X} App manifest has to be an object.`;if(!x.appRelativeEntryPointUrls)throw Z("Manifest does not have appRelativeEntryPointUrl property.",x),`${X} Manifest does not have appRelativeEntryPointUrl property.`;if(!x.appDefinitionMap)throw Z("Manifest does not have enabledApps property.",x),`${X} Manifest does not have enabledApps property.`}async function V9(x,w,$,y,_=!1,n=60){let Q={...qx},V=x.toLowerCase();if(!_&&!E){let q=await k1(V);if(q)return q.isHubFetch=y,q}let z=`${V}?v=${Date.now()}`;try{J(`Fetching ${G} from`,z);let N=await(await fetch(z)).text();Q=JSON.parse(N),g1(Q)}catch(q){k(`Unable to fetch ${G} from`,z,q)}try{Z9(Q)}catch(q){Z(`Error while parsing ${G} from`,z,q),Q={...qx}}let Y=await U(JSON.stringify(Q)),O={manifest:Q,...{name:w,url:V,type:$,hash:Y}};return await F1(O,E?1:n),O.isHubFetch=y,O}function z9(x,w){let $=`${x}${w}/${G}`,y=`${m.SPFXEXT}${w}`,_=Number(window.localStorage.getItem(y));if(_>0){let n=`https://localhost:${_}/${G}`;return j(`<${w}> App is in debug mode, loading from`,n),n}return $}function Nx(x,w=!1){if(x.length===0)return[];let $=[];for(let y of x){let _=y.url.toLowerCase().replace(D.toLowerCase(),"");for(let n of y.manifest.enabledAppCollections){let Q=z9(_,n);$.push(V9(Q,n,y.type,y.isHubFetch??!1,w))}}return $}function zx(x,w=!1){let $=x.filter((Y)=>Y.type==="root"),y=Nx($,w),_=x.filter((Y)=>Y.type==="site"),n=Nx(_,w),Q=x.filter((Y)=>Y.type==="web"),V=Nx(Q,w);return[...y,...n,...V]}var Ix=!1,Bx=[];async function B9(x,w,$){let y=$.appDefinitionMap.find((n)=>n.appId===w);if(!y){let n=`Could not find app configuration item for Manual app ${w}`;return Z(n),[]}if(!u1(y))return j(`App ${w} is not enabled in current context. Skipping...`),[];try{k("Manual module detected. Make sure to call window.__SPFxExtensions.RegisterApp and window.__SPFxExtensions.InstantiateApp in code.",x),await import(x)}catch(n){let Q=`Error while importing or executing ${x} ${n}`;Z(Q)}return[]}async function Y9(x,w){try{let y=(await import(x)).default;if(!y)return Z(`No default export found in ${x}, only ESM modules are supported.`),[];return J9(y,w,x)}catch($){return Z("Error while importing or executing",x,$),[]}}async function N1(x,w,$,y,_){let n=x.replace(/\.\.\/?/g,"./").replace(/^\.\//,""),Q=`${w}${n}`.toLowerCase();J("EntryPoint JS: ",Q);let V=new URL(Q);if($)V.searchParams.set("v",`${$}`);if(!await C1(V,y.name))return;let Y=`${V.origin}${V.pathname}`,P=`${V}`;if(Bx.includes(Y)){j("EntryPoint already loaded:",P);return}return Bx.push(Y),()=>{if(_)return B9(P,_,y.manifest);return Y9(P,y.manifest)}}async function ux(x){let w=[],$=x.url.replace(G,"");J("Parsing",x.type,"manifest:",x.manifest);let y="";if(x.manifest.cacheString&&x.manifest.enableCaching)y=B1(x.name)?`${(/*@__PURE__*/new Date()).getTime()}`:x.manifest.cacheString;for(let _ of x.manifest.appRelativeEntryPointUrls){let n=await N1(_,$,y,x);if(n)w.push(n())}for(let _ of x.manifest.manualEntries){let n=await N1(_.entryPoint,$,y,x,_.appId);if(n)w.push(n())}return w}async function Tx(x,w,$,y,_=!1){if(_)j9(y);if(Ix)return;Ix=!0;let n=await Vx(x,w,$),Q=zx(n);window.__SPFxExtensions.Utils.appManifestPromises=Q,window.__SPFxExtensions.Utils.spAppInitializationPromiseResolver();let z=(await Promise.allSettled(Q)).filter((b)=>b.status==="fulfilled"),Y=[],P=z.filter((b)=>b.value.type==="root"),O=z.filter((b)=>b.value.type==="site"),q=z.filter((b)=>b.value.type==="web");for(let b of P){let u=await ux(b.value);Y.push(...u)}J("Root apps loaded.");for(let b of O){let u=await ux(b.value);Y.push(...u)}J("Site apps loaded.");for(let b of q){let u=await ux(b.value);Y.push(...u)}J("SiteWeb apps loaded.");let N=(await Promise.allSettled(Y)).filter((b)=>b.status==="fulfilled").flatMap((b)=>b.value);await K9(N),window.__SPFxExtensions.AllAppAssetsLoadedResolver(),j("SPFx Extensions Core Components Loaded.")}function j9(x){Ix=!1,Bx.splice(0,Bx.length),rx(x);let{promise:w,resolve:$}=Promise.withResolvers();window.__SPFxExtensions.AllAppAssetsLoadedPromise=w,window.__SPFxExtensions.AllAppAssetsLoadedResolver=$}async function K9(x){let w=[];for(let $ of window.__SPFxExtensions.Apps)if(!x.find((_)=>_.id===$.id)&&!$.isManual&&$.id!==A)w.push($.id);for(let $ of w){let y=await window.__SPFxExtensions.UnregisterApp($);if(y)k(`Unregistered App ${y.id} (${y.name}) as it does not belong in this context`)}}async function J9(x,w,$){if(!Array.isArray(x))Z("Default export of entry point should be an array of App definitions. TODO: add documentation url",$);let y=[];for(let _ of x){if(!_.id){Z("App definition does not have an id. Make sure that returned array is in proper format. TODO: add documentation url",$,_);continue}let n=w.appDefinitionMap.find((Y)=>Y.appId.toLowerCase()===_.id.toLowerCase()),Q=`App with id ${_.id} (${_.name}) is not enabled for current web. Skipping...`;if(!n){j(Q);continue}if(!u1(n)){j(Q);continue}let z=await window.__SPFxExtensions.RegisterApp(_);if(y.push(_),!_.isWebPartApp&&_.autoExecute){if(z.instances.length<(_.maxInstances??1/0))window.__SPFxExtensions.InstantiateApp(_.id,{})}}return y}function u1(x){let w=U1().toLowerCase(),$=nx().toLowerCase(),y=Qx().toLowerCase(),_=x.config.enabledEverywhere,n=x.config.excludedIds.indexOf(w)===-1&&x.config.excludedIds.indexOf($)===-1&&x.config.excludedHubIds.indexOf(y)===-1,Q=x.config.includedIds.indexOf(w)!==-1||x.config.includedIds.indexOf($)!==-1||x.config.includedHubIds.indexOf(y)!==-1;return _?n:Q}var I1=!1;function t1(){if(window.moduleLoaderPromise&&!I1)I1=!0,window.moduleLoaderPromise.then((x)=>{let w=x.context.pageContext.initialize;x.context.pageContext.initialize=function($,y){let _=x.context.pageContext._initializationData;w.call(this,$,y);let n={initializationData:$,legacyContext:y};if(_.web.id===$.web.id){T1("contextRefresh",n);return}T1("contextChange",n)}})}function T1(x,w){let $=new CustomEvent(x,{detail:w});window.dispatchEvent($),window.__SPFxExtensions.Apps.forEach((y)=>{y.instances.forEach((_)=>{_.executeListeners(x,w)})})}function W9(x){let w=window.__SPFxExtensions.AppEventListeners.findIndex(($)=>$.key===x.key);if(w>-1)J("Removing event listener",x),window.__SPFxExtensions.AppEventListeners.splice(w,1)}function c1(){if(!window.__SPFxExtensions.AppEventListeners)window.__SPFxExtensions.AppEventListeners=[];if(!window.__SPFxExtensions.AddAppEventListener)window.__SPFxExtensions.AddAppEventListener=(x,w)=>{let $={key:window.crypto.randomUUID(),eventName:x,handler:w};return window.__SPFxExtensions.AppEventListeners.push($),()=>{W9($)}};if(!window.__SPFxExtensions.RemoveAppEventListener)window.__SPFxExtensions.RemoveAppEventListener=(x)=>{let w=window.__SPFxExtensions.AppEventListeners.findIndex(($)=>$.key===x.key);if(w>-1)window.__SPFxExtensions.AppEventListeners.splice(w,1)}}var q9=window.history.pushState,H9=window.history.replaceState,b9=window.history.back,k9=window.history.forward,F9=window.history.go;function D9(){let x=window.history.state,w=window.location.href;return{currentState:x,previousUrl:w}}function I(x,w){let $={...D9(),...w},y=new CustomEvent(x,{detail:$});window.dispatchEvent(y)}function P9(){function x(w,$,y){q9.call(this,w,$,y),I("historyPush",{newState:w,newUrl:y})}window.history.pushState=x}function R9(){function x(w,$,y){H9.call(this,w,$,y),I("historyReplace",{newState:w,newUrl:y})}window.history.replaceState=x}function O9(){function x(){b9.call(this),I("historyBack",{})}window.history.back=x}function G9(){function x(){k9.call(this),I("historyForward",{})}window.history.forward=x}function X9(){function x(w){F9.call(this,w),I("historyGo",{delta:w})}window.history.go=x}var p1=!1;function i1(){if(p1)return;p1=!0,R9(),P9(),G9(),O9(),X9()}async function tx(){if(f1())return"";let w=Qx(),$=nx();if(!w||w===t||w===$)return"";await b1();let y=await J1(w);if(!y){j("Getting Hub data for HubSiteId:",w);try{let n=await(await fetch(`/_api/hubsites/GetById?hubSiteId='${w}'`,{headers:{accept:"application/json;odata=nometadata"}})).json();return await W1(n),n.SiteUrl}catch(_){return Z("Error fetching hub site data.",_),""}}return y.SiteUrl}var s1="CORE_MANIFEST_CHECK",r1=Number(window.localStorage.getItem(m.SPFXEXT_CORE))>0?1e4:90000,Yx=0;function cx(x,w,$,y=!1){if(y)window.clearInterval(Yx),Yx=0;if(Yx>0)return;Yx=window.setInterval(l1,r1,x,w,$),l1(x,w,$)}async function l1(x,w,$){try{let _=window.localStorage.getItem(s1);if(_){let V=new Date(_),Y=(/*@__PURE__*/new Date()).getTime()-V.getTime(),P=r1;if(Y<P){J("Manifest check already performed recently, skipping.",`${Y} < ${P}`);return}}j("Checking for manifest updates across all locations..."),await Promise.all([r(),l()]);let n=await Vx(x,w,$,!0),Q=zx(n,!0);await Promise.allSettled(Q)}catch(_){Z("Error checking for manifest updates",_)}let y=(/*@__PURE__*/new Date()).toISOString();J("Setting next manifest check to",y),window.localStorage.setItem(s1,y)}var jx;async function E9(){if(jx)return jx;return jx=m9(),jx}async function L9(){window.__SPFxExtensions.__CurrentContext=await sx()}async function m9(){if(await Ux(),(await S()).find((_)=>_.Title==="InterceptHistory")?.Data==="true")i1();t1(),c1(),ax(),ex();let{promise:$,resolve:y}=Promise.withResolvers();if(!window.__SPFxExtensions.AllAppAssetsLoadedPromise)window.__SPFxExtensions.AllAppAssetsLoadedPromise=$,window.__SPFxExtensions.AllAppAssetsLoadedResolver=y}async function a1(){await M1(),await E9(),await L9(),window.__SPFxExtensions.__CorePromiseResolver();let x=gx(),w=fx(),$=await tx();await Tx(x,w,$,p()),window.addEventListener("contextChange",async(y)=>{j("Context changed, reloading apps...");let _=y.detail?.initializationData?.site?.absoluteUrl||gx(),n=y.detail?.initializationData?.web?.absoluteUrl||fx(),Q=await tx(),V=lx();await Tx(_,n,Q,V,!0),cx(_,n,Q,!0)}),cx(x,w,$),j("SPFx Extensions Core Has Been initialized.")}var A9={id:A,description:"Allows configuring custom apps",isWebPartApp:!1,hideAppSelectorWhenAppLoaded:!0,hideConfiguratorButton:!0,name:"SPFx Extensions Configurator",async onInstanceRequested(x){let w=import.meta.url.indexOf("localhost")>-1;if(w)J("Core is in debug mode");let $=w?import.meta.resolve(`./spfx-extensions-coreconfigurator.js?v=${Date.now()}`):window.__SPFxExtensions.__ConfiguratorUrl;try{return(await import($)).launch(x)}catch(y){if(Z("Error launching configurator app",y),x.domElement)x.domElement.innerHTML=`<div style="text-align: center; padding: 20px; color: red;">Error launching configurator app. ${y}</div>`;return()=>{}}}},o9="2026-03-18T22:42:54.268Z";j("Initializing SPFxExtensions Core Built:",o9);await a1();try{await window.__SPFxExtensions.RegisterApp(A9)}catch(x){Z("Error registering configurator app",x)}
1
+ var xw=Object.create;var{getPrototypeOf:ww,defineProperty:Hx,getOwnPropertyNames:$w}=Object;var yw=Object.prototype.hasOwnProperty;function Qw(x){return this[x]}var Zw,_w,h9=(x,w,$)=>{var y=x!=null&&typeof x==="object";if(y){var Q=w?Zw??=/*@__PURE__*/new WeakMap:_w??=/*@__PURE__*/new WeakMap,Z=Q.get(x);if(Z)return Z}$=x!=null?xw(ww(x)):{};let _=w||!x||!x.__esModule?Hx($,"default",{value:x,enumerable:!0}):$;for(let j of $w(x))if(!yw.call(_,j))Hx(_,j,{get:Qw.bind(x,j),enumerable:!0});if(y)Q.set(x,_);return _};var m9=(x,w)=>()=>(w||x((w={exports:{}}).exports,w),w.exports);var Yw=(x)=>x;function jw(x,w){this[x]=Yw.bind(null,w)}var M9=(x,w)=>{for(var $ in w)Hx(x,$,{get:w[$],enumerable:!0,configurable:!0,set:jw.bind(w,$)})};var ox="7d56fff0-e90e-40a7-98cf-fcdbc63a9b01",Fx="d6ca1fc2-0591-4c6d-8a25-cae3262c017b",A="45e75137-13c5-4bb2-a2b3-8ab6382682ee",cx="SPFxExtensionsConfigurator",I="SitePages/SPFxExtensionsConfigurator.aspx",O="manifest.txt",X="collectionconfig.txt",Xx="Loading...",n="SPFxExtensionsConfiguration",d="SPFxExtensionsWhiteList",d9="SPFxExtensions",L="/SPFxExtensions/",F="SPFxExtensionsData",P="[SPFxExtensionCore]",kx={appDefinitionMap:[],appRelativeEntryPointUrls:[],manualEntries:[]},v9={enabledEverywhere:!1,excludedHubIds:[],excludedIds:[],includedHubIds:[],includedIds:[]},Dx={enabledAppCollections:[],urlMap:[]},o="00000000-0000-0000-0000-000000000000";var N9="[SPFxExtensions/Loader]";var g9="spfx-extensions-core.js",px="spfx-extensions-coreconfigurator.js",C9="https://localhost",v="SPFXEXT",S="SPFXEXT_";async function f9(){if(window.moduleLoaderPromise)return(await window.moduleLoaderPromise)?.context;console.error("Unable to retrieve Modern SP Context...")}async function tx(){if(window.moduleLoaderPromise){let x=await window.moduleLoaderPromise;if(x?.context?.pageContext)return{contextType:"SPOModernContext",context:x.context.pageContext};throw"It seems this is a modern page, however it was not possible to retrieve SP Context..."}if(window._spPageContextInfo)return{contextType:"ClassicContext",context:window._spPageContextInfo};throw"It was not possible to retrieve SP Context either through modern or through classic means..."}function J(x,w,$=x){return(y)=>{let Q=""+y,Z=Q.indexOf(w,x.length);return~Z?x+Jw(Q,w,$,Z)+w:x+Q+w}}function Jw(x,w,$,y){let Q="",Z=0;do Q+=x.substring(Z,y)+$,Z=y+w.length,y=x.indexOf(w,Z);while(~y);return Q+x.substring(Z)}var o9=J("\x1B[0m","\x1B[0m"),c9=J("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),p9=J("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),t9=J("\x1B[3m","\x1B[23m"),s9=J("\x1B[4m","\x1B[24m"),i9=J("\x1B[7m","\x1B[27m"),r9=J("\x1B[8m","\x1B[28m"),l9=J("\x1B[9m","\x1B[29m"),a9=J("\x1B[30m","\x1B[39m"),e9=J("\x1B[31m","\x1B[39m"),x3=J("\x1B[32m","\x1B[39m"),w3=J("\x1B[33m","\x1B[39m"),$3=J("\x1B[34m","\x1B[39m"),y3=J("\x1B[35m","\x1B[39m"),Q3=J("\x1B[36m","\x1B[39m"),Z3=J("\x1B[37m","\x1B[39m"),_3=J("\x1B[90m","\x1B[39m"),Y3=J("\x1B[40m","\x1B[49m"),j3=J("\x1B[41m","\x1B[49m"),J3=J("\x1B[42m","\x1B[49m"),b3=J("\x1B[43m","\x1B[49m"),B3=J("\x1B[44m","\x1B[49m"),K3=J("\x1B[45m","\x1B[49m"),q3=J("\x1B[46m","\x1B[49m"),V3=J("\x1B[47m","\x1B[49m"),z3=J("\x1B[90m","\x1B[39m"),W3=J("\x1B[91m","\x1B[39m"),c=J("\x1B[92m","\x1B[39m"),H3=J("\x1B[93m","\x1B[39m"),F3=J("\x1B[94m","\x1B[39m"),X3=J("\x1B[95m","\x1B[39m"),k3=J("\x1B[96m","\x1B[39m"),D3=J("\x1B[97m","\x1B[39m"),G3=J("\x1B[100m","\x1B[49m"),O3=J("\x1B[101m","\x1B[49m"),P3=J("\x1B[102m","\x1B[49m"),R3=J("\x1B[103m","\x1B[49m"),L3=J("\x1B[104m","\x1B[49m"),E3=J("\x1B[105m","\x1B[49m"),A3=J("\x1B[106m","\x1B[49m"),S3=J("\x1B[107m","\x1B[49m");function Y(...x){console.error(c(P),(/*@__PURE__*/new Date()).toISOString(),...x)}function k(...x){console.warn(c(P),(/*@__PURE__*/new Date()).toISOString(),...x)}function q(...x){console.info(c(P),(/*@__PURE__*/new Date()).toISOString(),...x)}function W(...x){}function Gx(x,w,$){Y("Error while executing onInstanceRequested for app",x.id,"with name",x.name,$?`Additional Data: ${$}`:"",w)}function T(){return k("The app instance event was called before app instance was initialized."),()=>{}}var Ox=window.crypto.randomUUID();function sx(){return Ox}function ix(){return Ox=window.crypto.randomUUID(),Ox}function Px(x){return x.replace("{","").replace("}","")}function d3(x){return JSON.parse(JSON.stringify(x))}function bw(x,w,$){let y=x.instances.findIndex((Q)=>Q.key===w);if(y>-1){let Q=x.instances.splice(y,1);if(Q.length<1)return;let Z=Q[0];Z.executeListeners("onConfigurationClose",{domElement:void 0}),Z.allEventListeners.splice(0,Z.allEventListeners.length),$?.()}}function rx(x){let w=window.__SPFxExtensions.Apps.filter(($)=>!$.isWebPartApp&&!$.keepOnContextChange&&$.id!==A);for(let $ of w)for(let y of $.instances.filter((Q)=>Q.contextId!==x))if(y.instanceExecuted)y.unmount()}function p(x,w){if(w.instanceRequested)return;try{w.instanceRequested=!0,x.onInstanceRequested(w).then(($)=>{w.unmount=()=>{bw(x,w.key,$)},w.instanceLoadPromiseResolver(),w.instanceExecuted=!0}).catch(($)=>{Gx(x,$)})}catch($){Gx(x,$)}}function Bw(x){W("Executing appAdded event for",x.id),window.__SPFxExtensions.AppEventListeners.filter((w)=>w.eventName==="appAdded").forEach((w)=>{try{w.handler(x)}catch($){Y("Error executing appAdded event",$)}})}function Rx(x){let w=window.__SPFxExtensions.Apps.find(($)=>$.id===x);if(!w)W("Registering new app",x),w={id:x,name:Xx,description:Xx,isWebPartApp:!1,unmountOnRender:!0,keepOnContextChange:!1,autoExecute:!1,maxInstances:1/0,hideAppSelectorWhenAppLoaded:!1,hideConfiguratorButton:!1,registrationCompleted:!1,isManual:!1,instances:[],async onInstanceRequested(){return T}},window.__SPFxExtensions.Apps.push(w);return w}function lx(){if(!window.__SPFxExtensions.Apps)window.__SPFxExtensions.Apps=[];if(!window.__SPFxExtensions.RegisterApp)window.__SPFxExtensions.RegisterApp=async(x)=>{let w=Rx(x.id);if(w.registrationCompleted)return w;return w.name=x.name,w.description=x.description,w.isWebPartApp=x.isWebPartApp,w.keepOnContextChange=x.keepOnContextChange??!1,w.autoExecute=x.autoExecute??!1,w.isManual=x.isManual??!1,w.unmountOnRender=x.unmountOnRender??!0,w.maxInstances=x.maxInstances??1/0,w.hideAppSelectorWhenAppLoaded=x.hideAppSelectorWhenAppLoaded??!1,w.hideConfiguratorButton=x.hideConfiguratorButton??!1,w.icon=x.icon,w.onInstanceRequested=x.onInstanceRequested,w.registrationCompleted=!0,Bw(w),w.instances.forEach(($)=>{p(w,$)}),w};if(!window.__SPFxExtensions.UnregisterApp)window.__SPFxExtensions.UnregisterApp=async(x)=>{let w=window.__SPFxExtensions.Apps.findIndex((y)=>y.id===x);if(w<0)return;let $=window.__SPFxExtensions.Apps.splice(w,1);if($.length<1)return;return W("Unregistering app",$[0].id,$[0].name),$[0].instances.forEach((y)=>{if(y.instanceExecuted)y.unmount()}),$[0]}}function Kw(x){let w=(Q)=>{let Z=x.allEventListeners.findIndex((_)=>_.key===Q.key);if(Z>-1)W("Removing event listener",Q),x.allEventListeners.splice(Z,1)},$=(Q,Z)=>{let _={key:window.crypto.randomUUID(),eventName:Q,handler:Z};return x.allEventListeners.push(_),()=>{w(_)}},y=(Q,Z)=>{for(let _ of x.allEventListeners){if(_.eventName!=Q)continue;if(_.handler)_.handler(Z)}};x.addEventListener=$,x.executeListeners=y}function qw(x,w){W("Executing instanceAdded event for app",x.id,"instance",w.key),window.__SPFxExtensions.AppEventListeners.filter(($)=>$.eventName==="instanceAdded").forEach(($)=>{try{$.handler({app:x,instance:w})}catch(y){Y("Error executing instanceAdded event",y)}})}function Vw(x){let{promise:w,resolve:$}=Promise.withResolvers(),y={...x,key:window.crypto.randomUUID(),contextId:sx(),instanceRequested:!1,instanceExecuted:!1,unmountOnRender:!0,unmount:T,allEventListeners:[],addEventListener:T,executeListeners:T,instanceLoadPromise:w,instanceLoadPromiseResolver:$};return Kw(y),y}function ax(){if(!window.__SPFxExtensions.InstantiateApp)window.__SPFxExtensions.InstantiateApp=async(x,w)=>{let $=Rx(x);W("Creating app instance for app",x);let y=Vw(w);if(y.unmountOnRender=$.unmountOnRender??!0,$.instances.push(y),qw($,y),$.registrationCompleted)p($,y);return y}}async function N(x,w=0){let y=(/*@__PURE__*/new TextEncoder()).encode(x),Q=await window.crypto.subtle.digest("SHA-1",y),_=Array.from(new Uint8Array(Q)).map((j)=>j.toString(16).padStart(2,"0")).join("");return w>0?_.substring(0,w):_}var Ax=(x,w)=>w.some(($)=>x instanceof $),ex,x1;function zw(){return ex||(ex=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ww(){return x1||(x1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Sx=/*@__PURE__*/new WeakMap,Lx=/*@__PURE__*/new WeakMap,t=/*@__PURE__*/new WeakMap;function Hw(x){let w=new Promise(($,y)=>{let Q=()=>{x.removeEventListener("success",Z),x.removeEventListener("error",_)},Z=()=>{$(U(x.result)),Q()},_=()=>{y(x.error),Q()};x.addEventListener("success",Z),x.addEventListener("error",_)});return t.set(w,x),w}function Fw(x){if(Sx.has(x))return;let w=new Promise(($,y)=>{let Q=()=>{x.removeEventListener("complete",Z),x.removeEventListener("error",_),x.removeEventListener("abort",_)},Z=()=>{$(),Q()},_=()=>{y(x.error||new DOMException("AbortError","AbortError")),Q()};x.addEventListener("complete",Z),x.addEventListener("error",_),x.addEventListener("abort",_)});Sx.set(x,w)}var Ux={get(x,w,$){if(x instanceof IDBTransaction){if(w==="done")return Sx.get(x);if(w==="store")return $.objectStoreNames[1]?void 0:$.objectStore($.objectStoreNames[0])}return U(x[w])},set(x,w,$){return x[w]=$,!0},has(x,w){if(x instanceof IDBTransaction&&(w==="done"||w==="store"))return!0;return w in x}};function Q1(x){Ux=x(Ux)}function Xw(x){if(Ww().includes(x))return function(...w){return x.apply(hx(this),w),U(this.request)};return function(...w){return U(x.apply(hx(this),w))}}function kw(x){if(typeof x==="function")return Xw(x);if(x instanceof IDBTransaction)Fw(x);if(Ax(x,zw()))return new Proxy(x,Ux);return x}function U(x){if(x instanceof IDBRequest)return Hw(x);if(Lx.has(x))return Lx.get(x);let w=kw(x);if(w!==x)Lx.set(x,w),t.set(w,x);return w}var hx=(x)=>t.get(x);function Z1(x,w,{blocked:$,upgrade:y,blocking:Q,terminated:Z}={}){let _=indexedDB.open(x,w),j=U(_);if(y)_.addEventListener("upgradeneeded",(B)=>{y(U(_.result),B.oldVersion,B.newVersion,U(_.transaction),B)});if($)_.addEventListener("blocked",(B)=>$(B.oldVersion,B.newVersion,B));return j.then((B)=>{if(Z)B.addEventListener("close",()=>Z());if(Q)B.addEventListener("versionchange",(K)=>Q(K.oldVersion,K.newVersion,K))}).catch(()=>{}),j}function _1(x,{blocked:w}={}){let $=indexedDB.deleteDatabase(x);if(w)$.addEventListener("blocked",(y)=>w(y.oldVersion,y));return U($).then(()=>{return})}var Dw=["get","getKey","getAll","getAllKeys","count"],Gw=["put","add","delete","clear"],Ex=/*@__PURE__*/new Map;function w1(x,w){if(!(x instanceof IDBDatabase&&!(w in x)&&typeof w==="string"))return;if(Ex.get(w))return Ex.get(w);let $=w.replace(/FromIndex$/,""),y=w!==$,Q=Gw.includes($);if(!($ in(y?IDBIndex:IDBObjectStore).prototype)||!(Q||Dw.includes($)))return;let Z=async function(_,...j){let B=this.transaction(_,Q?"readwrite":"readonly"),K=B.store;if(y)K=K.index(j.shift());return(await Promise.all([K[$](...j),Q&&B.done]))[0]};return Ex.set(w,Z),Z}Q1((x)=>({...x,get:(w,$,y)=>w1(w,$)||x.get(w,$,y),has:(w,$)=>!!w1(w,$)||x.has(w,$)}));var Ow=["continue","continuePrimaryKey","advance"],$1={},mx=/*@__PURE__*/new WeakMap,Y1=/*@__PURE__*/new WeakMap,Pw={get(x,w){if(!Ow.includes(w))return x[w];let $=$1[w];if(!$)$=$1[w]=function(...y){mx.set(this,Y1.get(this)[w](...y))};return $}};async function*Rw(...x){let w=this;if(!(w instanceof IDBCursor))w=await w.openCursor(...x);if(!w)return;w=w;let $=new Proxy(w,Pw);Y1.set($,w),t.set($,hx(w));while(w)yield $,w=await(mx.get($)||w.continue()),mx.delete($)}function y1(x,w){return w===Symbol.asyncIterator&&Ax(x,[IDBIndex,IDBObjectStore,IDBCursor])||w==="iterate"&&Ax(x,[IDBIndex,IDBObjectStore])}Q1((x)=>({...x,get(w,$,y){if(y1(w,$))return Rw;return x.get(w,$,y)},has(w,$){return y1(w,$)||x.has(w,$)}}));var z={AppFolderManifestCache:"AppFolderManifestCache",AppCollectionManifestCache:"AppCollectionManifestCache",AllowedApps:"AllowedApps",HubSiteData:"HubSiteData",SPFxExtensionConfig:"SPFxExtensionConfig"},j1=`${S}COREDB`,Mx=Z1(j1,1,{blocking(x,w,$){Mx.then((y)=>y.close()),alert("A new version of this page is ready. Please reload the page.")},async upgrade(x,w,$,y,Q){if(w===0)x.createObjectStore(z.AppFolderManifestCache,{keyPath:"url"}),x.createObjectStore(z.AppCollectionManifestCache,{keyPath:"url"}),x.createObjectStore(z.AllowedApps,{keyPath:"Id"}),x.createObjectStore(z.HubSiteData,{keyPath:"SiteId"}),x.createObjectStore(z.SPFxExtensionConfig,{keyPath:"Title"})}});Mx.catch((x)=>{throw Y("Error opening database for Core, please contact your administrator."),_1(j1).then(()=>{window.location.reload()}),x});var D=await Mx;function g(x){let w="never";if(x!==1/0){let $=/*@__PURE__*/new Date;$.setMinutes($.getMinutes()+x),w=$.toISOString()}return{expires:w}}async function C(x,w){let $=await D.getAll(x),y=/*@__PURE__*/new Date,Q=$.filter((_)=>{if(_.expires==="never")return!1;let j=new Date(_.expires);return y>=j}),Z=Q.length;if(Z>0){let _=D.transaction(x,"readwrite"),j=_.objectStore(x);Q.forEach((B)=>j.delete(B[w])),await _.done,k(`Evicted ${Z} items from ${x} cache.`)}return Z}async function nx(){return await C(z.SPFxExtensionConfig,"Title"),D.getAll(z.SPFxExtensionConfig)}async function h(x){return await C(z.SPFxExtensionConfig,"Title"),D.get(z.SPFxExtensionConfig,x)}async function R(x,w=60){await D.put(z.SPFxExtensionConfig,{...x,...g(w)})}async function J1(x,w){let $=D.transaction(z.SPFxExtensionConfig,"readwrite"),y=$.objectStore(z.SPFxExtensionConfig);return x.forEach((Q)=>y.put({...Q,...g(w)})),$.done}async function b1(){return D.getAll(z.AllowedApps)}async function B1(x){return D.get(z.AppFolderManifestCache,x)}async function K1(x){return D.get(z.AppCollectionManifestCache,x)}async function q1(x){return D.get(z.HubSiteData,x)}async function V1(x,w=60){await D.put(z.HubSiteData,{...x,...g(w)})}async function z1(x,w=5){let $=g(w),y=D.transaction(z.AllowedApps,"readwrite"),Q=y.objectStore(z.AllowedApps);return x.forEach((Z)=>Q.put({...Z,...$})),y.done}async function Lw(x){return D.delete(z.AppCollectionManifestCache,x)}async function Ew(x){return D.delete(z.AppFolderManifestCache,x)}async function W1(){return C(z.AllowedApps,"Id")}async function H1(){return C(z.HubSiteData,"SiteId")}async function F1(x){if(x){let w=await B1(x.url);if(w){if(w.hash!==x.hash){await Ew(x.url);let $=x.url.toLowerCase().replace(`/${O}`,"");await s([$],!1),k(`Evicted ${O} ${w.url} from cache. Because of hash mismatch.`)}}}return C(z.AppFolderManifestCache,"url")}async function X1(x){if(x){let w=await K1(x.url);if(w){if(w.hash!==x.hash)await Lw(x.url),await s([x.url],!1),k(`Evicted ${X} ${w.url} from cache. Because of hash mismatch.`)}}return C(z.AppCollectionManifestCache,"url")}async function k1(x){return await F1(),B1(x)}async function D1(x,w){await F1(x),await D.put(z.AppFolderManifestCache,{...x,...g(w)})}async function G1(x,w){await X1(x),await D.put(z.AppCollectionManifestCache,{...x,...g(w)})}async function O1(x){return await X1(),K1(x)}var dx=/*@__PURE__*/new Map;async function P1(x,w=!1){let $="";if(dx.has(x)&&!w)$=dx.get(x)||"";if($)return $;let y=await fetch(`${x}/_api/contextinfo`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json"}});if(y.status===200){let Z=(await y.json()).d.GetContextWebInformation.FormDigestValue;return dx.set(x,Z),Z}else Y("Error while getting digest",y.status);return""}var vx=(x)=>{},i;async function r(x=""){if(i)return i;i=new Promise((w)=>{vx=w});try{let y=(await(await fetch(`${x}/_api/SP_TenantSettings_Current`,{headers:{Accept:"application/json;odata=verbose"}})).json()).d.CorporateCatalogUrl;vx(y)}catch(w){Y("Error while getting app catalog url. Trying default /sites/appcatalog",w);let $=`${window.location.origin}/sites/appcatalog`;vx($)}return i}async function R1(x=""){let w=await h("AppCatalogUrl");if(w?.Data)return w.Data;let $=await r(x);return await R({Title:"AppCatalogUrl",Data:$},240),$}async function G(x=""){let $=`${await R1()}${x?`/${x}`:""}`;return P1($)}var Aw=await R1(),H=`${Aw}/${F}`;var E1={RootCDNLocation:"RootCDNLocation",InterceptHistory:"InterceptHistory",EnableAppWhiteList:"EnableAppWhiteList",AppCatalogUrl:"AppCatalogUrl",SPFxDataSite:"SPFxDataSite",ConfiguratorPageData:"ConfiguratorPageData",AppWhiteList:"AppWhiteList",Version:"2026-03-21T16:19:46.226Z"},L1=[{Title:"InterceptHistory",Data:"true"},{Title:"EnableAppWhiteList",Data:"false"},{Title:"RootCDNLocation",Data:`/sites/appcatalog/${F}`}];function A1(x){let w=L1.find(($)=>$.Title==="RootCDNLocation");if(w)w.Data=x;return L1}var Sw=Object.keys(E1).length,l;async function Uw(){let x=`${H}/_api/web/lists/GetByTitle('${n}')/fields`;try{let w=await fetch(x,{headers:{Accept:"application/json;odata=verbose"}});if(w.status===200){let y=(await w.json()).d.results,Q=y.map((_)=>_.InternalName),Z=y.find((_)=>_.InternalName==="Title");if(!Z){Y("Title field not found.");return}if(!Z.EnforceUniqueValues){let _=await G(F);if((await fetch(`${H}/_api/web/lists/GetByTitle('${n}')/fields('${Z.Id}')`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":_,"X-HTTP-Method":"MERGE","If-Match":"*"},body:JSON.stringify({__metadata:{type:"SP.Field"},Indexed:!0,EnforceUniqueValues:!0})})).status===204)q("Title field updated successfully.");else Y("Unable to update Title field.")}if(!Q.includes("Data")){let _=await G(F);if((await fetch(x,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":_},body:JSON.stringify({__metadata:{type:"SP.Field"},Title:"Data",FieldTypeKind:2,Required:!0})})).status===201)q("Data field added successfully.");else Y("Unable to add Data field.")}}}catch(w){Y("Error while ensuring configuration list data fields.",w)}}async function hw(){let x=!1;try{if(x=(await fetch(`${H}/_api/web/lists/GetByTitle('${n}')`)).status===404,x){let $=await G(F);if(q("Creating configuration list."),(await fetch(`${H}/_api/web/lists`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":$},body:JSON.stringify({__metadata:{type:"SP.List"},BaseTemplate:100,Title:"SPFxExtensionsConfiguration",Description:"Configuration list for SPFxExtensions"})})).status===201)q("Configuration list created successfully.");else Y("Unable to create configuration list.")}await Uw()}catch(w){Y("Error while ensuring configuration list.",w)}return x}async function S1(){let x=`${H}/_api/web/lists/GetByTitle('${n}')/items?$select=Title,Data`,$=await fetch(x,{...{headers:{Accept:"application/json;odata=verbose"}}});if($.status!==200)return Y("Unable to fetch configuration list items."),[];return(await $.json()).d.results}async function mw(){let x=await G(F);for(let w of A1(H))if((await fetch(`${H}/_api/web/lists/GetByTitle('${n}')/items`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":x},body:JSON.stringify({__metadata:{type:"SP.Data.SPFxExtensionsConfigurationListItem"},...w})})).status===201)q(`Item ${w.Title} added successfully.`);else Y(`Unable to add item ${w.Title}.`)}function U1(x=!1){if(x)return S1();if(l)return l;return l=Mw(),l}async function Mw(){let x=await nx();if(x.length<Sw){if(await hw())await mw();let $=await S1();await J1($,240),x=await nx()}return x}async function nw(x){let w=await r(),$=await G(),y=await fetch(`${w}/_api/web/webs/add`,{method:"POST",headers:{Accept:"application/json;odata=nometadata","Content-Type":"application/json","X-RequestDigest":$},body:JSON.stringify({parameters:{Description:"Site that stores SPFxExtensions Data and global apps",Language:1033,Title:"SPFxExtensions Data",Url:x,UseSamePermissionsAsParentSite:!0,WebTemplate:"STS"}})});if(!y.ok)throw Error(`Failed to create SPFxExtensionsData web in ${w}`);return await y.json()}async function dw(){let x=await r(),w=await G(),$=await fetch(`${x}/${F}/_api/web`,{method:"GET",headers:{Accept:"application/json;odata=nometadata","X-RequestDigest":w}});if(!$.ok){if($.status===404)return{data:void 0,isError:!1,error:"",warnings:[`SPFxExtensionsData web not found in ${x}`]};return Y(`Failed to fetch data from ${x}/${F}/_api/web`),{data:void 0,isError:!0,error:`Failed to fetch data from ${x}/${F}/_api/web`,warnings:[]}}return{data:await $.json(),isError:!1,error:"",warnings:[]}}async function vw(){return(await h("SPFxDataSite"))?.Data}var a;function h1(){if(a)return a;return a=Tw(),a}async function Tw(){let x=await vw();if(!x){let w=await dw();if(!w.isError&&!w.data){let $=await nw(F);w.data=$}return await R({Title:"SPFxDataSite",Data:w.data},240),w.data}return x}var Tx="f3ab710f-2c08-422e-a7ad-5d93eb51e7a3",e={accept:"application/json"},Nw={"Content-Type":"application/json"};async function gw(){let w={"X-RequestDigest":await G(F)};return(await(await fetch(`${H}/_api/sitepages/pages`,{headers:{...e,...w,...Nw},body:JSON.stringify({PageLayoutType:"SingleWebPartAppPage",PromotedState:0}),method:"POST"})).json()).Id}async function Nx(){let x=await fetch(`${H}/_api/sitepages/pages/GetByUrl('${I}')`,{headers:{...e},method:"GET"});if(x.status===404)return;return await x.json()}var Cw=[{dataVersion:"1.4",description:"Title Region Description",id:"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",instanceId:"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",properties:{authorByline:[],authors:[],layoutType:"FullWidthImage",showPublishDate:!1,showTopicHeader:!1,textAlignment:"Left",title:"SPFx Extensions Configurator",topicHeader:"",enableGradientEffect:!0},reservedHeight:280,serverProcessedContent:{htmlStrings:{},searchablePlainTexts:{},imageSources:{},links:{}},title:"Title area"}],uw=[{addedFromPersistedData:!1,controlType:3,displayMode:2,emphasis:{},id:Tx,position:{controlIndex:1,layoutIndex:1,sectionFactor:12,sectionIndex:1,zoneIndex:1},reservedHeight:500,reservedWidth:500,webPartData:{dataVersion:"1.0",description:"Allows you to add a custom developed app",id:Fx,instanceId:Tx,properties:{description:"Select an app to load from the dropdown below",selectedApp:A,SPFxExtensionAppConfiguration:void 0},title:"SPFx Extension Loader"},webPartId:Fx},{controlType:0,pageSettingsSlice:{isDefaultDescription:!0,isDefaultThumbnail:!0}}],fw={CanvasContent1:`${JSON.stringify(uw)}`,LayoutWebpartsContent:`${JSON.stringify(Cw)}`,Title:cx};async function m1(x){let $={"X-RequestDigest":await G(F)};await fetch(`${H}/_api/sitepages/pages(${x})/savepage`,{headers:{"Content-Type":"application/json",...e,...$},body:JSON.stringify(fw),method:"POST"}),await fetch(`${H}/_api/sitepages/pages(${x})/publish`,{headers:{...e,...$},method:"POST"})}async function Iw(){let x=await gw();return await m1(x),Nx()}async function ow(){let x=await h("ConfiguratorPageData");if(x?.Data)return x.Data;let w=await Nx();if(w)await R({Title:"ConfiguratorPageData",Data:w},480);return w}async function M1(){let x=await ow();if(!x)return Iw();if(x.CanvasContent1.indexOf(Tx)===-1){await m1(x.Id);let w=await Nx();return await R({Title:"ConfiguratorPageData",Data:w},480),w}return x}async function cw(){let x=`${H}/_api/web/lists/GetByTitle('${d}')/fields`;try{let w=await fetch(x,{headers:{Accept:"application/json;odata=verbose"}});if(w.status===200){if(!(await w.json()).d.results.map((Z)=>Z.InternalName).some((Z)=>Z==="EntryPointUrl"))await pw(x,"EntryPointUrl","Full URL to the Entrypoint JS file, if * is specified all entries will be allowed.",!0)}}catch(w){Y("Error while ensuring list fields.",w)}}async function pw(x,w,$,y){let Q=await G(F);if((await fetch(x,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":Q},body:JSON.stringify({__metadata:{type:"SP.Field"},Title:w,FieldTypeKind:3,Required:y,Description:$})})).status===201)q(w,"field added successfully.");else Y(w,"Unable to add field.")}async function tw(){try{let x=await fetch(`${H}/_api/web/lists/GetByTitle('${d}')?$select=*`,{method:"GET",headers:{Accept:"application/json;odata=verbose"}});if(x.status===404){q("Creating app white list.");let $=await G(F),y=await fetch(`${H}/_api/web/lists`,{method:"POST",headers:{Accept:"application/json;odata=verbose","Content-Type":"application/json;odata=verbose","X-RequestDigest":$},body:JSON.stringify({__metadata:{type:"SP.List"},BaseTemplate:100,Title:d,Description:"App whitelist for SPFxExtensions"})});if(y.status===201)return q("App whitelist created successfully."),y.json();else{Y("Unable to create app whitelist.");return}}return await cw(),x.json()}catch(x){Y("Error while ensuring app whitelist.",x)}return}async function n1(){let x=await h("AppWhiteList");if(x?.Data)return x.Data;let w=await tw();if(w)await R({Title:"AppWhiteList",Data:w},480);return w}var xx;async function gx(){if(xx)return xx;return xx=sw(),xx}async function sw(){await h1(),await n1(),await M1(),window.__SPFxExtensions.Utils.ConfiguratorPageUrl=`${H}/${I}`}async function m(x=!1){return await gx(),U1(x)}async function wx(){return`${(await m()).find((y)=>y.Title==="RootCDNLocation")?.Data??`${H}`}${L}`}async function d1(){let x=await m(),w=[ox];if(x.find(($)=>$.Title==="Version")?.Data!=="2026-03-21T16:19:46.226Z")await R({Title:"Version",Data:"2026-03-21T16:19:46.226Z"},1/0),await s(w,!0)}async function s(x,w){let $=await window.caches.keys(),y=!1;for(let Q of $){let Z=await window.caches.open(Q),_=await Z.keys(),j=[];for(let B of _){let K=B.url.toLowerCase();if(x.some((V)=>K.indexOf(V.toLowerCase())>-1))q("Deleting cache key",B,"from",Q),y=!0,j.push(Z.delete(B,{ignoreMethod:!0,ignoreSearch:!0,ignoreVary:!0}))}await Promise.allSettled(j)}if(y&&w)window.location.reload()}function p4(){return N(`${Date.now()}`,13)}function iw(){try{let x=[];for(let w=0;w<window.localStorage.length;w++){let $=window.localStorage.key(w);if($)x.push($)}return x}catch{return[]}}function rw(x){try{return window.localStorage.getItem(x)}catch{return null}}function lw(){return iw().some((x)=>{let w=x.indexOf(v)>-1,$=rw(x)??"",y=/^\d+$/.test($),Q=$.trim()!=="";return w&&(y||Q)})}function $x(x){try{let w=`${S}${x}`,$=window.localStorage.getItem(w)?.trim()??"",y=/^\d+$/.test($??""),Q=$.trim()!=="";if(y)return Number($)>0;return Q}catch{return!1}}var u=lw();var aw=ew();async function ew(){try{let x=await W1(),w=await b1();if(w.length>0&&!x)return w;if(w.length>0)q("Cache mismatch, loading allowed apps data...");let $=await v1();return await z1($,5),$}catch(x){return Y("Unable to load allowed apps data...",x),[]}}async function v1(x=!1){if((await m(x)).find((y)=>y.Title==="EnableAppWhiteList")?.Data!=="true")return[{Id:1,Title:"All apps allowed",EntryPointUrl:"*",date:(/*@__PURE__*/new Date()).toISOString(),expires:(/*@__PURE__*/new Date()).toISOString()}];return x9()}async function x9(){let x=`${H}/_api/web/lists/getByTitle('${d}')/Items?$select=Id,Title,EntryPointUrl&$top=1000`;return await w9(x)}async function w9(x){let w=x,$=[];while(w){let Q=await(await fetch(w,{method:"GET",headers:{Accept:"application/json;odata=verbose"}})).json();if(Q.error)throw Error(JSON.stringify(Q.error));$.push(...Q.d.results),w=Q.d.__next}return $}function $9(x,w){if(w.some((Q)=>Q.EntryPointUrl==="*"))return!0;let y=(x.origin+x.pathname).toLowerCase();return w.some((Q)=>{try{let Z=new URL(Q.EntryPointUrl),_=Z.origin+Z.pathname;return y===_.toLowerCase()}catch(Z){return Y("Error while parsing allowed entry URL",Q.EntryPointUrl,Z),!1}})}async function T1(x,w,$=!1){if($x(w))return!0;let y=$?await v1($):await aw;if(!$9(x,y))return k("File",x,`is not allowed to be executed. Please add it to whitelist @ ${H}.`),k(`If you are a developer you can enable this app by adding window.localStorage item ${S}${w} with a number value corresponding to development port of the localhost server or a base URL where manifest.txt resides.`),!1;return!0}function N1(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.web.id.toString():Px(window.__SPFxExtensions.__CurrentContext.context.webId)}function yx(){return(window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.web.absoluteUrl:window.__SPFxExtensions.__CurrentContext.context.webAbsoluteUrl).replace(/\/$/,"")}function Qx(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.site.id.toString():Px(window.__SPFxExtensions.__CurrentContext.context.siteId)}function Zx(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.site.absoluteUrl:window.__SPFxExtensions.__CurrentContext.context.siteAbsoluteUrl}function _x(){return(window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.legacyPageContext.hubSiteId?.toString():window.__SPFxExtensions.__CurrentContext.context.hubSiteId)??o}function g1(){return window.__SPFxExtensions.__CurrentContext.contextType==="SPOModernContext"?window.__SPFxExtensions.__CurrentContext.context.legacyPageContext.isHubSite:window.__SPFxExtensions.__CurrentContext.context.isHubSite}async function Yx(){if(g1())return"";let w=_x(),$=Qx();if(!w||w===o||w===$)return"";await H1();let y=await q1(w);if(!y){q("Getting Hub data for HubSiteId:",w);try{let Z=await(await fetch(`/_api/hubsites/GetById?hubSiteId='${w}'`,{headers:{accept:"application/json;odata=nometadata"}})).json();return await V1(Z),Z.SiteUrl}catch(Q){return Y("Error fetching hub site data.",Q),""}}return y.SiteUrl}function y9(x){if(!Array.isArray(x.enabledAppCollections))throw`${P} ${X} enabledAppCollections should be an array`;if(!Array.isArray(x.urlMap))throw`${P} ${X} urlMap should be an array`}async function M(x,w=!1,$=60){let y=x.url.toLowerCase(),Q=x.type==="hub";if(!w&&!u){let V=await O1(y);if(V)return V.type=Q?"hub":V.type,V}let Z=`${y}?v=${Date.now()}`,_=await Q9(Z),j=await N(JSON.stringify(_)),B={...x,url:y,type:Q?"site":x.type,hash:j,lastCheck:(/*@__PURE__*/new Date()).toISOString()},K={manifest:_,...B};return await G1(K,u?1:$),K.type=Q?"hub":K.type,K}async function Q9(x){let w=Dx;try{W(`Fetching ${X} from`,x);let y=await(await fetch(x)).text();w=JSON.parse(y)}catch($){k(`Unable to fetch ${X} from`,x)}try{y9(w)}catch($){Y(`Error while parsing ${X} from`,x,$),w=Dx}return w}async function C1(x=!1){let w=Zx(),$=yx(),y=await Yx(),Q=[],Z=await wx(),_=jx(Z,"root");if(Q.push(M(_,x)),y){let Wx=y+L,e1=jx(Wx,"hub");Q.push(M(e1,x))}let j=w+L,B=jx(j,"site");Q.push(M(B,x));let K=$+L,V=w.toLowerCase()===$.toLowerCase(),b=K.toLowerCase()===Z.toLowerCase();if(!V&&!b){let Wx=jx(K,"web");Q.push(M(Wx,x))}return await Promise.all(Q)}function jx(x,w){return{url:`${x}${X}`,name:X,type:w}}function u1(x){if(!x.appDefinitionMap)x.appDefinitionMap=[];if(!x.appRelativeEntryPointUrls)x.appRelativeEntryPointUrls=[];if(!x.manualEntries)x.manualEntries=[];return x}function Z9(x){if(Array.isArray(x)||typeof x!=="object")throw`${P} App manifest has to be an object.`;if(!x.appRelativeEntryPointUrls)throw Y("Manifest does not have appRelativeEntryPointUrl property.",x),`${P} Manifest does not have appRelativeEntryPointUrl property.`;if(!x.appDefinitionMap)throw Y("Manifest does not have enabledApps property.",x),`${P} Manifest does not have enabledApps property.`}async function _9(x,w=!1,$=60){let y={...kx},Q=x.url.toLowerCase(),Z=x.type==="hub";if(!w&&!u){let V=await k1(Q);if(V)return V.type=Z?"hub":V.type,V}let _=`${Q}?v=${Date.now()}`;try{W(`Fetching ${O} from`,_);let b=await(await fetch(_)).text();y=JSON.parse(b),u1(y)}catch(V){k(`Unable to fetch ${O} from`,_,V)}try{Z9(y)}catch(V){Y(`Error while parsing ${O} from`,_,V),y={...kx}}let j=await N(JSON.stringify(y)),K={...{...x,url:Q,type:Z?"site":x.type,hash:j},manifest:y,lastCheck:(/*@__PURE__*/new Date()).toISOString()};return await D1(K,u?1:$),K.type=Z?"hub":K.type,K}function Y9(x,w){let $=`${x}${w}/${O}`,y=`${S}${w}`,Q=window.localStorage.getItem(y)??"",Z=/^\d+$/.test(Q??""),_=Q.trim()!=="";if(Z){let j=`https://localhost:${Q}/${O}`;return q(`<${w}> App is in debug port mode, loading from`,j),j}if(_){let j=`${Q}/${O}`;return q(`<${w}> App is in debug url mode, loading from`,j),j}return $}function Jx(x,w=!1){if(x.length===0)return[];let $=[];for(let y of x){let Q=y.url.toLowerCase().replace(X.toLowerCase(),"");for(let Z of y.manifest.enabledAppCollections){let _=bx(Q,Z,y.type,w);$.push(_)}}return $}function bx(x,w,$,y){let Q=Y9(x,w);return _9({name:w,url:Q,type:$},y)}function f1(x,w=!1){let $=x.filter((b)=>b.type==="root"),y=Jx($,w),Q=x.filter((b)=>b.type==="hub"),Z=Jx(Q,w),_=x.filter((b)=>b.type==="site"),j=Jx(_,w),B=x.filter((b)=>b.type==="web"),K=Jx(B,w);return[...y,...Z,...j,...K]}var Cx=!1,Kx=[];async function j9(x,w,$){let y=$.appDefinitionMap.find((Z)=>Z.appId===w);if(!y){let Z=`Could not find app configuration item for Manual app ${w}`;return Y(Z),[]}if(!o1(y))return q(`App ${w} is not enabled in current context. Skipping...`),[];try{k("Manual module detected. Make sure to call window.__SPFxExtensions.RegisterApp and window.__SPFxExtensions.InstantiateApp in code.",x),await import(x)}catch(Z){let _=`Error while importing or executing ${x} ${Z}`;Y(_)}return[]}async function J9(x,w){try{let y=(await import(x)).default;if(!y)return Y(`No default export found in ${x}, only ESM modules are supported.`),[];return K9(y,w,x)}catch($){return Y("Error while importing or executing",x,$),[]}}async function I1(x,w,$,y,Q){let Z=x.replace(/\.\.\/?/g,"./").replace(/^\.\//,""),_=`${w}${Z}`.toLowerCase();W("EntryPoint JS: ",_);let j=new URL(_);if($)j.searchParams.set("v",`${$}`);if(!await T1(j,y.name))return;let K=`${j.origin}${j.pathname}`,V=`${j}`;if(Kx.includes(K)){q("EntryPoint already loaded:",V);return}return Kx.push(K),()=>{if(Q)return j9(V,Q,y.manifest);return J9(V,y.manifest)}}async function Bx(x){let w=[],$=x.url.replace(O,"");W("Parsing",x.type,"manifest:",x.manifest);let y="";if(x.manifest.cacheString&&x.manifest.enableCaching)y=$x(x.name)?`${(/*@__PURE__*/new Date()).getTime()}`:x.manifest.cacheString;for(let Q of x.manifest.appRelativeEntryPointUrls){let Z=await I1(Q,$,y,x);if(Z)w.push(Z())}for(let Q of x.manifest.manualEntries){let Z=await I1(Q.entryPoint,$,y,x,Q.appId);if(Z)w.push(Z())}return w}async function ux(x=!1){if(x)b9();if(Cx)return;Cx=!0;let w=await C1(),$=f1(w);window.__SPFxExtensions.Utils.appManifestPromises=$,window.__SPFxExtensions.Utils.spAppInitializationPromiseResolver();let Q=(await Promise.allSettled($)).filter((b)=>b.status==="fulfilled"),Z=[],_=Q.filter((b)=>b.value.type==="root"),j=Q.filter((b)=>b.value.type==="hub"),B=Q.filter((b)=>b.value.type==="site"),K=Q.filter((b)=>b.value.type==="web");for(let b of _){let E=await Bx(b.value);Z.push(...E)}W("Root apps loaded.");for(let b of j){let E=await Bx(b.value);Z.push(...E)}W("Hub apps loaded.");for(let b of B){let E=await Bx(b.value);Z.push(...E)}W("Site apps loaded.");for(let b of K){let E=await Bx(b.value);Z.push(...E)}W("SiteWeb apps loaded.");let V=(await Promise.allSettled(Z)).filter((b)=>b.status==="fulfilled").flatMap((b)=>b.value);await B9(V),window.__SPFxExtensions.AllAppAssetsLoadedResolver(),q("SPFx Extensions Core Components Loaded.")}function b9(){Cx=!1;let x=ix();Kx.splice(0,Kx.length),rx(x);let{promise:w,resolve:$}=Promise.withResolvers();window.__SPFxExtensions.AllAppAssetsLoadedPromise=w,window.__SPFxExtensions.AllAppAssetsLoadedResolver=$}async function B9(x){let w=[];for(let $ of window.__SPFxExtensions.Apps)if(!x.find((Q)=>Q.id===$.id)&&!$.isManual&&$.id!==A)w.push($.id);for(let $ of w){let y=await window.__SPFxExtensions.UnregisterApp($);if(y)k(`Unregistered App ${y.id} (${y.name}) as it does not belong in this context`)}}async function K9(x,w,$){if(!Array.isArray(x))Y("Default export of entry point should be an array of App definitions. TODO: add documentation url",$);let y=[];for(let Q of x){if(!Q.id){Y("App definition does not have an id. Make sure that returned array is in proper format. TODO: add documentation url",$,Q);continue}let Z=w.appDefinitionMap.find((K)=>K.appId.toLowerCase()===Q.id.toLowerCase()),_=`App with id ${Q.id} (${Q.name}) is not enabled for current web. Skipping...`;if(!Z){q(_);continue}if(!o1(Z)){q(_);continue}let B=await window.__SPFxExtensions.RegisterApp(Q);if(y.push(Q),!Q.isWebPartApp&&Q.autoExecute){if(B.instances.length<(Q.maxInstances??1/0))window.__SPFxExtensions.InstantiateApp(Q.id,{})}}return y}function o1(x){let w=N1().toLowerCase(),$=Qx().toLowerCase(),y=_x().toLowerCase(),Q=x.config.enabledEverywhere,Z=x.config.excludedIds.indexOf(w)===-1&&x.config.excludedIds.indexOf($)===-1&&x.config.excludedHubIds.indexOf(y)===-1,_=x.config.includedIds.indexOf(w)!==-1||x.config.includedIds.indexOf($)!==-1||x.config.includedHubIds.indexOf(y)!==-1;return Q?Z:_}var c1=!1;function t1(){if(window.moduleLoaderPromise&&!c1)c1=!0,window.moduleLoaderPromise.then((x)=>{let w=x.context.pageContext.initialize;x.context.pageContext.initialize=function($,y){let Q=x.context.pageContext._initializationData;w.call(this,$,y);let Z={initializationData:$,legacyContext:y,previousContext:Q},_=Q.web.id===$.web.id,j=Q.site.id===$.site.id;if(_&&j){p1("contextRefresh",Z);return}p1("contextChange",Z)}})}function p1(x,w){let $=new CustomEvent(x,{detail:w});window.dispatchEvent($),window.__SPFxExtensions.Apps.forEach((y)=>{y.instances.forEach((Q)=>{Q.executeListeners(x,w)})})}function q9(x){let w=window.__SPFxExtensions.AppEventListeners.findIndex(($)=>$.key===x.key);if(w>-1)W("Removing event listener",x),window.__SPFxExtensions.AppEventListeners.splice(w,1)}function s1(){if(!window.__SPFxExtensions.AppEventListeners)window.__SPFxExtensions.AppEventListeners=[];if(!window.__SPFxExtensions.AddAppEventListener)window.__SPFxExtensions.AddAppEventListener=(x,w)=>{let $={key:window.crypto.randomUUID(),eventName:x,handler:w};return window.__SPFxExtensions.AppEventListeners.push($),()=>{q9($)}};if(!window.__SPFxExtensions.RemoveAppEventListener)window.__SPFxExtensions.RemoveAppEventListener=(x)=>{let w=window.__SPFxExtensions.AppEventListeners.findIndex(($)=>$.key===x.key);if(w>-1)window.__SPFxExtensions.AppEventListeners.splice(w,1)}}var V9=window.history.pushState,z9=window.history.replaceState,W9=window.history.back,H9=window.history.forward,F9=window.history.go;function X9(){let x=window.history.state,w=window.location.href;return{currentState:x,previousUrl:w}}function f(x,w){let $={...X9(),...w},y=new CustomEvent(x,{detail:$});window.dispatchEvent(y)}function k9(){function x(w,$,y){V9.call(this,w,$,y),f("historyPush",{newState:w,newUrl:y})}window.history.pushState=x}function D9(){function x(w,$,y){z9.call(this,w,$,y),f("historyReplace",{newState:w,newUrl:y})}window.history.replaceState=x}function G9(){function x(){W9.call(this),f("historyBack",{})}window.history.back=x}function O9(){function x(){H9.call(this),f("historyForward",{})}window.history.forward=x}function P9(){function x(w){F9.call(this,w),f("historyGo",{delta:w})}window.history.go=x}var i1=!1;function r1(){if(i1)return;i1=!0,D9(),k9(),O9(),G9(),P9()}var fx=window.localStorage.getItem(v)?.trim()?1e4:90000,qx=0;function Ix(x=!1){if(x)window.clearInterval(qx),qx=0;if(qx>0)return;qx=window.setInterval(l1,fx),l1()}async function l1(){try{let x=Zx(),w=yx(),$=await Yx(),y=await wx(),Q=x.toLowerCase()===w.toLowerCase(),Z=w+L,_=Z.toLowerCase()===y.toLowerCase();if(await Vx(y,"root"),$)await Vx($+L,"hub");if(await Vx(x+L,"site"),!Q&&!_)await Vx(Z,"web")}catch(x){Y("Error checking for manifest updates",x)}}async function Vx(x,w){let y={url:(x+X).toLowerCase(),type:w,name:X},Q=await M(y),Z=/*@__PURE__*/new Date,_=new Date(Q.lastCheck);if(Z.getTime()-_.getTime()>fx)Q=await M(y,!0);let B=Q.url.toLowerCase().replace(X.toLowerCase(),"");for(let K of Q.manifest.enabledAppCollections){let V=await bx(B,K,Q.type,!1),b=new Date(V.lastCheck);if(Z.getTime()-b.getTime()>fx)await bx(B,K,Q.type,!0)}}var zx;async function R9(){if(zx)return zx;return zx=E9(),zx}async function L9(){window.__SPFxExtensions.__CurrentContext=await tx()}async function E9(){if(await gx(),(await m()).find((Q)=>Q.Title==="InterceptHistory")?.Data==="true")r1();t1(),s1(),lx(),ax();let{promise:$,resolve:y}=Promise.withResolvers();if(!window.__SPFxExtensions.AllAppAssetsLoadedPromise)window.__SPFxExtensions.AllAppAssetsLoadedPromise=$,window.__SPFxExtensions.AllAppAssetsLoadedResolver=y}async function a1(){await d1(),await R9(),await L9(),window.__SPFxExtensions.__CorePromiseResolver(),await ux(),window.addEventListener("contextChange",async(x)=>{q("Context changed, reloading apps..."),await ux(!0),Ix(!0)}),Ix(),q("SPFx Extensions Core Has Been initialized.")}var A9={id:A,description:"Allows configuring custom apps",isWebPartApp:!1,hideAppSelectorWhenAppLoaded:!0,hideConfiguratorButton:!0,name:"SPFx Extensions Configurator",async onInstanceRequested(x){let w=window.localStorage.getItem(v)??"",$=/^\d+$/.test(w??""),y=w.trim()!=="",Q=$||y;if(Q)W("Core is in debug mode");let Z=Q?import.meta.resolve(`./${px}?v=${Date.now()}`):window.__SPFxExtensions.__ConfiguratorUrl;try{return(await import(Z)).launch(x)}catch(_){if(Y("Error launching configurator app",_),x.domElement)x.domElement.innerHTML=`<div style="text-align: center; padding: 20px; color: red;">Error launching configurator app. ${_}</div>`;return()=>{}}}},S9="2026-03-21T16:19:46.226Z";async function U9(){q("Initializing SPFxExtensions Core Built:",S9),await a1();try{await window.__SPFxExtensions.RegisterApp(A9)}catch(x){Y("Error registering configurator app",x)}}U9();