1234 |
- var __awaiter=this&&this.__awaiter||function(n,t,r,e){function i(n){return n instanceof r?n:new r((function(t){t(n)}))}return new(r||(r=Promise))((function(r,u){function a(n){try{c(e.next(n))}catch(n){u(n)}}function o(n){try{c(e["throw"](n))}catch(n){u(n)}}function c(n){n.done?r(n.value):i(n.value).then(a,o)}c((e=e.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},e,i,u,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(n){return function(t){return c([n,t])}}function c(o){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(r=0)),r)try{if(e=1,i&&(u=o[0]&2?i["return"]:o[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,o[1])).done)return u;if(i=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(u=r.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){r.label=o[1];break}if(o[0]===6&&r.label<u[1]){r.label=u[1];u=o;break}if(u&&r.label<u[2]){r.label=u[2];r.ops.push(o);break}if(u[2])r.ops.pop();r.trys.pop();continue}o=t.call(n,r)}catch(n){o=[6,n];i=0}finally{e=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
- /*!
- * (C) Ionic http://ionicframework.com - MIT License
- */System.register(["./p-792919fd.system.js","./p-00023f5a.system.js"],(function(n){"use strict";var t,r,e;return{setters:[function(n){t=n.w},function(n){r=n.c;e=n.d}],execute:function(){var i=this;var u=n("shouldUseCloseWatcher",(function(){return r.get("experimentalCloseWatcher",false)&&t!==undefined&&"CloseWatcher"in t}));var a=n("blockHardwareBackButton",(function(){document.addEventListener("backbutton",(function(){}))}));var o=n("startHardwareBackButton",(function(){var n=document;var r=false;var a=function(){if(r){return}var t=0;var u=[];var a=new CustomEvent("ionBackButton",{bubbles:false,detail:{register:function(n,r){u.push({priority:n,handler:r,id:t++})}}});n.dispatchEvent(a);var o=function(n){return __awaiter(i,void 0,void 0,(function(){var t,r;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,3,,4]);if(!(n===null||n===void 0?void 0:n.handler))return[3,2];t=n.handler(c);if(!(t!=null))return[3,2];return[4,t];case 1:i.sent();i.label=2;case 2:return[3,4];case 3:r=i.sent();e("[ion-app] - Exception in startHardwareBackButton:",r);return[3,4];case 4:return[2]}}))}))};var c=function(){if(u.length>0){var n={priority:Number.MIN_SAFE_INTEGER,handler:function(){return undefined},id:-1};u.forEach((function(t){if(t.priority>=n.priority){n=t}}));r=true;u=u.filter((function(t){return t.id!==n.id}));o(n).then((function(){return r=false}))}};c()};if(u()){var o;var c=function(){o===null||o===void 0?void 0:o.destroy();o=new t.CloseWatcher;o.onclose=function(){a();c()}};c()}else{n.addEventListener("backbutton",a)}}));var c=n("OVERLAY_BACK_BUTTON_PRIORITY",100);var f=n("MENU_BACK_BUTTON_PRIORITY",99)}}}));
|