@stories-js/core
Version:
Stories web components to build stories
5 lines • 2.85 kB
JavaScript
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,i){function a(t){try{c(r.next(t))}catch(n){i(n)}}function u(t){try{c(r["throw"](t))}catch(n){i(n)}}function c(t){t.done?e(t.value):o(t.value).then(a,u)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(n){return c([t,n])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;o=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){e.label=a[1];break}if(a[0]===6&&e.label<i[1]){e.label=i[1];i=a;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(a);break}if(i[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(u){a=[6,u];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/System.register(["./p-fbcb0011.system.js","./p-3d5a0b0e.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h},function(t){r=t.s}],execute:function(){var o="";var i=t("stories_addons",function(){function t(t){n(this,t)}t.prototype.registerAddon=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){n=r.addons;if(n[t.id]){throw new Error("Please remove duplicate addon ".concat(t.id))}n[t.id]=t;return[2]}))}))};t.prototype.unregisterAddon=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){n=r.addons;if(!n[t.id]){throw new Error("Cannot unregister addon ".concat(t.id))}delete n[t.id];return[2]}))}))};t.prototype.findAddon=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){n=r.addons;if(!n[t]){throw new Error("Cannot find addon by id ".concat(t))}return[2,n[t]]}))}))};t.prototype.storyContextChanged=function(t,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){Object.values(r.addons).forEach((function(e){e.storyContextChanged(t,n)}));return[2]}))}))};t.prototype.render=function(){return e("slot",null)};return t}());i.style=o}}}));
//# sourceMappingURL=p-50b0db0b.system.entry.js.map