@spfx-extensions/package 1.6.5 → 1.6.7

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 (32) hide show
  1. package/config/package-solution.json +2 -2
  2. package/dist/8d1029da-85e6-48cc-aaaf-37a5bbc0b9be.manifest.json +3 -3
  3. package/dist/d6ca1fc2-0591-4c6d-8a25-cae3262c017b.manifest.json +6 -6
  4. package/dist/debug/83e13c11-682e-4eaa-9ae0-74617ca28f96/Extension_8d1029da-85e6-48cc-aaaf-37a5bbc0b9be.xml +1 -1
  5. package/dist/debug/83e13c11-682e-4eaa-9ae0-74617ca28f96/WebPart_d6ca1fc2-0591-4c6d-8a25-cae3262c017b.xml +1 -1
  6. package/dist/debug/AppManifest.xml +1 -1
  7. package/dist/debug/ClientSideAssets/spfx-extension-application-customizer_1b309c773b29babd41e9.js +2 -0
  8. package/dist/debug/ClientSideAssets/spfx-extensionloader-web-part_fd0d3fe6fafb10ff42ea.js +2 -0
  9. package/dist/debug/ClientSideAssets/spfx-extensions-core.js +1 -1
  10. package/dist/debug/ClientSideAssets/spfx-extensions-coreconfigurator.js +82 -94
  11. package/dist/debug/ClientSideAssets/spfx-extensions-loader_0a732ea7f6e6e34a15c1.js +2 -0
  12. package/dist/debug/ClientSideAssets.xml +1 -1
  13. package/dist/debug/ClientSideAssets.xml.config.xml +1 -1
  14. package/dist/debug/_rels/ClientSideAssets.xml.rels +1 -1
  15. package/dist/debug/_rels/feature_83e13c11-682e-4eaa-9ae0-74617ca28f96.xml.rels +1 -1
  16. package/dist/debug/feature_83e13c11-682e-4eaa-9ae0-74617ca28f96.xml +1 -1
  17. package/dist/debug/feature_83e13c11-682e-4eaa-9ae0-74617ca28f96.xml.config.xml +1 -1
  18. package/dist/deploy/sp-fx-extensions.sppkg +0 -0
  19. package/dist/spfx-extension-application-customizer_1b309c773b29babd41e9.js +2 -0
  20. package/dist/spfx-extensionloader-web-part_fd0d3fe6fafb10ff42ea.js +2 -0
  21. package/dist/spfx-extensions-core.js +1 -1
  22. package/dist/spfx-extensions-coreconfigurator.js +82 -94
  23. package/dist/spfx-extensions-loader_0a732ea7f6e6e34a15c1.js +2 -0
  24. package/package.json +29 -25
  25. package/src/webparts/spfxExtensionloader/SpfxExtensionloaderWebPart.ts +9 -9
  26. package/dist/debug/ClientSideAssets/spfx-extension-application-customizer_5b1b100aec47d72d7987.js +0 -2
  27. package/dist/debug/ClientSideAssets/spfx-extensionloader-web-part_2268d0967478752fd3d9.js +0 -2
  28. package/dist/debug/ClientSideAssets/spfx-extensions-loader_ddc8f623e76ec6c32de9.js +0 -2
  29. package/dist/spfx-extension-application-customizer_5b1b100aec47d72d7987.js +0 -2
  30. package/dist/spfx-extensionloader-web-part_2268d0967478752fd3d9.js +0 -2
  31. package/dist/spfx-extensions-loader_ddc8f623e76ec6c32de9.js +0 -2
  32. package/gulpfile.js +0 -80
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackJsonp_6f1278ec34d80328d76de9bd4362f57d=self.webpackJsonp_6f1278ec34d80328d76de9bd4362f57d||[]).push([[573],{455(e,t,n){n.d(t,{initCore:()=>g,registerPlaceHolderProvider:()=>b});var a=n(367),{getPrototypeOf:i,defineProperty:r,getOwnPropertyNames:o}=(Object.create,Object);Object.prototype.hasOwnProperty;var s="[SPFxExtensions/Loader]",c="spfx-extensions-core.js",d="spfx-extensions-coreconfigurator.js",l="https://localhost";const u=n.p+"spfx-extensions-core.js?v=0159ca0d77c2409b2edf",f=n.p+"spfx-extensions-coreconfigurator.js?v=30ddf07d37bb9f57c577",p=n.p+"spfx-extensions-classicwrapper.js?v=0cd37cbaa3632acfcf92",m=n.p+"spfx-extensions-classiccustomaction.js?v=fcde1836d86329ec8be9";let _=!1;async function h(){return Promise.resolve({coreUrl:u,configuratorUrl:f,wrapperUrl:p,customActionUrl:m})}function b(e,t){_||(_=!0,window.__SPFxExtensions.Utils.placeHolderResolver({placeHolderProvider:e,eventObserver:t}))}async function g(e){if(window.__SPFxExtensions?.__CoreInitializationPromise)return window.__SPFxExtensions.Utils&&!window.__SPFxExtensions.Utils.initializedThroughSPFX&&(window.__SPFxExtensions.Utils.environmentType=e,window.__SPFxExtensions.Utils.initializedThroughSPFX=!0),window.__SPFxExtensions.__CoreInitializationPromise;const{promise:t,resolve:n}=Promise.withResolvers();window.__SPFxExtensions={__CoreInitializationPromise:t,__CoreInitializationResolver:n},console.info(a.Lf,"Initializing Core from SPFx Built:","2026-06-21T09:42:10.562Z"),await async function(e,t){if(window.__SPFxExtensions.__CorePromise)return window.__SPFxExtensions.__CorePromise;!function(e){if(!window.__SPFxExtensions.__CorePromise){let{promise:e,resolve:t}=Promise.withResolvers();window.__SPFxExtensions.__CorePromise=e,window.__SPFxExtensions.__CorePromiseResolver=t}if(!window.__SPFxExtensions.Utils){let{promise:t,resolve:n}=Promise.withResolvers(),{promise:a,resolve:i}=Promise.withResolvers();window.__SPFxExtensions.Utils={environmentType:e,initializedThroughSPFX:true,placeHolderProviderPromise:t,placeHolderResolver:n,appManifestPromises:[],spAppInitializationPromise:a,spAppInitializationPromiseResolver:i,fluentIconsInitialized:!1,ConfiguratorPageUrl:"/sites/appcatalog/SPFxExtensionsData/SitePages/SPFxExtensionsConfigurator.aspx"}}}(t);let n=await async function(e){let t=window.localStorage.getItem("SPFXEXT")??"",n=/^\d+$/.test(t??""),a=""!==t.trim(),i={core:"",configuratorUrl:""},r=Date.now();if(n)return i.core=`${l}:${t}/${c}?v=${r}`,i.configuratorUrl=`${l}:${t}/${d}?v=${r}`,i;if(a)return i.core=`${t}/${c}?v=${r}`,i.configuratorUrl=`${t}/${d}?v=${r}`,i;let{coreUrl:o,configuratorUrl:u}=await e();if(!o)throw Error(`${s} Unable to resolve SPFx Core location`);if(!u)throw Error(`${s} Unable to resolve SPFx Core Configurator location`);return i.core=o,i.configuratorUrl=u,i}(e);window.__SPFxExtensions.__ConfiguratorUrl=n.configuratorUrl,console.info(s,"Loading SPFxExtensions Core from",n);let a=document.createElement("script");return a.src=n.core,a.type="module",a.addEventListener("error",e=>{console.error(s,"Catastrophic failure, cannot load SPFxExtensions Core from",n,e)}),document.head.appendChild(a),window.__SPFxExtensions.__CorePromise}(h,e),window.__SPFxExtensions.__CoreInitializationResolver()}}
2
+ }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spfx-extensions/package",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "author": "SPWizard01",
5
5
  "access": "public",
6
6
  "repository": {
@@ -35,34 +35,38 @@
35
35
  "tsconfig.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@microsoft/decorators": "1.22.2",
39
- "@microsoft/sp-application-base": "1.22.2",
40
- "@microsoft/sp-component-base": "1.22.2",
41
- "@microsoft/sp-core-library": "1.22.2",
42
- "@microsoft/sp-dialog": "1.22.2",
43
- "@microsoft/sp-lodash-subset": "1.22.2",
44
- "@microsoft/sp-office-ui-fabric-core": "1.22.2",
45
- "@microsoft/sp-property-pane": "1.22.2",
46
- "@microsoft/sp-webpart-base": "1.22.2",
47
- "@spfx-extensions/core": "^0.9.17",
38
+ "@microsoft/decorators": "^1.23.1",
39
+ "@microsoft/sp-application-base": "^1.23.1",
40
+ "@microsoft/sp-component-base": "^1.23.1",
41
+ "@microsoft/sp-core-library": "^1.23.1",
42
+ "@microsoft/sp-dialog": "^1.23.1",
43
+ "@microsoft/sp-lodash-subset": "^1.23.1",
44
+ "@microsoft/sp-office-ui-fabric-core": "^1.23.1",
45
+ "@microsoft/sp-property-pane": "^1.23.1",
46
+ "@microsoft/sp-top-actions": "^1.23.1",
47
+ "@microsoft/sp-webpart-base": "^1.23.1",
48
+ "@spfx-extensions/core": "^0.9.19",
48
49
  "tslib": "2.8.1"
49
50
  },
50
51
  "devDependencies": {
51
- "@microsoft/eslint-config-spfx": "1.22.2",
52
- "@microsoft/eslint-plugin-spfx": "1.22.2",
53
- "@microsoft/sp-build-web": "1.22.2",
54
- "@microsoft/sp-module-interfaces": "1.22.2",
55
- "@microsoft/spfx-heft-plugins": "1.22.2",
56
- "@microsoft/spfx-web-build-rig": "1.22.2",
57
- "@rushstack/eslint-config": "4.5.2",
58
- "@rushstack/heft": "1.1.2",
59
- "@types/webpack": "5.28.5",
60
- "@types/webpack-env": "1.18.8",
61
- "@typescript-eslint/parser": "8.46.2",
62
- "eslint": "8.57.1",
63
- "typescript": "5.9.3"
52
+ "@microsoft/eslint-config-spfx": "^1.23.1",
53
+ "@microsoft/eslint-plugin-spfx": "^1.23.1",
54
+ "@microsoft/sp-build-web": "^1.23.1",
55
+ "@microsoft/sp-module-interfaces": "^1.23.1",
56
+ "@microsoft/spfx-heft-plugins": "^1.23.1",
57
+ "@microsoft/spfx-web-build-rig": "^1.23.1",
58
+ "@rushstack/eslint-config": "^4.6.4",
59
+ "@rushstack/heft": "^1.2.19",
60
+ "@typescript-eslint/parser": "^8.61.1",
61
+ "@typescript-eslint/typescript-estree": "^8.61.1",
62
+ "eslint": "^10.5.0",
63
+ "typescript": "^6.0.3"
64
64
  },
65
65
  "overrides": {
66
- "@rushstack/heft": "1.1.2"
66
+ "@rushstack/heft": "^1.2.19",
67
+ "@typescript-eslint/parser": "^8.61.1",
68
+ "@typescript-eslint/typescript-estree": "^8.61.1",
69
+ "eslint": "^10.5.0",
70
+ "typescript": "^6.0.3"
67
71
  }
68
72
  }
@@ -83,7 +83,7 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
83
83
  webPartWidth!: number;
84
84
 
85
85
  public async onInit() {
86
- if (DEBUG) {
86
+ if (ISDEBUG) {
87
87
  console.debug(SPFXPREFIX, "onInit", this.instanceId);
88
88
  }
89
89
 
@@ -394,7 +394,7 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
394
394
  }
395
395
 
396
396
  async renderEmptyApp() {
397
- if (DEBUG) {
397
+ if (ISDEBUG) {
398
398
  console.debug(SPFXPREFIX, "Rendering display or edit mode empty webpart");
399
399
  }
400
400
 
@@ -418,7 +418,7 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
418
418
  // if (this.context.propertyPane.isPropertyPaneOpen()) {
419
419
  // this.onPropertyPaneConfigurationStart();
420
420
  // }
421
- if (DEBUG) {
421
+ if (ISDEBUG) {
422
422
  console.debug(SPFXPREFIX, "render", this.instanceId);
423
423
  }
424
424
  await this.coreInitPromise;
@@ -614,7 +614,7 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
614
614
  protected onPropertyPaneConfigurationComplete(): void {
615
615
  const isPaneOpen = this.context.propertyPane.isPropertyPaneOpen();
616
616
 
617
- if (DEBUG) {
617
+ if (ISDEBUG) {
618
618
  console.debug(SPFXPREFIX, "onPropertyPaneConfigurationComplete", isPaneOpen);
619
619
  }
620
620
 
@@ -646,7 +646,7 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
646
646
  //eslint-disable-next-line @typescript-eslint/no-explicit-any
647
647
  newValue: any
648
648
  ): void {
649
- if (DEBUG) {
649
+ if (ISDEBUG) {
650
650
  console.debug(SPFXPREFIX, "onPropertyPaneFieldChanged", propertyPath, oldValue, newValue);
651
651
  }
652
652
  // if selected app changed unmount the old app
@@ -672,7 +672,7 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
672
672
  }
673
673
 
674
674
  protected onDisplayModeChanged(oldDisplayMode: DisplayMode): void {
675
- if (DEBUG) {
675
+ if (ISDEBUG) {
676
676
  console.debug(SPFXPREFIX, "onDisplayModeChanged", oldDisplayMode);
677
677
  }
678
678
  const newDisplayMode = oldDisplayMode === DisplayMode.Edit ? "Read" : "Edit";
@@ -680,21 +680,21 @@ export default class SpfxExtensionloaderWebPart extends BaseClientSideWebPart<IS
680
680
  }
681
681
 
682
682
  protected onAfterPropertyPaneChangesApplied(): void {
683
- if (DEBUG) {
683
+ if (ISDEBUG) {
684
684
  console.debug(SPFXPREFIX, "onAfterPropertyPaneChangesApplied");
685
685
  }
686
686
  this.SPFxExtensionInstance?.executeListeners("onPropertyPaneChangesApplied", undefined);
687
687
  }
688
688
 
689
689
  protected onAfterResize(newWidth: number): void {
690
- if (DEBUG) {
690
+ if (ISDEBUG) {
691
691
  console.debug(SPFXPREFIX, "onAfterResize");
692
692
  }
693
693
  this.SPFxExtensionInstance?.executeListeners("onAfterResize", { newWidth });
694
694
  }
695
695
 
696
696
  protected onDispose(): void {
697
- if (DEBUG) {
697
+ if (ISDEBUG) {
698
698
  console.debug(SPFXPREFIX, "onDispose");
699
699
  }
700
700
  this.unmountApp();
@@ -1,2 +0,0 @@
1
- (()=>{var e=document.currentScript;define("8d1029da-85e6-48cc-aaaf-37a5bbc0b9be_1.6.5",["@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_ddc8f623e76ec6c32de9.js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="e7a9b5e830c9b213816fd335db247234:",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",o.timeout=120,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_e7a9b5e830c9b213816fd335db247234=self.webpackJsonp_e7a9b5e830c9b213816fd335db247234||[];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})())})();
@@ -1,2 +0,0 @@
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_ddc8f623e76ec6c32de9.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="e7a9b5e830c9b213816fd335db247234:",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",i.timeout=120,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_e7a9b5e830c9b213816fd335db247234=self.webpackJsonp_e7a9b5e830c9b213816fd335db247234||[];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?l.g: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,2 +0,0 @@
1
- "use strict";(self.webpackJsonp_e7a9b5e830c9b213816fd335db247234=self.webpackJsonp_e7a9b5e830c9b213816fd335db247234||[]).push([[573],{455:(e,t,n)=>{n.r(t),n.d(t,{initCore:()=>v,registerPlaceHolderProvider:()=>g});var a=n(367),{getPrototypeOf:i,defineProperty:r,getOwnPropertyNames:o}=(Object.create,Object);Object.prototype.hasOwnProperty;var s="[SPFxExtensions/Loader]",c="spfx-extensions-core.js",d="spfx-extensions-coreconfigurator.js",l="https://localhost",u="SPFXEXT";const f=n.p+"spfx-extensions-core.js?v=745ac560091e5df50d20",p=n.p+"spfx-extensions-coreconfigurator.js?v=1d74cf3e5294fe4f1281",m=n.p+"spfx-extensions-classicwrapper.js?v=0cd37cbaa3632acfcf92",_=n.p+"spfx-extensions-classiccustomaction.js?v=fcde1836d86329ec8be9";let h=!1;async function b(){return Promise.resolve({coreUrl:f,configuratorUrl:p,wrapperUrl:m,customActionUrl:_})}function g(e,t){h||(h=!0,window.__SPFxExtensions.Utils.placeHolderResolver({placeHolderProvider:e,eventObserver:t}))}async function v(e){if(window.__SPFxExtensions?.__CoreInitializationPromise)return window.__SPFxExtensions.Utils&&!window.__SPFxExtensions.Utils.initializedThroughSPFX&&(window.__SPFxExtensions.Utils.environmentType=e,window.__SPFxExtensions.Utils.initializedThroughSPFX=!0),window.__SPFxExtensions.__CoreInitializationPromise;const{promise:t,resolve:n}=Promise.withResolvers();window.__SPFxExtensions={__CoreInitializationPromise:t,__CoreInitializationResolver:n},console.info(a.Lf,"Initializing Core from SPFx Built:","2026-03-21T16:53:44.129Z"),await async function(e,t){if(window.__SPFxExtensions.__CorePromise)return window.__SPFxExtensions.__CorePromise;!function(e){if(!window.__SPFxExtensions.__CorePromise){let{promise:e,resolve:t}=Promise.withResolvers();window.__SPFxExtensions.__CorePromise=e,window.__SPFxExtensions.__CorePromiseResolver=t}if(!window.__SPFxExtensions.Utils){let{promise:t,resolve:n}=Promise.withResolvers(),{promise:a,resolve:i}=Promise.withResolvers();window.__SPFxExtensions.Utils={environmentType:e,initializedThroughSPFX:true,placeHolderProviderPromise:t,placeHolderResolver:n,appManifestPromises:[],spAppInitializationPromise:a,spAppInitializationPromiseResolver:i,fluentIconsInitialized:!1,ConfiguratorPageUrl:"/sites/appcatalog/SPFxExtensionsData/SitePages/SPFxExtensionsConfigurator.aspx"}}}(t);let n=await async function(e){let t=window.localStorage.getItem(u)??"",n=/^\d+$/.test(t??""),a=""!==t.trim(),i={core:"",configuratorUrl:""},r=Date.now();if(n)return i.core=`${l}:${t}/${c}?v=${r}`,i.configuratorUrl=`${l}:${t}/${d}?v=${r}`,i;if(a)return i.core=`${t}/${c}?v=${r}`,i.configuratorUrl=`${t}/${d}?v=${r}`,i;let{coreUrl:o,configuratorUrl:f}=await e();if(!o)throw Error(`${s} Unable to resolve SPFx Core location`);if(!f)throw Error(`${s} Unable to resolve SPFx Core Configurator location`);return i.core=o,i.configuratorUrl=f,i}(e);window.__SPFxExtensions.__ConfiguratorUrl=n.configuratorUrl,console.info(s,"Loading SPFxExtensions Core from",n);let a=document.createElement("script");return a.src=n.core,a.type="module",a.addEventListener("error",e=>{console.error(s,"Catastrophic failure, cannot load SPFxExtensions Core from",n,e)}),document.head.appendChild(a),window.__SPFxExtensions.__CorePromise}(b,e),window.__SPFxExtensions.__CoreInitializationResolver()}}
2
- }]);
@@ -1,2 +0,0 @@
1
- (()=>{var e=document.currentScript;define("8d1029da-85e6-48cc-aaaf-37a5bbc0b9be_1.6.5",["@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_ddc8f623e76ec6c32de9.js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="e7a9b5e830c9b213816fd335db247234:",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",o.timeout=120,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_e7a9b5e830c9b213816fd335db247234=self.webpackJsonp_e7a9b5e830c9b213816fd335db247234||[];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})())})();
@@ -1,2 +0,0 @@
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_ddc8f623e76ec6c32de9.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="e7a9b5e830c9b213816fd335db247234:",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",i.timeout=120,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_e7a9b5e830c9b213816fd335db247234=self.webpackJsonp_e7a9b5e830c9b213816fd335db247234||[];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?l.g: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,2 +0,0 @@
1
- "use strict";(self.webpackJsonp_e7a9b5e830c9b213816fd335db247234=self.webpackJsonp_e7a9b5e830c9b213816fd335db247234||[]).push([[573],{455:(e,t,n)=>{n.r(t),n.d(t,{initCore:()=>v,registerPlaceHolderProvider:()=>g});var a=n(367),{getPrototypeOf:i,defineProperty:r,getOwnPropertyNames:o}=(Object.create,Object);Object.prototype.hasOwnProperty;var s="[SPFxExtensions/Loader]",c="spfx-extensions-core.js",d="spfx-extensions-coreconfigurator.js",l="https://localhost",u="SPFXEXT";const f=n.p+"spfx-extensions-core.js?v=745ac560091e5df50d20",p=n.p+"spfx-extensions-coreconfigurator.js?v=1d74cf3e5294fe4f1281",m=n.p+"spfx-extensions-classicwrapper.js?v=0cd37cbaa3632acfcf92",_=n.p+"spfx-extensions-classiccustomaction.js?v=fcde1836d86329ec8be9";let h=!1;async function b(){return Promise.resolve({coreUrl:f,configuratorUrl:p,wrapperUrl:m,customActionUrl:_})}function g(e,t){h||(h=!0,window.__SPFxExtensions.Utils.placeHolderResolver({placeHolderProvider:e,eventObserver:t}))}async function v(e){if(window.__SPFxExtensions?.__CoreInitializationPromise)return window.__SPFxExtensions.Utils&&!window.__SPFxExtensions.Utils.initializedThroughSPFX&&(window.__SPFxExtensions.Utils.environmentType=e,window.__SPFxExtensions.Utils.initializedThroughSPFX=!0),window.__SPFxExtensions.__CoreInitializationPromise;const{promise:t,resolve:n}=Promise.withResolvers();window.__SPFxExtensions={__CoreInitializationPromise:t,__CoreInitializationResolver:n},console.info(a.Lf,"Initializing Core from SPFx Built:","2026-03-21T16:53:44.129Z"),await async function(e,t){if(window.__SPFxExtensions.__CorePromise)return window.__SPFxExtensions.__CorePromise;!function(e){if(!window.__SPFxExtensions.__CorePromise){let{promise:e,resolve:t}=Promise.withResolvers();window.__SPFxExtensions.__CorePromise=e,window.__SPFxExtensions.__CorePromiseResolver=t}if(!window.__SPFxExtensions.Utils){let{promise:t,resolve:n}=Promise.withResolvers(),{promise:a,resolve:i}=Promise.withResolvers();window.__SPFxExtensions.Utils={environmentType:e,initializedThroughSPFX:true,placeHolderProviderPromise:t,placeHolderResolver:n,appManifestPromises:[],spAppInitializationPromise:a,spAppInitializationPromiseResolver:i,fluentIconsInitialized:!1,ConfiguratorPageUrl:"/sites/appcatalog/SPFxExtensionsData/SitePages/SPFxExtensionsConfigurator.aspx"}}}(t);let n=await async function(e){let t=window.localStorage.getItem(u)??"",n=/^\d+$/.test(t??""),a=""!==t.trim(),i={core:"",configuratorUrl:""},r=Date.now();if(n)return i.core=`${l}:${t}/${c}?v=${r}`,i.configuratorUrl=`${l}:${t}/${d}?v=${r}`,i;if(a)return i.core=`${t}/${c}?v=${r}`,i.configuratorUrl=`${t}/${d}?v=${r}`,i;let{coreUrl:o,configuratorUrl:f}=await e();if(!o)throw Error(`${s} Unable to resolve SPFx Core location`);if(!f)throw Error(`${s} Unable to resolve SPFx Core Configurator location`);return i.core=o,i.configuratorUrl=f,i}(e);window.__SPFxExtensions.__ConfiguratorUrl=n.configuratorUrl,console.info(s,"Loading SPFxExtensions Core from",n);let a=document.createElement("script");return a.src=n.core,a.type="module",a.addEventListener("error",e=>{console.error(s,"Catastrophic failure, cannot load SPFxExtensions Core from",n,e)}),document.head.appendChild(a),window.__SPFxExtensions.__CorePromise}(b,e),window.__SPFxExtensions.__CoreInitializationResolver()}}
2
- }]);
package/gulpfile.js DELETED
@@ -1,80 +0,0 @@
1
- "use strict";
2
- const fs = require("fs");
3
- const build = require("@microsoft/sp-build-web");
4
- const { spawnSync } = require("child_process");
5
- const path = require("path");
6
- const isProd = process.argv.indexOf("--ship") > -1;
7
-
8
-
9
- build.addSuppression(
10
- `Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`
11
- );
12
-
13
-
14
- // build.addSuppression(
15
- // `Warning - [webpack] No webpack config has been provided. Create a webpack.config.js file or call webpack.setConfig({ configPath: null }) in your gulpfile.`
16
- // );
17
- // build.webpack.setConfig({
18
- // configPath: "./webpack.config.js"
19
- // })
20
-
21
- build.tscCmd.executeTask = function () {
22
- console.log("Overriding tscCmd.executeTask");
23
- spawnSync("npx", ["tsc", "--build", "--verbose"], {
24
- shell: true,
25
- stdio: "inherit",
26
- cwd: path.resolve(__dirname),
27
- });
28
- return Promise.resolve();
29
- };
30
-
31
- build.configureWebpack.mergeConfig({
32
- //https://github.com/SharePoint/sp-dev-docs/issues/10205
33
- // generateCssClassName: (name) => {
34
- // return name;
35
- // },
36
- additionalConfiguration: (generatedConfiguration) => {
37
- // generatedConfiguration.optimization.usedExports = true;
38
- //generatedConfiguration.resolve.extensions.push(".ts");
39
-
40
- // const sourceMapLoaderIndex = generatedConfiguration.module.rules.findIndex(
41
- // (l) => l.use && l.use?.loader?.indexOf("source-map-loader") > -1
42
- // );
43
- // if (sourceMapLoaderIndex > -1) {
44
- // generatedConfiguration.module.rules.splice(sourceMapLoaderIndex, 1);
45
- // generatedConfiguration.module.rules.push({
46
- // test: /\.js$/,
47
- // enforce: "pre",
48
- // use: [
49
- // {
50
- // loader: "source-map-loader",
51
- // options: {
52
- // filterSourceMappingUrl: (url, resourcePath) => {
53
- // const includeSourceMap =
54
- // resourcePath.indexOf("node_modules") === -1 ||
55
- // url.indexOf("__spfxCore.js") > -1 ||
56
- // url.indexOf("@spfx-extensions/core") > -1 ||
57
- // resourcePath.indexOf("@spfx-extensions/core") > -1;
58
- // return includeSourceMap;
59
- // },
60
- // },
61
- // },
62
- // ],
63
- // });
64
- // }
65
-
66
-
67
- return generatedConfiguration;
68
- },
69
- });
70
-
71
- var getTasks = build.rig.getTasks;
72
- build.rig.getTasks = function () {
73
- var result = getTasks.call(build.rig);
74
-
75
- result.set("serve", result.get("serve-deprecated"));
76
-
77
- return result;
78
- };
79
-
80
- build.initialize(require("gulp"));