UNPKG

@acdh-oeaw/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

2 lines (1 loc) 1.8 kB
import{f,g as h,h as y}from"./chunk-MOC77MIC.js";import{a as d}from"./chunk-JFPB5N6O.js";import"./chunk-L67DAW3A.js";var v=function(u,i,n,a){return new(n||(n=Promise))(function(r,e){function l(t){try{s(a.next(t))}catch(o){e(o)}}function c(t){try{s(a.throw(t))}catch(o){e(o)}}function s(t){t.done?r(t.value):new n(function(o){o(t.value)}).then(l,c)}s((a=a.apply(u,i||[])).next())})},b=function(u,i){var n={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},a,r,e,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(t){return function(o){return s([t,o])}}function s(t){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,r&&(e=t[0]&2?r.return:t[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,t[1])).done)return e;switch(r=0,e&&(t=[t[0]&2,e.value]),t[0]){case 0:case 1:e=t;break;case 4:return n.label++,{value:t[1],done:!1};case 5:n.label++,r=t[1],t=[0];continue;case 7:t=n.ops.pop(),n.trys.pop();continue;default:if(e=n.trys,!(e=e.length>0&&e[e.length-1])&&(t[0]===6||t[0]===2)){n=0;continue}if(t[0]===3&&(!e||t[1]>e[0]&&t[1]<e[3])){n.label=t[1];break}if(t[0]===6&&n.label<e[1]){n.label=e[1],e=t;break}if(e&&n.label<e[2]){n.label=e[2],n.ops.push(t);break}e[2]&&n.ops.pop(),n.trys.pop();continue}t=i.call(u,n)}catch(o){t=[6,o],r=0}finally{a=e=0}if(t[0]&5)throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}},g=function(){function u(i){d(this,i)}return u.prototype.create=function(i){return f("ion-loading",i)},u.prototype.dismiss=function(i,n,a){return h(document,i,n,"ion-loading",a)},u.prototype.getTop=function(){return v(this,void 0,void 0,function(){return b(this,function(i){return[2,y(document,"ion-loading")]})})},u}();export{g as ion_loading_controller};