-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDownloadModule-EFUENXCB.js
More file actions
3 lines (3 loc) · 13.4 KB
/
DownloadModule-EFUENXCB.js
File metadata and controls
3 lines (3 loc) · 13.4 KB
1
2
3
import{a as Z}from"./chunk-K25D6HO4.js";import"@angular/core";import"@angular/core";import{ContentPluginEditorOptions as $r}from"@rollthecloudinc/content";import{__extends as cr}from"tslib";function a(r){return typeof r=="function"}import{__read as rr,__spreadArray as er,__values as or}from"tslib";function $(r){var o=function(t){Error.call(t),t.stack=new Error().stack},e=r(o);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var O=$(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
`+e.map(function(t,n){return n+1+") "+t.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=e}});function q(r,o){if(r){var e=r.indexOf(o);0<=e&&r.splice(e,1)}}var I=(function(){function r(o){this.initialTeardown=o,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var o,e,t,n,i;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var u=or(f),p=u.next();!p.done;p=u.next()){var x=p.value;x.remove(this)}}catch(c){o={error:c}}finally{try{p&&!p.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}else f.remove(this);var v=this.initialTeardown;if(a(v))try{v()}catch(c){i=c instanceof O?c.errors:[c]}var X=this._finalizers;if(X){this._finalizers=null;try{for(var T=or(X),w=T.next();!w.done;w=T.next()){var Pr=w.value;try{tr(Pr)}catch(c){i=i??[],c instanceof O?i=er(er([],rr(i)),rr(c.errors)):i.push(c)}}}catch(c){t={error:c}}finally{try{w&&!w.done&&(n=T.return)&&n.call(T)}finally{if(t)throw t.error}}}if(i)throw new O(i)}},r.prototype.add=function(o){var e;if(o&&o!==this)if(this.closed)tr(o);else{if(o instanceof r){if(o.closed||o._hasParent(this))return;o._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(o)}},r.prototype._hasParent=function(o){var e=this._parentage;return e===o||Array.isArray(e)&&e.includes(o)},r.prototype._addParent=function(o){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(o),e):e?[e,o]:o},r.prototype._removeParent=function(o){var e=this._parentage;e===o?this._parentage=null:Array.isArray(e)&&q(e,o)},r.prototype.remove=function(o){var e=this._finalizers;e&&q(e,o),o instanceof r&&o._removeParent(this)},r.EMPTY=(function(){var o=new r;return o.closed=!0,o})(),r})();var se=I.EMPTY;function A(r){return r instanceof I||r&&"closed"in r&&a(r.remove)&&a(r.add)&&a(r.unsubscribe)}function tr(r){a(r)?r():r.unsubscribe()}var s={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};import{__read as nr,__spreadArray as ir}from"tslib";var y={setTimeout:function(r,o){for(var e=[],t=2;t<arguments.length;t++)e[t-2]=arguments[t];var n=y.delegate;return n?.setTimeout?n.setTimeout.apply(n,ir([r,o],nr(e))):setTimeout.apply(void 0,ir([r,o],nr(e)))},clearTimeout:function(r){var o=y.delegate;return(o?.clearTimeout||clearTimeout)(r)},delegate:void 0};function F(r){y.setTimeout(function(){var o=s.onUnhandledError;if(o)o(r);else throw r})}function z(){}var fr=(function(){return G("C",void 0,void 0)})();function ar(r){return G("E",void 0,r)}function pr(r){return G("N",r,void 0)}function G(r,o,e){return{kind:r,value:o,error:e}}var h=null;function ur(r){if(s.useDeprecatedSynchronousErrorHandling){var o=!h;if(o&&(h={errorThrown:!1,error:null}),r(),o){var e=h,t=e.errorThrown,n=e.error;if(h=null,t)throw n}}else r()}function mr(r){s.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=r)}var E=(function(r){cr(o,r);function o(e){var t=r.call(this)||this;return t.isStopped=!1,e?(t.destination=e,A(e)&&e.add(t)):t.destination=Rr,t}return o.create=function(e,t,n){return new k(e,t,n)},o.prototype.next=function(e){this.isStopped?J(pr(e),this):this._next(e)},o.prototype.error=function(e){this.isStopped?J(ar(e),this):(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped?J(fr,this):(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},o})(I);var kr=Function.prototype.bind;function K(r,o){return kr.call(r,o)}var Cr=(function(){function r(o){this.partialObserver=o}return r.prototype.next=function(o){var e=this.partialObserver;if(e.next)try{e.next(o)}catch(t){P(t)}},r.prototype.error=function(o){var e=this.partialObserver;if(e.error)try{e.error(o)}catch(t){P(t)}else P(o)},r.prototype.complete=function(){var o=this.partialObserver;if(o.complete)try{o.complete()}catch(e){P(e)}},r})(),k=(function(r){cr(o,r);function o(e,t,n){var i=r.call(this)||this,f;if(a(e)||!e)f={next:e??void 0,error:t??void 0,complete:n??void 0};else{var u;i&&s.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return i.unsubscribe()},f={next:e.next&&K(e.next,u),error:e.error&&K(e.error,u),complete:e.complete&&K(e.complete,u)}):f=e}return i.destination=new Cr(f),i}return o})(E);function P(r){s.useDeprecatedSynchronousErrorHandling?mr(r):F(r)}function Lr(r){throw r}function J(r,o){var e=s.onStoppedNotification;e&&y.setTimeout(function(){return e(r,o)})}var Rr={closed:!0,next:z,error:Lr,complete:z};var S=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function sr(r){return r}function lr(r){return r.length===0?sr:r.length===1?r[0]:function(e){return r.reduce(function(t,n){return n(t)},e)}}var m=(function(){function r(o){o&&(this._subscribe=o)}return r.prototype.lift=function(o){var e=new r;return e.source=this,e.operator=o,e},r.prototype.subscribe=function(o,e,t){var n=this,i=_r(o)?o:new k(o,e,t);return ur(function(){var f=n,u=f.operator,p=f.source;i.add(u?u.call(i,p):p?n._subscribe(i):n._trySubscribe(i))}),i},r.prototype._trySubscribe=function(o){try{return this._subscribe(o)}catch(e){o.error(e)}},r.prototype.forEach=function(o,e){var t=this;return e=dr(e),new e(function(n,i){var f=new k({next:function(u){try{o(u)}catch(p){i(p),f.unsubscribe()}},error:i,complete:n});t.subscribe(f)})},r.prototype._subscribe=function(o){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(o)},r.prototype[S]=function(){return this},r.prototype.pipe=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return lr(o)(this)},r.prototype.toPromise=function(o){var e=this;return o=dr(o),new o(function(t,n){var i;e.subscribe(function(f){return i=f},function(f){return n(f)},function(){return t(i)})})},r.create=function(o){return new r(o)},r})();function dr(r){var o;return(o=r??s.Promise)!==null&&o!==void 0?o:Promise}function Ur(r){return r&&a(r.next)&&a(r.error)&&a(r.complete)}function _r(r){return r&&r instanceof E||Ur(r)&&A(r)}function Dr(r){return a(r?.lift)}function C(r){return function(o){if(Dr(o))return o.lift(function(e){try{return r(e,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}import{__extends as Mr}from"tslib";function xr(r,o,e,t,n){return new Wr(r,o,e,t,n)}var Wr=(function(r){Mr(o,r);function o(e,t,n,i,f,u){var p=r.call(this,e)||this;return p.onFinalize=f,p.shouldUnsubscribe=u,p._next=t?function(x){try{t(x)}catch(v){e.error(v)}}:r.prototype._next,p._error=i?function(x){try{i(x)}catch(v){e.error(v)}finally{this.unsubscribe()}}:r.prototype._error,p._complete=n?function(){try{n()}catch(x){e.error(x)}finally{this.unsubscribe()}}:r.prototype._complete,p}return o.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var t=this.closed;r.prototype.unsubscribe.call(this),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},o})(E);function hr(r){return r&&a(r.schedule)}function jr(r){return r[r.length-1]}function br(r){return hr(jr(r))?r.pop():void 0}import{__asyncValues as Yr,__awaiter as Br,__generator as qr,__values as zr}from"tslib";var L=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function R(r){return a(r?.then)}function U(r){return a(r[S])}function _(r){return Symbol.asyncIterator&&a(r?.[Symbol.asyncIterator])}function D(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Nr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var M=Nr();function W(r){return a(r?.[M])}import{__asyncGenerator as Hr,__await as Q,__generator as Vr}from"tslib";function j(r){return Hr(this,arguments,function(){var e,t,n,i;return Vr(this,function(f){switch(f.label){case 0:e=r.getReader(),f.label=1;case 1:f.trys.push([1,,9,10]),f.label=2;case 2:return[4,Q(e.read())];case 3:return t=f.sent(),n=t.value,i=t.done,i?[4,Q(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,Q(n)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function N(r){return a(r?.getReader)}function g(r){if(r instanceof m)return r;if(r!=null){if(U(r))return Gr(r);if(L(r))return Kr(r);if(R(r))return Jr(r);if(_(r))return vr(r);if(W(r))return Qr(r);if(N(r))return Xr(r)}throw D(r)}function Gr(r){return new m(function(o){var e=r[S]();if(a(e.subscribe))return e.subscribe(o);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Kr(r){return new m(function(o){for(var e=0;e<r.length&&!o.closed;e++)o.next(r[e]);o.complete()})}function Jr(r){return new m(function(o){r.then(function(e){o.closed||(o.next(e),o.complete())},function(e){return o.error(e)}).then(null,F)})}function Qr(r){return new m(function(o){var e,t;try{for(var n=zr(r),i=n.next();!i.done;i=n.next()){var f=i.value;if(o.next(f),o.closed)return}}catch(u){e={error:u}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}o.complete()})}function vr(r){return new m(function(o){Zr(r,o).catch(function(e){return o.error(e)})})}function Xr(r){return vr(j(r))}function Zr(r,o){var e,t,n,i;return Br(this,void 0,void 0,function(){var f,u;return qr(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),e=Yr(r),p.label=1;case 1:return[4,e.next()];case 2:if(t=p.sent(),!!t.done)return[3,4];if(f=t.value,o.next(f),o.closed)return[2];p.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=p.sent(),n={error:u},[3,11];case 6:return p.trys.push([6,,9,10]),t&&!t.done&&(i=e.return)?[4,i.call(e)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return o.complete(),[2]}})})}function l(r,o,e,t,n){t===void 0&&(t=0),n===void 0&&(n=!1);var i=o.schedule(function(){e(),n?r.add(this.schedule(null,t)):this.unsubscribe()},t);if(r.add(i),!n)return i}function H(r,o){return o===void 0&&(o=0),C(function(e,t){e.subscribe(xr(t,function(n){return l(t,r,function(){return t.next(n)},o)},function(){return l(t,r,function(){return t.complete()},o)},function(n){return l(t,r,function(){return t.error(n)},o)}))})}function V(r,o){return o===void 0&&(o=0),C(function(e,t){t.add(r.schedule(function(){return e.subscribe(t)},o))})}function yr(r,o){return g(r).pipe(V(o),H(o))}function Sr(r,o){return g(r).pipe(V(o),H(o))}function gr(r,o){return new m(function(e){var t=0;return o.schedule(function(){t===r.length?e.complete():(e.next(r[t++]),e.closed||this.schedule())})})}function wr(r,o){return new m(function(e){var t;return l(e,o,function(){t=r[M](),l(e,o,function(){var n,i,f;try{n=t.next(),i=n.value,f=n.done}catch(u){e.error(u);return}f?e.complete():e.next(i)},0,!0)}),function(){return a(t?.return)&&t.return()}})}function Y(r,o){if(!r)throw new Error("Iterable cannot be null");return new m(function(e){l(e,o,function(){var t=r[Symbol.asyncIterator]();l(e,o,function(){t.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function Er(r,o){return Y(j(r),o)}function Tr(r,o){if(r!=null){if(U(r))return yr(r,o);if(L(r))return gr(r,o);if(R(r))return Sr(r,o);if(_(r))return Y(r,o);if(W(r))return wr(r,o);if(N(r))return Er(r,o)}throw D(r)}function Or(r,o){return o?Tr(r,o):g(r)}function d(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var e=br(r);return Or(r,e)}import*as Ir from"@angular/core";var B=(()=>{class r{constructor(){}handleFile(e){return d()}handlesType(e){return!1}implementsRendererOverride(){return!1}hasRendererOverride(e){return d(!1)}isDynamic(e){return!1}isData(e){return!1}getBindings(e,t,n){return d([])}fetchDynamicData(e,t){return d()}buildDynamicItems(e,t){return d([])}stateDefinition(e){return d({})}editorOptions(e){return d(new $r({fullscreen:!0}))}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=Ir.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac})}}return r})();import{ContentPlugin as ee}from"@rollthecloudinc/content";var Ar=({handler:r})=>new ee({id:"plugin_download",title:"Plugin Download",selectionComponent:void 0,editorComponent:void 0,renderComponent:Z,handler:r});import{CommonModule as oe}from"@angular/common";import*as b from"@angular/core";import*as Fr from"@rollthecloudinc/content";var Vt=(()=>{class r{constructor(e,t){console.log("register plugin download content plugin"),e.register(Ar({handler:t}))}static{this.\u0275fac=function(t){return new(t||r)(b.\u0275\u0275inject(Fr.ContentPluginManager),b.\u0275\u0275inject(B))}}static{this.\u0275mod=b.\u0275\u0275defineNgModule({type:r})}static{this.\u0275inj=b.\u0275\u0275defineInjector({providers:[B],imports:[oe]})}}return r})();export{Vt as DownloadModule};