@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,t){function o(e){try{s(a.next(e))}catch(c){t(c)}}function l(e){try{s(a.throw(e))}catch(c){t(c)}}function s(e){e.done?r(e.value):new n(function(c){c(e.value)}).then(o,l)}s((a=a.apply(u,i||[])).next())})},d=function(u,i){var n={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,r,t,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(c){return s([e,c])}}function s(e){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,r&&(t=e[0]&2?r.return:e[0]?r.throw||((t=r.return)&&t.call(r),0):r.next)&&!(t=t.call(r,e[1])).done)return t;switch(r=0,t&&(e=[e[0]&2,t.value]),e[0]){case 0:case 1:t=e;break;case 4:return n.label++,{value:e[1],done:!1};case 5:n.label++,r=e[1],e=[0];continue;case 7:e=n.ops.pop(),n.trys.pop();continue;default:if(t=n.trys,!(t=t.length>0&&t[t.length-1])&&(e[0]===6||e[0]===2)){n=0;continue}if(e[0]===3&&(!t||e[1]>t[0]&&e[1]<t[3])){n.label=e[1];break}if(e[0]===6&&n.label<t[1]){n.label=t[1],t=e;break}if(t&&n.label<t[2]){n.label=t[2],n.ops.push(e);break}t[2]&&n.ops.pop(),n.trys.pop();continue}e=i.call(u,n)}catch(c){e=[6,c],r=0}finally{a=t=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}},m=function(){function u(i){v(this,i)}return u.prototype.create=function(i){return f("ion-picker",i)},u.prototype.dismiss=function(i,n,a){return h(document,i,n,"ion-picker",a)},u.prototype.getTop=function(){return b(this,void 0,void 0,function(){return d(this,function(i){return[2,y(document,"ion-picker")]})})},u}();export{m as ion_picker_controller};