@ionic/core 8.4.1-dev.11731700779.1cd68811 → 8.4.1-dev.11731703553.12031ebb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/components/overlays.js +11 -10
  2. package/dist/cjs/index.cjs.js +1 -1
  3. package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
  4. package/dist/cjs/ion-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/ion-datetime_3.cjs.entry.js +1 -1
  6. package/dist/cjs/ion-loading.cjs.entry.js +1 -1
  7. package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
  8. package/dist/cjs/ion-modal.cjs.entry.js +1 -1
  9. package/dist/cjs/ion-popover.cjs.entry.js +1 -1
  10. package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/ion-select_3.cjs.entry.js +1 -1
  12. package/dist/cjs/ion-toast.cjs.entry.js +1 -1
  13. package/dist/cjs/{overlays-b37ff3f3.js → overlays-ce3e943d.js} +11 -10
  14. package/dist/collection/utils/overlays.js +11 -10
  15. package/dist/docs.json +1 -1
  16. package/dist/esm/index.js +1 -1
  17. package/dist/esm/ion-action-sheet.entry.js +1 -1
  18. package/dist/esm/ion-alert.entry.js +1 -1
  19. package/dist/esm/ion-datetime_3.entry.js +1 -1
  20. package/dist/esm/ion-loading.entry.js +1 -1
  21. package/dist/esm/ion-menu_3.entry.js +1 -1
  22. package/dist/esm/ion-modal.entry.js +1 -1
  23. package/dist/esm/ion-popover.entry.js +1 -1
  24. package/dist/esm/ion-select-modal.entry.js +1 -1
  25. package/dist/esm/ion-select_3.entry.js +1 -1
  26. package/dist/esm/ion-toast.entry.js +1 -1
  27. package/dist/esm/{overlays-d76b9e62.js → overlays-332fc448.js} +11 -10
  28. package/dist/esm-es5/index.js +1 -1
  29. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  30. package/dist/esm-es5/ion-alert.entry.js +1 -1
  31. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  32. package/dist/esm-es5/ion-loading.entry.js +1 -1
  33. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  34. package/dist/esm-es5/ion-modal.entry.js +1 -1
  35. package/dist/esm-es5/ion-popover.entry.js +1 -1
  36. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  37. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  38. package/dist/esm-es5/ion-toast.entry.js +1 -1
  39. package/dist/esm-es5/{overlays-d76b9e62.js → overlays-332fc448.js} +1 -1
  40. package/dist/ionic/index.esm.js +1 -1
  41. package/dist/ionic/ionic.esm.js +1 -1
  42. package/dist/ionic/{p-ad5001d7.entry.js → p-0bd432de.entry.js} +1 -1
  43. package/dist/ionic/{p-c0dfb2a7.system.entry.js → p-197fcff5.system.entry.js} +1 -1
  44. package/dist/ionic/{p-84ebf302.system.entry.js → p-2bc0877a.system.entry.js} +1 -1
  45. package/dist/ionic/{p-4b0b52da.entry.js → p-3113cfba.entry.js} +1 -1
  46. package/dist/ionic/p-322c5fb4.system.js +1 -1
  47. package/dist/ionic/{p-e3dfdac3.system.entry.js → p-40453ad6.system.entry.js} +1 -1
  48. package/dist/ionic/{p-19d16848.entry.js → p-41c0f625.entry.js} +1 -1
  49. package/dist/ionic/{p-203f0419.entry.js → p-4a8b0997.entry.js} +1 -1
  50. package/dist/ionic/{p-21214a48.system.entry.js → p-4f8bd8d0.system.entry.js} +1 -1
  51. package/dist/ionic/{p-15f6ad13.system.entry.js → p-66d7f40e.system.entry.js} +1 -1
  52. package/dist/ionic/p-7920997e.js +4 -0
  53. package/dist/ionic/{p-32b7329a.entry.js → p-82ffbf8e.entry.js} +1 -1
  54. package/dist/ionic/{p-8f56aaba.system.entry.js → p-96a564ed.system.entry.js} +1 -1
  55. package/dist/ionic/{p-4c28600f.entry.js → p-b52dbec5.entry.js} +1 -1
  56. package/dist/ionic/{p-be3caade.system.entry.js → p-b80c3414.system.entry.js} +1 -1
  57. package/dist/ionic/{p-b3a52465.entry.js → p-b8c52155.entry.js} +1 -1
  58. package/dist/ionic/{p-460a7f96.system.entry.js → p-bc7b105b.system.entry.js} +1 -1
  59. package/dist/ionic/{p-f81ebb3d.entry.js → p-c024bbe1.entry.js} +1 -1
  60. package/dist/ionic/{p-0fa0bff6.system.js → p-c181c32f.system.js} +1 -1
  61. package/dist/ionic/{p-c93f5847.entry.js → p-d1b29c04.entry.js} +1 -1
  62. package/dist/ionic/p-d26e83e9.system.js +4 -0
  63. package/dist/ionic/{p-d042ac5b.entry.js → p-e2068591.entry.js} +1 -1
  64. package/dist/ionic/{p-01b28cdd.system.entry.js → p-ee41b0d2.system.entry.js} +1 -1
  65. package/dist/ionic/{p-cd7abadd.system.entry.js → p-f27acc68.system.entry.js} +1 -1
  66. package/hydrate/index.js +11 -10
  67. package/hydrate/index.mjs +11 -10
  68. package/package.json +1 -1
  69. package/dist/ionic/p-05a51e00.system.js +0 -4
  70. package/dist/ionic/p-7f816f9f.js +0 -4
