@ionic/core 7.3.2-dev.11693262117.17edbf6d → 7.3.2-dev.11693321763.15a54694

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 (125) hide show
  1. package/components/action-sheet.js +17 -8
  2. package/components/alert.js +17 -8
  3. package/components/framework-delegate.js +21 -2
  4. package/components/ion-loading.js +17 -8
  5. package/components/ion-menu.js +1 -1
  6. package/components/ion-modal.js +34 -13
  7. package/components/ion-picker.js +17 -8
  8. package/components/ion-toast.js +17 -8
  9. package/components/overlays.js +1 -22
  10. package/components/popover.js +30 -9
  11. package/dist/cjs/{framework-delegate-e8174951.js → framework-delegate-c0873a6f.js} +21 -2
  12. package/dist/cjs/index.cjs.js +2 -2
  13. package/dist/cjs/ion-action-sheet.cjs.entry.js +18 -9
  14. package/dist/cjs/ion-alert.cjs.entry.js +18 -9
  15. package/dist/cjs/ion-app_8.cjs.entry.js +1 -1
  16. package/dist/cjs/ion-datetime_3.cjs.entry.js +18 -9
  17. package/dist/cjs/ion-loading.cjs.entry.js +18 -9
  18. package/dist/cjs/ion-menu_3.cjs.entry.js +2 -2
  19. package/dist/cjs/ion-modal.cjs.entry.js +35 -14
  20. package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ion-popover.cjs.entry.js +31 -10
  22. package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
  23. package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
  24. package/dist/cjs/ion-toast.cjs.entry.js +18 -9
  25. package/dist/cjs/{overlays-2b9fa92e.js → overlays-5c1706ed.js} +1 -23
  26. package/dist/collection/components/action-sheet/action-sheet.js +17 -8
  27. package/dist/collection/components/alert/alert.js +17 -8
  28. package/dist/collection/components/loading/loading.js +17 -8
  29. package/dist/collection/components/modal/modal.js +34 -13
  30. package/dist/collection/components/picker/picker.js +17 -8
  31. package/dist/collection/components/popover/popover.js +30 -9
  32. package/dist/collection/components/popover/test/async/popover.e2e.js +20 -0
  33. package/dist/collection/components/toast/toast.js +17 -8
  34. package/dist/collection/utils/framework-delegate.js +21 -2
  35. package/dist/collection/utils/overlays.js +0 -21
  36. package/dist/docs.json +1 -1
  37. package/dist/esm/{framework-delegate-2b76c681.js → framework-delegate-aa433dea.js} +21 -2
  38. package/dist/esm/index.js +2 -2
  39. package/dist/esm/ion-action-sheet.entry.js +18 -9
  40. package/dist/esm/ion-alert.entry.js +18 -9
  41. package/dist/esm/ion-app_8.entry.js +1 -1
  42. package/dist/esm/ion-datetime_3.entry.js +18 -9
  43. package/dist/esm/ion-loading.entry.js +18 -9
  44. package/dist/esm/ion-menu_3.entry.js +2 -2
  45. package/dist/esm/ion-modal.entry.js +35 -14
  46. package/dist/esm/ion-nav_2.entry.js +1 -1
  47. package/dist/esm/ion-popover.entry.js +31 -10
  48. package/dist/esm/ion-select_3.entry.js +2 -2
  49. package/dist/esm/ion-tab_2.entry.js +1 -1
  50. package/dist/esm/ion-toast.entry.js +18 -9
  51. package/dist/esm/{overlays-66222f79.js → overlays-e1dadfe6.js} +2 -23
  52. package/dist/esm-es5/framework-delegate-aa433dea.js +4 -0
  53. package/dist/esm-es5/index.js +1 -1
  54. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  55. package/dist/esm-es5/ion-alert.entry.js +1 -1
  56. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  57. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  58. package/dist/esm-es5/ion-loading.entry.js +1 -1
  59. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  60. package/dist/esm-es5/ion-modal.entry.js +1 -1
  61. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  62. package/dist/esm-es5/ion-popover.entry.js +1 -1
  63. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  64. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  65. package/dist/esm-es5/ion-toast.entry.js +1 -1
  66. package/dist/esm-es5/{overlays-66222f79.js → overlays-e1dadfe6.js} +1 -1
  67. package/dist/ionic/index.esm.js +1 -1
  68. package/dist/ionic/ionic.esm.js +1 -1
  69. package/dist/ionic/{p-9888a5a7.entry.js → p-091cd81e.entry.js} +1 -1
  70. package/dist/ionic/{p-d1356034.system.entry.js → p-0b68c41d.system.entry.js} +1 -1
  71. package/dist/ionic/{p-b2098e96.system.entry.js → p-28f5715a.system.entry.js} +1 -1
  72. package/dist/ionic/p-2bff71d5.system.entry.js +4 -0
  73. package/dist/ionic/p-3565c8a0.entry.js +4 -0
  74. package/dist/ionic/{p-8074bdd7.system.entry.js → p-45ee211b.system.entry.js} +1 -1
  75. package/dist/ionic/p-51669f1e.system.entry.js +4 -0
  76. package/dist/ionic/p-582dc7c1.js +4 -0
  77. package/dist/ionic/{p-7776d062.entry.js → p-5c17f888.entry.js} +1 -1
  78. package/dist/ionic/{p-8d9475b5.system.js → p-613d4042.system.js} +1 -1
  79. package/dist/ionic/p-721933ff.system.js +1 -1
  80. package/dist/ionic/p-79e3f0b6.entry.js +4 -0
  81. package/dist/ionic/p-7c9dd24d.entry.js +4 -0
  82. package/dist/ionic/p-84a95033.system.entry.js +4 -0
  83. package/dist/ionic/{p-a0ffdd91.system.js → p-8843b046.system.js} +1 -1
  84. package/dist/ionic/{p-229df0d8.entry.js → p-98ebc376.entry.js} +1 -1
  85. package/dist/ionic/p-b287ab05.js +4 -0
  86. package/dist/ionic/{p-f8e4da48.system.js → p-b32742f3.system.js} +1 -1
  87. package/dist/ionic/p-b3a58769.entry.js +4 -0
  88. package/dist/ionic/p-b54a1fcb.system.entry.js +4 -0
  89. package/dist/ionic/{p-20087c90.entry.js → p-c759a704.entry.js} +1 -1
  90. package/dist/ionic/{p-6b9bf14c.system.entry.js → p-d1d3b740.system.entry.js} +1 -1
  91. package/dist/ionic/{p-0494a5b7.system.entry.js → p-d693e765.system.entry.js} +1 -1
  92. package/dist/ionic/p-d9eb4632.system.entry.js +4 -0
  93. package/dist/ionic/p-dab7745f.system.entry.js +4 -0
  94. package/dist/ionic/p-e44233f5.entry.js +4 -0
  95. package/dist/ionic/p-f2c667c9.system.entry.js +4 -0
  96. package/dist/ionic/p-f789b7fa.entry.js +4 -0
  97. package/dist/ionic/{p-5c96dc4e.entry.js → p-f7faa32d.entry.js} +1 -1
  98. package/dist/ionic/p-f9708a54.entry.js +4 -0
  99. package/dist/types/components/action-sheet/action-sheet.d.ts +1 -1
  100. package/dist/types/components/alert/alert.d.ts +1 -1
  101. package/dist/types/components/loading/loading.d.ts +1 -1
  102. package/dist/types/components/modal/modal.d.ts +1 -1
  103. package/dist/types/components/picker/picker.d.ts +1 -1
  104. package/dist/types/components/popover/popover.d.ts +1 -1
  105. package/dist/types/components/toast/toast.d.ts +1 -1
  106. package/dist/types/utils/overlays.d.ts +0 -9
  107. package/hydrate/index.js +163 -78
  108. package/package.json +1 -1
  109. package/dist/esm-es5/framework-delegate-2b76c681.js +0 -4
  110. package/dist/ionic/p-16fd72f2.entry.js +0 -4
  111. package/dist/ionic/p-1c9e3bc7.entry.js +0 -4
  112. package/dist/ionic/p-2a51c81c.entry.js +0 -4
  113. package/dist/ionic/p-2a649b3e.system.entry.js +0 -4
  114. package/dist/ionic/p-3ef9e271.system.entry.js +0 -4
  115. package/dist/ionic/p-6d484719.system.entry.js +0 -4
  116. package/dist/ionic/p-70d137a0.js +0 -4
  117. package/dist/ionic/p-7ac9bdfa.system.entry.js +0 -4
  118. package/dist/ionic/p-8d53d5a5.entry.js +0 -4
  119. package/dist/ionic/p-a133c215.system.entry.js +0 -4
  120. package/dist/ionic/p-b34c1ae1.js +0 -4
  121. package/dist/ionic/p-c0b4ca5c.system.entry.js +0 -4
  122. package/dist/ionic/p-cf768a4f.entry.js +0 -4
  123. package/dist/ionic/p-ddffbfa9.entry.js +0 -4
  124. package/dist/ionic/p-e2e2c2b0.entry.js +0 -4
  125. package/dist/ionic/p-ebb442c4.system.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- System.register(["./p-6b2641f6.system.js","./p-69303bb5.system.js","./p-e3d5608d.system.js","./p-c4f2dce7.system.js","./p-fa8d4788.system.js","./p-7b16490a.system.js","./p-815c2fba.system.js","./p-2b89ea1b.system.js","./p-df6743df.system.js","./p-81597423.system.js","./p-f8e4da48.system.js","./p-0e94957a.system.js","./p-9e852ff1.system.js","./p-5b553dc0.system.js","./p-8c15eda7.system.js","./p-8d9475b5.system.js","./p-479cdbf8.system.js"],(function(e){"use strict";return{setters:[function(t){e("createAnimation",t.c)},function(t){e("iosTransitionAnimation",t.iosTransitionAnimation)},function(t){e("mdTransitionAnimation",t.mdTransitionAnimation)},function(t){e("getTimeGivenProgression",t.g)},function(t){e("createGesture",t.createGesture)},function(t){var s={};s.getPlatforms=t.g;s.initialize=t.i;s.isPlatform=t.a;e(s)},function(t){e("componentOnReady",t.c)},function(t){var s={};s.IonicSafeString=t.I;s.getMode=t.g;s.setupConfig=t.s;e(s)},function(t){var s={};s.LIFECYCLE_DID_ENTER=t.a;s.LIFECYCLE_DID_LEAVE=t.c;s.LIFECYCLE_WILL_ENTER=t.L;s.LIFECYCLE_WILL_LEAVE=t.b;s.LIFECYCLE_WILL_UNLOAD=t.d;e(s)},function(t){e("menuController",t.m)},function(t){var s={};s.actionSheetController=t.b;s.alertController=t.a;s.loadingController=t.l;s.modalController=t.m;s.pickerController=t.p;s.popoverController=t.c;s.toastController=t.t;e(s)},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var t=e("IonicSlides",(function(e){var t=e.swiper,s=e.extendParams;var i={effect:undefined,direction:"horizontal",initialSlide:0,loop:false,parallax:false,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:false,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:false,freeModeMomentum:true,freeModeMomentumRatio:1,freeModeMomentumBounce:true,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:false,freeModeMinimumVelocity:.02,autoHeight:false,setWrapperSize:false,zoom:{maxRatio:3,minRatio:1,toggle:false},touchRatio:1,touchAngle:45,simulateTouch:true,touchStartPreventDefault:false,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,threshold:0,touchMoveStopPropagation:true,touchReleaseOnEdges:false,iOSEdgeSwipeDetection:false,iOSEdgeSwipeThreshold:20,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,watchSlidesVisibility:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loopAdditionalSlides:0,noSwiping:true,runCallbacksOnInit:true,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true},flipEffect:{slideShadows:true,limitRotation:true},cubeEffect:{slideShadows:true,shadow:true,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:false},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};if(t.pagination){i.pagination={type:"bullets",clickable:false,hideOnClick:false}}if(t.scrollbar){i.scrollbar={hide:true}}s(i)}))}}}));
