text: define("287cb3bf-2d2f-42dd-80f8-4f382d0ab4dc_0.0.1",["@microsoft/sp-core-library","@microsoft/sp-webpart-base","@microsoft/sp-property-pane","@microsoft/sp-lodash-subset","@microsoft/sp-loader","@microsoft/sp-http"],function(e,t,n,o,r,i){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=(n.n(o),n(2)),i=(n.n(r),n(3)),a=(n.n(i),n(4)),c=(n.n(a),n(5)),s=(n.n(c),n(6)),u=(n.n(s),this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}()),l=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function c(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,c)}s((o=o.apply(e,t||[])).next())})},p=this&&this.__generator||function(e,t){function n(e){return function(t){return o([e,t])}}function o(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=i[2&n[0]?"return":n[0]?"throw":"next"])&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[0,a.value]),n[0]){case 0:case 1:a=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){s.label=n[1];break}if(6===n[0]&&s.label<a[1]){s.label=a[1],a=n;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(n);break}a[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],i=0}finally{r=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var r,i,a,c,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.evalScript=function(e){var t=e.text||e.textContent||e.innerHTML||"",n=document.getElementsByTagName("head")[0]||document.documentElement,o=document.createElement("script");if(o.type="text/javascript",!(e.src&&e.src.length>0)){e.onload&&e.onload.length>0&&(o.onload=e.onload);try{o.appendChild(document.createTextNode(t))}catch(e){o.text=t}n.insertBefore(o,n.firstChild),n.removeChild(o)}},t.prototype.nodeName=function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},t.prototype.executeScript=function(e){return l(this,void 0,void 0,function(){var t,n,o,r,i,a,o,s,u,o,l,o,s,o;return p(this,function(p){switch(p.label){case 0:for(window.ScriptGlobal={},t=[],n=e.childNodes,o=0;n[o];o++)r=n[o],!this.nodeName(r,"script")||r.type&&"text/javascript"!==r.type.toLowerCase()||t.push(r);for(i=[],a=[],o=0;t[o];o++)s=t[o],s.src&&s.src.length>0&&i.push(s.src),s.onload&&s.onload.length>0&&a.push(s.onload);u=null,window.define&&window.define.amd&&(u=window.define.amd,window.define.amd=null),o=0,p.label=1;case 1:if(!(o<i.length))return[3,6];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,c.SPComponentLoader.loadScript(i[o],{globalExportsName:"ScriptGlobal"})];case 3:return p.sent(),[3,5];case 4:return l=p.sent(),console.error(l),[3,5];case 5:return o++,[3,1];case 6:for(u&&(window.define.amd=u),o=0;t[o];o++)s=t[o],s.parentNode&&s.parentNode.removeChild(s),this.evalScript(t[o]);for(o=0;a[o];o++)a[o]();return[2]}})})},t.prototype.render=function(){var e=this;if(this.properties.url){var t=window;if(this.properties.loadPC&&(t._spPageContextInfo||(t._spPageContextInfo=this.context.pageContext.legacyPageContext),!document.getElementById("__REQUESTDIGEST"))){var n=this.context.pageContext.legacyPageContext.formDigestValue,o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name","__REQUESTDIGEST"),o.setAttribute("id","__REQUESTDIGEST"),o.setAttribute("value",n),document.body.appendChild(o)}this.properties.loadSP&&(t.SP||c.SPComponentLoader.loadScript("/_layouts/15/init.js",{globalExportsName:"$_global_init"}).then(function(){return c.SPComponentLoader.loadScript("/_layouts/15/MicrosoftAjax.js",{globalExportsName:"Sys"})}).then(function(){return c.SPComponentLoader.loadScript("/_layouts/15/SP.Runtime.js",{globalExportsName:"g_all_modules"})}).then(function(){c.SPComponentLoader.loadScript("/_layouts/15/SP.js",{globalExportsName:"SP"})})),this.context.spHttpClient.get(""+Object(a.escape)(this.properties.url),s.SPHttpClient.configurations.v1).then(function(e){return e.text()}).then(function(t){e.domElement.innerHTML=t,e.executeScript(e.domElement)})}else this.domElement.innerHTML="Edit this web part and provide content URL."},Object.defineProperty(t.prototype,"dataVersion",{get:function(){return o.Version.parse("1.0")},enumerable:!0,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[{header:{description:"Enter URL to a text file."},groups:[{groupFields:[Object(i.PropertyPaneTextField)("url",{label:"URL"}),Object(i.PropertyPaneCheckbox)("loadPC",{text:"Load page context information",checked:!0}),Object(i.PropertyPaneCheckbox)("loadSP",{text:"Load SP.js and its dependencies",checked:!0})]}]}]}},t}(r.BaseClientSideWebPart);t.default=d},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=i}])});