package/hydrate/index.js CHANGED
@@ -5027,7 +5027,6 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
5027
5027
  }
5028
5028
  document.body.classList.add(BACKDROP_NO_SCROLL);
5029
5029
  hideUnderlyingOverlaysFromScreenReaders(overlay.el);
5030
- // hideAnimatingOverlayFromScreenReaders(overlay.el);
5031
5030
  overlay.presented = true;
5032
5031
  overlay.willPresent.emit();
5033
5032
  (_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
@@ -5036,6 +5035,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
5036
5035
  const animationBuilder = overlay.enterAnimation
5037
5036
  ? overlay.enterAnimation
5038
5037
  : config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
5038
+ hideAnimatingOverlayFromScreenReaders(overlay.el);
5039
5039
  const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
5040
5040
  if (completed) {
5041
5041
  overlay.didPresent.emit();
@@ -5157,7 +5157,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
5157
5157
  * the dismiss animation. This is because the overlay will be removed
5158
5158
  * from the DOM after the animation is complete.
5159
5159
  */
5160
- // hideAnimatingOverlayFromScreenReaders(overlay.el);
5160
+ hideAnimatingOverlayFromScreenReaders(overlay.el);
5161
5161
  // Overlay contents should not be clickable during dismiss
5162
5162
  overlay.el.style.setProperty('pointer-events', 'none');
5163
5163
  overlay.willDismiss.emit({ data, role });
@@ -5405,14 +5405,15 @@ const createTriggerController = () => {
5405
5405
  *
5406
5406
  * @param overlay - The overlay that is being animated.
5407
5407
  */
5408
- // const hideAnimatingOverlayFromScreenReaders = (overlay: HTMLIonOverlayElement) => {
5409
- // if (doc === undefined) return;
5410
- // /**
5411
- // * Once the animation is complete, this attribute will be removed.
5412
- // * This is done at the end of the `present` method.
5413
- // */
5414
- // overlay.setAttribute('aria-hidden', 'true');
5415
- // };
5408
+ const hideAnimatingOverlayFromScreenReaders = (overlay) => {
5409
+ if (doc === undefined)
5410
+ return;
5411
+ /**
5412
+ * Once the animation is complete, this attribute will be removed.
5413
+ * This is done at the end of the `present` method.
5414
+ */
5415
+ overlay.setAttribute('aria-hidden', 'true');
5416
+ };
5416
5417
  /**
5417
5418
  * Ensure that underlying overlays have aria-hidden if necessary so that screen readers
5418
5419
  * cannot move focus to these elements. Note that we cannot rely on focus/focusin/focusout
package/hydrate/index.mjs CHANGED
@@ -5023,7 +5023,6 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
5023
5023
  }
5024
5024
  document.body.classList.add(BACKDROP_NO_SCROLL);
5025
5025
  hideUnderlyingOverlaysFromScreenReaders(overlay.el);
5026
- // hideAnimatingOverlayFromScreenReaders(overlay.el);
5027
5026
  overlay.presented = true;
5028
5027
  overlay.willPresent.emit();
5029
5028
  (_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
@@ -5032,6 +5031,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
5032
5031
  const animationBuilder = overlay.enterAnimation
5033
5032
  ? overlay.enterAnimation
5034
5033
  : config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
5034
+ hideAnimatingOverlayFromScreenReaders(overlay.el);
5035
5035
  const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
5036
5036
  if (completed) {
5037
5037
  overlay.didPresent.emit();
@@ -5153,7 +5153,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
5153
5153
  * the dismiss animation. This is because the overlay will be removed
5154
5154
  * from the DOM after the animation is complete.
5155
5155
  */
5156
- // hideAnimatingOverlayFromScreenReaders(overlay.el);
5156
+ hideAnimatingOverlayFromScreenReaders(overlay.el);
5157
5157
  // Overlay contents should not be clickable during dismiss
5158
5158
  overlay.el.style.setProperty('pointer-events', 'none');
5159
5159
  overlay.willDismiss.emit({ data, role });
@@ -5401,14 +5401,15 @@ const createTriggerController = () => {
5401
5401
  *
5402
5402
  * @param overlay - The overlay that is being animated.
5403
5403
  */
5404
- // const hideAnimatingOverlayFromScreenReaders = (overlay: HTMLIonOverlayElement) => {
5405
- // if (doc === undefined) return;
5406
- // /**
5407
- // * Once the animation is complete, this attribute will be removed.
5408
- // * This is done at the end of the `present` method.
5409
- // */
5410
- // overlay.setAttribute('aria-hidden', 'true');
5411
- // };
5404
+ const hideAnimatingOverlayFromScreenReaders = (overlay) => {
5405
+ if (doc === undefined)
5406
+ return;
5407
+ /**
5408
+ * Once the animation is complete, this attribute will be removed.
5409
+ * This is done at the end of the `present` method.
5410
+ */
5411
+ overlay.setAttribute('aria-hidden', 'true');
5412
+ };
5412
5413
  /**
5413
5414
  * Ensure that underlying overlays have aria-hidden if necessary so that screen readers
5414
5415
  * cannot move focus to these elements. Note that we cannot rely on focus/focusin/focusout
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/core",
3
- "version": "8.4.1-dev.11731700779.1cd68811",
3
+ "version": "8.4.1-dev.11731703553.12031ebb",
4
4
  "description": "Base components for Ionic",
5
5
  "keywords": [
6
6
  "ionic",
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(n,e,r,t){function i(n){return n instanceof r?n:new r((function(e){e(n)}))}return new(r||(r=Promise))((function(r,o){function a(n){try{f(t.next(n))}catch(n){o(n)}}function u(n){try{f(t["throw"](n))}catch(n){o(n)}}function f(n){n.done?r(n.value):i(n.value).then(a,u)}f((t=t.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},t,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(e){return f([n,e])}}function f(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(t=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=e.call(n,r)}catch(n){u=[6,n];i=0}finally{t=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,e,r){if(r||arguments.length===2)for(var t=0,i=e.length,o;t<i;t++){if(o||!(t in e)){if(!o)o=Array.prototype.slice.call(e,0,t);o[t]=e[t]}}return n.concat(o||Array.prototype.slice.call(e))};
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */System.register(["./p-792919fd.system.js","./p-3ad285e3.system.js","./p-9f3008d4.system.js","./p-a69b9fc5.system.js","./p-8635f5e6.system.js","./p-20d469d0.system.js","./p-ff4b7e40.system.js"],(function(n){"use strict";var e,r,t,i,o,a,u,f,c,d,v,s,l;return{setters:[function(n){e=n.d},function(n){r=n.f;t=n.c;i=n.a;o=n.b;a=n.g},function(n){u=n.OVERLAY_BACK_BUTTON_PRIORITY;f=n.shouldUseCloseWatcher},function(n){c=n.b;d=n.c},function(n){v=n.C},function(n){s=n.B},function(n){l=n.p}],execute:function(){var h=this;var m='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])';var p=n("n",(function(n,e){var r=n.querySelector(m);w(r,e!==null&&e!==void 0?e:n)}));var y=n("q",(function(n,e){var r=Array.from(n.querySelectorAll(m));var t=r.length>0?r[r.length-1]:null;w(t,e!==null&&e!==void 0?e:n)}));var w=function(n,e){var t=n;var i=n===null||n===void 0?void 0:n.shadowRoot;if(i){t=i.querySelector(m)||n}if(t){r(t)}else{e.focus()}};var b=0;var _=0;var g=new WeakMap;var O=function(n){return{create:function(e){return P(n,e)},dismiss:function(e,r,t){return M(document,e,r,n,t)},getTop:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,V(document,n)]}))}))}}};var k=n("a",O("ion-alert"));var T=n("b",O("ion-action-sheet"));var A=n("l",O("ion-loading"));var x=n("m",O("ion-modal"));var j=n("p",O("ion-picker-legacy"));var S=n("c",O("ion-popover"));var I=n("t",O("ion-toast"));var N=n("j",(function(n){if(typeof document!=="undefined"){G(document)}var e=b++;n.overlayIndex=e}));var D=n("k",(function(n){if(!n.hasAttribute("id")){n.id="ion-overlay-".concat(++_)}return n.id}));var P=function(n,e){if(typeof window!=="undefined"&&typeof window.customElements!=="undefined"){return window.customElements.whenDefined(n).then((function(){var r=document.createElement(n);r.classList.add("overlay-hidden");Object.assign(r,Object.assign(Object.assign({},e),{hasController:true}));J(document).appendChild(r);return new Promise((function(n){return t(r,n)}))}))}return Promise.resolve()};var B=function(n){return n.classList.contains("overlay-hidden")};var C=function(n,e){var t=n;var i=n===null||n===void 0?void 0:n.shadowRoot;if(i){t=i.querySelector(m)||n}if(t){r(t)}else{e.focus()}};var E=function(n,e){var r=V(e,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover");var t=n.target;if(!r||!t){return}if(r.classList.contains(an)){return}var i=function(){if(r===t){r.lastFocus=undefined}else if(t.tagName==="ION-TOAST"){C(r.lastFocus,r)}else{var n=a(r);if(!n.contains(t)){return}var i=n.querySelector(".ion-overlay-wrapper");if(!i){return}if(i.contains(t)||t===n.querySelector("ion-backdrop")){r.lastFocus=t}else{var o=r.lastFocus;p(i,r);if(o===e.activeElement){y(i,r)}r.lastFocus=e.activeElement}}};var o=function(){if(r.contains(t)){r.lastFocus=t}else if(t.tagName==="ION-TOAST"){C(r.lastFocus,r)}else{var n=r.lastFocus;p(r);if(n===e.activeElement){y(r)}r.lastFocus=e.activeElement}};if(r.shadowRoot){o()}else{i()}};var G=function(n){if(b===0){b=1;n.addEventListener("focus",(function(e){E(e,n)}),true);n.addEventListener("ionBackButton",(function(e){var r=V(n);if(r===null||r===void 0?void 0:r.backdropDismiss){e.detail.register(u,(function(){r.dismiss(undefined,Z)}))}}));if(!f()){n.addEventListener("keydown",(function(e){if(e.key==="Escape"){var r=V(n);if(r===null||r===void 0?void 0:r.backdropDismiss){r.dismiss(undefined,Z)}}}))}}};var M=function(n,e,r,t,i){var o=V(n,t,i);if(!o){return Promise.reject("overlay does not exist")}return o.dismiss(e,r)};var F=function(n,e){if(e===undefined){e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"}return Array.from(n.querySelectorAll(e)).filter((function(n){return n.overlayIndex>0}))};var L=function(n,e){return F(n,e).filter((function(n){return!B(n)}))};var V=n("o",(function(n,e,r){var t=L(n,e);return r===undefined?t[t.length-1]:t.find((function(n){return n.id===r}))}));var q=function(n){if(n===void 0){n=false}var e=J(document);var r=e.querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");if(!r){return}if(n){r.setAttribute("aria-hidden","true")}else{r.removeAttribute("aria-hidden")}};var z=n("f",(function(n,e,r,t,i){return __awaiter(h,void 0,void 0,(function(){var o,a,u,f,v;return __generator(this,(function(l){switch(l.label){case 0:if(n.presented){return[2]}if(n.el.tagName!=="ION-TOAST"){q(true)}document.body.classList.add(s);tn(n.el);n.presented=true;n.willPresent.emit();(o=n.willPresentShorthand)===null||o===void 0?void 0:o.emit();u=c(n);f=n.enterAnimation?n.enterAnimation:d.get(e,u==="ios"?r:t);return[4,K(n,f,n.el,i)];case 1:v=l.sent();if(v){n.didPresent.emit();(a=n.didPresentShorthand)===null||a===void 0?void 0:a.emit()}if(n.el.tagName!=="ION-TOAST"){W(n.el)}if(n.keyboardClose&&(document.activeElement===null||!n.el.contains(document.activeElement))){n.el.focus()}n.el.removeAttribute("aria-hidden");return[2]}}))}))}));var W=function(n){return __awaiter(h,void 0,void 0,(function(){var e,r;return __generator(this,(function(t){switch(t.label){case 0:e=document.activeElement;if(!e){return[2]}r=e===null||e===void 0?void 0:e.shadowRoot;if(r){e=r.querySelector(m)||e}return[4,n.onDidDismiss()];case 1:t.sent();if(document.activeElement===null||document.activeElement===document.body){e.focus()}return[2]}}))}))};var H=n("g",(function(n,r,t,i,o,a,u){return __awaiter(h,void 0,void 0,(function(){var f,v,l,h,m,p,y,w;return __generator(this,(function(b){switch(b.label){case 0:if(!n.presented){return[2,false]}l=e!==undefined?L(e).filter((function(n){return n.tagName!=="ION-TOAST"})):[];h=l.length===1&&l[0].id===n.el.id;if(h){q(false);document.body.classList.remove(s)}n.presented=false;b.label=1;case 1:b.trys.push([1,4,,5]);n.el.style.setProperty("pointer-events","none");n.willDismiss.emit({data:r,role:t});(f=n.willDismissShorthand)===null||f===void 0?void 0:f.emit({data:r,role:t});m=c(n);p=n.leaveAnimation?n.leaveAnimation:d.get(i,m==="ios"?o:a);if(!(t!==$))return[3,3];return[4,K(n,p,n.el,u)];case 2:b.sent();b.label=3;case 3:n.didDismiss.emit({data:r,role:t});(v=n.didDismissShorthand)===null||v===void 0?void 0:v.emit({data:r,role:t});y=g.get(n)||[];y.forEach((function(n){return n.destroy()}));g.delete(n);n.el.classList.add("overlay-hidden");n.el.style.removeProperty("pointer-events");if(n.el.lastFocus!==undefined){n.el.lastFocus=undefined}return[3,5];case 4:w=b.sent();console.error(w);return[3,5];case 5:n.el.remove();on();return[2,true]}}))}))}));var J=function(n){return n.querySelector("ion-app")||n.body};var K=function(n,e,r,t){return __awaiter(h,void 0,void 0,(function(){var i,o,a;return __generator(this,(function(u){switch(u.label){case 0:r.classList.remove("overlay-hidden");i=n.el;o=e(i,t);if(!n.animated||!d.getBoolean("animated",true)){o.duration(0)}if(n.keyboardClose){o.beforeAddWrite((function(){var n=r.ownerDocument.activeElement;if(n===null||n===void 0?void 0:n.matches("input,ion-input, ion-textarea")){n.blur()}}))}a=g.get(n)||[];g.set(n,__spreadArray(__spreadArray([],a,true),[o],false));return[4,o.play()];case 1:u.sent();return[2,true]}}))}))};var Q=n("h",(function(n,e){var r;var t=new Promise((function(n){return r=n}));R(n,e,(function(n){r(n.detail)}));return t}));var R=function(n,e,r){var t=function(i){o(n,e,t);r(i)};i(n,e,t)};var U=n("i",(function(n){return n==="cancel"||n===Z}));var X=function(n){return n()};var Y=n("s",(function(n,e){if(typeof n==="function"){var r=d.get("_zoneGate",X);return r((function(){try{return n(e)}catch(n){throw n}}))}return undefined}));var Z=n("B","backdrop");var $=n("G","gesture");var nn=n("O",39);var en=n("d",(function(n){var e=false;var r;var t=v();var i=function(i){if(i===void 0){i=false}if(r&&!i){return{delegate:r,inline:e}}var o=n.el,a=n.hasController,u=n.delegate;var f=o.parentNode;e=f!==null&&!a;r=e?u||t:u;return{inline:e,delegate:r}};var o=function(e){return __awaiter(h,void 0,void 0,(function(){var r,t;return __generator(this,(function(o){switch(o.label){case 0:r=i(true).delegate;if(!r)return[3,2];return[4,r.attachViewToDom(n.el,e)];case 1:return[2,o.sent()];case 2:t=n.hasController;if(t&&e!==undefined){throw new Error("framework delegate is missing")}return[2,null]}}))}))};var a=function(){var e=i().delegate;if(e&&n.el!==undefined){e.removeViewFromDom(n.el.parentElement,n.el)}};return{attachViewToDom:o,removeViewFromDom:a}}));var rn=n("e",(function(){var n;var e=function(){if(n){n();n=undefined}};var r=function(r,t){e();var i=t!==undefined?document.getElementById(t):null;if(!i){l('A trigger element with the ID "'.concat(t,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.'),r);return}var o=function(n,e){var r=function(){e.present()};n.addEventListener("click",r);return function(){n.removeEventListener("click",r)}};n=o(i,r)};return{addClickListener:r,removeClickListener:e}}));var tn=function(n){var r;if(e===undefined)return;var t=L(e);for(var i=t.length-1;i>=0;i--){var o=t[i];var a=(r=t[i+1])!==null&&r!==void 0?r:n;if(a.hasAttribute("aria-hidden")||a.tagName!=="ION-TOAST"){o.setAttribute("aria-hidden","true")}}};var on=function(){if(e===undefined)return;var n=L(e);for(var r=n.length-1;r>=0;r--){var t=n[r];t.removeAttribute("aria-hidden");if(t.tagName!=="ION-TOAST"){break}}};var an=n("F","ion-disable-focus-trap")}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import{d as e}from"./p-7b30edcc.js";import{f as n,c as o,a as t,b as i,g as a}from"./p-b51e4004.js";import{OVERLAY_BACK_BUTTON_PRIORITY as r,shouldUseCloseWatcher as s}from"./p-ecceeb90.js";import{b as d,c as l}from"./p-0574e87e.js";import{C as c}from"./p-3cc276f4.js";import{B as u}from"./p-9b97df10.js";import{p as m}from"./p-06fee233.js";const p='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',v=(e,n)=>{const o=e.querySelector(p);h(o,null!=n?n:e)},f=(e,n)=>{const o=Array.from(e.querySelectorAll(p));h(o.length>0?o[o.length-1]:null,null!=n?n:e)},h=(e,o)=>{let t=e;const i=null==e?void 0:e.shadowRoot;i&&(t=i.querySelector(p)||e),t?n(t):o.focus()};let b=0,y=0;const w=new WeakMap,g=e=>({create:n=>C(e,n),dismiss:(n,o,t)=>P(document,n,o,e,t),getTop:async()=>E(document,e)}),O=g("ion-alert"),T=g("ion-action-sheet"),k=g("ion-loading"),x=g("ion-modal"),j=g("ion-picker-legacy"),A=g("ion-popover"),I=g("ion-toast"),N=e=>{"undefined"!=typeof document&&B(document);const n=b++;e.overlayIndex=n},S=e=>(e.hasAttribute("id")||(e.id="ion-overlay-"+ ++y),e.id),C=(e,n)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(e).then((()=>{const t=document.createElement(e);return t.classList.add("overlay-hidden"),Object.assign(t,Object.assign(Object.assign({},n),{hasController:!0})),q(document).appendChild(t),new Promise((e=>o(t,e)))})):Promise.resolve(),D=(e,o)=>{let t=e;const i=null==e?void 0:e.shadowRoot;i&&(t=i.querySelector(p)||e),t?n(t):o.focus()},B=e=>{0===b&&(b=1,e.addEventListener("focus",(n=>{((e,n)=>{const o=E(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=e.target;o&&t&&(o.classList.contains(ee)||(o.shadowRoot?(()=>{if(o.contains(t))o.lastFocus=t;else if("ION-TOAST"===t.tagName)D(o.lastFocus,o);else{const e=o.lastFocus;v(o),e===n.activeElement&&f(o),o.lastFocus=n.activeElement}})():(()=>{if(o===t)o.lastFocus=void 0;else if("ION-TOAST"===t.tagName)D(o.lastFocus,o);else{const e=a(o);if(!e.contains(t))return;const i=e.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(t)||t===e.querySelector("ion-backdrop"))o.lastFocus=t;else{const e=o.lastFocus;v(i,o),e===n.activeElement&&f(i,o),o.lastFocus=n.activeElement}}})()))})(n,e)}),!0),e.addEventListener("ionBackButton",(n=>{const o=E(e);(null==o?void 0:o.backdropDismiss)&&n.detail.register(r,(()=>{o.dismiss(void 0,K)}))})),s()||e.addEventListener("keydown",(n=>{if("Escape"===n.key){const n=E(e);(null==n?void 0:n.backdropDismiss)&&n.dismiss(void 0,K)}})))},P=(e,n,o,t,i)=>{const a=E(e,t,i);return a?a.dismiss(n,o):Promise.reject("overlay does not exist")},M=(e,n)=>((e,n)=>(void 0===n&&(n="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(e.querySelectorAll(n)).filter((e=>e.overlayIndex>0))))(e,n).filter((e=>!e.classList.contains("overlay-hidden"))),E=(e,n,o)=>{const t=M(e,n);return void 0===o?t[t.length-1]:t.find((e=>e.id===o))},F=(e=!1)=>{const n=q(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},G=async(e,n,o,t,i)=>{var a,r;if(e.presented)return;"ION-TOAST"!==e.el.tagName&&F(!0),document.body.classList.add(u),Y(e.el),e.presented=!0,e.willPresent.emit(),null===(a=e.willPresentShorthand)||void 0===a||a.emit();const s=d(e),c=e.enterAnimation?e.enterAnimation:l.get(n,"ios"===s?o:t);await z(e,c,e.el,i)&&(e.didPresent.emit(),null===(r=e.didPresentShorthand)||void 0===r||r.emit()),"ION-TOAST"!==e.el.tagName&&L(e.el),!e.keyboardClose||null!==document.activeElement&&e.el.contains(document.activeElement)||e.el.focus(),e.el.removeAttribute("aria-hidden")},L=async e=>{let n=document.activeElement;if(!n)return;const o=null==n?void 0:n.shadowRoot;o&&(n=o.querySelector(p)||n),await e.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||n.focus()},V=async(n,o,t,i,a,r,s)=>{var c,m;if(!n.presented)return!1;const p=void 0!==e?M(e).filter((e=>"ION-TOAST"!==e.tagName)):[];1===p.length&&p[0].id===n.el.id&&(F(!1),document.body.classList.remove(u)),n.presented=!1;try{n.el.style.setProperty("pointer-events","none"),n.willDismiss.emit({data:o,role:t}),null===(c=n.willDismissShorthand)||void 0===c||c.emit({data:o,role:t});const e=d(n),u=n.leaveAnimation?n.leaveAnimation:l.get(i,"ios"===e?a:r);t!==Q&&await z(n,u,n.el,s),n.didDismiss.emit({data:o,role:t}),null===(m=n.didDismissShorthand)||void 0===m||m.emit({data:o,role:t}),(w.get(n)||[]).forEach((e=>e.destroy())),w.delete(n),n.el.classList.add("overlay-hidden"),n.el.style.removeProperty("pointer-events"),void 0!==n.el.lastFocus&&(n.el.lastFocus=void 0)}catch(e){console.error(e)}return n.el.remove(),Z(),!0},q=e=>e.querySelector("ion-app")||e.body,z=async(e,n,o,t)=>{o.classList.remove("overlay-hidden");const i=n(e.el,t);e.animated&&l.getBoolean("animated",!0)||i.duration(0),e.keyboardClose&&i.beforeAddWrite((()=>{const e=o.ownerDocument.activeElement;(null==e?void 0:e.matches("input,ion-input, ion-textarea"))&&e.blur()}));const a=w.get(e)||[];return w.set(e,[...a,i]),await i.play(),!0},W=(e,n)=>{let o;const t=new Promise((e=>o=e));return $(e,n,(e=>{o(e.detail)})),t},$=(e,n,o)=>{const a=t=>{i(e,n,a),o(t)};t(e,n,a)},_=e=>"cancel"===e||e===K,H=e=>e(),J=(e,n)=>{if("function"==typeof e)return l.get("_zoneGate",H)((()=>{try{return e(n)}catch(e){throw e}}))},K="backdrop",Q="gesture",R=39,U=e=>{let n,o=!1;const t=c(),i=(i=!1)=>{if(n&&!i)return{delegate:n,inline:o};const{el:a,hasController:r,delegate:s}=e;return o=null!==a.parentNode&&!r,n=o?s||t:s,{inline:o,delegate:n}};return{attachViewToDom:async n=>{const{delegate:o}=i(!0);if(o)return await o.attachViewToDom(e.el,n);const{hasController:t}=e;if(t&&void 0!==n)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:n}=i();n&&void 0!==e.el&&n.removeViewFromDom(e.el.parentElement,e.el)}}},X=()=>{let e;const n=()=>{e&&(e(),e=void 0)};return{addClickListener:(o,t)=>{n();const i=void 0!==t?document.getElementById(t):null;i?e=((e,n)=>{const o=()=>{n.present()};return e.addEventListener("click",o),()=>{e.removeEventListener("click",o)}})(i,o):m(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,o)},removeClickListener:n}},Y=n=>{var o;if(void 0===e)return;const t=M(e);for(let e=t.length-1;e>=0;e--){const i=t[e],a=null!==(o=t[e+1])&&void 0!==o?o:n;(a.hasAttribute("aria-hidden")||"ION-TOAST"!==a.tagName)&&i.setAttribute("aria-hidden","true")}},Z=()=>{if(void 0===e)return;const n=M(e);for(let e=n.length-1;e>=0;e--){const o=n[e];if(o.removeAttribute("aria-hidden"),"ION-TOAST"!==o.tagName)break}},ee="ion-disable-focus-trap";export{K as B,ee as F,Q as G,R as O,O as a,T as b,A as c,U as d,X as e,G as f,V as g,W as h,_ as i,N as j,S as k,k as l,x as m,v as n,E as o,j as p,f as q,J as s,I as t}