4
+ System.register(["./p-6b2641f6.system.js","./p-69303bb5.system.js","./p-e3d5608d.system.js","./p-c4f2dce7.system.js","./p-fa8d4788.system.js","./p-7b16490a.system.js","./p-815c2fba.system.js","./p-2b89ea1b.system.js","./p-df6743df.system.js","./p-81597423.system.js","./p-b32742f3.system.js","./p-0e94957a.system.js","./p-9e852ff1.system.js","./p-5b553dc0.system.js","./p-8c15eda7.system.js","./p-613d4042.system.js","./p-479cdbf8.system.js"],(function(e){"use strict";return{setters:[function(t){e("createAnimation",t.c)},function(t){e("iosTransitionAnimation",t.iosTransitionAnimation)},function(t){e("mdTransitionAnimation",t.mdTransitionAnimation)},function(t){e("getTimeGivenProgression",t.g)},function(t){e("createGesture",t.createGesture)},function(t){var s={};s.getPlatforms=t.g;s.initialize=t.i;s.isPlatform=t.a;e(s)},function(t){e("componentOnReady",t.c)},function(t){var s={};s.IonicSafeString=t.I;s.getMode=t.g;s.setupConfig=t.s;e(s)},function(t){var s={};s.LIFECYCLE_DID_ENTER=t.a;s.LIFECYCLE_DID_LEAVE=t.c;s.LIFECYCLE_WILL_ENTER=t.L;s.LIFECYCLE_WILL_LEAVE=t.b;s.LIFECYCLE_WILL_UNLOAD=t.d;e(s)},function(t){e("menuController",t.m)},function(t){var s={};s.actionSheetController=t.b;s.alertController=t.a;s.loadingController=t.l;s.modalController=t.m;s.pickerController=t.p;s.popoverController=t.c;s.toastController=t.t;e(s)},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var t=e("IonicSlides",(function(e){var t=e.swiper,s=e.extendParams;var i={effect:undefined,direction:"horizontal",initialSlide:0,loop:false,parallax:false,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:false,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:false,freeModeMomentum:true,freeModeMomentumRatio:1,freeModeMomentumBounce:true,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:false,freeModeMinimumVelocity:.02,autoHeight:false,setWrapperSize:false,zoom:{maxRatio:3,minRatio:1,toggle:false},touchRatio:1,touchAngle:45,simulateTouch:true,touchStartPreventDefault:false,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,threshold:0,touchMoveStopPropagation:true,touchReleaseOnEdges:false,iOSEdgeSwipeDetection:false,iOSEdgeSwipeThreshold:20,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,watchSlidesVisibility:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loopAdditionalSlides:0,noSwiping:true,runCallbacksOnInit:true,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true},flipEffect:{slideShadows:true,limitRotation:true},cubeEffect:{slideShadows:true,shadow:true,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:false},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};if(t.pagination){i.pagination={type:"bullets",clickable:false,hideOnClick:false}}if(t.scrollbar){i.scrollbar={hide:true}}s(i)}))}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as t,d as i,h as s,f as e,H as o}from"./p-156967ec.js";import{g as n}from"./p-7c2bac85.js";import{o as r,s as a}from"./p-63eb0acd.js";import{l as h,t as c,s as d,d as l,b as u,c as v}from"./p-a62c0ff4.js";import{b as f,c as m}from"./p-b22ee0dc.js";import{a as p}from"./p-b34c1ae1.js";class w{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await p(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){r(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const b=(t,i,s)=>!!t&&t.component===i&&a(t.params,s),g=(t,i)=>t?t instanceof w?t:new w(t,i):null,y=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=f(this);this.swipeGesture=m.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-df7357c5.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)h(t.element,l),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,o){return this.insertPages(t,[{component:i,componentProps:s}],e,o)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const o=this.getActiveSync();if(b(o,t,i))return Promise.resolve({changed:!1,element:o.element});let n;const r=new Promise((t=>n=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return n({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const o=this.views.find((s=>b(s,t,i)));o?a=this.popTo(o,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const o=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),o}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let o;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),o=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(o,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const o=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){r(void 0!==t.removeStart,"removeView needs removeStart"),r(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=o-1),t.removeCount<0&&(t.removeCount=o-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===o),t.insertViews&&((t.insertStart<0||t.insertStart>o)&&(t.insertStart=o),t.enteringRequiresTransition=t.insertStart===o);const n=t.insertViews;if(!n)return;r(n.length>0,"length can not be zero");const a=n.map((t=>t instanceof w?t:"component"in t?g(t.component,null===t.componentProps?void 0:t.componentProps):g(t,void 0))).filter((t=>null!==t));if(0===a.length)throw new Error("invalid views to insert");for(const i of a){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,o=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const n=s[t];if((t<e||t>=o)&&n!==i)return n}}}postViewInit(t,i,s){var e,o,n;r(i||t,"Both leavingView and enteringView are null"),r(s.resolve,"resolve must be valid"),r(s.reject,"reject must be valid");const a=s.opts,{insertViews:c,removeStart:d,removeCount:f}=s;let m;if(void 0!==d&&void 0!==f){r(d>=0,"removeStart can not be negative"),r(f>=0,"removeCount can not be negative"),m=[];for(let s=d;s<d+f;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&m.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==c?void 0:c.length)&&void 0!==o?o:0)-(null!=f?f:0);if(r(p>=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(c){let t=s.insertStart;for(const i of c)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(m&&m.length>0){for(const t of m)h(t.element,u),h(t.element,v),h(t.element,l);for(const t of m)this.destroyView(t)}}async transition(t,i,s){const e=s.opts,o=e.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,n=f(this),r=t.element,a=i&&i.element,h=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&m.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||m.get("navAnimation")}),{hasCompleted:d}=await c(h);return this.transitionFinish(d,t,i,e)}transitionFinish(t,i,s,e){const o=t?i:s;return o&&this.unmountInactiveViews(o),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(r(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(r(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){r(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);r(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],o=e.element;o&&(t>s?(h(o,l),this.destroyView(e)):t<s&&d(o,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=n([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=n([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return s("slot",null)}get el(){return e(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};y.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";const k=class{constructor(i){t(this,i),this.onClick=()=>((t,i,s,e,o)=>{const n=this.el.closest("ion-nav");if(n)if("forward"===i){if(void 0!==s)return n.push(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("root"===i){if(void 0!==s)return n.setRoot(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("back"===i)return n.pop({skipIfBusy:!0,animationBuilder:o});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return s(o,{onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
4
+ import{r as t,d as i,h as s,f as e,H as o}from"./p-156967ec.js";import{g as n}from"./p-7c2bac85.js";import{o as r,s as a}from"./p-63eb0acd.js";import{l as h,t as c,s as d,d as l,b as u,c as v}from"./p-a62c0ff4.js";import{b as f,c as m}from"./p-b22ee0dc.js";import{a as p}from"./p-b287ab05.js";class w{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await p(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){r(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const b=(t,i,s)=>!!t&&t.component===i&&a(t.params,s),g=(t,i)=>t?t instanceof w?t:new w(t,i):null,y=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=f(this);this.swipeGesture=m.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-df7357c5.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)h(t.element,l),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,o){return this.insertPages(t,[{component:i,componentProps:s}],e,o)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const o=this.getActiveSync();if(b(o,t,i))return Promise.resolve({changed:!1,element:o.element});let n;const r=new Promise((t=>n=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return n({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const o=this.views.find((s=>b(s,t,i)));o?a=this.popTo(o,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const o=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),o}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let o;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),o=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(o,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const o=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){r(void 0!==t.removeStart,"removeView needs removeStart"),r(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=o-1),t.removeCount<0&&(t.removeCount=o-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===o),t.insertViews&&((t.insertStart<0||t.insertStart>o)&&(t.insertStart=o),t.enteringRequiresTransition=t.insertStart===o);const n=t.insertViews;if(!n)return;r(n.length>0,"length can not be zero");const a=n.map((t=>t instanceof w?t:"component"in t?g(t.component,null===t.componentProps?void 0:t.componentProps):g(t,void 0))).filter((t=>null!==t));if(0===a.length)throw new Error("invalid views to insert");for(const i of a){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,o=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const n=s[t];if((t<e||t>=o)&&n!==i)return n}}}postViewInit(t,i,s){var e,o,n;r(i||t,"Both leavingView and enteringView are null"),r(s.resolve,"resolve must be valid"),r(s.reject,"reject must be valid");const a=s.opts,{insertViews:c,removeStart:d,removeCount:f}=s;let m;if(void 0!==d&&void 0!==f){r(d>=0,"removeStart can not be negative"),r(f>=0,"removeCount can not be negative"),m=[];for(let s=d;s<d+f;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&m.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==c?void 0:c.length)&&void 0!==o?o:0)-(null!=f?f:0);if(r(p>=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(c){let t=s.insertStart;for(const i of c)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(m&&m.length>0){for(const t of m)h(t.element,u),h(t.element,v),h(t.element,l);for(const t of m)this.destroyView(t)}}async transition(t,i,s){const e=s.opts,o=e.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,n=f(this),r=t.element,a=i&&i.element,h=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&m.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||m.get("navAnimation")}),{hasCompleted:d}=await c(h);return this.transitionFinish(d,t,i,e)}transitionFinish(t,i,s,e){const o=t?i:s;return o&&this.unmountInactiveViews(o),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(r(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(r(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){r(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);r(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],o=e.element;o&&(t>s?(h(o,l),this.destroyView(e)):t<s&&d(o,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=n([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=n([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return s("slot",null)}get el(){return e(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};y.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";const k=class{constructor(i){t(this,i),this.onClick=()=>((t,i,s,e,o)=>{const n=this.el.closest("ion-nav");if(n)if("forward"===i){if(void 0!==s)return n.push(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("root"===i){if(void 0!==s)return n.setRoot(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("back"===i)return n.pop({skipIfBusy:!0,animationBuilder:o});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return s(o,{onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{c as e}from"./p-63eb0acd.js";const o=async(o,t,i,n,r,s)=>{var a;if(o)return o.attachViewToDom(t,i,r,n);if(!(s||"string"==typeof i||i instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof i?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(i):i;return n&&n.forEach((e=>c.classList.add(e))),r&&Object.assign(c,r),t.appendChild(c),await new Promise((o=>e(c,o))),c},t=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let o,t;return{attachViewToDom:async(i,n,r={},s=[])=>{var a,c;let l;if(o=i,n){const t="string"==typeof n?null===(a=o.ownerDocument)||void 0===a?void 0:a.createElement(n):n;s.forEach((e=>t.classList.add(e))),Object.assign(t,r),o.appendChild(t),l=t,await new Promise((o=>e(t,o)))}else if(o.children.length>0&&("ION-MODAL"===o.tagName||"ION-POPOVER"===o.tagName)&&!(l=o.children[0]).classList.contains("ion-delegate-host")){const e=null===(c=o.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),s.forEach((o=>e.classList.add(o))),e.append(...o.children),o.appendChild(e),l=e}const m=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),o.parentNode.insertBefore(t,o),m.appendChild(o),null!=l?l:o},removeViewFromDom:()=>(o&&t&&(t.parentNode.insertBefore(o,t),t.remove()),Promise.resolve())}};export{i as C,o as a,t as d}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?t(e.value):i(e.value).then(a,u)}s((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,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(e){return function(n){return s([e,n])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(t=0)),t)try{if(r=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:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1];o=u;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(u);break}if(o[2])t.ops.pop();t.trys.pop();continue}u=n.call(e,t)}catch(e){u=[6,e];i=0}finally{r=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(e,n,t){if(t||arguments.length===2)for(var r=0,i=n.length,o;r<i;r++){if(o||!(r in n)){if(!o)o=Array.prototype.slice.call(n,0,r);o[r]=n[r]}}return e.concat(o||Array.prototype.slice.call(n))};
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */System.register(["./p-7b16490a.system.js","./p-8d9475b5.system.js","./p-8c15eda7.system.js","./p-815c2fba.system.js","./p-479cdbf8.system.js"],(function(e){"use strict";var n,t,r,i,o,a,u,s,l,c;return{setters:[function(e){n=e.b;t=e.c},function(e){r=e.C},function(e){i=e.OVERLAY_BACK_BUTTON_PRIORITY},function(e){o=e.c;a=e.f;u=e.a;s=e.b;l=e.g},function(e){c=e.p}],execute:function(){var d=this;var f=0;var v=0;var m=e("o",new WeakMap);var h=function(e){return{create:function(n){return x(e,n)},dismiss:function(n,t,r){return j(document,n,t,e,r)},getTop:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,O(document,e)]}))}))}}};var p=e("a",h("ion-alert"));var y=e("b",h("ion-action-sheet"));var b=e("l",h("ion-loading"));var w=e("m",h("ion-modal"));var g=e("p",h("ion-picker"));var _=e("c",h("ion-popover"));var k=e("t",h("ion-toast"));var A=e("k",(function(e){if(typeof document!=="undefined"){F(document)}var n=f++;e.overlayIndex=n}));var E=e("n",(function(e){if(!e.hasAttribute("id")){e.id="ion-overlay-".concat(++v)}return e.id}));var x=function(e,n){if(typeof window!=="undefined"&&typeof window.customElements!=="undefined"){return window.customElements.whenDefined(e).then((function(){var t=document.createElement(e);t.classList.add("overlay-hidden");Object.assign(t,Object.assign(Object.assign({},n),{hasController:true}));V(document).appendChild(t);return new Promise((function(e){return o(t,e)}))}))}return Promise.resolve()};var S='[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 D=e("q",(function(e,n){var t=e.querySelector(S);var r=t===null||t===void 0?void 0:t.shadowRoot;if(r){t=r.querySelector(S)||t}if(t){a(t)}else{n.focus()}}));var L=function(e){return e.classList.contains("overlay-hidden")};var P=function(e,n){var t=Array.from(e.querySelectorAll(S));var r=t.length>0?t[t.length-1]:null;var i=r===null||r===void 0?void 0:r.shadowRoot;if(i){r=i.querySelector(S)||r}if(r){r.focus()}else{n.focus()}};var q=function(e,n){var t=O(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover");var r=e.target;if(!t||!r){return}if(t.classList.contains("ion-disable-focus-trap")){return}var i=function(){if(t===r){t.lastFocus=undefined}else{var e=l(t);if(!e.contains(r)){return}var i=e.querySelector(".ion-overlay-wrapper");if(!i){return}if(i.contains(r)||r===e.querySelector("ion-backdrop")){t.lastFocus=r}else{var o=t.lastFocus;D(i,t);if(o===n.activeElement){P(i,t)}t.lastFocus=n.activeElement}}};var o=function(){if(t.contains(r)){t.lastFocus=r}else{var e=t.lastFocus;D(t,t);if(e===n.activeElement){P(t,t)}t.lastFocus=n.activeElement}};if(t.shadowRoot){o()}else{i()}};var F=function(e){if(f===0){f=1;e.addEventListener("focus",(function(n){q(n,e)}),true);e.addEventListener("ionBackButton",(function(n){var t=O(e);if(t===null||t===void 0?void 0:t.backdropDismiss){n.detail.register(i,(function(){return t.dismiss(undefined,K)}))}}));e.addEventListener("keydown",(function(n){if(n.key==="Escape"){var t=O(e);if(t===null||t===void 0?void 0:t.backdropDismiss){t.dismiss(undefined,K)}}}))}};var j=function(e,n,t,r,i){var o=O(e,r,i);if(!o){return Promise.reject("overlay does not exist")}return o.dismiss(n,t)};var C=function(e,n){if(n===undefined){n="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"}return Array.from(e.querySelectorAll(n)).filter((function(e){return e.overlayIndex>0}))};var O=e("r",(function(e,n,t){var r=C(e,n).filter((function(e){return!L(e)}));return t===undefined?r[r.length-1]:r.find((function(e){return e.id===t}))}));var T=function(e){if(e===void 0){e=false}var n=V(document);var t=n.querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");if(!t){return}if(e){t.setAttribute("aria-hidden","true")}else{t.removeAttribute("aria-hidden")}};var B=e("g",(function(e,r,i,o,a){return __awaiter(d,void 0,void 0,(function(){var u,s,l,c,d;return __generator(this,(function(f){switch(f.label){case 0:if(e.presented){return[2]}T(true);e.presented=true;e.willPresent.emit();(u=e.willPresentShorthand)===null||u===void 0?void 0:u.emit();l=n(e);c=e.enterAnimation?e.enterAnimation:t.get(r,l==="ios"?i:o);return[4,N(e,c,e.el,a)];case 1:d=f.sent();if(d){e.didPresent.emit();(s=e.didPresentShorthand)===null||s===void 0?void 0:s.emit()}if(e.el.tagName!=="ION-TOAST"){I(e.el)}if(e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))){e.el.focus()}return[2]}}))}))}));var I=function(e){return __awaiter(d,void 0,void 0,(function(){var n,t;return __generator(this,(function(r){switch(r.label){case 0:n=document.activeElement;if(!n){return[2]}t=n===null||n===void 0?void 0:n.shadowRoot;if(t){n=t.querySelector(S)||n}return[4,e.onDidDismiss()];case 1:r.sent();n.focus();return[2]}}))}))};var R=e("h",(function(e,r,i,o,a,u,s){return __awaiter(d,void 0,void 0,(function(){var l,c,d,f,v;return __generator(this,(function(h){switch(h.label){case 0:if(!e.presented){return[2,false]}T(false);e.presented=false;h.label=1;case 1:h.trys.push([1,4,,5]);e.el.style.setProperty("pointer-events","none");e.willDismiss.emit({data:r,role:i});(l=e.willDismissShorthand)===null||l===void 0?void 0:l.emit({data:r,role:i});d=n(e);f=e.leaveAnimation?e.leaveAnimation:t.get(o,d==="ios"?a:u);if(!(i!==U))return[3,3];return[4,N(e,f,e.el,s)];case 2:h.sent();h.label=3;case 3:e.didDismiss.emit({data:r,role:i});(c=e.didDismissShorthand)===null||c===void 0?void 0:c.emit({data:r,role:i});m.delete(e);e.el.classList.add("overlay-hidden");e.el.style.removeProperty("pointer-events");if(e.el.lastFocus!==undefined){e.el.lastFocus=undefined}return[3,5];case 4:v=h.sent();console.error(v);return[3,5];case 5:e.el.remove();return[2,true]}}))}))}));var V=function(e){return e.querySelector("ion-app")||e.body};var N=function(e,n,r,i){return __awaiter(d,void 0,void 0,(function(){var o,a,u;return __generator(this,(function(s){switch(s.label){case 0:r.classList.remove("overlay-hidden");o=e.el;a=n(o,i);if(!e.animated||!t.getBoolean("animated",true)){a.duration(0)}if(e.keyboardClose){a.beforeAddWrite((function(){var e=r.ownerDocument.activeElement;if(e===null||e===void 0?void 0:e.matches("input,ion-input, ion-textarea")){e.blur()}}))}u=m.get(e)||[];m.set(e,__spreadArray(__spreadArray([],u,true),[a],false));return[4,a.play()];case 1:s.sent();return[2,true]}}))}))};var G=e("j",(function(e,n){var t;var r=new Promise((function(e){return t=e}));M(e,n,(function(e){t(e.detail)}));return r}));var M=function(e,n,t){var r=function(i){s(e,n,r);t(i)};u(e,n,r)};var W=e("i",(function(e){return e==="cancel"||e===K}));var Y=function(e){return e()};var z=e("s",(function(e,n){if(typeof e==="function"){var r=t.get("_zoneGate",Y);return r((function(){try{return e(n)}catch(e){throw e}}))}return undefined}));var K=e("B","backdrop");var U=e("G","gesture");var H=e("d",(function(e){var n=false;var t;var i=r();var o=function(r){if(r===void 0){r=false}if(t&&!r){return{delegate:t,inline:n}}var o=e.el,a=e.hasController,u=e.delegate;var s=o.parentNode;n=s!==null&&!a;t=n?u||i:u;return{inline:n,delegate:t}};var a=function(n){return __awaiter(d,void 0,void 0,(function(){var t,r;return __generator(this,(function(i){switch(i.label){case 0:t=o(true).delegate;if(!t)return[3,2];return[4,t.attachViewToDom(e.el,n)];case 1:return[2,i.sent()];case 2:r=e.hasController;if(r&&n!==undefined){throw new Error("framework delegate is missing")}return[2,null]}}))}))};var u=function(){var n=o().delegate;if(n&&e.el!==undefined){n.removeViewFromDom(e.el.parentElement,e.el)}};return{attachViewToDom:a,removeViewFromDom:u}}));var J=e("e",(function(){var e;var n=function(){return __awaiter(d,void 0,void 0,(function(){var n,t;return __generator(this,(function(r){switch(r.label){case 0:n=e;e=new Promise((function(e){return t=e}));if(!(n!==undefined))return[3,2];return[4,n];case 1:r.sent();r.label=2;case 2:return[2,t]}}))}))};return{lock:n}}));var Q=e("f",(function(){var e;var n=function(){if(e){e();e=undefined}};var t=function(t,r){n();var i=r!==undefined?document.getElementById(r):null;if(!i){c('A trigger element with the ID "'.concat(r,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.'),t);return}var o=function(e,n){var t=function(){n.present()};e.addEventListener("click",t);return function(){e.removeEventListener("click",t)}};e=o(i,t)};return{addClickListener:t,removeClickListener:n}}))}}}));
4
+ */System.register(["./p-7b16490a.system.js","./p-613d4042.system.js","./p-8c15eda7.system.js","./p-815c2fba.system.js","./p-479cdbf8.system.js"],(function(e){"use strict";var n,t,r,i,o,a,u,s,l,c;return{setters:[function(e){n=e.b;t=e.c},function(e){r=e.C},function(e){i=e.OVERLAY_BACK_BUTTON_PRIORITY},function(e){o=e.c;a=e.f;u=e.a;s=e.b;l=e.g},function(e){c=e.p}],execute:function(){var d=this;var f=0;var v=0;var m=e("n",new WeakMap);var h=function(e){return{create:function(n){return x(e,n)},dismiss:function(n,t,r){return j(document,n,t,e,r)},getTop:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,O(document,e)]}))}))}}};var p=e("a",h("ion-alert"));var y=e("b",h("ion-action-sheet"));var b=e("l",h("ion-loading"));var w=e("m",h("ion-modal"));var g=e("p",h("ion-picker"));var _=e("c",h("ion-popover"));var k=e("t",h("ion-toast"));var A=e("j",(function(e){if(typeof document!=="undefined"){F(document)}var n=f++;e.overlayIndex=n}));var E=e("k",(function(e){if(!e.hasAttribute("id")){e.id="ion-overlay-".concat(++v)}return e.id}));var x=function(e,n){if(typeof window!=="undefined"&&typeof window.customElements!=="undefined"){return window.customElements.whenDefined(e).then((function(){var t=document.createElement(e);t.classList.add("overlay-hidden");Object.assign(t,Object.assign(Object.assign({},n),{hasController:true}));V(document).appendChild(t);return new Promise((function(e){return o(t,e)}))}))}return Promise.resolve()};var S='[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 D=e("o",(function(e,n){var t=e.querySelector(S);var r=t===null||t===void 0?void 0:t.shadowRoot;if(r){t=r.querySelector(S)||t}if(t){a(t)}else{n.focus()}}));var L=function(e){return e.classList.contains("overlay-hidden")};var P=function(e,n){var t=Array.from(e.querySelectorAll(S));var r=t.length>0?t[t.length-1]:null;var i=r===null||r===void 0?void 0:r.shadowRoot;if(i){r=i.querySelector(S)||r}if(r){r.focus()}else{n.focus()}};var q=function(e,n){var t=O(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover");var r=e.target;if(!t||!r){return}if(t.classList.contains("ion-disable-focus-trap")){return}var i=function(){if(t===r){t.lastFocus=undefined}else{var e=l(t);if(!e.contains(r)){return}var i=e.querySelector(".ion-overlay-wrapper");if(!i){return}if(i.contains(r)||r===e.querySelector("ion-backdrop")){t.lastFocus=r}else{var o=t.lastFocus;D(i,t);if(o===n.activeElement){P(i,t)}t.lastFocus=n.activeElement}}};var o=function(){if(t.contains(r)){t.lastFocus=r}else{var e=t.lastFocus;D(t,t);if(e===n.activeElement){P(t,t)}t.lastFocus=n.activeElement}};if(t.shadowRoot){o()}else{i()}};var F=function(e){if(f===0){f=1;e.addEventListener("focus",(function(n){q(n,e)}),true);e.addEventListener("ionBackButton",(function(n){var t=O(e);if(t===null||t===void 0?void 0:t.backdropDismiss){n.detail.register(i,(function(){return t.dismiss(undefined,K)}))}}));e.addEventListener("keydown",(function(n){if(n.key==="Escape"){var t=O(e);if(t===null||t===void 0?void 0:t.backdropDismiss){t.dismiss(undefined,K)}}}))}};var j=function(e,n,t,r,i){var o=O(e,r,i);if(!o){return Promise.reject("overlay does not exist")}return o.dismiss(n,t)};var C=function(e,n){if(n===undefined){n="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"}return Array.from(e.querySelectorAll(n)).filter((function(e){return e.overlayIndex>0}))};var O=e("q",(function(e,n,t){var r=C(e,n).filter((function(e){return!L(e)}));return t===undefined?r[r.length-1]:r.find((function(e){return e.id===t}))}));var T=function(e){if(e===void 0){e=false}var n=V(document);var t=n.querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");if(!t){return}if(e){t.setAttribute("aria-hidden","true")}else{t.removeAttribute("aria-hidden")}};var B=e("f",(function(e,r,i,o,a){return __awaiter(d,void 0,void 0,(function(){var u,s,l,c,d;return __generator(this,(function(f){switch(f.label){case 0:if(e.presented){return[2]}T(true);e.presented=true;e.willPresent.emit();(u=e.willPresentShorthand)===null||u===void 0?void 0:u.emit();l=n(e);c=e.enterAnimation?e.enterAnimation:t.get(r,l==="ios"?i:o);return[4,N(e,c,e.el,a)];case 1:d=f.sent();if(d){e.didPresent.emit();(s=e.didPresentShorthand)===null||s===void 0?void 0:s.emit()}if(e.el.tagName!=="ION-TOAST"){I(e.el)}if(e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))){e.el.focus()}return[2]}}))}))}));var I=function(e){return __awaiter(d,void 0,void 0,(function(){var n,t;return __generator(this,(function(r){switch(r.label){case 0:n=document.activeElement;if(!n){return[2]}t=n===null||n===void 0?void 0:n.shadowRoot;if(t){n=t.querySelector(S)||n}return[4,e.onDidDismiss()];case 1:r.sent();n.focus();return[2]}}))}))};var R=e("g",(function(e,r,i,o,a,u,s){return __awaiter(d,void 0,void 0,(function(){var l,c,d,f,v;return __generator(this,(function(h){switch(h.label){case 0:if(!e.presented){return[2,false]}T(false);e.presented=false;h.label=1;case 1:h.trys.push([1,4,,5]);e.el.style.setProperty("pointer-events","none");e.willDismiss.emit({data:r,role:i});(l=e.willDismissShorthand)===null||l===void 0?void 0:l.emit({data:r,role:i});d=n(e);f=e.leaveAnimation?e.leaveAnimation:t.get(o,d==="ios"?a:u);if(!(i!==U))return[3,3];return[4,N(e,f,e.el,s)];case 2:h.sent();h.label=3;case 3:e.didDismiss.emit({data:r,role:i});(c=e.didDismissShorthand)===null||c===void 0?void 0:c.emit({data:r,role:i});m.delete(e);e.el.classList.add("overlay-hidden");e.el.style.removeProperty("pointer-events");if(e.el.lastFocus!==undefined){e.el.lastFocus=undefined}return[3,5];case 4:v=h.sent();console.error(v);return[3,5];case 5:e.el.remove();return[2,true]}}))}))}));var V=function(e){return e.querySelector("ion-app")||e.body};var N=function(e,n,r,i){return __awaiter(d,void 0,void 0,(function(){var o,a,u;return __generator(this,(function(s){switch(s.label){case 0:r.classList.remove("overlay-hidden");o=e.el;a=n(o,i);if(!e.animated||!t.getBoolean("animated",true)){a.duration(0)}if(e.keyboardClose){a.beforeAddWrite((function(){var e=r.ownerDocument.activeElement;if(e===null||e===void 0?void 0:e.matches("input,ion-input, ion-textarea")){e.blur()}}))}u=m.get(e)||[];m.set(e,__spreadArray(__spreadArray([],u,true),[a],false));return[4,a.play()];case 1:s.sent();return[2,true]}}))}))};var G=e("h",(function(e,n){var t;var r=new Promise((function(e){return t=e}));M(e,n,(function(e){t(e.detail)}));return r}));var M=function(e,n,t){var r=function(i){s(e,n,r);t(i)};u(e,n,r)};var W=e("i",(function(e){return e==="cancel"||e===K}));var Y=function(e){return e()};var z=e("s",(function(e,n){if(typeof e==="function"){var r=t.get("_zoneGate",Y);return r((function(){try{return e(n)}catch(e){throw e}}))}return undefined}));var K=e("B","backdrop");var U=e("G","gesture");var H=e("d",(function(e){var n=false;var t;var i=r();var o=function(r){if(r===void 0){r=false}if(t&&!r){return{delegate:t,inline:n}}var o=e.el,a=e.hasController,u=e.delegate;var s=o.parentNode;n=s!==null&&!a;t=n?u||i:u;return{inline:n,delegate:t}};var a=function(n){return __awaiter(d,void 0,void 0,(function(){var t,r;return __generator(this,(function(i){switch(i.label){case 0:t=o(true).delegate;if(!t)return[3,2];return[4,t.attachViewToDom(e.el,n)];case 1:return[2,i.sent()];case 2:r=e.hasController;if(r&&n!==undefined){throw new Error("framework delegate is missing")}return[2,null]}}))}))};var u=function(){var n=o().delegate;if(n&&e.el!==undefined){n.removeViewFromDom(e.el.parentElement,e.el)}};return{attachViewToDom:a,removeViewFromDom:u}}));var J=e("e",(function(){var e;var n=function(){if(e){e();e=undefined}};var t=function(t,r){n();var i=r!==undefined?document.getElementById(r):null;if(!i){c('A trigger element with the ID "'.concat(r,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.'),t);return}var o=function(e,n){var t=function(){n.present()};e.addEventListener("click",t);return function(){e.removeEventListener("click",t)}};e=o(i,t)};return{addClickListener:t,removeClickListener:n}}))}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{r as t,d as o,e,h as i,H as n,f as a}from"./p-156967ec.js";import{c as s}from"./p-7c938ad6.js";import{r}from"./p-63eb0acd.js";import{d as c,e as d,B as h,i as l,f as b,g as p,h as u,s as g,j as v,k as m}from"./p-582dc7c1.js";import{g as f}from"./p-1d072d3d.js";import{b as k}from"./p-b22ee0dc.js";import{c as x}from"./p-94a4ce40.js";import"./p-bb6f38ed.js";import"./p-cc196b34.js";import"./p-b347cfd1.js";import"./p-8b1be026.js";import"./p-e0b06b65.js";import"./p-b287ab05.js";import"./p-185e427e.js";import"./p-1b8e1d03.js";const w=t=>{const o=x(),e=x(),i=x();return e.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),o.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([e,i])},y=t=>{const o=x(),e=x(),i=x();return e.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),o.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([e,i])},j=t=>{const o=x(),e=x(),i=x();return e.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),o.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([e,i])},z=t=>{const o=x(),e=x(),i=x();return e.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),o.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([e,i])},C=class{constructor(e){t(this,e),this.didPresent=o(this,"ionActionSheetDidPresent",7),this.willPresent=o(this,"ionActionSheetWillPresent",7),this.willDismiss=o(this,"ionActionSheetWillDismiss",7),this.didDismiss=o(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=o(this,"didPresent",7),this.willPresentShorthand=o(this,"willPresent",7),this.willDismissShorthand=o(this,"willDismiss",7),this.didDismissShorthand=o(this,"didDismiss",7),this.delegateController=c(this),this.triggerController=d(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,h)},this.dispatchCancelHandler=t=>{if(l(t.detail.role)){const t=this.getButtons().find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.cssClass=void 0,this.backdropDismiss=!0,this.header=void 0,this.subHeader=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:e}=this;t&&e.addClickListener(o,t)}async present(){void 0!==this.currentTransition&&await this.currentTransition,await this.delegateController.attachViewToDom(),this.currentTransition=b(this,"actionSheetEnter",w,j),await this.currentTransition,this.currentTransition=void 0}async dismiss(t,o){this.currentTransition=p(this,t,o,"actionSheetLeave",y,z);const e=await this.currentTransition;return e&&this.delegateController.removeViewFromDom(),e}onDidDismiss(){return u(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return u(this.el,"ionActionSheetWillDismiss")}async buttonClick(t){const o=t.role;return l(o)?this.dismiss(t.data,o):await this.callButtonHandler(t)?this.dismiss(t.data,t.role):Promise.resolve()}async callButtonHandler(t){return!t||!1!==await g(t.handler)}getButtons(){return this.buttons.map((t=>"string"==typeof t?{text:t}:t))}connectedCallback(){v(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){m(this.el)}componentDidLoad(){const{groupEl:t,wrapperEl:o}=this;!this.gesture&&"ios"===k(this)&&o&&t&&e((()=>{t.scrollHeight>t.clientHeight||(this.gesture=s(o,(t=>t.classList.contains("action-sheet-button"))),this.gesture.enable(!0))})),!0===this.isOpen&&r((()=>this.present()))}render(){const{header:t,htmlAttributes:o,overlayIndex:e}=this,a=k(this),s=this.getButtons(),r=s.find((t=>"cancel"===t.role)),c=s.filter((t=>"cancel"!==t.role)),d=`action-sheet-${e}-header`;return i(n,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==t?d:null,tabindex:"-1"},o,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[a]:!0},f(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),i("ion-backdrop",{tappable:this.backdropDismiss}),i("div",{tabindex:"0"}),i("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:t=>this.wrapperEl=t},i("div",{class:"action-sheet-container"},i("div",{class:"action-sheet-group",ref:t=>this.groupEl=t},void 0!==t&&i("div",{id:d,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":void 0!==this.subHeader}},t,this.subHeader&&i("div",{class:"action-sheet-sub-title"},this.subHeader)),c.map((t=>i("button",Object.assign({},t.htmlAttributes,{type:"button",id:t.id,class:D(t),onClick:()=>this.buttonClick(t)}),i("span",{class:"action-sheet-button-inner"},t.icon&&i("ion-icon",{icon:t.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),t.text),"md"===a&&i("ion-ripple-effect",null))))),r&&i("div",{class:"action-sheet-group action-sheet-group-cancel"},i("button",Object.assign({},r.htmlAttributes,{type:"button",class:D(r),onClick:()=>this.buttonClick(r)}),i("span",{class:"action-sheet-button-inner"},r.icon&&i("ion-icon",{icon:r.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),r.text),"md"===a&&i("ion-ripple-effect",null))))),i("div",{tabindex:"0"}))}get el(){return a(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},D=t=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${t.role}`]:void 0!==t.role},f(t.cssClass));C.style={ios:'.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100vh}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:13px;font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:28px;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',md:'.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100vh}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}'};export{C as ion_action_sheet}
@@ -0,0 +1,4 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function o(e){try{d(r.next(e))}catch(e){a(e)}}function s(e){try{d(r["throw"](e))}catch(e){a(e)}}function d(e){e.done?i(e.value):n(e.value).then(o,s)}d((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return d([e,t])}}function d(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,n&&(a=s[0]&2?n["return"]:s[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;if(n=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(s[0]===6&&i.label<a[1]){i.label=a[1];a=s;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(s);break}if(a[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];n=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))};
2
+ /*!
3
+ * (C) Ionic http://ionicframework.com - MIT License
4
+ */System.register(["./p-5b553dc0.system.js","./p-87411e39.system.js","./p-815c2fba.system.js","./p-479cdbf8.system.js","./p-819ff3b9.system.js","./p-44bc8b45.system.js","./p-8985b268.system.js","./p-7b16490a.system.js","./p-cc8910e7.system.js","./p-b32742f3.system.js","./p-6b2641f6.system.js","./p-14d7b7e2.system.js","./p-613d4042.system.js","./p-8c15eda7.system.js","./p-0e94957a.system.js","./p-ccdcb022.system.js"],(function(e,t){"use strict";var i,r,n,a,o,s,d,l,c,h,p,u,f,m,g,b,y,v,x,k,w,P,C,j,D,O,A,V,z,M,T,W,I,_,L,S,F,Y,E,H,B,R,q,K,U,G,N,J,Q,X,Z,$,ee,te,ie,re,ne,ae,oe,se,de,le,ce,he,pe,ue,fe,me,ge,be,ye,ve,xe,ke,we,Pe,Ce,je,De,Oe;return{setters:[function(e){i=e.r;r=e.d;n=e.w;a=e.h;o=e.H;s=e.f},function(e){d=e.startFocusVisible},function(e){l=e.r;c=e.d;h=e.g;p=e.l},function(e){u=e.a;f=e.p},function(e){m=e.i},function(e){g=e.c;b=e.g},function(e){y=e.c;v=e.o;x=e.l;k=e.p;w=e.q},function(e){P=e.b},function(e){C=e.g;j=e.a;D=e.i;O=e.b;A=e.c;V=e.d;z=e.e;M=e.v;T=e.f;W=e.h;I=e.j;_=e.k;L=e.l;S=e.m;F=e.n;Y=e.p;E=e.o;H=e.q;B=e.w;R=e.r;q=e.s;K=e.t;U=e.u;G=e.x;N=e.y;J=e.z;Q=e.A;X=e.B;Z=e.C;$=e.D;ee=e.E;te=e.F;ie=e.G;re=e.H;ne=e.I;ae=e.J;oe=e.K;se=e.L;de=e.M;le=e.N;ce=e.O;he=e.P;pe=e.Q;ue=e.R},function(e){fe=e.d;me=e.e;ge=e.B;be=e.i;ye=e.j;ve=e.k;xe=e.f;ke=e.g;we=e.h;Pe=e.s},function(e){Ce=e.c},function(e){je=e.b;De=e.h;Oe=e.a},function(){},function(){},function(){},function(){}],execute:function(){var Ae=function(e,t,i){if(t&&t.year>e){return true}if(i&&i.year<e){return true}return false};var Ve=function(e,t,i,r){if(e.day===null){return true}if(r!==undefined&&!r.includes(e.day)){return true}if(t&&D(e,t)){return true}if(i&&O(e,i)){return true}return false};var ze=function(e,t,i,r,n,a,o){var s=Array.isArray(i)?i:[i];var d=s.find((function(e){return A(t,e)}))!==undefined;var l=A(t,r);var c=Ve(t,n,a,o);return{disabled:c,isActive:d,isToday:l,ariaSelected:d?"true":null,ariaLabel:C(e,l,t),text:t.day!=null?j(e,t):null}};var Me=function(e,t){var i=t.minParts,r=t.maxParts;if(Ae(e.year,i,r)){return true}if(i&&D(e,i)||r&&O(e,r)){return true}return false};var Te=function(e,t,i){var r=Object.assign(Object.assign({},V(e)),{day:null});return Me(r,{minParts:t,maxParts:i})};var We=function(e,t){var i=Object.assign(Object.assign({},z(e)),{day:null});return Me(i,{maxParts:t})};var Ie=function(e,t,i){if(Array.isArray(e)){var r=t.split("T")[0];var n=e.find((function(e){return e.date===r}));if(n){return{textColor:n.textColor,backgroundColor:n.backgroundColor}}}else{try{return e(t)}catch(e){u("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",i,e)}}return undefined};var _e=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year) .calendar-next-prev:dir(rtl),:host(.show-month-and-year) .calendar-days-of-week:dir(rtl),:host(.show-month-and-year) .calendar-body:dir(rtl),:host(.show-month-and-year) .datetime-time:dir(rtl){left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day-highlight{border-radius:32px;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:32px;height:32px;z-index:-1}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:14px}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:16px;font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:12px;font-weight:600;line-height:24px;text-transform:uppercase}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;height:calc(100% - 16px)}:host .calendar-day{font-size:20px}.calendar-day:focus .calendar-day-highlight,.calendar-day.calendar-day-active .calendar-day-highlight{opacity:0.2}.calendar-day.calendar-day-active .calendar-day-highlight{background:var(--ion-color-base)}.calendar-day:focus .calendar-day-highlight{background:var(--ion-color-base) !important}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-today.calendar-day-active .calendar-day-highlight{background:var(--ion-color-base);opacity:1}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:16px}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}";var Le=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year) .calendar-next-prev:dir(rtl),:host(.show-month-and-year) .calendar-days-of-week:dir(rtl),:host(.show-month-and-year) .calendar-body:dir(rtl),:host(.show-month-and-year) .datetime-time:dir(rtl){left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day-highlight{border-radius:32px;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:32px;height:32px;z-index:-1}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:12px;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:34px}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:14px;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0;padding-inline-end:0;padding-top:13px;padding-bottom:13px;font-size:14px}.calendar-day:focus .calendar-day-highlight{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}.calendar-day.calendar-day-today .calendar-day-highlight{border:1px solid var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active .calendar-day-highlight{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}:host .datetime-view-buttons ion-button{color:var(--ion-color-step-800, #333333)}";var Se=e("ion_datetime",function(){function e(e){var t=this;i(this,e);this.ionCancel=r(this,"ionCancel",7);this.ionChange=r(this,"ionChange",7);this.ionValueChange=r(this,"ionValueChange",7);this.ionFocus=r(this,"ionFocus",7);this.ionBlur=r(this,"ionBlur",7);this.ionStyle=r(this,"ionStyle",7);this.ionRender=r(this,"ionRender",7);this.inputId="ion-dt-".concat(Fe++);this.prevPresentation=null;this.activePartsClone=[];this.warnIfIncorrectValueUsage=function(){var e=t,i=e.multiple,r=e.value;if(!i&&Array.isArray(r)){f('ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: ['.concat(r.map((function(e){return"'".concat(e,"'")})).join(", "),"]\n"),t.el)}};this.setValue=function(e){t.value=e;t.ionChange.emit({value:e})};this.getActivePartsWithFallback=function(){var e;var i=t.defaultParts;return(e=t.getActivePart())!==null&&e!==void 0?e:i};this.getActivePart=function(){var e=t.activePartsClone;return Array.isArray(e)?e[0]:e};this.closeParentOverlay=function(){var e=t.el.closest("ion-modal, ion-popover");if(e){e.dismiss()}};this.setWorkingParts=function(e){t.workingParts=Object.assign({},e)};this.setActiveParts=function(e,i){if(i===void 0){i=false}var r=t,n=r.multiple,a=r.minParts,o=r.maxParts,s=r.activePartsClone;var d=M(e,a,o);t.setWorkingParts(d);if(n){var l=Array.isArray(s)?s:[s];if(i){t.activeParts=l.filter((function(e){return!A(e,d)}))}else{t.activeParts=__spreadArray(__spreadArray([],l,true),[d],false)}}else{t.activeParts=Object.assign({},d)}var c=t.el.querySelector('[slot="buttons"]')!==null;if(c||t.showDefaultButtons){return}t.confirm()};this.initializeKeyboardListeners=function(){var e=t.calendarBodyRef;if(!e){return}var i=t.el.shadowRoot;var r=e.querySelector(".calendar-month:nth-of-type(2)");var n=function(i){var n;var a=i[0];if(((n=a.oldValue)===null||n===void 0?void 0:n.includes("ion-focused"))||!e.classList.contains("ion-focused")){return}t.focusWorkingDay(r)};var a=new MutationObserver(n);a.observe(e,{attributeFilter:["class"],attributeOldValue:true});t.destroyKeyboardMO=function(){a===null||a===void 0?void 0:a.disconnect()};e.addEventListener("keydown",(function(e){var n=i.activeElement;if(!n||!n.classList.contains("calendar-day")){return}var a=T(n);var o;switch(e.key){case"ArrowDown":e.preventDefault();o=F(a);break;case"ArrowUp":e.preventDefault();o=S(a);break;case"ArrowRight":e.preventDefault();o=L(a);break;case"ArrowLeft":e.preventDefault();o=_(a);break;case"Home":e.preventDefault();o=I(a);break;case"End":e.preventDefault();o=W(a);break;case"PageUp":e.preventDefault();o=e.shiftKey?ce(a):V(a);break;case"PageDown":e.preventDefault();o=e.shiftKey?le(a):z(a);break;default:return}if(Ve(o,t.minParts,t.maxParts)){return}t.setWorkingParts(Object.assign(Object.assign({},t.workingParts),o));requestAnimationFrame((function(){return t.focusWorkingDay(r)}))}))};this.focusWorkingDay=function(e){var i=e.querySelectorAll(".calendar-day-padding");var r=t.workingParts.day;if(r===null){return}var n=e.querySelector(".calendar-day:nth-of-type(".concat(i.length+r,")"));if(n){n.focus()}};this.processMinParts=function(){var e=t,i=e.min,r=e.defaultParts;if(i===undefined){t.minParts=undefined;return}t.minParts=Y(i,r)};this.processMaxParts=function(){var e=t,i=e.max,r=e.defaultParts;if(i===undefined){t.maxParts=undefined;return}t.maxParts=E(i,r)};this.initializeCalendarListener=function(){var e=t.calendarBodyRef;if(!e){return}var i=e.querySelectorAll(".calendar-month");var r=i[0];var a=i[1];var o=i[2];var s=P(t);var d=s==="ios"&&typeof navigator!=="undefined"&&navigator.maxTouchPoints>1;n((function(){e.scrollLeft=r.clientWidth*(m(t.el)?-1:1);var i=function(t){var i=e.getBoundingClientRect();var n=e.scrollLeft<=2?r:o;var a=n.getBoundingClientRect();if(Math.abs(a.x-i.x)>2)return;if(n===r){return V(t)}else if(n===o){return z(t)}else{return}};var s=function(){if(d){e.style.removeProperty("pointer-events");c=false}var r=i(t.workingParts);if(!r)return;var o=r.month,s=r.day,l=r.year;if(Me({month:o,year:l,day:null},{minParts:Object.assign(Object.assign({},t.minParts),{day:null}),maxParts:Object.assign(Object.assign({},t.maxParts),{day:null})})){return}e.style.setProperty("overflow","hidden");n((function(){t.setWorkingParts(Object.assign(Object.assign({},t.workingParts),{month:o,day:s,year:l}));e.scrollLeft=a.clientWidth*(m(t.el)?-1:1);e.style.removeProperty("overflow")}))};var l;var c=false;var h=function(){if(l){clearTimeout(l)}if(!c&&d){e.style.setProperty("pointer-events","none");c=true}l=setTimeout(s,50)};e.addEventListener("scroll",h);t.destroyCalendarListener=function(){e.removeEventListener("scroll",h)}}))};this.destroyInteractionListeners=function(){var e=t,i=e.destroyCalendarListener,r=e.destroyKeyboardMO;if(i!==undefined){i()}if(r!==undefined){r()}};this.processValue=function(e){var i=e!==null&&e!==undefined;var r=i?H(e):t.defaultParts;var n=t,a=n.minParts,o=n.maxParts;t.warnIfIncorrectValueUsage();if(i){B(r,a,o)}var s=Array.isArray(r)?r[0]:r;var d=he(s,a,o),l=d.month,c=d.day,h=d.year,p=d.hour,u=d.minute;var f=pe(p);t.setWorkingParts({month:l,day:c,year:h,hour:p,minute:u,ampm:f});if(i){if(Array.isArray(r)){t.activeParts=__spreadArray([],r,true)}else{t.activeParts={month:l,day:c,year:h,hour:p,minute:u,ampm:f}}}else{t.activeParts=[]}};this.onFocus=function(){t.ionFocus.emit()};this.onBlur=function(){t.ionBlur.emit()};this.hasValue=function(){return t.value!=null};this.nextMonth=function(){var e=t.calendarBodyRef;if(!e){return}var i=e.querySelector(".calendar-month:last-of-type");if(!i){return}var r=i.offsetWidth*2;e.scrollTo({top:0,left:r*(m(t.el)?-1:1),behavior:"smooth"})};this.prevMonth=function(){var e=t.calendarBodyRef;if(!e){return}var i=e.querySelector(".calendar-month:first-of-type");if(!i){return}e.scrollTo({top:0,left:0,behavior:"smooth"})};this.toggleMonthAndYearView=function(){t.showMonthAndYear=!t.showMonthAndYear};this.showMonthAndYear=false;this.activeParts=[];this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"};this.isTimePopoverOpen=false;this.color="primary";this.name=this.inputId;this.disabled=false;this.readonly=false;this.isDateEnabled=undefined;this.min=undefined;this.max=undefined;this.presentation="date-time";this.cancelText="Cancel";this.doneText="Done";this.clearText="Clear";this.yearValues=undefined;this.monthValues=undefined;this.dayValues=undefined;this.hourValues=undefined;this.minuteValues=undefined;this.locale="default";this.firstDayOfWeek=0;this.titleSelectedDatesFormatter=undefined;this.multiple=false;this.highlightedDates=undefined;this.value=undefined;this.showDefaultTitle=false;this.showDefaultButtons=false;this.showClearButton=false;this.showDefaultTimeLabel=true;this.hourCycle=undefined;this.size="fixed";this.preferWheel=false}e.prototype.disabledChanged=function(){this.emitStyle()};e.prototype.minChanged=function(){this.processMinParts()};e.prototype.maxChanged=function(){this.processMaxParts()};e.prototype.yearValuesChanged=function(){this.parsedYearValues=R(this.yearValues)};e.prototype.monthValuesChanged=function(){this.parsedMonthValues=R(this.monthValues)};e.prototype.dayValuesChanged=function(){this.parsedDayValues=R(this.dayValues)};e.prototype.hourValuesChanged=function(){this.parsedHourValues=R(this.hourValues)};e.prototype.minuteValuesChanged=function(){this.parsedMinuteValues=R(this.minuteValues)};e.prototype.activePartsChanged=function(){this.activePartsClone=this.activeParts};e.prototype.valueChanged=function(){var e=this,t=e.value,i=e.minParts,r=e.maxParts,n=e.workingParts;if(this.hasValue()){this.warnIfIncorrectValueUsage();var a=H(t);if(a){B(a,i,r);if(Array.isArray(a)){this.activePartsClone=__spreadArray([],a,true)}else{var o=a.month,s=a.day,d=a.year,l=a.hour,c=a.minute;var h=l!=null?l>=12?"pm":"am":undefined;this.activePartsClone=Object.assign(Object.assign({},this.activeParts),{month:o,day:s,year:d,hour:l,minute:c,ampm:h});this.setWorkingParts(Object.assign(Object.assign({},n),{ampm:h}))}}else{f("Unable to parse date string: ".concat(t,". Please provide a valid ISO 8601 datetime string."))}}this.emitStyle();this.ionValueChange.emit({value:t})};e.prototype.confirm=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t,i,r,n;return __generator(this,(function(a){t=this,i=t.isCalendarPicker,r=t.activeParts;if(r!==undefined||!i){n=Array.isArray(r);if(n&&r.length===0){this.setValue(undefined)}else{this.setValue(q(r))}}if(e){this.closeParentOverlay()}return[2]}))}))};e.prototype.reset=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processValue(e);return[2]}))}))};e.prototype.cancel=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.ionCancel.emit();if(e){this.closeParentOverlay()}return[2]}))}))};Object.defineProperty(e.prototype,"isCalendarPicker",{get:function(){var e=this.presentation;return e==="date"||e==="date-time"||e==="time-date"},enumerable:false,configurable:true});e.prototype.connectedCallback=function(){this.clearFocusVisible=d(this.el).destroy};e.prototype.disconnectedCallback=function(){if(this.clearFocusVisible){this.clearFocusVisible();this.clearFocusVisible=undefined}};e.prototype.initializeListeners=function(){this.initializeCalendarListener();this.initializeKeyboardListeners()};e.prototype.componentDidLoad=function(){var e=this;var t=function(t){var i=t[0];if(!i.isIntersecting){return}e.initializeListeners();n((function(){e.el.classList.add("datetime-ready")}))};var i=new IntersectionObserver(t,{threshold:.01});l((function(){return i===null||i===void 0?void 0:i.observe(e.el)}));var r=function(t){var i=t[0];if(i.isIntersecting){return}e.destroyInteractionListeners();e.showMonthAndYear=false;n((function(){e.el.classList.remove("datetime-ready")}))};var a=new IntersectionObserver(r,{threshold:0});l((function(){return a===null||a===void 0?void 0:a.observe(e.el)}));var o=h(this.el);o.addEventListener("ionFocus",(function(e){return e.stopPropagation()}));o.addEventListener("ionBlur",(function(e){return e.stopPropagation()}))};e.prototype.componentDidRender=function(){var e=this;var t=this,i=t.presentation,r=t.prevPresentation,n=t.calendarBodyRef,a=t.minParts,o=t.preferWheel;var s=!o&&["date-time","time-date","date"].includes(i);if(a!==undefined&&s&&n){var d=n.querySelector(".calendar-month:nth-of-type(1)");if(d){n.scrollLeft=d.clientWidth*(m(this.el)?-1:1)}}if(r===null){this.prevPresentation=i;return}if(i===r){return}this.prevPresentation=i;this.destroyInteractionListeners();this.initializeListeners();this.showMonthAndYear=false;l((function(){e.ionRender.emit()}))};e.prototype.componentWillLoad=function(){var e=this,t=e.el,i=e.highlightedDates,r=e.multiple,n=e.presentation,a=e.preferWheel;if(r){if(n!=="date"){f('Multiple date selection is only supported for presentation="date".',t)}if(a){f('Multiple date selection is not supported with preferWheel="true".',t)}}if(i!==undefined){if(n!=="date"&&n!=="date-time"&&n!=="time-date"){f("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",t)}if(a){f('The highlightedDates property is not supported with preferWheel="true".',t)}}this.processMinParts();this.processMaxParts();var o=this.parsedHourValues=R(this.hourValues);var s=this.parsedMinuteValues=R(this.minuteValues);var d=this.parsedMonthValues=R(this.monthValues);var l=this.parsedYearValues=R(this.yearValues);var c=this.parsedDayValues=R(this.dayValues);var h=this.todayParts=H(K());this.defaultParts=U(h,d,c,l,o,s);this.processValue(this.value);this.emitStyle()};e.prototype.emitStyle=function(){this.ionStyle.emit({interactive:true,datetime:true,"interactive-disabled":this.disabled})};e.prototype.renderFooter=function(){var e;var t=this;var i=this,r=i.showDefaultButtons,n=i.showClearButton;var o=this.el.querySelector('[slot="buttons"]')!==null;if(!o&&!r&&!n){return}var s=function(){t.reset();t.setValue(undefined)};return a("div",{class:"datetime-footer"},a("div",{class:"datetime-buttons"},a("div",{class:(e={},e["datetime-action-buttons"]=true,e["has-clear-button"]=this.showClearButton,e)},a("slot",{name:"buttons"},a("ion-buttons",null,r&&a("ion-button",{id:"cancel-button",color:this.color,onClick:function(){return t.cancel(true)}},this.cancelText),a("div",null,n&&a("ion-button",{id:"clear-button",color:this.color,onClick:function(){return s()}},this.clearText),r&&a("ion-button",{id:"confirm-button",color:this.color,onClick:function(){return t.confirm(true)}},this.doneText)))))))};e.prototype.renderWheelPicker=function(e){if(e===void 0){e=this.presentation}var t=e==="time-date"?[this.renderTimePickerColumns(e),this.renderDatePickerColumns(e)]:[this.renderDatePickerColumns(e),this.renderTimePickerColumns(e)];return a("ion-picker-internal",null,t)};e.prototype.renderDatePickerColumns=function(e){return e==="date-time"||e==="time-date"?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(e)};e.prototype.renderCombinedDatePickerColumn=function(){var e=this;var t=this,i=t.defaultParts,r=t.workingParts,n=t.locale,o=t.minParts,s=t.maxParts,d=t.todayParts,l=t.isDateEnabled;var c=this.getActivePartsWithFallback();var h=ne(r);var p=h[h.length-1];h[0].day=1;p.day=G(p.month,p.year);var f=o!==undefined&&O(o,h[0])?o:h[0];var m=s!==undefined&&D(s,p)?s:p;var g=N(n,d,f,m,this.parsedDayValues,this.parsedMonthValues);var b=g.items;var y=g.parts;if(l){b=b.map((function(e,t){var i=y[t];var r;try{r=!l(q(i))}catch(e){u("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",e)}return Object.assign(Object.assign({},e),{disabled:r})}))}var v=r.day!==null?"".concat(r.year,"-").concat(r.month,"-").concat(r.day):"".concat(i.year,"-").concat(i.month,"-").concat(i.day);return a("ion-picker-column-internal",{class:"date-column",color:this.color,items:b,value:v,onIonChange:function(t){if(e.destroyCalendarListener){e.destroyCalendarListener()}var i=t.detail.value;var n=y.find((function(e){var t=e.month,r=e.day,n=e.year;return i==="".concat(n,"-").concat(t,"-").concat(r)}));e.setWorkingParts(Object.assign(Object.assign({},r),n));e.setActiveParts(Object.assign(Object.assign({},c),n));e.initializeCalendarListener();t.stopPropagation()}})};e.prototype.renderIndividualDatePickerColumns=function(e){var t=this,i=t.workingParts,r=t.isDateEnabled;var n=e!=="year"&&e!=="time";var a=n?J(this.locale,i,this.minParts,this.maxParts,this.parsedMonthValues):[];var o=e==="date";var s=o?Q(this.locale,i,this.minParts,this.maxParts,this.parsedDayValues):[];if(r){s=s.map((function(e){var t=e.value;var n=typeof t==="string"?parseInt(t):t;var a={month:i.month,day:n,year:i.year};var o;try{o=!r(q(a))}catch(e){u("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",e)}return Object.assign(Object.assign({},e),{disabled:o})}))}var d=e!=="month"&&e!=="time";var l=d?X(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[];var c=Z(this.locale,{month:"numeric",day:"numeric"});var h=[];if(c){h=[this.renderMonthPickerColumn(a),this.renderDayPickerColumn(s),this.renderYearPickerColumn(l)]}else{h=[this.renderDayPickerColumn(s),this.renderMonthPickerColumn(a),this.renderYearPickerColumn(l)]}return h};e.prototype.renderDayPickerColumn=function(e){var t=this;var i;if(e.length===0){return[]}var r=this.workingParts;var n=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{class:"day-column",color:this.color,items:e,value:(i=r.day!==null?r.day:this.defaultParts.day)!==null&&i!==void 0?i:undefined,onIonChange:function(e){if(t.destroyCalendarListener){t.destroyCalendarListener()}t.setWorkingParts(Object.assign(Object.assign({},r),{day:e.detail.value}));t.setActiveParts(Object.assign(Object.assign({},n),{day:e.detail.value}));t.initializeCalendarListener();e.stopPropagation()}})};e.prototype.renderMonthPickerColumn=function(e){var t=this;if(e.length===0){return[]}var i=this.workingParts;var r=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{class:"month-column",color:this.color,items:e,value:i.month,onIonChange:function(e){if(t.destroyCalendarListener){t.destroyCalendarListener()}t.setWorkingParts(Object.assign(Object.assign({},i),{month:e.detail.value}));t.setActiveParts(Object.assign(Object.assign({},r),{month:e.detail.value}));t.initializeCalendarListener();e.stopPropagation()}})};e.prototype.renderYearPickerColumn=function(e){var t=this;if(e.length===0){return[]}var i=this.workingParts;var r=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{class:"year-column",color:this.color,items:e,value:i.year,onIonChange:function(e){if(t.destroyCalendarListener){t.destroyCalendarListener()}t.setWorkingParts(Object.assign(Object.assign({},i),{year:e.detail.value}));t.setActiveParts(Object.assign(Object.assign({},r),{year:e.detail.value}));t.initializeCalendarListener();e.stopPropagation()}})};e.prototype.renderTimePickerColumns=function(e){if(["date","month","month-year","year"].includes(e)){return[]}var t=this.getActivePart();var i=t!==undefined;var r=$(this.locale,this.workingParts,this.hourCycle,i?this.minParts:undefined,i?this.maxParts:undefined,this.parsedHourValues,this.parsedMinuteValues),n=r.hoursData,a=r.minutesData,o=r.dayPeriodData;return[this.renderHourPickerColumn(n),this.renderMinutePickerColumn(a),this.renderDayPeriodPickerColumn(o)]};e.prototype.renderHourPickerColumn=function(e){var t=this;var i=this.workingParts;if(e.length===0)return[];var r=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{color:this.color,value:r.hour,items:e,numericInput:true,onIonChange:function(e){t.setWorkingParts(Object.assign(Object.assign({},i),{hour:e.detail.value}));t.setActiveParts(Object.assign(Object.assign({},r),{hour:e.detail.value}));e.stopPropagation()}})};e.prototype.renderMinutePickerColumn=function(e){var t=this;var i=this.workingParts;if(e.length===0)return[];var r=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{color:this.color,value:r.minute,items:e,numericInput:true,onIonChange:function(e){t.setWorkingParts(Object.assign(Object.assign({},i),{minute:e.detail.value}));t.setActiveParts(Object.assign(Object.assign({},r),{minute:e.detail.value}));e.stopPropagation()}})};e.prototype.renderDayPeriodPickerColumn=function(e){var t=this;var i=this.workingParts;if(e.length===0){return[]}var r=this.getActivePartsWithFallback();var n=ee(this.locale);return a("ion-picker-column-internal",{style:n?{order:"-1"}:{},color:this.color,value:r.ampm,items:e,onIonChange:function(e){var n=ue(i,e.detail.value);t.setWorkingParts(Object.assign(Object.assign({},i),{ampm:e.detail.value,hour:n}));t.setActiveParts(Object.assign(Object.assign({},r),{ampm:e.detail.value,hour:n}));e.stopPropagation()}})};e.prototype.renderWheelView=function(e){var t;var i=this.locale;var r=Z(i);var n=r?"month-first":"year-first";return a("div",{class:(t={},t["wheel-order-".concat(n)]=true,t)},this.renderWheelPicker(e))};e.prototype.renderCalendarHeader=function(e){var t=this;var i=e==="ios"?x:k;var r=e==="ios"?v:w;var n=Te(this.workingParts,this.minParts,this.maxParts);var o=We(this.workingParts,this.maxParts);var s=this.el.getAttribute("dir")||undefined;return a("div",{class:"calendar-header"},a("div",{class:"calendar-action-buttons"},a("div",{class:"calendar-month-year"},a("ion-item",{part:"month-year-button",ref:function(e){return t.monthYearToggleItemRef=e},button:true,"aria-label":"Show year picker",detail:false,lines:"none",onClick:function(){var e;t.toggleMonthAndYearView();var i=t.monthYearToggleItemRef;if(i){var r=(e=i.shadowRoot)===null||e===void 0?void 0:e.querySelector(".item-native");if(r){var n=t.showMonthAndYear?"Hide year picker":"Show year picker";r.setAttribute("aria-label",n)}}}},a("ion-label",null,ie(this.locale,this.workingParts),a("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?i:r,lazy:false,flipRtl:true})))),a("div",{class:"calendar-next-prev"},a("ion-buttons",null,a("ion-button",{"aria-label":"Previous month",disabled:n,onClick:function(){return t.prevMonth()}},a("ion-icon",{dir:s,"aria-hidden":"true",slot:"icon-only",icon:y,lazy:false,flipRtl:true})),a("ion-button",{"aria-label":"Next month",disabled:o,onClick:function(){return t.nextMonth()}},a("ion-icon",{dir:s,"aria-hidden":"true",slot:"icon-only",icon:v,lazy:false,flipRtl:true}))))),a("div",{class:"calendar-days-of-week","aria-hidden":"true"},te(this.locale,e,this.firstDayOfWeek%7).map((function(e){return a("div",{class:"day-of-week"},e)}))))};e.prototype.renderMonth=function(e,t){var i=this;var r=this.parsedYearValues===undefined||this.parsedYearValues.includes(t);var n=this.parsedMonthValues===undefined||this.parsedMonthValues.includes(e);var o=!r||!n;var s=Me({month:e,year:t,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})});var d=this.workingParts.month===e&&this.workingParts.year===t;var l=this.getActivePartsWithFallback();return a("div",{"aria-hidden":!d?"true":null,class:{"calendar-month":true,"calendar-month-disabled":!d&&s}},a("div",{class:"calendar-month-grid"},re(e,t,this.firstDayOfWeek%7).map((function(r,n){var s=r.day,d=r.dayOfWeek;var c=i,h=c.el,p=c.highlightedDates,f=c.isDateEnabled,m=c.multiple;var g={month:e,day:s,year:t};var b=s===null;var y=ze(i.locale,g,i.activePartsClone,i.todayParts,i.minParts,i.maxParts,i.parsedDayValues),v=y.isActive,x=y.isToday,k=y.ariaLabel,w=y.ariaSelected,P=y.disabled,C=y.text;var j=q(g);var D=o||P;if(!D&&f!==undefined){try{D=!f(j)}catch(e){u("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",h,e)}}var O=undefined;if(p!==undefined&&!v&&s!==null){O=Ie(p,j,h)}return a("button",{tabindex:"-1","data-day":s,"data-month":e,"data-year":t,"data-index":n,"data-day-of-week":d,disabled:D,class:{"calendar-day-padding":b,"calendar-day":true,"calendar-day-active":v,"calendar-day-today":x},style:O&&{color:O.textColor},"aria-hidden":b?"true":null,"aria-selected":w,"aria-label":k,onClick:function(){if(b){return}i.setWorkingParts(Object.assign(Object.assign({},i.workingParts),{month:e,day:s,year:t}));if(m){i.setActiveParts({month:e,day:s,year:t},v)}else{i.setActiveParts(Object.assign(Object.assign({},l),{month:e,day:s,year:t}))}}},a("div",{class:"calendar-day-highlight",style:{backgroundColor:O===null||O===void 0?void 0:O.backgroundColor}}),C)}))))};e.prototype.renderCalendarBody=function(){var e=this;return a("div",{class:"calendar-body ion-focusable",ref:function(t){return e.calendarBodyRef=t},tabindex:"0"},ne(this.workingParts).map((function(t){var i=t.month,r=t.year;return e.renderMonth(i,r)})))};e.prototype.renderCalendar=function(e){return a("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(e),this.renderCalendarBody())};e.prototype.renderTimeLabel=function(){var e=this.el.querySelector('[slot="time-label"]')!==null;if(!e&&!this.showDefaultTimeLabel){return}return a("slot",{name:"time-label"},"Time")};e.prototype.renderTimeOverlay=function(){var e=this;var t=this,i=t.hourCycle,r=t.isTimePopoverOpen,n=t.locale;var o=ae(n,i);var s=this.getActivePartsWithFallback();return[a("div",{class:"time-header"},this.renderTimeLabel()),a("button",{class:{"time-body":true,"time-body-active":r},part:"time-button".concat(r?" active":""),"aria-expanded":"false","aria-haspopup":"true",onClick:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:e=this.popoverRef;if(!e)return[3,2];this.isTimePopoverOpen=true;e.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:t.target}}));return[4,e.onWillDismiss()];case 1:i.sent();this.isTimePopoverOpen=false;i.label=2;case 2:return[2]}}))}))}},oe(n,s,o)),a("ion-popover",{alignment:"center",translucent:true,overlayIndex:1,arrow:false,onWillPresent:function(e){var t=e.target.querySelectorAll("ion-picker-column-internal");t.forEach((function(e){return e.scrollActiveItemIntoView()}))},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:true,ref:function(t){return e.popoverRef=t}},this.renderWheelPicker("time"))]};e.prototype.getHeaderSelectedDateText=function(){var e=this,t=e.activeParts,i=e.multiple,r=e.titleSelectedDatesFormatter;var n=Array.isArray(t);var a;if(i&&n&&t.length!==1){a="".concat(t.length," days");if(r!==undefined){try{a=r(q(t))}catch(e){u("Exception in provided `titleSelectedDatesFormatter`: ",e)}}}else{a=se(this.locale,this.getActivePartsWithFallback())}return a};e.prototype.renderHeader=function(e){if(e===void 0){e=true}var t=this.el.querySelector('[slot="title"]')!==null;if(!t&&!this.showDefaultTitle){return}return a("div",{class:"datetime-header"},a("div",{class:"datetime-title"},a("slot",{name:"title"},"Select Date")),e&&a("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))};e.prototype.renderTime=function(){var e=this.presentation;var t=e==="time";return a("div",{class:"datetime-time"},t?this.renderWheelPicker():this.renderTimeOverlay())};e.prototype.renderCalendarViewMonthYearPicker=function(){return a("div",{class:"datetime-year"},this.renderWheelView("month-year"))};e.prototype.renderDatetime=function(e){var t=this,i=t.presentation,r=t.preferWheel;var n=i==="date"||i==="date-time"||i==="time-date";if(r&&n){return[this.renderHeader(false),this.renderWheelView(),this.renderFooter()]}switch(i){case"date-time":return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(false),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(false),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}};e.prototype.render=function(){var e;var t=this,i=t.name,r=t.value,n=t.disabled,s=t.el,d=t.color,l=t.readonly,h=t.showMonthAndYear,p=t.preferWheel,u=t.presentation,f=t.size;var m=P(this);var b=u==="year"||u==="month"||u==="month-year";var y=h||b;var v=h&&!b;var x=u==="date"||u==="date-time"||u==="time-date";var k=x&&p;var w=x&&!p;c(true,s,i,de(r),n);return a(o,{"aria-disabled":n?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},g(d,(e={},e[m]=true,e["datetime-readonly"]=l,e["datetime-disabled"]=n,e["show-month-and-year"]=y,e["month-year-picker-open"]=v,e["datetime-presentation-".concat(u)]=true,e["datetime-size-".concat(f)]=true,e["datetime-prefer-wheel"]=k,e["datetime-grid"]=w,e)))},this.renderDatetime(m))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],activeParts:["activePartsChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return e}());var Fe=0;Se.style={ios:_e,md:Le};var Ye=function(e){var t=Ce();var i=Ce();var r=Ce();i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);r.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)");return t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,r])};var Ee=function(e){var t=Ce();var i=Ce();var r=Ce();i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01);r.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)");return t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,r])};var He=".sc-ion-picker-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-ios-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-ios-h{left:0}[dir=rtl].sc-ion-picker-ios-h,[dir=rtl] .sc-ion-picker-ios-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-ios-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-ios-h{display:none}.picker-wrapper.sc-ion-picker-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-ios:active,.picker-button.sc-ion-picker-ios:focus{outline:none}.picker-columns.sc-ion-picker-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-ios,.picker-below-highlight.sc-ion-picker-ios{display:none;pointer-events:none}.sc-ion-picker-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-ios:last-child .picker-button.sc-ion-picker-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:16px}.picker-columns.sc-ion-picker-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}";var Be=".sc-ion-picker-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-md-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-md-h{left:0}[dir=rtl].sc-ion-picker-md-h,[dir=rtl] .sc-ion-picker-md-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-md-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-md-h{display:none}.picker-wrapper.sc-ion-picker-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-md:active,.picker-button.sc-ion-picker-md:focus{outline:none}.picker-columns.sc-ion-picker-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-md,.picker-below-highlight.sc-ion-picker-md{display:none;pointer-events:none}.sc-ion-picker-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}";var Re=e("ion_picker",function(){function e(e){var t=this;i(this,e);this.didPresent=r(this,"ionPickerDidPresent",7);this.willPresent=r(this,"ionPickerWillPresent",7);this.willDismiss=r(this,"ionPickerWillDismiss",7);this.didDismiss=r(this,"ionPickerDidDismiss",7);this.didPresentShorthand=r(this,"didPresent",7);this.willPresentShorthand=r(this,"willPresent",7);this.willDismissShorthand=r(this,"willDismiss",7);this.didDismissShorthand=r(this,"didDismiss",7);this.delegateController=fe(this);this.triggerController=me();this.onBackdropTap=function(){t.dismiss(undefined,ge)};this.dispatchCancelHandler=function(e){var i=e.detail.role;if(be(i)){var r=t.buttons.find((function(e){return e.role==="cancel"}));t.callButtonHandler(r)}};this.presented=false;this.overlayIndex=undefined;this.delegate=undefined;this.hasController=false;this.keyboardClose=true;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.buttons=[];this.columns=[];this.cssClass=undefined;this.duration=0;this.showBackdrop=true;this.backdropDismiss=true;this.animated=true;this.htmlAttributes=undefined;this.isOpen=false;this.trigger=undefined}e.prototype.onIsOpenChange=function(e,t){if(e===true&&t===false){this.present()}else if(e===false&&t===true){this.dismiss()}};e.prototype.triggerChanged=function(){var e=this,t=e.trigger,i=e.el,r=e.triggerController;if(t){r.addClickListener(i,t)}};e.prototype.connectedCallback=function(){ye(this.el);this.triggerChanged()};e.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};e.prototype.componentWillLoad=function(){ve(this.el)};e.prototype.componentDidLoad=function(){var e=this;if(this.isOpen===true){l((function(){return e.present()}))}};e.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:if(!(this.currentTransition!==undefined))return[3,2];return[4,this.currentTransition];case 1:t.sent();t.label=2;case 2:return[4,this.delegateController.attachViewToDom()];case 3:t.sent();this.currentTransition=xe(this,"pickerEnter",Ye,Ye,undefined);return[4,this.currentTransition];case 4:t.sent();this.currentTransition=undefined;if(this.duration>0){this.durationTimeout=setTimeout((function(){return e.dismiss()}),this.duration)}return[2]}}))}))};e.prototype.dismiss=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:if(this.durationTimeout){clearTimeout(this.durationTimeout)}this.currentTransition=ke(this,e,t,"pickerLeave",Ee,Ee);return[4,this.currentTransition];case 1:i=r.sent();if(i){this.delegateController.removeViewFromDom()}return[2,i]}}))}))};e.prototype.onDidDismiss=function(){return we(this.el,"ionPickerDidDismiss")};e.prototype.onWillDismiss=function(){return we(this.el,"ionPickerWillDismiss")};e.prototype.getColumn=function(e){return Promise.resolve(this.columns.find((function(t){return t.name===e})))};e.prototype.buttonClick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(r){switch(r.label){case 0:t=e.role;if(be(t)){return[2,this.dismiss(undefined,t)]}return[4,this.callButtonHandler(e)];case 1:i=r.sent();if(i){return[2,this.dismiss(this.getSelected(),e.role)]}return[2,Promise.resolve()]}}))}))};e.prototype.callButtonHandler=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(!e)return[3,2];return[4,Pe(e.handler,this.getSelected())];case 1:t=i.sent();if(t===false){return[2,false]}i.label=2;case 2:return[2,true]}}))}))};e.prototype.getSelected=function(){var e={};this.columns.forEach((function(t,i){var r=t.selectedIndex!==undefined?t.options[t.selectedIndex]:undefined;e[t.name]={text:r?r.text:undefined,value:r?r.value:undefined,columnIndex:i}}));return e};e.prototype.render=function(){var e;var t=this;var i=this.htmlAttributes;var r=P(this);return a(o,Object.assign({"aria-modal":"true",tabindex:"-1"},i,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign((e={},e[r]=true,e["picker-".concat(r)]=true,e["overlay-hidden"]=true,e),b(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler}),a("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),a("div",{tabindex:"0"}),a("div",{class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},a("div",{class:"picker-toolbar"},this.buttons.map((function(e){return a("div",{class:qe(e)},a("button",{type:"button",onClick:function(){return t.buttonClick(e)},class:Ke(e)},e.text))}))),a("div",{class:"picker-columns"},a("div",{class:"picker-above-highlight"}),this.presented&&this.columns.map((function(e){return a("ion-picker-column",{col:e})})),a("div",{class:"picker-below-highlight"}))),a("div",{tabindex:"0"}))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return e}());var qe=function(e){var t;return t={},t["picker-toolbar-".concat(e.role)]=e.role!==undefined,t["picker-toolbar-button"]=true,t};var Ke=function(e){return Object.assign({"picker-button":true,"ion-activatable":true},b(e.cssClass))};Re.style={ios:He,md:Be};var Ue=".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}";var Ge=".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}";var Ne=e("ion_picker_column",function(){function e(e){i(this,e);this.ionPickerColChange=r(this,"ionPickerColChange",7);this.optHeight=0;this.rotateFactor=0;this.scaleFactor=1;this.velocity=0;this.y=0;this.noAnimate=true;this.colDidChange=false;this.col=undefined}e.prototype.colChanged=function(){this.colDidChange=true};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var a=this;return __generator(this,(function(o){switch(o.label){case 0:e=0;i=.81;r=P(this);if(r==="ios"){e=-.46;i=1}this.rotateFactor=e;this.scaleFactor=i;n=this;return[4,t.import("./p-fa8d4788.system.js")];case 1:n.gesture=o.sent().createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:false,onStart:function(e){return a.onStart(e)},onMove:function(e){return a.onMove(e)},onEnd:function(e){return a.onEnd(e)}});this.gesture.enable();this.tmrId=setTimeout((function(){a.noAnimate=false;a.refresh(true)}),250);return[2]}}))}))};e.prototype.componentDidLoad=function(){this.onDomChange()};e.prototype.componentDidUpdate=function(){if(this.colDidChange){this.onDomChange(true,false);this.colDidChange=false}};e.prototype.disconnectedCallback=function(){if(this.rafId!==undefined)cancelAnimationFrame(this.rafId);if(this.tmrId)clearTimeout(this.tmrId);if(this.gesture){this.gesture.destroy();this.gesture=undefined}};e.prototype.emitColChange=function(){this.ionPickerColChange.emit(this.col)};e.prototype.setSelected=function(e,t){var i=e>-1?-(e*this.optHeight):0;this.velocity=0;if(this.rafId!==undefined)cancelAnimationFrame(this.rafId);this.update(i,t,true);this.emitColChange()};e.prototype.update=function(e,t,i){if(!this.optsEl){return}var r=0;var n=0;var a=this,o=a.col,s=a.rotateFactor;var d=o.selectedIndex;var l=o.selectedIndex=this.indexForY(-e);var c=t===0?"":t+"ms";var h="scale(".concat(this.scaleFactor,")");var p=this.optsEl.children;for(var u=0;u<p.length;u++){var f=p[u];var m=o.options[u];var g=u*this.optHeight+e;var b="";if(s!==0){var y=g*s;if(Math.abs(y)<=90){r=0;n=90;b="rotateX(".concat(y,"deg) ")}else{r=-9999}}else{n=0;r=g}var v=l===u;b+="translate3d(0px,".concat(r,"px,").concat(n,"px) ");if(this.scaleFactor!==1&&!v){b+=h}if(this.noAnimate){m.duration=0;f.style.transitionDuration=""}else if(t!==m.duration){m.duration=t;f.style.transitionDuration=c}if(b!==m.transform){m.transform=b}f.style.transform=b;m.selected=v;if(v){f.classList.add(Je)}else{f.classList.remove(Je)}}this.col.prevSelected=d;if(i){this.y=e}if(this.lastIndex!==l){je();this.lastIndex=l}};e.prototype.decelerate=function(){var e=this;if(this.velocity!==0){this.velocity*=Qe;this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);var t=this.y+this.velocity;if(t>this.minY){t=this.minY;this.velocity=0}else if(t<this.maxY){t=this.maxY;this.velocity=0}this.update(t,0,true);var i=Math.round(t)%this.optHeight!==0||Math.abs(this.velocity)>1;if(i){this.rafId=requestAnimationFrame((function(){return e.decelerate()}))}else{this.velocity=0;this.emitColChange();De()}}else if(this.y%this.optHeight!==0){var r=Math.abs(this.y%this.optHeight);this.velocity=r>this.optHeight/2?1:-1;this.decelerate()}};e.prototype.indexForY=function(e){return Math.min(Math.max(Math.abs(Math.round(e/this.optHeight)),0),this.col.options.length-1)};e.prototype.onStart=function(e){if(e.event.cancelable){e.event.preventDefault()}e.event.stopPropagation();Oe();if(this.rafId!==undefined)cancelAnimationFrame(this.rafId);var t=this.col.options;var i=t.length-1;var r=0;for(var n=0;n<t.length;n++){if(!t[n].disabled){i=Math.min(i,n);r=Math.max(r,n)}}this.minY=-(i*this.optHeight);this.maxY=-(r*this.optHeight)};e.prototype.onMove=function(e){if(e.event.cancelable){e.event.preventDefault()}e.event.stopPropagation();var t=this.y+e.deltaY;if(t>this.minY){t=Math.pow(t,.8);this.bounceFrom=t}else if(t<this.maxY){t+=Math.pow(this.maxY-t,.9);this.bounceFrom=t}else{this.bounceFrom=0}this.update(t,0,false)};e.prototype.onEnd=function(e){if(this.bounceFrom>0){this.update(this.minY,100,true);this.emitColChange();return}else if(this.bounceFrom<0){this.update(this.maxY,100,true);this.emitColChange();return}this.velocity=p(-Xe,e.velocityY*23,Xe);if(this.velocity===0&&e.deltaY===0){var t=e.event.target.closest(".picker-opt");if(t===null||t===void 0?void 0:t.hasAttribute("opt-index")){this.setSelected(parseInt(t.getAttribute("opt-index"),10),Ze)}}else{this.y+=e.deltaY;if(Math.abs(e.velocityY)<.05){var i=e.deltaY>0;var r=Math.abs(this.y)%this.optHeight/this.optHeight;if(i&&r>.5){this.velocity=Math.abs(this.velocity)*-1}else if(!i&&r<=.5){this.velocity=Math.abs(this.velocity)}}this.decelerate()}};e.prototype.refresh=function(e,t){var i;var r=this.col.options.length-1;var n=0;var a=this.col.options;for(var o=0;o<a.length;o++){if(!a[o].disabled){r=Math.min(r,o);n=Math.max(n,o)}}if(this.velocity!==0){return}var s=p(r,(i=this.col.selectedIndex)!==null&&i!==void 0?i:0,n);if(this.col.prevSelected!==s||e){var d=s*this.optHeight*-1;var l=t?Ze:0;this.velocity=0;this.update(d,l,true)}};e.prototype.onDomChange=function(e,t){var i=this.optsEl;if(i){this.optHeight=i.firstElementChild?i.firstElementChild.clientHeight:0}this.refresh(e,t)};e.prototype.render=function(){var e;var t=this;var i=this.col;var r=P(this);return a(o,{class:Object.assign((e={},e[r]=true,e["picker-col"]=true,e["picker-opts-left"]=this.col.align==="left",e["picker-opts-right"]=this.col.align==="right",e),b(i.cssClass)),style:{"max-width":this.col.columnWidth}},i.prefix&&a("div",{class:"picker-prefix",style:{width:i.prefixWidth}},i.prefix),a("div",{class:"picker-opts",style:{maxWidth:i.optionsWidth},ref:function(e){return t.optsEl=e}},i.options.map((function(e,t){return a("button",{"aria-label":e.ariaLabel,class:{"picker-opt":true,"picker-opt-disabled":!!e.disabled},"opt-index":t},e.text)}))),i.suffix&&a("div",{class:"picker-suffix",style:{width:i.suffixWidth}},i.suffix))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{col:["colChanged"]}},enumerable:false,configurable:true});return e}());var Je="picker-opt-selected";var Qe=.97;var Xe=90;var Ze=150;Ne.style={ios:Ue,md:Ge}}}}));