@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
JavaScript
import{f,g as h,h as y}from"./chunk-MOC77MIC.js";import{a as v}from"./chunk-JFPB5N6O.js";import"./chunk-L67DAW3A.js";var b=function(u,i,n,a){return new(n||(n=Promise))(function(r,e){function o(t){try{s(a.next(t))}catch(l){e(l)}}function c(t){try{s(a.throw(t))}catch(l){e(l)}}function s(t){t.done?r(t.value):new n(function(l){l(t.value)}).then(o,c)}s((a=a.apply(u,i||[])).next())})},d=function(u,i){var n={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},a,r,e,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(t){return function(l){return s([t,l])}}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(l){t=[6,l],r=0}finally{a=e=0}if(t[0]&5)throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}},m=function(){function u(i){v(this,i)}return u.prototype.create=function(i){return f("ion-alert",i)},u.prototype.dismiss=function(i,n,a){return h(document,i,n,"ion-alert",a)},u.prototype.getTop=function(){return b(this,void 0,void 0,function(){return d(this,function(i){return[2,y(document,"ion-alert")]})})},u}();export{m as ion_alert_controller};