UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

1 lines • 5.47 kB
define("$webPartId$_1.0.0",["@microsoft/sp-loader","@microsoft/sp-core-library","@microsoft/sp-webpart-base"],function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="GFLV")}({GFLV:function(e,t,n){"use strict";n.r(t);var r,o=n("UWqr"),a=n("I6O9"),i=n("br4S"),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exposePageContextGlobally=$exposePageContextGlobally$,t.exposeTeamsContextGlobally=$exposeTeamsContextGlobally$,t}return u(t,e),t.prototype.render=function(){this._uniqueId=this.context.instanceId,this.domElement.innerHTML="$html$",this.executeScript(this.domElement)},t.prototype.executeScript=function(e){return t=this,void 0,r=function(){var t,n,r,o,i,u,c,l,s,p,f,d,b;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}(this,function(m){switch(m.label){case 0:for(t=document.getElementsByTagName("head")[0]||document.documentElement,n=t.getElementsByTagName("script"),b=0;b<n.length;b++)(d=n[b]).hasAttribute("pnpname")&&d.attributes.pnpname.value==this._uniqueId&&t.removeChild(d);for(this.exposePageContextGlobally&&!window._spPageContextInfo&&(window._spPageContextInfo=this.context.pageContext.legacyPageContext),this.exposeTeamsContextGlobally&&!window._teamsContextInfo&&(window._teamsContextInfo=this.context.sdks.microsoftTeams.context),window.ScriptGlobal={},r=[],o=e.getElementsByTagName("script"),b=0;o[b];b++)(i=o[b]).type&&"text/javascript"!==i.type.toLowerCase()||r.push(i);for(u=[],c=[],b=0;r[b];b++)(d=r[b]).src&&d.src.length>0&&u.push(d.src),d.onload&&d.onload.length>0&&c.push(d.onload);l=null,window.define&&window.define.amd&&(l=window.define.amd,window.define.amd=null),b=0,m.label=1;case 1:if(!(b<u.length))return[3,6];m.label=2;case 2:return m.trys.push([2,4,,5]),s=u[b],p=-1===s.indexOf("?")?"?":"&",s+=p+"pnp="+(new Date).getTime(),[4,a.SPComponentLoader.loadScript(s,{globalExportsName:"ScriptGlobal"})];case 3:return m.sent(),[3,5];case 4:return f=m.sent(),console.error&&console.error(f),[3,5];case 5:return b++,[3,1];case 6:for(l&&(window.define.amd=l),b=0;r[b];b++)(d=r[b]).parentNode&&d.parentNode.removeChild(d),this.evalScript(r[b]);for(b=0;c[b];b++)c[b]();return[2]}})},new((n=void 0)||(n=Promise))(function(e,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function i(e){try{u(r.throw(e))}catch(e){o(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n(function(e){e(r)})).then(a,i)}u((r=r.apply(t,[])).next())});var t,n,r},t.prototype.evalScript=function(e){for(var t=e.text||e.textContent||e.innerHTML||"",n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script"),o=0;o<e.attributes.length;o++){var a=e.attributes[o];"onload"!==a.name.toLowerCase()&&r.setAttribute(a.name,a.value)}r.type=(r.src&&r.src.length)>0?"pnp":"text/javascript",r.setAttribute("pnpname",this._uniqueId);try{r.appendChild(document.createTextNode(t))}catch(e){r.text=t}n.insertBefore(r,n.firstChild)},Object.defineProperty(t.prototype,"dataVersion",{get:function(){return o.Version.parse("1.0")},enumerable:!0,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[]}},t}(i.BaseClientSideWebPart);t.default=c},I6O9:function(t,n){t.exports=e},UWqr:function(e,n){e.exports=t},br4S:function(e,t){e.exports=n}})});