@ionic/core 9.0.11-dev.11793726772.1e883321 → 9.0.11-dev.11793727726.19b906b5

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 (89) hide show
  1. package/components/ion-action-sheet.js +1 -1
  2. package/components/ion-alert.js +1 -1
  3. package/components/ion-content.js +1 -1
  4. package/components/ion-datetime-button.js +1 -1
  5. package/components/ion-datetime.js +1 -1
  6. package/components/ion-modal.js +1 -1
  7. package/components/ion-popover.js +1 -1
  8. package/components/ion-select-modal.js +1 -1
  9. package/components/ion-select.js +1 -1
  10. package/components/ion-toast.js +1 -1
  11. package/components/{p-DtZimz8H.js → p-1HReh-CB.js} +1 -1
  12. package/components/{p-BCQSEpww.js → p-B7ExaLVL.js} +1 -1
  13. package/components/{p-CseHeZbU.js → p-BCYVFy50.js} +1 -1
  14. package/components/p-ByE0slik.js +4 -0
  15. package/components/p-DgNvIX46.js +4 -0
  16. package/components/p-DmyvpOqm.js +4 -0
  17. package/components/p-mG85e2ek.js +4 -0
  18. package/css/ionic/bundle.ionic.css +1 -1
  19. package/css/ionic/bundle.ionic.css.map +1 -1
  20. package/css/ionic/core.ionic.css +1 -1
  21. package/css/ionic/core.ionic.css.map +1 -1
  22. package/css/ionic/global.bundle.ionic.css.map +1 -1
  23. package/css/ionic/link.ionic.css.map +1 -1
  24. package/css/ionic/typography.ionic.css.map +1 -1
  25. package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
  26. package/dist/cjs/ion-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/ion-app_8.cjs.entry.js +5 -13
  28. package/dist/cjs/ion-datetime-button.cjs.entry.js +33 -6
  29. package/dist/cjs/ion-datetime.cjs.entry.js +353 -36
  30. package/dist/cjs/ion-modal.cjs.entry.js +1 -1
  31. package/dist/cjs/ion-popover.cjs.entry.js +1 -1
  32. package/dist/cjs/ion-toast.cjs.entry.js +1 -1
  33. package/dist/cjs/ionic.cjs.js +1 -1
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/collection/components/action-sheet/action-sheet.ionic.css +1 -1
  36. package/dist/collection/components/alert/alert.ionic.css +1 -1
  37. package/dist/collection/components/content/{content.ios.css → content.css} +41 -65
  38. package/dist/collection/components/content/content.js +5 -9
  39. package/dist/collection/components/datetime/datetime.ionic.css +179 -5
  40. package/dist/collection/components/datetime/datetime.ios.css +134 -2
  41. package/dist/collection/components/datetime/datetime.js +406 -33
  42. package/dist/collection/components/datetime/datetime.md.css +120 -0
  43. package/dist/collection/components/datetime/utils/state.js +18 -1
  44. package/dist/collection/components/datetime-button/datetime-button.js +34 -6
  45. package/dist/collection/components/modal/modal.ionic.css +2 -2
  46. package/dist/collection/components/popover/popover.ionic.css +1 -2
  47. package/dist/collection/components/toast/toast.ionic.css +1 -1
  48. package/dist/docs.json +160 -127
  49. package/dist/esm/{format-NT7iHsbA.js → format-DUHrIiJq.js} +1 -1
  50. package/dist/esm/ion-action-sheet.entry.js +1 -1
  51. package/dist/esm/ion-alert.entry.js +1 -1
  52. package/dist/esm/ion-app_8.entry.js +5 -13
  53. package/dist/esm/ion-datetime-button.entry.js +34 -7
  54. package/dist/esm/ion-datetime.entry.js +354 -37
  55. package/dist/esm/ion-modal.entry.js +1 -1
  56. package/dist/esm/ion-popover.entry.js +1 -1
  57. package/dist/esm/ion-toast.entry.js +1 -1
  58. package/dist/esm/ionic.js +1 -1
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/html.html-data.json +20 -0
  61. package/dist/ionic/ionic.esm.js +1 -1
  62. package/dist/ionic/{p-b076511a.entry.js → p-3674a7de.entry.js} +1 -1
  63. package/dist/ionic/p-56d77e95.entry.js +4 -0
  64. package/dist/ionic/{p-3ddd32cc.entry.js → p-5a024b02.entry.js} +1 -1
  65. package/dist/ionic/p-9cce1ed5.entry.js +4 -0
  66. package/dist/ionic/{p-BtccSO5J.js → p-CaOPF8Xt.js} +1 -1
  67. package/dist/ionic/p-b30b468d.entry.js +4 -0
  68. package/dist/ionic/p-ceca04fb.entry.js +4 -0
  69. package/dist/ionic/p-d7da66b1.entry.js +4 -0
  70. package/dist/ionic/p-f02c29cd.entry.js +4 -0
  71. package/dist/types/components/datetime/datetime-interface.d.ts +4 -0
  72. package/dist/types/components/datetime/datetime.d.ts +71 -2
  73. package/dist/types/components/datetime/utils/state.d.ts +5 -2
  74. package/dist/types/components.d.ts +33 -0
  75. package/hydrate/index.js +405 -61
  76. package/hydrate/index.mjs +405 -61
  77. package/package.json +2 -2
  78. package/components/p-Da8LCPwo.js +0 -4
  79. package/components/p-DibGn4gb.js +0 -4
  80. package/components/p-NZGZhPF5.js +0 -4
  81. package/components/p-PFwuhbqg.js +0 -4
  82. package/dist/collection/components/content/content.ionic.css +0 -352
  83. package/dist/collection/components/content/content.md.css +0 -347
  84. package/dist/ionic/p-0743a26a.entry.js +0 -4
  85. package/dist/ionic/p-1d87b153.entry.js +0 -4
  86. package/dist/ionic/p-39e3be74.entry.js +0 -4
  87. package/dist/ionic/p-a1555032.entry.js +0 -4
  88. package/dist/ionic/p-ad46d2fd.entry.js +0 -4
  89. package/dist/ionic/p-dbf53341.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{d as t,H as o,i as e,p as a,w as i,e as r,h as s,f as n,t as d}from"./p-DFBWAYvo.js";import{i as h,b as p,a as l,d as c,r as m,f,p as b}from"./p-BmfO2-NE.js";import{C as u,a as v,d as x}from"./p-B_o50gvn.js";import{q as w,g,e as k,r as y,k as A,m as Y}from"./p-7-zF1amS.js";import{c as S}from"./p-B-hirT0v.js";import{g as D}from"./p-CIGNaXM1.js";import{G as C,O as E,F as O,n as B,d as T,B as M,h as P,r as z,j as I,k as N,e as R,f as $,g as j}from"./p-ET0FZop5.js";import{g as L}from"./p-BUF_V-Kg.js";import{e as F,w as W}from"./p-o89R3aqe.js";import{c as H,b as Z}from"./p-C93i7QCU.js";import{KEYBOARD_DID_OPEN as V}from"./p-D7-vHX0A.js";import{c as K}from"./p-CXzJ234J.js";import{w as U}from"./p-ZjP4CjeZ.js";import{g as _}from"./p-hHmYLOfE.js";import{createGesture as G}from"./p-D0YpjgON.js";import{d as X}from"./p-DbKRl9BQ.js";var q;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(q||(q={}));const J={getEngine(){const t=D();if(t?.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},setStyle(t){const o=this.getEngine();o&&o.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return q.Default;const{style:o}=await t.getInfo();return o}},Q=(t,o)=>{if(1===o)return 0;const e=1/(1-o);return t*e+-o*e},tt=()=>{!U||U.innerWidth>=768||J.setStyle({style:q.Dark})},ot=(t=q.Default)=>{!U||U.innerWidth>=768||J.setStyle({style:t})},et=t=>{const{currentBreakpoint:o,backdropBreakpoint:e,expandToScroll:a,staticBackdropOpacity:i}=t,r=void 0===e||e<o;let s="0";i?s="calc(var(--backdrop-opacity)":r&&(s=`calc(var(--backdrop-opacity) * ${o})`);const n=K("backdropAnimation").fromTo("opacity",0,s);return r&&n.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:K("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*o}%)`}]),backdropAnimation:n,contentAnimation:a?void 0:K("contentAnimation").keyframes([{offset:0,opacity:1,maxHeight:100*(1-o)+"%"},{offset:1,opacity:1,maxHeight:100*o+"%"}])}},at=t=>{const{currentBreakpoint:o,backdropBreakpoint:e}=t,a=`calc(var(--backdrop-opacity) * ${Q(o,e)})`,i=[{offset:0,opacity:a},{offset:1,opacity:0}],r=[{offset:0,opacity:a},{offset:e,opacity:0},{offset:1,opacity:0}],s=K("backdropAnimation").keyframes(0!==e?r:i);return{wrapperAnimation:K("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*o}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},it=(t,o)=>{const{currentBreakpoint:e,expandToScroll:a}=o,i=g(t),{wrapperAnimation:r,backdropAnimation:s,contentAnimation:n}=void 0!==e?et(o):{backdropAnimation:K().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:K().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]),contentAnimation:void 0};s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelector(".modal-wrapper")),!a&&n?.addElement(t.querySelector(".ion-page")),s.duration(300).easing("ease-out"),r.duration(400).easing("cubic-bezier(0.32, 0.68, 0, 1)"),n?.duration(400).easing("cubic-bezier(0.32, 0.68, 0, 1)");const d=K().addElement(t).addAnimation([s,r]);return n&&d.addAnimation(n),d},rt=t=>{const o=h(t)?g(t).querySelector(".inner-scroll"):t;return!p(t)&&0===o.scrollTop},st=async(t,o)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,C)&&(o.isRunning()?o.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},nt=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,dt=.915,ht=(t,o)=>k(400,t/Math.abs(1.1*o),500),pt=(t,o)=>{const e=window.innerHeight,a=t.getBoundingClientRect().top,i=Math.round(1e3*(1-o/(e-a)))/1e3;return Math.max(0,Math.min(1,i))},lt=(t,o)=>{const{presentingEl:e,currentBreakpoint:a,expandToScroll:i}=o,r=g(t),{wrapperAnimation:s,backdropAnimation:n,contentAnimation:d}=void 0!==a?et(o):{backdropAnimation:K().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:K().fromTo("transform","translateY(100vh)","translateY(0vh)"),contentAnimation:void 0};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}),!i&&d?.addElement(t.querySelector(".ion-page"));const h=K("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation([s]);if(d&&h.addAnimation(d),e){const t=window.innerWidth<768,o="ION-MODAL"===e.tagName&&void 0!==e.presentingElement,a=g(e),i=K().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",a=`translateY(${o?"-10px":t}) scale(0.915)`;i.afterStyles({transform:a}).beforeAddWrite((()=>r.style.setProperty("background-color","black"))).addElement(e).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:a,borderRadius:"10px 10px 0 0"}]),h.addAnimation(i)}else if(h.addAnimation(n),o){const t=`translateY(-10px) scale(${o?dt:1})`;i.afterStyles({transform:t}).addElement(a.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const e=K().afterStyles({transform:t}).addElement(a.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);h.addAnimation([i,e])}else s.fromTo("opacity","0","1")}else h.addAnimation(n);return h},ct=(t,o,e=500)=>{const{presentingEl:a,currentBreakpoint:i}=o,r=g(t),{wrapperAnimation:s,backdropAnimation:n}=void 0!==i?at(o):{backdropAnimation:K().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:K().fromTo("transform","translateY(0vh)","translateY(100vh)")};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=K("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e).addAnimation(s);if(a){const t=window.innerWidth<768,o="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,e=g(a),i=K().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(a.style.setProperty("overflow",""),Array.from(r.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&r.style.setProperty("background-color",""))})),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",e=`translateY(${o?"-10px":t}) scale(0.915)`;i.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:e,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(i)}else if(d.addAnimation(n),o){const t=`translateY(-10px) scale(${o?dt:1})`;i.addElement(e.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const a=K().addElement(e.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([i,a])}else s.fromTo("opacity","1","0")}else d.addAnimation(n);return d},mt=(t,o)=>{const{currentBreakpoint:e,expandToScroll:a}=o,i=g(t),{wrapperAnimation:r,backdropAnimation:s,contentAnimation:n}=void 0!==e?et(o):{backdropAnimation:K().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:K().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]),contentAnimation:void 0};s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelector(".modal-wrapper")),!a&&n?.addElement(t.querySelector(".ion-page"));const d=K().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([s,r]);return n&&d.addAnimation(n),d},ft=(t,o)=>{const{currentBreakpoint:e}=o,a=g(t),{wrapperAnimation:i,backdropAnimation:r}=void 0!==e?at(o):{backdropAnimation:K().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:K().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(a.querySelector("ion-backdrop")),i.addElement(a.querySelector(".modal-wrapper")),K().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,i])};let bt=null,ut=!1;const vt=()=>{if(null!==bt)return bt;const t=U?.document;if(!t?.body)return 0;const o=t.createElement("div");o.style.cssText="position:fixed;visibility:hidden;pointer-events:none;top:0;left:0;padding-top:var(--ion-safe-area-top,0px);",t.body.appendChild(o);const e=parseFloat(getComputedStyle(o).paddingTop)||0;return o.remove(),bt=e,ut||(ut=!0,y((()=>{bt=null,ut=!1}))),e},xt=t=>{const o=getComputedStyle(t),e=B(o.getPropertyValue("--width")),a=B(o.getPropertyValue("--height"));return"fullscreen"===e&&"fullscreen"===a?{vertical:!0,horizontal:!0}:wt(t)},wt=t=>{const o=t.shadowRoot?.querySelector(".modal-wrapper");if(null==o||void 0===U)return{vertical:!1,horizontal:!1};const e=t.classList.contains("overlay-hidden");e&&t.classList.remove("overlay-hidden");const{width:a,height:i}=o.getBoundingClientRect();return e&&t.classList.add("overlay-hidden"),{vertical:i>=U.innerHeight-5,horizontal:a>=U.innerWidth-5}},gt=(t,o)=>{t.style.setProperty("--ion-safe-area-top",o.top),t.style.setProperty("--ion-safe-area-bottom",o.bottom),t.style.setProperty("--ion-safe-area-left",o.left),t.style.setProperty("--ion-safe-area-right",o.right)},kt=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.didPresent=e(this,"ionModalDidPresent",7),this.willPresent=e(this,"ionModalWillPresent",7),this.willDismiss=e(this,"ionModalWillDismiss",7),this.didDismiss=e(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=e(this,"ionBreakpointDidChange",7),this.didPresentShorthand=e(this,"didPresent",7),this.willPresentShorthand=e(this,"willPresent",7),this.willDismissShorthand=e(this,"willDismiss",7),this.didDismissShorthand=e(this,"didDismiss",7),this.ionMount=e(this,"ionMount",7),this.ionDragStart=e(this,"ionDragStart",7),this.ionDragMove=e(this,"ionDragMove",7),this.ionDragEnd=e(this,"ionDragEnd",7),this.lockController=S(),this.triggerController=T(),this.coreDelegate=u(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.isPresenting=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.expandToScroll=!0,this.backdropBreakpoint=0,this.handleBehavior="cycle",this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.isOpen=!1,this.keepContentsMounted=!1,this.focusTrap=!0,this.canDismiss=!0,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:o}=this;"cycle"===o&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,M)},this.onLifecycle=t=>{const o=this.usersElement,e=yt[t.type];if(o&&e){const a=new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t.detail});o.dispatchEvent(a)}},this.onModalFocus=t=>{const{dragHandleEl:o,el:e}=this;t.target===e&&null==e.shadowRoot?.activeElement&&o&&-1!==o.tabIndex&&o.focus()},this.onSlotChange=({target:t})=>{t.assignedElements().forEach((t=>{t.querySelectorAll("ion-modal").forEach((t=>{null===t.getAttribute("data-parent-ion-modal")&&t.setAttribute("data-parent-ion-modal",this.el.id)}))}))}}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)}onWindowResize(){this.presented&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{const t=this.getSafeAreaContext();if(!t.isCardModal||this.enterAnimation||this.leaveAnimation||this.handleViewTransition(),t.isSheetModal&&this.updateSheetOffsetTop(),!t.isSheetModal&&!t.isCardModal){this.updateSafeAreaOverrides();const{contentEl:t,hasFooter:o}=this.findContentAndFooter();this.clearContentSafeAreaPadding(t),this.applyFullscreenSafeAreaTo(t,o)}}),50))}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,o)=>t-o)))}connectedCallback(){const{el:t}=this;P(t),this.triggerChanged(),(this.presented||this.isPresenting)&&this.restoreSafeAreaOverrides(),this.presented&&(z(t),this.initParentRemovalObserver())}disconnectedCallback(){this.triggerController.removeClickListener(),this.cleanupViewTransitionListener(),this.cleanupParentRemovalObserver(),this.cleanupSafeAreaOverrides(),this.presented&&I()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:o,el:e,htmlAttributes:i}=this,r=this.isSheetModal=void 0!==t&&void 0!==o,s=["aria-label","role"];this.inheritedAttributes=A(e,s),e.parentNode&&(this.cachedOriginalParent=e.parentNode),void 0!==i&&s.forEach((t=>{i[t]&&(this.inheritedAttributes={...this.inheritedAttributes,[t]:i[t]},delete i[t])})),r&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===o||t.includes(o)||a("[ion-modal] - Your breakpoints array must include the initialBreakpoint value."),this.htmlAttributes?.id||N(this.el)}componentDidLoad(){!0===this.isOpen&&y((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,o){const{canDismiss:e}=this;return"function"==typeof e?e(t,o):e}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:o,el:e}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:a,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await v(r,e,this.component,["ion-page"],this.componentProps,a),Y(e)?await F(this.usersElement):this.keepContentsMounted||await W(),i((()=>this.el.classList.add("show-modal"))),this.isSheetModal=void 0!==this.breakpoints&&void 0!==this.initialBreakpoint,this.isPresenting=!0;const s=void 0!==o;try{this.setInitialSafeAreaOverrides(),s&&"ios"===H(this)&&(this.statusBarStyle=await J.getStyle(),tt()),await R(this,"modalEnter",lt,mt,it,{presentingEl:o,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll,staticBackdropOpacity:"ionic"===Z(this)})}finally{this.isPresenting=!1}this.updateSafeAreaOverrides(),this.applyFullscreenSafeArea(),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),y((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(V,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),this.initViewTransitionListener(),this.initParentRemovalObserver(),t()}initSwipeToClose(){if("ios"!==H(this))return;const{el:t}=this,o=this.leaveAnimation||r.get("modalLeave",ct),e=this.animation=o(t,{presentingEl:this.presentingElement,expandToScroll:this.expandToScroll});f(t)?(this.gesture=((t,o,e,a,i,r,s)=>{const n=.5,d=t.offsetHeight;let p=!1,f=!1,b=null,u=!0,v=0;const x=G({el:t,gestureName:"modalSwipeToClose",gesturePriority:E,direction:"y",threshold:10,canStart:t=>{const o=t.event.target;return null===o||!o.closest||(b=l(o),b?rt(b):null===o.closest("ion-footer"))},onStart:e=>{const{deltaY:a}=e;window.getSelection()?.removeAllRanges(),u=!b||!h(b)||b.scrollY,f=void 0!==t.canDismiss&&!0!==t.canDismiss,a>0&&b&&c(b),o.progressStart(!0,p?1:0),i()},onMove:a=>{const{deltaY:i}=a;i>0&&b&&c(b);const s=a.deltaY/d,h=s>=0&&f,p=h?.2:.9999,l=h?nt(s/p):s,m=k(1e-4,l,p);o.progressStep(m),m>=n&&v<n?ot(e):m<n&&v>=n&&tt(),v=m;const u={currentY:a.currentY,deltaY:a.deltaY,velocityY:a.velocityY,progress:pt(t,a.deltaY)};r(u)},onEnd:e=>{const i=e.velocityY,r=e.deltaY/d,h=r>=0&&f,l=h?.2:.9999,c=h?nt(r/l):r,v=k(1e-4,c,l),w=!h&&(e.deltaY+1e3*i)/d>=n;let g=w?-.001:.001;w?(o.easing("cubic-bezier(0.32, 0.72, 0, 1)"),g+=_([0,0],[.32,.72],[0,1],[1,1],v)[0]):(o.easing("cubic-bezier(1, 0, 0.68, 0.28)"),g+=_([0,0],[1,0],[.68,.28],[1,1],v)[0]);const y=ht(w?r*d:(1-v)*d,i);p=w,x.enable(!1),b&&m(b,u),o.onFinish((()=>{w||x.enable(!0)})).progressEnd(w?1:0,g,y);const A=h&&v>l/4;A?st(t,o):w&&a();const Y=h?A&&"function"==typeof t.canDismiss:w,S={currentY:e.currentY,deltaY:e.deltaY,velocityY:e.velocityY,progress:pt(t,e.deltaY),isDismissing:Y};s(S)}});return x})(t,e,this.statusBarStyle??q.Default,(()=>this.cardOnDismiss()),(()=>this.onDragStart()),(t=>this.onDragMove(t)),(t=>this.onDragEnd(t))),this.gesture.enable(!0)):b(t)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:o,backdropBreakpoint:e}=this;if(!t||void 0===o)return;const a=this.enterAnimation||r.get("modalEnter",lt),i=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:o,backdropBreakpoint:e,expandToScroll:this.expandToScroll,staticBackdropOpacity:"ionic"===Z(this)});i.progressStart(!0,1);const{gesture:s,moveSheetToBreakpoint:n,resetContentScroll:d}=((t,o,e,a,i,r,s=[],n,d,p,c,m,f,b,u)=>{const v={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==i?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:m?"var(--backdrop-opacity)":0},{offset:1,opacity:m?"var(--backdrop-opacity)":0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:m?"var(--backdrop-opacity)":.01}],CONTENT_KEYFRAMES:[{offset:0,maxHeight:"100%"},{offset:1,maxHeight:"0%"}]},x=t.querySelector("ion-content"),w=x?.scrollY??!0,A=e.clientHeight;let Y=a,S=0,D=!1,C=null,E=null,B=null,T=null;const M=s[s.length-1],P=s[0],z=r.childAnimations.find((t=>"wrapperAnimation"===t.id)),I=r.childAnimations.find((t=>"backdropAnimation"===t.id)),N=r.childAnimations.find((t=>"contentAnimation"===t.id)),R=()=>{!1!==t.focusTrap&&!1!==t.showBackdrop&&(t.style.setProperty("pointer-events","auto"),o.style.setProperty("pointer-events","auto"),t.classList.remove(O))},$=()=>{t.style.setProperty("pointer-events","none"),o.style.setProperty("pointer-events","none"),t.classList.add(O)},j=o=>{if(!E&&(E=Array.from(t.querySelectorAll("ion-footer")),!E.length))return;const e=t.querySelector(".ion-page");if(T=o,"stationary"===o)E.forEach((t=>{t.classList.remove("modal-footer-moving"),t.style.removeProperty("position"),t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("top"),t.style.removeProperty("left"),e?.style.removeProperty("padding-bottom"),e?.appendChild(t)}));else{let o=0;E.forEach(((e,a)=>{const i=e.getBoundingClientRect(),r=document.body.getBoundingClientRect();o+=e.clientHeight;const s=i.top-r.top,n=i.left-r.left;if(e.style.setProperty("--pinned-width",`${e.clientWidth}px`),e.style.setProperty("--pinned-height",`${e.clientHeight}px`),e.style.setProperty("--pinned-top",`${s}px`),e.style.setProperty("--pinned-left",`${n}px`),0===a){B=s;const o=t.querySelector("ion-header");o&&(B-=o.clientHeight)}})),E.forEach((t=>{e?.style.setProperty("padding-bottom",`${o}px`),t.classList.add("modal-footer-moving"),t.style.setProperty("position","absolute"),t.style.setProperty("width","var(--pinned-width)"),t.style.setProperty("height","var(--pinned-height)"),t.style.setProperty("top","var(--pinned-top)"),t.style.setProperty("left","var(--pinned-left)"),document.body.appendChild(t)}))}};z&&I&&(z.keyframes([...v.WRAPPER_KEYFRAMES]),I.keyframes([...v.BACKDROP_KEYFRAMES]),N?.keyframes([...v.CONTENT_KEYFRAMES]),r.progressStart(!0,1-Y),Y>i&&!1!==t.focusTrap&&!1!==t.showBackdrop?R():$()),x&&Y!==M&&n&&(x.scrollY=!1);const L=o=>{const{breakpoint:e,canDismiss:a,breakpointOffset:d,animated:h}=o,l=a&&0===e,f=l?Y:e,b=f===Y,u=m?b?300:400:500,g=b?"cubic-bezier(0.34, 1.4, 0.64, 1)":"cubic-bezier(0.32, 0.68, 0, 1)",k=0!==f;return Y=0,z&&I&&(z.keyframes([{offset:0,transform:`translateY(${100*d}%)`},{offset:1,transform:`translateY(${100*(1-f)}%)`}]),I.keyframes([{offset:0,opacity:m?"var(--backdrop-opacity)":`calc(var(--backdrop-opacity) * ${Q(1-d,i)})`},{offset:1,opacity:m?"var(--backdrop-opacity)":`calc(var(--backdrop-opacity) * ${Q(f,i)})`}]),N&&N.keyframes([{offset:0,maxHeight:100*(1-d)+"%"},{offset:1,maxHeight:100*f+"%"}]),r.progressStep(0)),m&&r.easing(g),K.enable(!1),l?st(t,r):k||p(),!x||f!==s[s.length-1]&&n||(x.scrollY=w),n||0!==f||j("stationary"),new Promise((o=>{r.onFinish((()=>{k?(n||j("stationary"),z&&I?y((()=>{z.keyframes([...v.WRAPPER_KEYFRAMES]),I.keyframes([...v.BACKDROP_KEYFRAMES]),N?.keyframes([...v.CONTENT_KEYFRAMES]),r.progressStart(!0,1-f),Y=f,c(Y),Y>i&&!1!==t.focusTrap&&!1!==t.showBackdrop?R():$(),K.enable(!0),o()})):(K.enable(!0),o())):o()}),{oneTimeCallback:!0}).progressEnd(1,0,h?u:0)}))},F=(t,o)=>m?H(t,o):W(t+350*o),W=t=>{const o=Z(t);return s.reduce(((t,e)=>Math.abs(e-o)<Math.abs(t-o)?e:t))},H=(t,o)=>{const e=1e3*o,a=Z(t);return e>500?P:e<-400?s.find((t=>t>a))??M:0===P&&Y>0&&(Y-a)/Y>.4?0:W(t)},Z=t=>{const o=Math.round(1e3*(Y-t/A))/1e3;return k(0,o,1)},V=t=>{const o=(Z(t)-P)/(M-P);return k(0,o,1)},K=G({el:e,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const o=l(t.event.target);return Y=d(),!(o&&(!n||1===Y))||rt(o)},onStart:o=>{if(window.getSelection()?.removeAllRanges(),D=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===P,!n){const t=l(o.event.target);C=t&&h(t)?g(t).querySelector(".inner-scroll"):t}n||j("moving"),o.deltaY>0&&x&&(x.scrollY=!1),y((()=>{t.focus()})),r.progressStart(!0,1-Y),f()},onMove:t=>{if(n||null===B||null===T||(t.currentY>=B&&"moving"===T?j("stationary"):t.currentY<B&&"stationary"===T&&j("moving")),!n&&t.deltaY<=0&&C)return;t.deltaY>0&&x&&(x.scrollY=!1);const o=s.length>1?1-s[1]:void 0,e=1-Y+t.deltaY/A,a=void 0!==o&&e>=o&&D,i=a?.95:.9999,d=a&&void 0!==o?o+nt((e-o)/(i-o)):e;S=k(1e-4,d,i),r.progressStep(S);const h=F(t.deltaY,t.velocityY),p={currentY:t.currentY,deltaY:t.deltaY,velocityY:t.velocityY,progress:V(t.deltaY),snapBreakpoint:h};b(p)},onEnd:o=>{const e=F(o.deltaY,o.velocityY),a=D&&0===e?"function"==typeof t.canDismiss:0===e,i={currentY:o.currentY,deltaY:o.deltaY,velocityY:o.velocityY,progress:V(o.deltaY),snapBreakpoint:e,isDismissing:a};if(!n&&o.deltaY<=0&&C&&C.scrollTop>0)return j("stationary"),void u({...i,isDismissing:!1});L({breakpoint:e,breakpointOffset:S,canDismiss:D,animated:!0}),u(i)}});return{gesture:K,moveSheetToBreakpoint:L,resetContentScroll:()=>{x&&(x.scrollY=w)}}})(this.el,this.backdropEl,t,o,e,i,this.sortedBreakpoints,this.expandToScroll,(()=>this.currentBreakpoint??0),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}),"ionic"===Z(this),(()=>this.onDragStart()),(t=>this.onDragMove(t)),(t=>this.onDragEnd(t)));this.gesture=s,this.moveSheetToBreakpoint=n,this.resetSheetContentScroll=d,this.gesture.enable(!0),(!1===this.showBackdrop||!1===this.focusTrap||e>0)&&this.setupChildRoutePassthrough()}setupChildRoutePassthrough(){this.cachedPageParent=this.getOriginalPageParent();const t=this.cachedPageParent;if(!t||"ION-APP"===t.tagName)return;if(Array.from(t.children).some((t=>!(t===this.el||t instanceof o&&"none"===window.getComputedStyle(t).display||"TEMPLATE"===t.tagName||"SLOT"===t.tagName||t.nodeType===Node.TEXT_NODE&&!t.textContent?.trim()))))return;t.classList.add("ion-page-overlay-passthrough");const e=t.parentElement;"ION-ROUTER-OUTLET"===e?.tagName&&"ION-APP"!==e.parentElement?.tagName&&(e.style.setProperty("pointer-events","none"),e.setAttribute("data-overlay-passthrough","true"))}getOriginalPageParent(){if(!this.cachedOriginalParent)return null;let t=this.cachedOriginalParent;for(;t&&!t.classList.contains("ion-page");)t=t.parentElement;return t}cleanupChildRoutePassthrough(){const t=this.cachedPageParent;if(!t)return;t.classList.remove("ion-page-overlay-passthrough");const o=t.parentElement;o?.hasAttribute("data-overlay-passthrough")&&(o.style.removeProperty("pointer-events"),o.removeAttribute("data-overlay-passthrough")),this.cachedPageParent=void 0}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,C),this.gestureAnimationDismissing=!1}))}cardOnDismiss(){this.gestureAnimationDismissing=!0,ot(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,C),this.gestureAnimationDismissing=!1}))}async dismiss(t,o){if(this.gestureAnimationDismissing&&o!==C)return!1;clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0;const e=await this.lockController.lock();if(await this.dismissNestedModals(),"handler"!==o&&!await this.checkCanDismiss(t,o))return e(),!1;const{presentingElement:a}=this;void 0!==a&&"ios"===H(this)&&ot(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(V,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const r=await $(this,t,o,"modalLeave",ct,ft,{presentingEl:a,currentBreakpoint:this.currentBreakpoint??this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll});if(r){const{delegate:t}=this.getDelegate();await x(t,this.usersElement),i((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),this.resetSheetContentScroll?.(),this.resetSheetContentScroll=void 0,this.cleanupViewTransitionListener(),this.cleanupParentRemovalObserver(),this.cleanupSafeAreaOverrides(),this.cleanupChildRoutePassthrough()}return this.currentBreakpoint=void 0,this.animation=void 0,e(),r}onDidDismiss(){return j(this.el,"ionModalDidDismiss")}onWillDismiss(){return j(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void a("[ion-modal] - setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void a(`[ion-modal] - Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:o,moveSheetToBreakpoint:e,canDismiss:i,breakpoints:r,animated:s}=this;o!==t&&e&&(this.sheetTransition=e({breakpoint:t,breakpointOffset:1-o,canDismiss:void 0!==i&&!0!==i&&0===r[0],animated:s}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:o}=this;if(!t||null==o)return!1;const e=t.filter((t=>0!==t)),a=e.indexOf(o),i=e[(a+1)%e.length];return await this.setCurrentBreakpoint(i),!0}getShape(){const t=Z(this),{shape:o}=this;if("ionic"===t)return void 0===o?"round":o}initViewTransitionListener(){"ios"!==H(this)||!this.presentingElement||this.enterAnimation||this.leaveAnimation||(this.currentViewIsPortrait=window.innerWidth<768)}handleViewTransition(){if(!this.presented)return;const t=window.innerWidth<768;if(this.currentViewIsPortrait===t)return;this.viewTransitionAnimation&&(this.viewTransitionAnimation.destroy(),this.viewTransitionAnimation=void 0);const{presentingElement:o}=this;if(!o)return;let e;e=this.currentViewIsPortrait&&!t?((t,o,e=300)=>{const{presentingEl:a}=o;if(!a)return K("portrait-to-landscape-transition");const i="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,r=g(a),s=document.body,n=K("portrait-to-landscape-transition").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e),d=K().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});if(i){const t="translateY(-10px) scale(0.915)",o="translateY(0px) scale(1)";d.addElement(a).afterStyles({transform:o}).fromTo("transform",t,o).fromTo("filter","contrast(0.85)","contrast(1)");const e=K().addElement(r.querySelector(".modal-shadow")).afterStyles({transform:o,opacity:"0"}).fromTo("transform",t,o);n.addAnimation([d,e])}else{const o=g(t),e=K().addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).fromTo("opacity","1","1"),i=K().addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)","var(--backdrop-opacity)"),r=`translateY(${CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px"}) scale(0.915)`;d.addElement(a).afterStyles({transform:"translateY(0px) scale(1)","border-radius":"0px"}).beforeAddWrite((()=>s.style.setProperty("background-color",""))).fromTo("transform",r,"translateY(0px) scale(1)").fromTo("filter","contrast(0.85)","contrast(1)").fromTo("border-radius","10px 10px 0 0","0px"),n.addAnimation([d,e,i])}return n})(this.el,{presentingEl:o}):((t,o,e=300)=>{const{presentingEl:a}=o;if(!a)return K("landscape-to-portrait-transition");const i="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,r=g(a),s=document.body,n=K("landscape-to-portrait-transition").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e),d=K().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});if(i){const t="translateY(-10px) scale(0.915)",o="translateY(0) scale(1)";d.addElement(a).afterStyles({transform:o}).fromTo("transform",t,o);const e=K().addElement(r.querySelector(".modal-shadow")).afterStyles({transform:o,opacity:"0"}).fromTo("transform",t,o);n.addAnimation([d,e])}else{const o=g(t),e=K().addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).fromTo("opacity","1","1"),i=K().addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)","var(--backdrop-opacity)"),r=`translateY(${CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px"}) scale(0.915)`;d.addElement(a).afterStyles({transform:r}).beforeAddWrite((()=>s.style.setProperty("background-color","black"))).keyframes([{offset:0,transform:"translateY(0px) scale(1)",filter:"contrast(1)",borderRadius:"0px"},{offset:.2,transform:"translateY(0px) scale(1)",filter:"contrast(1)",borderRadius:"10px 10px 0 0"},{offset:1,transform:r,filter:"contrast(0.85)",borderRadius:"10px 10px 0 0"}]),n.addAnimation([d,e,i])}return n})(this.el,{presentingEl:o}),this.currentViewIsPortrait=t,this.viewTransitionAnimation=e,e.play().then((()=>{this.viewTransitionAnimation=void 0,y((()=>this.updateSafeAreaOverrides())),this.reinitSwipeToClose()}))}cleanupViewTransitionListener(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0),this.viewTransitionAnimation&&(this.viewTransitionAnimation.destroy(),this.viewTransitionAnimation=void 0)}reinitSwipeToClose(){"ios"===H(this)&&this.presentingElement&&(this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation&&(this.animation.progressEnd(0,0,0),this.animation.destroy(),this.animation=void 0),y((()=>{this.ensureCorrectModalPosition(),this.initSwipeToClose()})))}ensureCorrectModalPosition(){const{el:t,presentingElement:o}=this,e=g(t).querySelector(".modal-wrapper");if(e&&(e.style.transform="translateY(0vh)",e.style.opacity="1"),"ION-MODAL"===o?.tagName)if(window.innerWidth<768){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px";o.style.transform=`translateY(${t}) scale(0.915)`}else o.style.transform="translateY(0px) scale(1)"}async dismissNestedModals(){const t=document.querySelectorAll(`ion-modal[data-parent-ion-modal="${this.el.id}"]`);t?.forEach((async t=>{await t.dismiss(void 0,"parent-dismissed")}))}initParentRemovalObserver(){"undefined"!=typeof MutationObserver&&"undefined"!=typeof window&&this.cachedOriginalParent&&this.cachedOriginalParent.nodeType!==Node.DOCUMENT_NODE&&this.cachedOriginalParent.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(this.hasController||this.cachedOriginalParent===document.body||"ION-APP"===this.cachedOriginalParent.tagName||(this.cleanupParentRemovalObserver(),this.parentRemovalObserver=new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&t.removedNodes.length>0&&(Array.from(t.removedNodes).some((t=>{const o=t===this.cachedOriginalParent,e=!!this.cachedOriginalParent&&t.contains?.(this.cachedOriginalParent);return o||e}))||this.cachedOriginalParent&&!this.cachedOriginalParent.isConnected)&&(this.dismiss(void 0,"parent-removed"),this.cachedOriginalParent=void 0)}))})),this.parentRemovalObserver.observe(document.body,{childList:!0,subtree:!0})))}cleanupParentRemovalObserver(){this.parentRemovalObserver?.disconnect(),this.parentRemovalObserver=void 0}onDragStart(){this.ionDragStart.emit()}onDragMove(t){this.ionDragMove.emit(t)}onDragEnd(t){this.ionDragEnd.emit(t)}getSafeAreaContext(){return{isSheetModal:this.isSheetModal,isCardModal:void 0!==this.presentingElement&&"ios"===H(this),presentingElement:this.presentingElement,breakpoints:this.breakpoints,currentBreakpoint:this.currentBreakpoint}}watchHeightForContent(){var t;this.isSheetModal||(this.unsubscribeHeightChange?.(),this.unsubscribeHeightChange=(t=()=>{this.el.querySelectorAll("ion-content").forEach((t=>t.recalculateDimensions()))},w(this.el,"--height",(()=>t()))))}setInitialSafeAreaOverrides(){const t={...this.getSafeAreaContext(),coveredAxes:xt(this.el)},o=(t=>{const{isSheetModal:o,isCardModal:e}=t;if(o)return{top:"0px",bottom:"inherit",left:"0px",right:"0px"};if(e)return{top:"inherit",bottom:"inherit",left:"0px",right:"0px"};const{vertical:a,horizontal:i}=t.coveredAxes??{vertical:!0,horizontal:!0};return{top:a?"inherit":"0px",bottom:a?"inherit":"0px",left:i?"inherit":"0px",right:i?"inherit":"0px"}})(t);var e;gt(this.el,o),this.watchHeightForContent(),t.isSheetModal&&(this.updateSheetOffsetTop(),this.unsubscribeRootSafeAreaTop?.(),this.unsubscribeRootSafeAreaTop=(e=t=>this.updateSheetOffsetTop(t),w(U?.document?.body,"--ion-safe-area-top",e,vt())))}updateSheetOffsetTop(t){const o=t??vt();this.el.style.setProperty("--ion-modal-offset-top",`${o}px`)}updateSafeAreaOverrides(){const{wrapperEl:t,el:o}=this,e=this.getSafeAreaContext();if(e.isSheetModal)return;if(e.isCardModal)return;if(!t)return;const a=(t=>{const o=t.getBoundingClientRect();return{top:o.top<=5?"inherit":"0px",bottom:o.bottom>=(U?.innerHeight??0)-5?"inherit":"0px",left:o.left<=5?"inherit":"0px",right:o.right>=(U?.innerWidth??0)-5?"inherit":"0px"}})(t);gt(o,a)}applyFullscreenSafeArea(){const t=this.getSafeAreaContext();if(t.isSheetModal||t.isCardModal)return;const{contentEl:o,hasFooter:e}=this.findContentAndFooter();this.applyFullscreenSafeAreaTo(o,e)}applyFullscreenSafeAreaTo(t,o){t&&!o&&t.style.setProperty("--internal-content-safe-area-padding-bottom","var(--ion-safe-area-bottom, 0px)")}clearContentSafeAreaPadding(t){t&&t.style.removeProperty("--internal-content-safe-area-padding-bottom")}findContentAndFooter(){let t=null,o=!1;for(const e of Array.from(this.el.children)){"ION-CONTENT"===e.tagName&&(t=e),"ION-FOOTER"===e.tagName&&(o=!0);for(const a of Array.from(e.children))"ION-CONTENT"!==a.tagName||t||(t=a),"ION-FOOTER"===a.tagName&&(o=!0)}return{contentEl:t,hasFooter:o}}cleanupSafeAreaOverrides(){var t;(t=this.el).style.removeProperty("--ion-safe-area-top"),t.style.removeProperty("--ion-safe-area-bottom"),t.style.removeProperty("--ion-safe-area-left"),t.style.removeProperty("--ion-safe-area-right"),this.unsubscribeRootSafeAreaTop?.(),this.unsubscribeRootSafeAreaTop=void 0,this.unsubscribeHeightChange?.(),this.unsubscribeHeightChange=void 0,this.el.style.removeProperty("--ion-modal-offset-top");const{contentEl:o}=this.findContentAndFooter();this.clearContentSafeAreaPadding(o)}restoreSafeAreaOverrides(){this.setInitialSafeAreaOverrides(),this.applyFullscreenSafeArea(),y((()=>{if(!this.presented||!this.el.isConnected||this.isPresenting)return;const{width:t,height:o}=this.el.getBoundingClientRect();0===t&&0===o||this.updateSafeAreaOverrides()}))}render(){const{handle:t,isSheetModal:o,presentingElement:e,htmlAttributes:a,handleBehavior:i,inheritedAttributes:r,focusTrap:d,expandToScroll:h}=this,p=!1!==t&&o,l=Z(this),c=void 0!==e&&"ios"===l,m="cycle"===i,f=this.getShape();return s(n,{key:"d7d9e9f103fb1ac669da34819e6f460316cffa48","no-router":!0,tabIndex:m&&o&&p?0:-1,...a,style:{zIndex:`${2e4+this.overlayIndex}`},class:{[l]:!0,"modal-default":!c&&!o,"modal-card":c,"modal-sheet":o,[`modal-${f}`]:void 0!==f,"modal-no-expand-scroll":o&&!h,"overlay-hidden":!0,[O]:!1===d,...L(this.cssClass)},onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle,onFocus:this.onModalFocus},s("ion-backdrop",{key:"030d13dadaef45a24fd694478cf6583a637b9e9e",ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===l&&s("div",{key:"111f4df167615ee37f6db3f1000f6bd1a6b25fee",class:"modal-shadow"}),s("div",{key:"2720518be4e2701a5641f31e3f13336778f2fdbb",role:"dialog",...r,"aria-modal":"true",tabIndex:-1,class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t},p&&s("button",{key:"7b8d765349e94315383e15c59ae55bbf92b7834a",class:"modal-handle",tabIndex:m?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:m?this.onHandleClick:void 0,part:"handle","data-focus-order":"1",ref:t=>this.dragHandleEl=t}),s("slot",{key:"fb952f2216991352c002b796933d3dbee1397051",onSlotchange:this.onSlotChange})))}get el(){return this}static get watchers(){return{isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}],breakpoints:[{breakpointsChanged:0}]}}static get style(){return{ionic:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);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);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--token-bg-surface-elevation-3, var(--token-primitives-base-white, #ffffff));--box-shadow:var(--token-elevation-4, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-15, 15px) var(--token-shadow-blur-48, 48px) var(--token-shadow-spread-0, 0px) var(--token-shadow-7, rgba(0, 0, 0, 0.18)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-3, 3px) var(--token-shadow-blur-12, 12px) var(--token-shadow-spread-0, 0px) var(--token-shadow-5, rgba(0, 0, 0, 0.12)));--backdrop-opacity:0.7;color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.modal-round){--border-radius:var(--token-border-radius-1000, var(--token-scale-1000, 40px))}:host(.modal-soft){--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}:host(.modal-rectangular){--border-radius:var(--token-border-radius-0, var(--token-scale-0, 0px))}:host(.select-modal.modal-default){--max-height:45%;--max-width:calc(100% - (var(--token-space-400, var(--token-scale-400, 16px)) * 2));--min-height:340px}.modal-handle{right:0px;left:0px;top:var(--token-space-300, var(--token-scale-300, 12px));border-radius:var(--token-border-radius-100, var(--token-scale-100, 4px));width:var(--token-scale-1100, 44px);height:var(--token-scale-100, 4px);background-color:var(--token-primitives-neutral-300, #e6eaee)}.modal-handle::before{-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + var(--token-scale-250, 10px)))}',ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);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);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);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);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'}}},[289,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],expandToScroll:[4,"expand-to-scroll"],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],focusTrap:[4,"focus-trap"],canDismiss:[4,"can-dismiss"],shape:[1],isSheetModal:[32],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},[[9,"resize","onWindowResize"]],{isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}],breakpoints:[{breakpointsChanged:0}]}]),yt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function At(){"undefined"!=typeof customElements&&["ion-modal","ion-backdrop"].forEach((t=>{switch(t){case"ion-modal":customElements.get(d(t))||customElements.define(d(t),kt);break;case"ion-backdrop":customElements.get(d(t))||X()}}))}export{kt as M,At as d}
4
+ import{d as t,H as o,i as e,p as a,w as i,e as r,h as s,f as n,t as d}from"./p-DFBWAYvo.js";import{i as h,b as p,a as l,d as c,r as m,f,p as b}from"./p-BmfO2-NE.js";import{C as u,a as v,d as x}from"./p-B_o50gvn.js";import{q as w,g,e as k,r as y,k as A,m as Y}from"./p-7-zF1amS.js";import{c as S}from"./p-B-hirT0v.js";import{g as D}from"./p-CIGNaXM1.js";import{G as C,O as E,F as O,n as B,d as T,B as M,h as P,r as z,j as I,k as N,e as R,f as $,g as j}from"./p-ET0FZop5.js";import{g as L}from"./p-BUF_V-Kg.js";import{e as F,w as W}from"./p-o89R3aqe.js";import{c as H,b as Z}from"./p-C93i7QCU.js";import{KEYBOARD_DID_OPEN as V}from"./p-D7-vHX0A.js";import{c as K}from"./p-CXzJ234J.js";import{w as U}from"./p-ZjP4CjeZ.js";import{g as _}from"./p-hHmYLOfE.js";import{createGesture as G}from"./p-D0YpjgON.js";import{d as X}from"./p-DbKRl9BQ.js";var q;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(q||(q={}));const J={getEngine(){const t=D();if(t?.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},setStyle(t){const o=this.getEngine();o&&o.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return q.Default;const{style:o}=await t.getInfo();return o}},Q=(t,o)=>{if(1===o)return 0;const e=1/(1-o);return t*e+-o*e},tt=()=>{!U||U.innerWidth>=768||J.setStyle({style:q.Dark})},ot=(t=q.Default)=>{!U||U.innerWidth>=768||J.setStyle({style:t})},et=t=>{const{currentBreakpoint:o,backdropBreakpoint:e,expandToScroll:a,staticBackdropOpacity:i}=t,r=void 0===e||e<o;let s="0";i?s="calc(var(--backdrop-opacity)":r&&(s=`calc(var(--backdrop-opacity) * ${o})`);const n=K("backdropAnimation").fromTo("opacity",0,s);return r&&n.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:K("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*o}%)`}]),backdropAnimation:n,contentAnimation:a?void 0:K("contentAnimation").keyframes([{offset:0,opacity:1,maxHeight:100*(1-o)+"%"},{offset:1,opacity:1,maxHeight:100*o+"%"}])}},at=t=>{const{currentBreakpoint:o,backdropBreakpoint:e}=t,a=`calc(var(--backdrop-opacity) * ${Q(o,e)})`,i=[{offset:0,opacity:a},{offset:1,opacity:0}],r=[{offset:0,opacity:a},{offset:e,opacity:0},{offset:1,opacity:0}],s=K("backdropAnimation").keyframes(0!==e?r:i);return{wrapperAnimation:K("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*o}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},it=(t,o)=>{const{currentBreakpoint:e,expandToScroll:a}=o,i=g(t),{wrapperAnimation:r,backdropAnimation:s,contentAnimation:n}=void 0!==e?et(o):{backdropAnimation:K().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:K().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]),contentAnimation:void 0};s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelector(".modal-wrapper")),!a&&n?.addElement(t.querySelector(".ion-page")),s.duration(300).easing("ease-out"),r.duration(400).easing("cubic-bezier(0.32, 0.68, 0, 1)"),n?.duration(400).easing("cubic-bezier(0.32, 0.68, 0, 1)");const d=K().addElement(t).addAnimation([s,r]);return n&&d.addAnimation(n),d},rt=t=>{const o=h(t)?g(t).querySelector(".inner-scroll"):t;return!p(t)&&0===o.scrollTop},st=async(t,o)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,C)&&(o.isRunning()?o.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},nt=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,dt=.915,ht=(t,o)=>k(400,t/Math.abs(1.1*o),500),pt=(t,o)=>{const e=window.innerHeight,a=t.getBoundingClientRect().top,i=Math.round(1e3*(1-o/(e-a)))/1e3;return Math.max(0,Math.min(1,i))},lt=(t,o)=>{const{presentingEl:e,currentBreakpoint:a,expandToScroll:i}=o,r=g(t),{wrapperAnimation:s,backdropAnimation:n,contentAnimation:d}=void 0!==a?et(o):{backdropAnimation:K().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:K().fromTo("transform","translateY(100vh)","translateY(0vh)"),contentAnimation:void 0};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}),!i&&d?.addElement(t.querySelector(".ion-page"));const h=K("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation([s]);if(d&&h.addAnimation(d),e){const t=window.innerWidth<768,o="ION-MODAL"===e.tagName&&void 0!==e.presentingElement,a=g(e),i=K().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",a=`translateY(${o?"-10px":t}) scale(0.915)`;i.afterStyles({transform:a}).beforeAddWrite((()=>r.style.setProperty("background-color","black"))).addElement(e).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:a,borderRadius:"10px 10px 0 0"}]),h.addAnimation(i)}else if(h.addAnimation(n),o){const t=`translateY(-10px) scale(${o?dt:1})`;i.afterStyles({transform:t}).addElement(a.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const e=K().afterStyles({transform:t}).addElement(a.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);h.addAnimation([i,e])}else s.fromTo("opacity","0","1")}else h.addAnimation(n);return h},ct=(t,o,e=500)=>{const{presentingEl:a,currentBreakpoint:i}=o,r=g(t),{wrapperAnimation:s,backdropAnimation:n}=void 0!==i?at(o):{backdropAnimation:K().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:K().fromTo("transform","translateY(0vh)","translateY(100vh)")};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=K("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e).addAnimation(s);if(a){const t=window.innerWidth<768,o="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,e=g(a),i=K().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(a.style.setProperty("overflow",""),Array.from(r.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&r.style.setProperty("background-color",""))})),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",e=`translateY(${o?"-10px":t}) scale(0.915)`;i.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:e,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(i)}else if(d.addAnimation(n),o){const t=`translateY(-10px) scale(${o?dt:1})`;i.addElement(e.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const a=K().addElement(e.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([i,a])}else s.fromTo("opacity","1","0")}else d.addAnimation(n);return d},mt=(t,o)=>{const{currentBreakpoint:e,expandToScroll:a}=o,i=g(t),{wrapperAnimation:r,backdropAnimation:s,contentAnimation:n}=void 0!==e?et(o):{backdropAnimation:K().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:K().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]),contentAnimation:void 0};s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelector(".modal-wrapper")),!a&&n?.addElement(t.querySelector(".ion-page"));const d=K().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([s,r]);return n&&d.addAnimation(n),d},ft=(t,o)=>{const{currentBreakpoint:e}=o,a=g(t),{wrapperAnimation:i,backdropAnimation:r}=void 0!==e?at(o):{backdropAnimation:K().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:K().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(a.querySelector("ion-backdrop")),i.addElement(a.querySelector(".modal-wrapper")),K().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,i])};let bt=null,ut=!1;const vt=()=>{if(null!==bt)return bt;const t=U?.document;if(!t?.body)return 0;const o=t.createElement("div");o.style.cssText="position:fixed;visibility:hidden;pointer-events:none;top:0;left:0;padding-top:var(--ion-safe-area-top,0px);",t.body.appendChild(o);const e=parseFloat(getComputedStyle(o).paddingTop)||0;return o.remove(),bt=e,ut||(ut=!0,y((()=>{bt=null,ut=!1}))),e},xt=t=>{const o=getComputedStyle(t),e=B(o.getPropertyValue("--width")),a=B(o.getPropertyValue("--height"));return"fullscreen"===e&&"fullscreen"===a?{vertical:!0,horizontal:!0}:wt(t)},wt=t=>{const o=t.shadowRoot?.querySelector(".modal-wrapper");if(null==o||void 0===U)return{vertical:!1,horizontal:!1};const e=t.classList.contains("overlay-hidden");e&&t.classList.remove("overlay-hidden");const{width:a,height:i}=o.getBoundingClientRect();return e&&t.classList.add("overlay-hidden"),{vertical:i>=U.innerHeight-5,horizontal:a>=U.innerWidth-5}},gt=(t,o)=>{t.style.setProperty("--ion-safe-area-top",o.top),t.style.setProperty("--ion-safe-area-bottom",o.bottom),t.style.setProperty("--ion-safe-area-left",o.left),t.style.setProperty("--ion-safe-area-right",o.right)},kt=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.didPresent=e(this,"ionModalDidPresent",7),this.willPresent=e(this,"ionModalWillPresent",7),this.willDismiss=e(this,"ionModalWillDismiss",7),this.didDismiss=e(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=e(this,"ionBreakpointDidChange",7),this.didPresentShorthand=e(this,"didPresent",7),this.willPresentShorthand=e(this,"willPresent",7),this.willDismissShorthand=e(this,"willDismiss",7),this.didDismissShorthand=e(this,"didDismiss",7),this.ionMount=e(this,"ionMount",7),this.ionDragStart=e(this,"ionDragStart",7),this.ionDragMove=e(this,"ionDragMove",7),this.ionDragEnd=e(this,"ionDragEnd",7),this.lockController=S(),this.triggerController=T(),this.coreDelegate=u(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.isPresenting=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.expandToScroll=!0,this.backdropBreakpoint=0,this.handleBehavior="cycle",this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.isOpen=!1,this.keepContentsMounted=!1,this.focusTrap=!0,this.canDismiss=!0,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:o}=this;"cycle"===o&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,M)},this.onLifecycle=t=>{const o=this.usersElement,e=yt[t.type];if(o&&e){const a=new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t.detail});o.dispatchEvent(a)}},this.onModalFocus=t=>{const{dragHandleEl:o,el:e}=this;t.target===e&&null==e.shadowRoot?.activeElement&&o&&-1!==o.tabIndex&&o.focus()},this.onSlotChange=({target:t})=>{t.assignedElements().forEach((t=>{t.querySelectorAll("ion-modal").forEach((t=>{null===t.getAttribute("data-parent-ion-modal")&&t.setAttribute("data-parent-ion-modal",this.el.id)}))}))}}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)}onWindowResize(){this.presented&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{const t=this.getSafeAreaContext();if(!t.isCardModal||this.enterAnimation||this.leaveAnimation||this.handleViewTransition(),t.isSheetModal&&this.updateSheetOffsetTop(),!t.isSheetModal&&!t.isCardModal){this.updateSafeAreaOverrides();const{contentEl:t,hasFooter:o}=this.findContentAndFooter();this.clearContentSafeAreaPadding(t),this.applyFullscreenSafeAreaTo(t,o)}}),50))}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,o)=>t-o)))}connectedCallback(){const{el:t}=this;P(t),this.triggerChanged(),(this.presented||this.isPresenting)&&this.restoreSafeAreaOverrides(),this.presented&&(z(t),this.initParentRemovalObserver())}disconnectedCallback(){this.triggerController.removeClickListener(),this.cleanupViewTransitionListener(),this.cleanupParentRemovalObserver(),this.cleanupSafeAreaOverrides(),this.presented&&I()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:o,el:e,htmlAttributes:i}=this,r=this.isSheetModal=void 0!==t&&void 0!==o,s=["aria-label","role"];this.inheritedAttributes=A(e,s),e.parentNode&&(this.cachedOriginalParent=e.parentNode),void 0!==i&&s.forEach((t=>{i[t]&&(this.inheritedAttributes={...this.inheritedAttributes,[t]:i[t]},delete i[t])})),r&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===o||t.includes(o)||a("[ion-modal] - Your breakpoints array must include the initialBreakpoint value."),this.htmlAttributes?.id||N(this.el)}componentDidLoad(){!0===this.isOpen&&y((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,o){const{canDismiss:e}=this;return"function"==typeof e?e(t,o):e}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:o,el:e}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:a,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await v(r,e,this.component,["ion-page"],this.componentProps,a),Y(e)?await F(this.usersElement):this.keepContentsMounted||await W(),i((()=>this.el.classList.add("show-modal"))),this.isSheetModal=void 0!==this.breakpoints&&void 0!==this.initialBreakpoint,this.isPresenting=!0;const s=void 0!==o;try{this.setInitialSafeAreaOverrides(),s&&"ios"===H(this)&&(this.statusBarStyle=await J.getStyle(),tt()),await R(this,"modalEnter",lt,mt,it,{presentingEl:o,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll,staticBackdropOpacity:"ionic"===Z(this)})}finally{this.isPresenting=!1}this.updateSafeAreaOverrides(),this.applyFullscreenSafeArea(),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),y((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(V,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),this.initViewTransitionListener(),this.initParentRemovalObserver(),t()}initSwipeToClose(){if("ios"!==H(this))return;const{el:t}=this,o=this.leaveAnimation||r.get("modalLeave",ct),e=this.animation=o(t,{presentingEl:this.presentingElement,expandToScroll:this.expandToScroll});f(t)?(this.gesture=((t,o,e,a,i,r,s)=>{const n=.5,d=t.offsetHeight;let p=!1,f=!1,b=null,u=!0,v=0;const x=G({el:t,gestureName:"modalSwipeToClose",gesturePriority:E,direction:"y",threshold:10,canStart:t=>{const o=t.event.target;return null===o||!o.closest||(b=l(o),b?rt(b):null===o.closest("ion-footer"))},onStart:e=>{const{deltaY:a}=e;window.getSelection()?.removeAllRanges(),u=!b||!h(b)||b.scrollY,f=void 0!==t.canDismiss&&!0!==t.canDismiss,a>0&&b&&c(b),o.progressStart(!0,p?1:0),i()},onMove:a=>{const{deltaY:i}=a;i>0&&b&&c(b);const s=a.deltaY/d,h=s>=0&&f,p=h?.2:.9999,l=h?nt(s/p):s,m=k(1e-4,l,p);o.progressStep(m),m>=n&&v<n?ot(e):m<n&&v>=n&&tt(),v=m;const u={currentY:a.currentY,deltaY:a.deltaY,velocityY:a.velocityY,progress:pt(t,a.deltaY)};r(u)},onEnd:e=>{const i=e.velocityY,r=e.deltaY/d,h=r>=0&&f,l=h?.2:.9999,c=h?nt(r/l):r,v=k(1e-4,c,l),w=!h&&(e.deltaY+1e3*i)/d>=n;let g=w?-.001:.001;w?(o.easing("cubic-bezier(0.32, 0.72, 0, 1)"),g+=_([0,0],[.32,.72],[0,1],[1,1],v)[0]):(o.easing("cubic-bezier(1, 0, 0.68, 0.28)"),g+=_([0,0],[1,0],[.68,.28],[1,1],v)[0]);const y=ht(w?r*d:(1-v)*d,i);p=w,x.enable(!1),b&&m(b,u),o.onFinish((()=>{w||x.enable(!0)})).progressEnd(w?1:0,g,y);const A=h&&v>l/4;A?st(t,o):w&&a();const Y=h?A&&"function"==typeof t.canDismiss:w,S={currentY:e.currentY,deltaY:e.deltaY,velocityY:e.velocityY,progress:pt(t,e.deltaY),isDismissing:Y};s(S)}});return x})(t,e,this.statusBarStyle??q.Default,(()=>this.cardOnDismiss()),(()=>this.onDragStart()),(t=>this.onDragMove(t)),(t=>this.onDragEnd(t))),this.gesture.enable(!0)):b(t)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:o,backdropBreakpoint:e}=this;if(!t||void 0===o)return;const a=this.enterAnimation||r.get("modalEnter",lt),i=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:o,backdropBreakpoint:e,expandToScroll:this.expandToScroll,staticBackdropOpacity:"ionic"===Z(this)});i.progressStart(!0,1);const{gesture:s,moveSheetToBreakpoint:n,resetContentScroll:d}=((t,o,e,a,i,r,s=[],n,d,p,c,m,f,b,u)=>{const v={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==i?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:m?"var(--backdrop-opacity)":0},{offset:1,opacity:m?"var(--backdrop-opacity)":0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:m?"var(--backdrop-opacity)":.01}],CONTENT_KEYFRAMES:[{offset:0,maxHeight:"100%"},{offset:1,maxHeight:"0%"}]},x=t.querySelector("ion-content"),w=x?.scrollY??!0,A=e.clientHeight;let Y=a,S=0,D=!1,C=null,E=null,B=null,T=null;const M=s[s.length-1],P=s[0],z=r.childAnimations.find((t=>"wrapperAnimation"===t.id)),I=r.childAnimations.find((t=>"backdropAnimation"===t.id)),N=r.childAnimations.find((t=>"contentAnimation"===t.id)),R=()=>{!1!==t.focusTrap&&!1!==t.showBackdrop&&(t.style.setProperty("pointer-events","auto"),o.style.setProperty("pointer-events","auto"),t.classList.remove(O))},$=()=>{t.style.setProperty("pointer-events","none"),o.style.setProperty("pointer-events","none"),t.classList.add(O)},j=o=>{if(!E&&(E=Array.from(t.querySelectorAll("ion-footer")),!E.length))return;const e=t.querySelector(".ion-page");if(T=o,"stationary"===o)E.forEach((t=>{t.classList.remove("modal-footer-moving"),t.style.removeProperty("position"),t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("top"),t.style.removeProperty("left"),e?.style.removeProperty("padding-bottom"),e?.appendChild(t)}));else{let o=0;E.forEach(((e,a)=>{const i=e.getBoundingClientRect(),r=document.body.getBoundingClientRect();o+=e.clientHeight;const s=i.top-r.top,n=i.left-r.left;if(e.style.setProperty("--pinned-width",`${e.clientWidth}px`),e.style.setProperty("--pinned-height",`${e.clientHeight}px`),e.style.setProperty("--pinned-top",`${s}px`),e.style.setProperty("--pinned-left",`${n}px`),0===a){B=s;const o=t.querySelector("ion-header");o&&(B-=o.clientHeight)}})),E.forEach((t=>{e?.style.setProperty("padding-bottom",`${o}px`),t.classList.add("modal-footer-moving"),t.style.setProperty("position","absolute"),t.style.setProperty("width","var(--pinned-width)"),t.style.setProperty("height","var(--pinned-height)"),t.style.setProperty("top","var(--pinned-top)"),t.style.setProperty("left","var(--pinned-left)"),document.body.appendChild(t)}))}};z&&I&&(z.keyframes([...v.WRAPPER_KEYFRAMES]),I.keyframes([...v.BACKDROP_KEYFRAMES]),N?.keyframes([...v.CONTENT_KEYFRAMES]),r.progressStart(!0,1-Y),Y>i&&!1!==t.focusTrap&&!1!==t.showBackdrop?R():$()),x&&Y!==M&&n&&(x.scrollY=!1);const L=o=>{const{breakpoint:e,canDismiss:a,breakpointOffset:d,animated:h}=o,l=a&&0===e,f=l?Y:e,b=f===Y,u=m?b?300:400:500,g=b?"cubic-bezier(0.34, 1.4, 0.64, 1)":"cubic-bezier(0.32, 0.68, 0, 1)",k=0!==f;return Y=0,z&&I&&(z.keyframes([{offset:0,transform:`translateY(${100*d}%)`},{offset:1,transform:`translateY(${100*(1-f)}%)`}]),I.keyframes([{offset:0,opacity:m?"var(--backdrop-opacity)":`calc(var(--backdrop-opacity) * ${Q(1-d,i)})`},{offset:1,opacity:m?"var(--backdrop-opacity)":`calc(var(--backdrop-opacity) * ${Q(f,i)})`}]),N&&N.keyframes([{offset:0,maxHeight:100*(1-d)+"%"},{offset:1,maxHeight:100*f+"%"}]),r.progressStep(0)),m&&r.easing(g),K.enable(!1),l?st(t,r):k||p(),!x||f!==s[s.length-1]&&n||(x.scrollY=w),n||0!==f||j("stationary"),new Promise((o=>{r.onFinish((()=>{k?(n||j("stationary"),z&&I?y((()=>{z.keyframes([...v.WRAPPER_KEYFRAMES]),I.keyframes([...v.BACKDROP_KEYFRAMES]),N?.keyframes([...v.CONTENT_KEYFRAMES]),r.progressStart(!0,1-f),Y=f,c(Y),Y>i&&!1!==t.focusTrap&&!1!==t.showBackdrop?R():$(),K.enable(!0),o()})):(K.enable(!0),o())):o()}),{oneTimeCallback:!0}).progressEnd(1,0,h?u:0)}))},F=(t,o)=>m?H(t,o):W(t+350*o),W=t=>{const o=Z(t);return s.reduce(((t,e)=>Math.abs(e-o)<Math.abs(t-o)?e:t))},H=(t,o)=>{const e=1e3*o,a=Z(t);return e>500?P:e<-400?s.find((t=>t>a))??M:0===P&&Y>0&&(Y-a)/Y>.4?0:W(t)},Z=t=>{const o=Math.round(1e3*(Y-t/A))/1e3;return k(0,o,1)},V=t=>{const o=(Z(t)-P)/(M-P);return k(0,o,1)},K=G({el:e,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const o=l(t.event.target);return Y=d(),!(o&&(!n||1===Y))||rt(o)},onStart:o=>{if(window.getSelection()?.removeAllRanges(),D=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===P,!n){const t=l(o.event.target);C=t&&h(t)?g(t).querySelector(".inner-scroll"):t}n||j("moving"),o.deltaY>0&&x&&(x.scrollY=!1),y((()=>{t.focus()})),r.progressStart(!0,1-Y),f()},onMove:t=>{if(n||null===B||null===T||(t.currentY>=B&&"moving"===T?j("stationary"):t.currentY<B&&"stationary"===T&&j("moving")),!n&&t.deltaY<=0&&C)return;t.deltaY>0&&x&&(x.scrollY=!1);const o=s.length>1?1-s[1]:void 0,e=1-Y+t.deltaY/A,a=void 0!==o&&e>=o&&D,i=a?.95:.9999,d=a&&void 0!==o?o+nt((e-o)/(i-o)):e;S=k(1e-4,d,i),r.progressStep(S);const h=F(t.deltaY,t.velocityY),p={currentY:t.currentY,deltaY:t.deltaY,velocityY:t.velocityY,progress:V(t.deltaY),snapBreakpoint:h};b(p)},onEnd:o=>{const e=F(o.deltaY,o.velocityY),a=D&&0===e?"function"==typeof t.canDismiss:0===e,i={currentY:o.currentY,deltaY:o.deltaY,velocityY:o.velocityY,progress:V(o.deltaY),snapBreakpoint:e,isDismissing:a};if(!n&&o.deltaY<=0&&C&&C.scrollTop>0)return j("stationary"),void u({...i,isDismissing:!1});L({breakpoint:e,breakpointOffset:S,canDismiss:D,animated:!0}),u(i)}});return{gesture:K,moveSheetToBreakpoint:L,resetContentScroll:()=>{x&&(x.scrollY=w)}}})(this.el,this.backdropEl,t,o,e,i,this.sortedBreakpoints,this.expandToScroll,(()=>this.currentBreakpoint??0),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}),"ionic"===Z(this),(()=>this.onDragStart()),(t=>this.onDragMove(t)),(t=>this.onDragEnd(t)));this.gesture=s,this.moveSheetToBreakpoint=n,this.resetSheetContentScroll=d,this.gesture.enable(!0),(!1===this.showBackdrop||!1===this.focusTrap||e>0)&&this.setupChildRoutePassthrough()}setupChildRoutePassthrough(){this.cachedPageParent=this.getOriginalPageParent();const t=this.cachedPageParent;if(!t||"ION-APP"===t.tagName)return;if(Array.from(t.children).some((t=>!(t===this.el||t instanceof o&&"none"===window.getComputedStyle(t).display||"TEMPLATE"===t.tagName||"SLOT"===t.tagName||t.nodeType===Node.TEXT_NODE&&!t.textContent?.trim()))))return;t.classList.add("ion-page-overlay-passthrough");const e=t.parentElement;"ION-ROUTER-OUTLET"===e?.tagName&&"ION-APP"!==e.parentElement?.tagName&&(e.style.setProperty("pointer-events","none"),e.setAttribute("data-overlay-passthrough","true"))}getOriginalPageParent(){if(!this.cachedOriginalParent)return null;let t=this.cachedOriginalParent;for(;t&&!t.classList.contains("ion-page");)t=t.parentElement;return t}cleanupChildRoutePassthrough(){const t=this.cachedPageParent;if(!t)return;t.classList.remove("ion-page-overlay-passthrough");const o=t.parentElement;o?.hasAttribute("data-overlay-passthrough")&&(o.style.removeProperty("pointer-events"),o.removeAttribute("data-overlay-passthrough")),this.cachedPageParent=void 0}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,C),this.gestureAnimationDismissing=!1}))}cardOnDismiss(){this.gestureAnimationDismissing=!0,ot(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,C),this.gestureAnimationDismissing=!1}))}async dismiss(t,o){if(this.gestureAnimationDismissing&&o!==C)return!1;clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0;const e=await this.lockController.lock();if(await this.dismissNestedModals(),"handler"!==o&&!await this.checkCanDismiss(t,o))return e(),!1;const{presentingElement:a}=this;void 0!==a&&"ios"===H(this)&&ot(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(V,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const r=await $(this,t,o,"modalLeave",ct,ft,{presentingEl:a,currentBreakpoint:this.currentBreakpoint??this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll});if(r){const{delegate:t}=this.getDelegate();await x(t,this.usersElement),i((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),this.resetSheetContentScroll?.(),this.resetSheetContentScroll=void 0,this.cleanupViewTransitionListener(),this.cleanupParentRemovalObserver(),this.cleanupSafeAreaOverrides(),this.cleanupChildRoutePassthrough()}return this.currentBreakpoint=void 0,this.animation=void 0,e(),r}onDidDismiss(){return j(this.el,"ionModalDidDismiss")}onWillDismiss(){return j(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void a("[ion-modal] - setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void a(`[ion-modal] - Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:o,moveSheetToBreakpoint:e,canDismiss:i,breakpoints:r,animated:s}=this;o!==t&&e&&(this.sheetTransition=e({breakpoint:t,breakpointOffset:1-o,canDismiss:void 0!==i&&!0!==i&&0===r[0],animated:s}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:o}=this;if(!t||null==o)return!1;const e=t.filter((t=>0!==t)),a=e.indexOf(o),i=e[(a+1)%e.length];return await this.setCurrentBreakpoint(i),!0}getShape(){const t=Z(this),{shape:o}=this;if("ionic"===t)return void 0===o?"round":o}initViewTransitionListener(){"ios"!==H(this)||!this.presentingElement||this.enterAnimation||this.leaveAnimation||(this.currentViewIsPortrait=window.innerWidth<768)}handleViewTransition(){if(!this.presented)return;const t=window.innerWidth<768;if(this.currentViewIsPortrait===t)return;this.viewTransitionAnimation&&(this.viewTransitionAnimation.destroy(),this.viewTransitionAnimation=void 0);const{presentingElement:o}=this;if(!o)return;let e;e=this.currentViewIsPortrait&&!t?((t,o,e=300)=>{const{presentingEl:a}=o;if(!a)return K("portrait-to-landscape-transition");const i="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,r=g(a),s=document.body,n=K("portrait-to-landscape-transition").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e),d=K().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});if(i){const t="translateY(-10px) scale(0.915)",o="translateY(0px) scale(1)";d.addElement(a).afterStyles({transform:o}).fromTo("transform",t,o).fromTo("filter","contrast(0.85)","contrast(1)");const e=K().addElement(r.querySelector(".modal-shadow")).afterStyles({transform:o,opacity:"0"}).fromTo("transform",t,o);n.addAnimation([d,e])}else{const o=g(t),e=K().addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).fromTo("opacity","1","1"),i=K().addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)","var(--backdrop-opacity)"),r=`translateY(${CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px"}) scale(0.915)`;d.addElement(a).afterStyles({transform:"translateY(0px) scale(1)","border-radius":"0px"}).beforeAddWrite((()=>s.style.setProperty("background-color",""))).fromTo("transform",r,"translateY(0px) scale(1)").fromTo("filter","contrast(0.85)","contrast(1)").fromTo("border-radius","10px 10px 0 0","0px"),n.addAnimation([d,e,i])}return n})(this.el,{presentingEl:o}):((t,o,e=300)=>{const{presentingEl:a}=o;if(!a)return K("landscape-to-portrait-transition");const i="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,r=g(a),s=document.body,n=K("landscape-to-portrait-transition").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e),d=K().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});if(i){const t="translateY(-10px) scale(0.915)",o="translateY(0) scale(1)";d.addElement(a).afterStyles({transform:o}).fromTo("transform",t,o);const e=K().addElement(r.querySelector(".modal-shadow")).afterStyles({transform:o,opacity:"0"}).fromTo("transform",t,o);n.addAnimation([d,e])}else{const o=g(t),e=K().addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).fromTo("opacity","1","1"),i=K().addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)","var(--backdrop-opacity)"),r=`translateY(${CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px"}) scale(0.915)`;d.addElement(a).afterStyles({transform:r}).beforeAddWrite((()=>s.style.setProperty("background-color","black"))).keyframes([{offset:0,transform:"translateY(0px) scale(1)",filter:"contrast(1)",borderRadius:"0px"},{offset:.2,transform:"translateY(0px) scale(1)",filter:"contrast(1)",borderRadius:"10px 10px 0 0"},{offset:1,transform:r,filter:"contrast(0.85)",borderRadius:"10px 10px 0 0"}]),n.addAnimation([d,e,i])}return n})(this.el,{presentingEl:o}),this.currentViewIsPortrait=t,this.viewTransitionAnimation=e,e.play().then((()=>{this.viewTransitionAnimation=void 0,y((()=>this.updateSafeAreaOverrides())),this.reinitSwipeToClose()}))}cleanupViewTransitionListener(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0),this.viewTransitionAnimation&&(this.viewTransitionAnimation.destroy(),this.viewTransitionAnimation=void 0)}reinitSwipeToClose(){"ios"===H(this)&&this.presentingElement&&(this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation&&(this.animation.progressEnd(0,0,0),this.animation.destroy(),this.animation=void 0),y((()=>{this.ensureCorrectModalPosition(),this.initSwipeToClose()})))}ensureCorrectModalPosition(){const{el:t,presentingElement:o}=this,e=g(t).querySelector(".modal-wrapper");if(e&&(e.style.transform="translateY(0vh)",e.style.opacity="1"),"ION-MODAL"===o?.tagName)if(window.innerWidth<768){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px";o.style.transform=`translateY(${t}) scale(0.915)`}else o.style.transform="translateY(0px) scale(1)"}async dismissNestedModals(){const t=document.querySelectorAll(`ion-modal[data-parent-ion-modal="${this.el.id}"]`);t?.forEach((async t=>{await t.dismiss(void 0,"parent-dismissed")}))}initParentRemovalObserver(){"undefined"!=typeof MutationObserver&&"undefined"!=typeof window&&this.cachedOriginalParent&&this.cachedOriginalParent.nodeType!==Node.DOCUMENT_NODE&&this.cachedOriginalParent.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(this.hasController||this.cachedOriginalParent===document.body||"ION-APP"===this.cachedOriginalParent.tagName||(this.cleanupParentRemovalObserver(),this.parentRemovalObserver=new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&t.removedNodes.length>0&&(Array.from(t.removedNodes).some((t=>{const o=t===this.cachedOriginalParent,e=!!this.cachedOriginalParent&&t.contains?.(this.cachedOriginalParent);return o||e}))||this.cachedOriginalParent&&!this.cachedOriginalParent.isConnected)&&(this.dismiss(void 0,"parent-removed"),this.cachedOriginalParent=void 0)}))})),this.parentRemovalObserver.observe(document.body,{childList:!0,subtree:!0})))}cleanupParentRemovalObserver(){this.parentRemovalObserver?.disconnect(),this.parentRemovalObserver=void 0}onDragStart(){this.ionDragStart.emit()}onDragMove(t){this.ionDragMove.emit(t)}onDragEnd(t){this.ionDragEnd.emit(t)}getSafeAreaContext(){return{isSheetModal:this.isSheetModal,isCardModal:void 0!==this.presentingElement&&"ios"===H(this),presentingElement:this.presentingElement,breakpoints:this.breakpoints,currentBreakpoint:this.currentBreakpoint}}watchHeightForContent(){var t;this.isSheetModal||(this.unsubscribeHeightChange?.(),this.unsubscribeHeightChange=(t=()=>{this.el.querySelectorAll("ion-content").forEach((t=>t.recalculateDimensions()))},w(this.el,"--height",(()=>t()))))}setInitialSafeAreaOverrides(){const t={...this.getSafeAreaContext(),coveredAxes:xt(this.el)},o=(t=>{const{isSheetModal:o,isCardModal:e}=t;if(o)return{top:"0px",bottom:"inherit",left:"0px",right:"0px"};if(e)return{top:"inherit",bottom:"inherit",left:"0px",right:"0px"};const{vertical:a,horizontal:i}=t.coveredAxes??{vertical:!0,horizontal:!0};return{top:a?"inherit":"0px",bottom:a?"inherit":"0px",left:i?"inherit":"0px",right:i?"inherit":"0px"}})(t);var e;gt(this.el,o),this.watchHeightForContent(),t.isSheetModal&&(this.updateSheetOffsetTop(),this.unsubscribeRootSafeAreaTop?.(),this.unsubscribeRootSafeAreaTop=(e=t=>this.updateSheetOffsetTop(t),w(U?.document?.body,"--ion-safe-area-top",e,vt())))}updateSheetOffsetTop(t){const o=t??vt();this.el.style.setProperty("--ion-modal-offset-top",`${o}px`)}updateSafeAreaOverrides(){const{wrapperEl:t,el:o}=this,e=this.getSafeAreaContext();if(e.isSheetModal)return;if(e.isCardModal)return;if(!t)return;const a=(t=>{const o=t.getBoundingClientRect();return{top:o.top<=5?"inherit":"0px",bottom:o.bottom>=(U?.innerHeight??0)-5?"inherit":"0px",left:o.left<=5?"inherit":"0px",right:o.right>=(U?.innerWidth??0)-5?"inherit":"0px"}})(t);gt(o,a)}applyFullscreenSafeArea(){const t=this.getSafeAreaContext();if(t.isSheetModal||t.isCardModal)return;const{contentEl:o,hasFooter:e}=this.findContentAndFooter();this.applyFullscreenSafeAreaTo(o,e)}applyFullscreenSafeAreaTo(t,o){t&&!o&&t.style.setProperty("--internal-content-safe-area-padding-bottom","var(--ion-safe-area-bottom, 0px)")}clearContentSafeAreaPadding(t){t&&t.style.removeProperty("--internal-content-safe-area-padding-bottom")}findContentAndFooter(){let t=null,o=!1;for(const e of Array.from(this.el.children)){"ION-CONTENT"===e.tagName&&(t=e),"ION-FOOTER"===e.tagName&&(o=!0);for(const a of Array.from(e.children))"ION-CONTENT"!==a.tagName||t||(t=a),"ION-FOOTER"===a.tagName&&(o=!0)}return{contentEl:t,hasFooter:o}}cleanupSafeAreaOverrides(){var t;(t=this.el).style.removeProperty("--ion-safe-area-top"),t.style.removeProperty("--ion-safe-area-bottom"),t.style.removeProperty("--ion-safe-area-left"),t.style.removeProperty("--ion-safe-area-right"),this.unsubscribeRootSafeAreaTop?.(),this.unsubscribeRootSafeAreaTop=void 0,this.unsubscribeHeightChange?.(),this.unsubscribeHeightChange=void 0,this.el.style.removeProperty("--ion-modal-offset-top");const{contentEl:o}=this.findContentAndFooter();this.clearContentSafeAreaPadding(o)}restoreSafeAreaOverrides(){this.setInitialSafeAreaOverrides(),this.applyFullscreenSafeArea(),y((()=>{if(!this.presented||!this.el.isConnected||this.isPresenting)return;const{width:t,height:o}=this.el.getBoundingClientRect();0===t&&0===o||this.updateSafeAreaOverrides()}))}render(){const{handle:t,isSheetModal:o,presentingElement:e,htmlAttributes:a,handleBehavior:i,inheritedAttributes:r,focusTrap:d,expandToScroll:h}=this,p=!1!==t&&o,l=Z(this),c=void 0!==e&&"ios"===l,m="cycle"===i,f=this.getShape();return s(n,{key:"d7d9e9f103fb1ac669da34819e6f460316cffa48","no-router":!0,tabIndex:m&&o&&p?0:-1,...a,style:{zIndex:`${2e4+this.overlayIndex}`},class:{[l]:!0,"modal-default":!c&&!o,"modal-card":c,"modal-sheet":o,[`modal-${f}`]:void 0!==f,"modal-no-expand-scroll":o&&!h,"overlay-hidden":!0,[O]:!1===d,...L(this.cssClass)},onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle,onFocus:this.onModalFocus},s("ion-backdrop",{key:"030d13dadaef45a24fd694478cf6583a637b9e9e",ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===l&&s("div",{key:"111f4df167615ee37f6db3f1000f6bd1a6b25fee",class:"modal-shadow"}),s("div",{key:"2720518be4e2701a5641f31e3f13336778f2fdbb",role:"dialog",...r,"aria-modal":"true",tabIndex:-1,class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t},p&&s("button",{key:"7b8d765349e94315383e15c59ae55bbf92b7834a",class:"modal-handle",tabIndex:m?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:m?this.onHandleClick:void 0,part:"handle","data-focus-order":"1",ref:t=>this.dragHandleEl=t}),s("slot",{key:"fb952f2216991352c002b796933d3dbee1397051",onSlotchange:this.onSlotChange})))}get el(){return this}static get watchers(){return{isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}],breakpoints:[{breakpointsChanged:0}]}}static get style(){return{ionic:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);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);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));--box-shadow:var(--token-elevation-3, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-6, 6px) var(--token-shadow-blur-32, 32px) var(--token-shadow-spread-0, 0px) var(--token-shadow-6, rgba(0, 0, 0, 0.16)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-2, 2px) var(--token-shadow-blur-7, 7px) var(--token-shadow-spread-0, 0px) var(--token-shadow-2, rgba(0, 0, 0, 0.05)));--backdrop-opacity:0.7;color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.modal-round){--border-radius:var(--token-border-radius-1000, var(--token-scale-1000, 40px))}:host(.modal-soft){--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}:host(.modal-rectangular){--border-radius:var(--token-border-radius-0, var(--token-scale-0, 0px))}:host(.select-modal.modal-default){--max-height:45%;--max-width:calc(100% - (var(--token-space-400, var(--token-scale-400, 16px)) * 2));--min-height:340px}.modal-handle{right:0px;left:0px;top:var(--token-space-300, var(--token-scale-300, 12px));border-radius:var(--token-border-radius-100, var(--token-scale-100, 4px));width:var(--token-scale-1100, 44px);height:var(--token-scale-100, 4px);background-color:var(--token-primitives-neutral-300, #e6eaee)}.modal-handle::before{-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + var(--token-scale-250, 10px)))}',ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);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);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);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);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'}}},[289,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],expandToScroll:[4,"expand-to-scroll"],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],focusTrap:[4,"focus-trap"],canDismiss:[4,"can-dismiss"],shape:[1],isSheetModal:[32],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},[[9,"resize","onWindowResize"]],{isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}],breakpoints:[{breakpointsChanged:0}]}]),yt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function At(){"undefined"!=typeof customElements&&["ion-modal","ion-backdrop"].forEach((t=>{switch(t){case"ion-modal":customElements.get(d(t))||customElements.define(d(t),kt);break;case"ion-backdrop":customElements.get(d(t))||X()}}))}export{kt as M,At as d}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{p as n}from"./p-DFBWAYvo.js";const e=(n,e)=>n.month===e.month&&n.day===e.day&&n.year===e.year,r=(n,e)=>!!(n.year<e.year||n.year===e.year&&n.month<e.month||n.year===e.year&&n.month===e.month&&null!==n.day&&n.day<e.day),o=(n,e)=>!!(n.year>e.year||n.year===e.year&&n.month>e.month||n.year===e.year&&n.month===e.month&&null!==n.day&&n.day>e.day),t=(e,t,a)=>{const i=Array.isArray(e)?e:[e];for(const d of i)if(void 0!==t&&r(d,t)||void 0!==a&&o(d,a)){n(`[ion-datetime] - The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(t)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(e)}`);break}},a=(n,e)=>{if(void 0!==e)return e;const r=new Intl.DateTimeFormat(n,{hour:"numeric"}),o=r.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const t=new Date("5/18/2021 00:00"),a=r.formatToParts(t).find((n=>"hour"===n.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${e}"`)}},i=n=>"h23"===n||"h24"===n,d=(n,e)=>4===n||6===n||9===n||11===n?30:2===n?(n=>n%4==0&&n%100!=0||n%400==0)(e)?29:28:31,s=(n,e={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(n,e).formatToParts(new Date)[0].type,u=n=>"dayPeriod"===new Intl.DateTimeFormat(n,{hour:"numeric"}).formatToParts(new Date)[0].type,m=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=n=>{if(void 0===n)return;let e,r=n;return"string"==typeof n&&(r=n.replace(/\[|\]|\s/g,"").split(",")),e=Array.isArray(r)?r.map((n=>parseInt(n,10))).filter(isFinite):[r],e},y=n=>({month:parseInt(n.getAttribute("data-month"),10),day:parseInt(n.getAttribute("data-day"),10),year:parseInt(n.getAttribute("data-year"),10),dayOfWeek:parseInt(n.getAttribute("data-day-of-week"),10)});function l(e){if(Array.isArray(e)){const n=[];for(const r of e){const e=l(r);if(!e)return;n.push(e)}return n}let r=null;if(null!=e&&""!==e&&(r=c.exec(e),r?(r.unshift(void 0,void 0),r[2]=r[3]=void 0):r=m.exec(e)),null!==r){for(let n=1;n<8;n++)r[n]=void 0!==r[n]?parseInt(r[n],10):void 0;return{year:r[1],month:r[2],day:r[3],hour:r[4],minute:r[5],ampm:r[4]<12?"am":"pm"}}n(`[ion-datetime] - Unable to parse date string: ${e}. Please provide a valid ISO 8601 datetime string.`)}const h=(n,e,t)=>e&&r(n,e)?e:t&&o(n,t)?t:n,f=n=>n>=12?"pm":"am",w=(n,e)=>{const r=l(n);if(void 0===r)return;const{month:o,day:t,year:a,hour:i,minute:s}=r,u=a??e.year,m=o??12;return{month:m,day:t??d(m,u),year:u,hour:i??23,minute:s??59}},p=(n,e)=>{const r=l(n);if(void 0===r)return;const{month:o,day:t,year:a,hour:i,minute:d}=r;return{month:o??1,day:t??1,year:a??e.year,hour:i??0,minute:d??0}},I=n=>("0"+(void 0!==n?Math.abs(n):"0")).slice(-2);function $(n){if(Array.isArray(n))return n.map((n=>$(n)));let e="";var r;return void 0!==n.year?(e=("000"+(void 0!==(r=n.year)?Math.abs(r):"0")).slice(-4),void 0!==n.month&&(e+="-"+I(n.month),void 0!==n.day&&(e+="-"+I(n.day),void 0!==n.hour&&(e+=`T${I(n.hour)}:${I(n.minute)}:00`)))):void 0!==n.hour&&(e=I(n.hour)+":"+I(n.minute)),e}const T=(n,e)=>void 0===e?n:"am"===e?12===n?0:n:12===n?12:n+12,k=n=>{const{dayOfWeek:e}=n;if(null==e)throw new Error("No day of week provided");return g(n,e)},D=n=>{const{dayOfWeek:e}=n;if(null==e)throw new Error("No day of week provided");return E(n,6-e)},M=n=>E(n,1),N=n=>g(n,1),O=n=>g(n,7),Z=n=>E(n,7),g=(n,e)=>{const{month:r,day:o,year:t}=n;if(null===o)throw new Error("No day provided");const a={month:r,day:o,year:t};if(a.day=o-e,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const n=d(a.month,a.year);a.day=n+a.day}return a},E=(n,e)=>{const{month:r,day:o,year:t}=n;if(null===o)throw new Error("No day provided");const a={month:r,day:o,year:t},i=d(r,t);return a.day=o+e,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},A=n=>{const e=1===n.month?12:n.month-1,r=1===n.month?n.year-1:n.year,o=d(e,r);return{month:e,year:r,day:o<n.day?o:n.day}},C=n=>{const e=12===n.month?1:n.month+1,r=12===n.month?n.year+1:n.year,o=d(e,r);return{month:e,year:r,day:o<n.day?o:n.day}},P=(n,e)=>{const r=n.month,o=n.year+e,t=d(r,o);return{month:r,year:o,day:t<n.day?t:n.day}},U=n=>P(n,-1),V=n=>P(n,1),F=(n,e,r)=>e?n:T(n,r),W=(n,e)=>{const{ampm:r,hour:o}=n;let t=o;return"am"===r&&"pm"===e?t=T(t,"pm"):"pm"===r&&"am"===e&&(t=Math.abs(t-12)),t},b=(n,r,o)=>{const{month:t,day:a,year:i}=n,s=h({...n},r,o),u=d(t,i);return null!==a&&u<a&&(s.day=u),void 0!==r&&e(s,r)&&void 0!==s.hour&&void 0!==r.hour&&(s.hour<r.hour?(s.hour=r.hour,s.minute=r.minute):s.hour===r.hour&&void 0!==s.minute&&void 0!==r.minute&&s.minute<r.minute&&(s.minute=r.minute)),void 0!==o&&e(n,o)&&void 0!==s.hour&&void 0!==o.hour&&(s.hour>o.hour?(s.hour=o.hour,s.minute=o.minute):s.hour===o.hour&&void 0!==s.minute&&void 0!==o.minute&&s.minute>o.minute&&(s.minute=o.minute)),s},x=({refParts:n,monthValues:t,dayValues:a,yearValues:i,hourValues:d,minuteValues:s,minParts:u,maxParts:m})=>{const{hour:c,minute:v,day:y,month:l,year:h}=n,w={...n,dayOfWeek:void 0};if(void 0!==i){const n=i.filter((n=>!(void 0!==u&&n<u.year||void 0!==m&&n>m.year)));w.year=J(h,n)}if(void 0!==t){const n=t.filter((n=>!(void 0!==u&&w.year===u.year&&n<u.month||void 0!==m&&w.year===m.year&&n>m.month)));w.month=J(l,n)}if(null!==y&&void 0!==a){const n=a.filter((n=>!(void 0!==u&&r({...w,day:n},u)||void 0!==m&&o({...w,day:n},m))));w.day=J(y,n)}if(void 0!==c&&void 0!==d){const n=d.filter((n=>!(void 0!==u?.hour&&e(w,u)&&n<u.hour||void 0!==m?.hour&&e(w,m)&&n>m.hour)));w.hour=J(c,n),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==s){const n=s.filter((n=>!(void 0!==u?.minute&&e(w,u)&&w.hour===u.hour&&n<u.minute||void 0!==m?.minute&&e(w,m)&&w.hour===m.hour&&n>m.minute)));w.minute=J(v,n)}return w},J=(n,e)=>{let r=e[0],o=Math.abs(r-n);for(let t=1;t<e.length;t++){const a=e[t],i=Math.abs(a-n);i<o&&(r=a,o=i)}return r},S=n=>({...n,timeZone:"UTC",timeZoneName:void 0}),j=(n,e,r,o={hour:"numeric",minute:"numeric"})=>{const t={hour:e.hour,minute:e.minute};return void 0===t.hour||void 0===t.minute?"Invalid Time":new Intl.DateTimeFormat(n,{...S(o),hourCycle:r}).format(new Date($({year:2023,day:1,month:1,...t})+"Z"))},B=n=>{const e=n.toString();return e.length>1?e:`0${e}`},G=(n,e)=>{if(0===n)switch(e){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${e}"`)}return i(e)?B(n):n.toString()},H=(n,e,r)=>{if(null===r.day)return null;const o=L(r),t=new Intl.DateTimeFormat(n,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return e?`Today, ${t}`:t},q=(n,e)=>{const r=L(e);return new Intl.DateTimeFormat(n,{month:"long",year:"numeric",timeZone:"UTC"}).format(r)},z=(n,e)=>R(n,e,{day:"numeric"}).find((n=>"day"===n.type)).value,K=(n,e)=>Q(n,e,{year:"numeric"}),L=n=>new Date(`${n.month??1}/${n.day??1}/${n.year??2023}${void 0!==n.hour&&void 0!==n.minute?` ${n.hour}:${n.minute}`:""} GMT+0000`),Q=(n,e,r)=>{const o=L(e);return Y(n,S(r)).format(o)},R=(n,e,r)=>{const o=L(e);return Y(n,r).formatToParts(o)},Y=(n,e)=>new Intl.DateTimeFormat(n,{...e,timeZone:"UTC"}),X=n=>{if("RelativeTimeFormat"in Intl){const e=new Intl.RelativeTimeFormat(n,{numeric:"auto"}).format(0,"day");return e.charAt(0).toUpperCase()+e.slice(1)}return"Today"},_=n=>{const e=n.getTimezoneOffset();return n.setMinutes(n.getMinutes()-e),n},nn=_(new Date("2022T01:00")),en=_(new Date("2022T13:00")),rn=(n,e)=>{const r="am"===e?nn:en,o=new Intl.DateTimeFormat(n,{hour:"numeric",timeZone:"UTC"}).formatToParts(r).find((n=>"dayPeriod"===n.type));return o?o.value:(n=>void 0===n?"":n.toUpperCase())(e)},on=n=>Array.isArray(n)?n.join(","):n;export{Z as A,p as B,w as C,l as D,t as E,f as F,h as G,v as H,$ as I,x as J,s as K,u as L,q as M,j as N,Q as O,on as P,W as Q,A as a,X as b,K as c,a as d,F as e,G as f,C as g,B as h,rn as i,r as j,e as k,o as l,i as m,d as n,z as o,H as p,y as q,_ as r,V as s,U as t,D as u,b as v,k as w,N as x,M as y,O as z}
4
+ import{p as n}from"./p-DFBWAYvo.js";const e=(n,e)=>n.month===e.month&&n.day===e.day&&n.year===e.year,r=(n,e)=>!!(n.year<e.year||n.year===e.year&&n.month<e.month||n.year===e.year&&n.month===e.month&&null!==n.day&&n.day<e.day),o=(n,e)=>!!(n.year>e.year||n.year===e.year&&n.month>e.month||n.year===e.year&&n.month===e.month&&null!==n.day&&n.day>e.day),t=(e,t,a)=>{const i=Array.isArray(e)?e:[e];for(const d of i)if(void 0!==t&&r(d,t)||void 0!==a&&o(d,a)){n(`[ion-datetime] - The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(t)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(e)}`);break}},a=(n,e)=>{if(void 0!==e)return e;const r=new Intl.DateTimeFormat(n,{hour:"numeric"}),o=r.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const t=new Date("5/18/2021 00:00"),a=r.formatToParts(t).find((n=>"hour"===n.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${e}"`)}},i=n=>"h23"===n||"h24"===n,d=(n,e)=>4===n||6===n||9===n||11===n?30:2===n?(n=>n%4==0&&n%100!=0||n%400==0)(e)?29:28:31,s=(n,e={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(n,e).formatToParts(new Date)[0].type,u=n=>"dayPeriod"===new Intl.DateTimeFormat(n,{hour:"numeric"}).formatToParts(new Date)[0].type,m=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=n=>{if(void 0===n)return;let e,r=n;return"string"==typeof n&&(r=n.replace(/\[|\]|\s/g,"").split(",")),e=Array.isArray(r)?r.map((n=>parseInt(n,10))).filter(isFinite):[r],e},y=n=>({month:parseInt(n.getAttribute("data-month"),10),day:parseInt(n.getAttribute("data-day"),10),year:parseInt(n.getAttribute("data-year"),10),dayOfWeek:parseInt(n.getAttribute("data-day-of-week"),10)});function l(e){if(Array.isArray(e)){const n=[];for(const r of e){const e=l(r);if(!e)return;n.push(e)}return n}let r=null;if(null!=e&&""!==e&&(r=c.exec(e),r?(r.unshift(void 0,void 0),r[2]=r[3]=void 0):r=m.exec(e)),null!==r){for(let n=1;n<8;n++)r[n]=void 0!==r[n]?parseInt(r[n],10):void 0;return{year:r[1],month:r[2],day:r[3],hour:r[4],minute:r[5],ampm:r[4]<12?"am":"pm"}}n(`[ion-datetime] - Unable to parse date string: ${e}. Please provide a valid ISO 8601 datetime string.`)}const h=(n,e,t)=>e&&r(n,e)?e:t&&o(n,t)?t:n,f=n=>n>=12?"pm":"am",w=(n,e)=>{const r=l(n);if(void 0===r)return;const{month:o,day:t,year:a,hour:i,minute:s}=r,u=a??e.year,m=o??12;return{month:m,day:t??d(m,u),year:u,hour:i??23,minute:s??59}},p=(n,e)=>{const r=l(n);if(void 0===r)return;const{month:o,day:t,year:a,hour:i,minute:d}=r;return{month:o??1,day:t??1,year:a??e.year,hour:i??0,minute:d??0}},I=n=>("0"+(void 0!==n?Math.abs(n):"0")).slice(-2);function $(n){if(Array.isArray(n))return n.map((n=>$(n)));let e="";var r;return void 0!==n.year?(e=("000"+(void 0!==(r=n.year)?Math.abs(r):"0")).slice(-4),void 0!==n.month&&(e+="-"+I(n.month),void 0!==n.day&&(e+="-"+I(n.day),void 0!==n.hour&&(e+=`T${I(n.hour)}:${I(n.minute)}:00`)))):void 0!==n.hour&&(e=I(n.hour)+":"+I(n.minute)),e}const T=(n,e)=>void 0===e?n:"am"===e?12===n?0:n:12===n?12:n+12,k=n=>{const{dayOfWeek:e}=n;if(null==e)throw new Error("No day of week provided");return g(n,e)},D=n=>{const{dayOfWeek:e}=n;if(null==e)throw new Error("No day of week provided");return E(n,6-e)},M=n=>E(n,1),N=n=>g(n,1),O=n=>g(n,7),Z=n=>E(n,7),g=(n,e)=>{const{month:r,day:o,year:t}=n;if(null===o)throw new Error("No day provided");const a={month:r,day:o,year:t};if(a.day=o-e,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const n=d(a.month,a.year);a.day=n+a.day}return a},E=(n,e)=>{const{month:r,day:o,year:t}=n;if(null===o)throw new Error("No day provided");const a={month:r,day:o,year:t},i=d(r,t);return a.day=o+e,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},A=n=>{const e=1===n.month?12:n.month-1,r=1===n.month?n.year-1:n.year,o=d(e,r);return{month:e,year:r,day:o<n.day?o:n.day}},C=n=>{const e=12===n.month?1:n.month+1,r=12===n.month?n.year+1:n.year,o=d(e,r);return{month:e,year:r,day:o<n.day?o:n.day}},P=(n,e)=>{const r=n.month,o=n.year+e,t=d(r,o);return{month:r,year:o,day:t<n.day?t:n.day}},U=n=>P(n,-1),V=n=>P(n,1),F=(n,e,r)=>e?n:T(n,r),W=(n,e)=>{const{ampm:r,hour:o}=n;let t=o;return"am"===r&&"pm"===e?t=T(t,"pm"):"pm"===r&&"am"===e&&(t=Math.abs(t-12)),t},b=(n,r,o)=>{const{month:t,day:a,year:i}=n,s=h({...n},r,o),u=d(t,i);return null!==a&&u<a&&(s.day=u),void 0!==r&&e(s,r)&&void 0!==s.hour&&void 0!==r.hour&&(s.hour<r.hour?(s.hour=r.hour,s.minute=r.minute):s.hour===r.hour&&void 0!==s.minute&&void 0!==r.minute&&s.minute<r.minute&&(s.minute=r.minute)),void 0!==o&&e(n,o)&&void 0!==s.hour&&void 0!==o.hour&&(s.hour>o.hour?(s.hour=o.hour,s.minute=o.minute):s.hour===o.hour&&void 0!==s.minute&&void 0!==o.minute&&s.minute>o.minute&&(s.minute=o.minute)),s},x=({refParts:n,monthValues:t,dayValues:a,yearValues:i,hourValues:d,minuteValues:s,minParts:u,maxParts:m})=>{const{hour:c,minute:v,day:y,month:l,year:h}=n,w={...n,dayOfWeek:void 0};if(void 0!==i){const n=i.filter((n=>!(void 0!==u&&n<u.year||void 0!==m&&n>m.year)));w.year=J(h,n)}if(void 0!==t){const n=t.filter((n=>!(void 0!==u&&w.year===u.year&&n<u.month||void 0!==m&&w.year===m.year&&n>m.month)));w.month=J(l,n)}if(null!==y&&void 0!==a){const n=a.filter((n=>!(void 0!==u&&r({...w,day:n},u)||void 0!==m&&o({...w,day:n},m))));w.day=J(y,n)}if(void 0!==c&&void 0!==d){const n=d.filter((n=>!(void 0!==u?.hour&&e(w,u)&&n<u.hour||void 0!==m?.hour&&e(w,m)&&n>m.hour)));w.hour=J(c,n),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==s){const n=s.filter((n=>!(void 0!==u?.minute&&e(w,u)&&w.hour===u.hour&&n<u.minute||void 0!==m?.minute&&e(w,m)&&w.hour===m.hour&&n>m.minute)));w.minute=J(v,n)}return w},J=(n,e)=>{let r=e[0],o=Math.abs(r-n);for(let t=1;t<e.length;t++){const a=e[t],i=Math.abs(a-n);i<o&&(r=a,o=i)}return r},S=n=>({...n,timeZone:"UTC",timeZoneName:void 0}),j=(n,e,r,o={hour:"numeric",minute:"numeric"})=>{const t={hour:e.hour,minute:e.minute};return void 0===t.hour||void 0===t.minute?"Invalid Time":new Intl.DateTimeFormat(n,{...S(o),hourCycle:r}).format(new Date($({year:2023,day:1,month:1,...t})+"Z"))},B=n=>{const e=n.toString();return e.length>1?e:`0${e}`},G=(n,e)=>{if(0===n)switch(e){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${e}"`)}return i(e)?B(n):n.toString()},H=(n,e,r)=>{if(null===r.day)return null;const o=L(r),t=new Intl.DateTimeFormat(n,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return e?`Today, ${t}`:t},q=(n,e)=>{const r=L(e);return new Intl.DateTimeFormat(n,{month:"long",year:"numeric",timeZone:"UTC"}).format(r)},z=(n,e)=>R(n,e,{day:"numeric"}).find((n=>"day"===n.type)).value,K=(n,e)=>Q(n,e,{year:"numeric"}),L=n=>new Date(`${n.month??1}/${n.day??1}/${n.year??2023}${void 0!==n.hour&&void 0!==n.minute?` ${n.hour}:${n.minute}`:""} GMT+0000`),Q=(n,e,r)=>{const o=L(e);return Y(n,S(r)).format(o)},R=(n,e,r)=>{const o=L(e);return Y(n,r).formatToParts(o)},Y=(n,e)=>new Intl.DateTimeFormat(n,{...e,timeZone:"UTC"}),X=n=>{if("RelativeTimeFormat"in Intl){const e=new Intl.RelativeTimeFormat(n,{numeric:"auto"}).format(0,"day");return e.charAt(0).toUpperCase()+e.slice(1)}return"Today"},_=n=>{const e=n.getTimezoneOffset();return n.setMinutes(n.getMinutes()-e),n},nn=_(new Date("2022T01:00")),en=_(new Date("2022T13:00")),rn=(n,e)=>{const r="am"===e?nn:en,o=new Intl.DateTimeFormat(n,{hour:"numeric",timeZone:"UTC"}).formatToParts(r).find((n=>"dayPeriod"===n.type));return o?o.value:(n=>void 0===n?"":n.toUpperCase())(e)},on=n=>Array.isArray(n)?n.join(","):n;export{O as A,Z as B,p as C,w as D,l as E,t as F,h as G,f as H,v as I,x as J,s as K,u as L,q as M,j as N,Q as O,on as P,W as Q,A as a,X as b,K as c,a as d,F as e,G as f,C as g,B as h,rn as i,r as j,e as k,o as l,i as m,d as n,z as o,H as p,M as q,_ as r,$ as s,y as t,V as u,b as v,U as w,D as x,k as y,N as z}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{d as e,H as o,e as t,h as i,j as s,f as l,t as n}from"./p-DFBWAYvo.js";import{b as c,c as a}from"./p-C93i7QCU.js";import{a as d,g as r}from"./p-CODBQrPj.js";import{s as m}from"./p-ET0FZop5.js";import{r as p}from"./p-CiEBXUnh.js";import{h,g as b}from"./p-BUF_V-Kg.js";import{w as x,k as f}from"./p-0rXxxCTt.js";import{d as g}from"./p-DktrWeJE.js";import{d as k}from"./p-BHiggB_l.js";import{d as v}from"./p-C7BPrXxF.js";import{d as u}from"./p-Da8LCPwo.js";import{d as y}from"./p-CAekGbOf.js";import{d as w}from"./p-B8TMb1l1.js";import{d as j}from"./p-fU4OdAZ9.js";import{d as E}from"./p-iNIvlAGo.js";import{d as C}from"./p-qbig9BW8.js";import{d as z}from"./p-DRpeTf7R.js";import{d as I}from"./p-CE7N7-7s.js";import{d as U}from"./p-BNV7BMZo.js";import{d as S}from"./p-DdOVnjsY.js";const B=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.pendingEnterTarget=null,this.cancelText="Close",this.cancelIcon=!1,this.options=[]}closeModal(){const e=this.el.closest("ion-modal");e&&e.dismiss()}findOptionFromEvent(e){const{options:o}=this;return o.find((o=>o.value===e.target.value))}getValues(e){const{multiple:o,options:t}=this;if(o)return t.filter((e=>e.checked)).map((e=>e.value));const i=e?this.findOptionFromEvent(e):null;return i?i.value:void 0}callOptionHandler(e){const o=this.findOptionFromEvent(e),t=this.getValues(e);o?.handler&&m(o.handler,t)}setChecked(e){const{multiple:o}=this,t=this.findOptionFromEvent(e);o&&t&&(t.checked=e.detail.checked)}get selectModalCancelIcon(){const e=c(this);return t.get("selectModalCancelIcon","ios"===e?x:f)}getModalContextClasses(){const e=this.el;return{"in-modal-default":h("ion-modal.modal-default",e),"in-modal-sheet":h("ion-modal.modal-sheet",e)}}renderRadioOptions(){const e=c(this),o=this.options.filter((e=>e.checked)).map((e=>e.value))[0];return i("ion-radio-group",{value:o,onIonChange:e=>this.callOptionHandler(e)},this.options.map(((t,s)=>{const l=t,n=!!l.startContent||!!l.endContent||!!l.description,c={id:`modal-option-${s}`,label:l.text,startContent:l.startContent,endContent:l.endContent,description:l.description},a=d(e,"radio","modal"),m=r(e,"radio","modal");return i("ion-item",{lines:"none","data-focus-ignore":!0,disabled:t.disabled,class:{"item-radio-checked":t.value===o,...b(t.cssClass)}},i("ion-radio",{class:{"select-option-has-rich-content":n},value:t.value,disabled:t.disabled,justify:l.justify??m,labelPlacement:l.labelPlacement??a,onClick:()=>this.closeModal(),onKeyDown:e=>{"Enter"!==e.key||e.repeat||(this.pendingEnterTarget=e.currentTarget)},onKeyUp:e=>{if(" "===e.key)this.closeModal();else if("Enter"===e.key){const o=this.pendingEnterTarget===e.currentTarget;this.pendingEnterTarget=null,o&&this.closeModal()}}},p(c,"select-option-label")))})))}renderCheckboxOptions(){const e=c(this);return this.options.map(((o,t)=>{const l=o,n=!!l.startContent||!!l.endContent||!!l.description,c={id:`modal-option-${t}`,label:l.text,startContent:l.startContent,endContent:l.endContent,description:l.description},a=d(e,"checkbox","modal"),m=r(e,"checkbox","modal");return i("ion-item",{"data-focus-ignore":!0,disabled:o.disabled,class:{"item-checkbox-checked":o.checked,...b(o.cssClass)}},i("ion-checkbox",{class:{"select-option-has-rich-content":n},value:o.value,disabled:o.disabled,checked:o.checked,justify:l.justify??m,labelPlacement:l.labelPlacement??a,onIonChange:e=>{this.setChecked(e),this.callOptionHandler(e),s(this)}},p(c,"select-option-label")))}))}render(){return i(l,{key:"523097dfb459f06d3060496c86230d2e739b0ed3",class:{[a(this)]:!0,...this.getModalContextClasses()}},i("ion-header",{key:"d07eeb47de02254fea5db6932a655c0423cc7975"},i("ion-toolbar",{key:"a12d6f5d96168024ac97e48ffb95e1f26df81d23"},void 0!==this.header&&i("ion-title",{key:"33cf2de34a1eff6ce412d9c17608dd628d95ea3c"},this.header),i("ion-buttons",{key:"8da140fbb98d7032f787940b8481d5d84fc3e1e1",slot:"end"},i("ion-button",{key:"b579ce37b28c9e934f35c63441933712b59874ff","aria-label":this.cancelIcon?this.cancelText:void 0,"data-focus-order":"2",onClick:()=>this.closeModal()},this.cancelIcon?i("ion-icon",{"aria-hidden":"true",slot:"icon-only",icon:this.selectModalCancelIcon}):this.cancelText)))),i("ion-content",{key:"56a33bcd8ab6676571c0264fec04074779099e2e"},i("ion-list",{key:"f9efec43aedc2afb5beb5b61a3207e09ce298b82"},!0===this.multiple?this.renderCheckboxOptions():this.renderRadioOptions())))}get el(){return this}static get style(){return{ionic:'.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ionic,.alert-radio-label-has-rich-content.sc-ion-select-modal-ionic,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ionic,.select-option-label-has-rich-content.sc-ion-select-modal-ionic{gap:var(--token-space-300, var(--token-scale-300, 12px))}.action-sheet-button-label-text.sc-ion-select-modal-ionic,.alert-checkbox-label-text.sc-ion-select-modal-ionic,.alert-radio-label-text.sc-ion-select-modal-ionic,.select-option-label-text.sc-ion-select-modal-ionic{gap:var(--token-space-300, var(--token-scale-300, 12px))}.select-option-description.sc-ion-select-modal-ionic{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-regular, 400);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.714286;-webkit-padding-start:var(--token-space-0, var(--token-scale-0, 0px));padding-inline-start:var(--token-space-0, var(--token-scale-0, 0px));-webkit-padding-end:var(--token-space-0, var(--token-scale-0, 0px));padding-inline-end:var(--token-space-0, var(--token-scale-0, 0px));padding-top:var(--token-space-0, var(--token-scale-0, 0px));padding-bottom:var(--token-space-0, var(--token-scale-0, 0px));color:var(--token-text-subtle, var(--token-primitives-neutral-1000, #383e45));font-size:var(--token-font-size-350, 0.875rem)}.select-option-start.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic{gap:var(--token-space-200, var(--token-scale-200, 8px))}.select-option-start.sc-ion-select-modal-ionic>ion-avatar.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>ion-img.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>ion-thumbnail.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>img.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>svg.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-avatar.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-img.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-thumbnail.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>img.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>svg.sc-ion-select-modal-ionic{width:var(--token-scale-1200, 48px);height:var(--token-scale-1200, 48px)}.select-option-start.sc-ion-select-modal-ionic>ion-icon.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-icon.sc-ion-select-modal-ionic{font-size:var(--token-scale-1200, 48px)}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ionic,.alert-radio-label-has-rich-content.sc-ion-select-modal-ionic,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ionic,.select-option-label-has-rich-content.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ionic,.alert-radio-label-has-rich-content.sc-ion-select-modal-ionic,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ionic,.select-option-content.sc-ion-select-modal-ionic{-ms-flex:1;flex:1}.action-sheet-button-label-text.sc-ion-select-modal-ionic,.alert-checkbox-label-text.sc-ion-select-modal-ionic,.alert-radio-label-text.sc-ion-select-modal-ionic,.select-option-label-text.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-start.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-description.sc-ion-select-modal-ionic{display:block}.select-option-label.sc-ion-select-modal-ionic:not(.select-option-label-has-rich-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-option-label-has-rich-content.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}ion-radio.select-option-has-rich-content.sc-ion-select-modal-ionic::part(label),ion-radio.select-option-has-rich-content.sc-ion-select-modal-ionic [part~="label"],ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ionic::part(label),ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ionic [part~="label"],.select-option-content.sc-ion-select-modal-ionic{-ms-flex:1;flex:1;white-space:normal}.sc-ion-select-modal-ionic-h{height:100%}.in-modal-default.sc-ion-select-modal-ionic-h ion-content.sc-ion-select-modal-ionic::part(scroll),.in-modal-default.sc-ion-select-modal-ionic-h ion-content.sc-ion-select-modal-ionic [part~="scroll"]{--padding-bottom:var(--token-space-400, var(--token-scale-400, 16px))}ion-item.sc-ion-select-modal-ionic{--border-width:var(--token-border-size-0, var(--token-scale-0, 0px));--background-focused:transparent;--background-focused-opacity:1;--background-hover:var(--token-bg-neutral-subtlest-press, var(--token-primitives-neutral-200, #ebeef2));--background-hover-opacity:1;--background-activated:var(--token-bg-neutral-subtlest-press, var(--token-primitives-neutral-200, #ebeef2));--background-activated-opacity:1;--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}ion-toolbar.sc-ion-select-modal-ionic{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-450, 1.125rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.555556}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(container),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="container"]{display:none}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="label"]{-webkit-margin-start:var(--token-space-0, var(--token-scale-0, 0px));margin-inline-start:var(--token-space-0, var(--token-scale-0, 0px));-webkit-margin-end:var(--token-space-0, var(--token-scale-0, 0px));margin-inline-end:var(--token-space-0, var(--token-scale-0, 0px));margin-top:var(--token-space-0, var(--token-scale-0, 0px));margin-bottom:var(--token-space-0, var(--token-scale-0, 0px))}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="label"],ion-list.sc-ion-select-modal-ionic ion-checkbox.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-checkbox.sc-ion-select-modal-ionic [part~="label"]{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.5}.item-radio-checked.sc-ion-select-modal-ionic,.item-checkbox-checked.sc-ion-select-modal-ionic{--background:var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)))}ion-content.sc-ion-select-modal-ionic{--padding-start:var(--token-space-400, var(--token-scale-400, 16px)) !important;--padding-end:var(--token-space-400, var(--token-scale-400, 16px)) !important;--padding-bottom:var(--token-space-1200, var(--token-scale-1200, 48px)) !important}',ios:'.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-label-has-rich-content.sc-ion-select-modal-ios{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-ios,.alert-checkbox-label-text.sc-ion-select-modal-ios,.alert-radio-label-text.sc-ion-select-modal-ios,.select-option-label-text.sc-ion-select-modal-ios{gap:12px}.select-option-start.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios{gap:8px}.select-option-description.sc-ion-select-modal-ios{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.select-option-start.sc-ion-select-modal-ios>ion-avatar.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>ion-img.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>ion-thumbnail.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>img.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>svg.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-avatar.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-img.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-thumbnail.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>img.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>svg.sc-ion-select-modal-ios{width:44px;height:44px}.select-option-start.sc-ion-select-modal-ios>ion-icon.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-icon.sc-ion-select-modal-ios{font-size:28px}.action-sheet-button-label-text.sc-ion-select-modal-ios{-ms-flex-pack:center;justify-content:center}.select-option-has-rich-content.sc-ion-select-modal-ios{-webkit-padding-end:16px;padding-inline-end:16px}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-label-has-rich-content.sc-ion-select-modal-ios{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-ios,.alert-checkbox-label-text.sc-ion-select-modal-ios,.alert-radio-label-text.sc-ion-select-modal-ios,.select-option-label-text.sc-ion-select-modal-ios{gap:12px}.select-option-start.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios{gap:8px}.select-option-description.sc-ion-select-modal-ios{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-label-has-rich-content.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-content.sc-ion-select-modal-ios{-ms-flex:1;flex:1}.action-sheet-button-label-text.sc-ion-select-modal-ios,.alert-checkbox-label-text.sc-ion-select-modal-ios,.alert-radio-label-text.sc-ion-select-modal-ios,.select-option-label-text.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-start.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-description.sc-ion-select-modal-ios{display:block}.select-option-label.sc-ion-select-modal-ios:not(.select-option-label-has-rich-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-option-label-has-rich-content.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}ion-radio.select-option-has-rich-content.sc-ion-select-modal-ios::part(label),ion-radio.select-option-has-rich-content.sc-ion-select-modal-ios [part~="label"],ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ios::part(label),ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ios [part~="label"],.select-option-content.sc-ion-select-modal-ios{-ms-flex:1;flex:1;white-space:normal}.sc-ion-select-modal-ios-h{height:100%}ion-item.sc-ion-select-modal-ios{--inner-padding-end:0}ion-radio.sc-ion-select-modal-ios::after{bottom:0;position:absolute;width:calc(100% - 0.9375rem - 16px);border-width:0px 0px 0.55px 0px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));content:""}ion-radio.sc-ion-select-modal-ios::after{inset-inline-start:calc(0.9375rem + 16px)}',md:'.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-label-has-rich-content.sc-ion-select-modal-md{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-md,.alert-checkbox-label-text.sc-ion-select-modal-md,.alert-radio-label-text.sc-ion-select-modal-md,.select-option-label-text.sc-ion-select-modal-md{gap:12px}.select-option-start.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md{gap:8px}.select-option-description.sc-ion-select-modal-md{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.select-option-start.sc-ion-select-modal-md>ion-avatar.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-avatar.sc-ion-select-modal-md{width:40px;height:40px}.select-option-start.sc-ion-select-modal-md>ion-icon.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-icon.sc-ion-select-modal-md{font-size:24px}.select-option-start.sc-ion-select-modal-md>ion-img.sc-ion-select-modal-md,.select-option-start.sc-ion-select-modal-md>img.sc-ion-select-modal-md,.select-option-start.sc-ion-select-modal-md>svg.sc-ion-select-modal-md,.select-option-start.sc-ion-select-modal-md>ion-thumbnail.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-img.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>img.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>svg.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-thumbnail.sc-ion-select-modal-md{width:56px;height:56px}.select-option-start.sc-ion-select-modal-md>video.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>video.sc-ion-select-modal-md{width:114px;height:56px}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-label-has-rich-content.sc-ion-select-modal-md{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-md,.alert-checkbox-label-text.sc-ion-select-modal-md,.alert-radio-label-text.sc-ion-select-modal-md,.select-option-label-text.sc-ion-select-modal-md{gap:12px}.select-option-start.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md{gap:8px}.select-option-description.sc-ion-select-modal-md{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-label-has-rich-content.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-content.sc-ion-select-modal-md{-ms-flex:1;flex:1}.action-sheet-button-label-text.sc-ion-select-modal-md,.alert-checkbox-label-text.sc-ion-select-modal-md,.alert-radio-label-text.sc-ion-select-modal-md,.select-option-label-text.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-start.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-description.sc-ion-select-modal-md{display:block}.select-option-label.sc-ion-select-modal-md:not(.select-option-label-has-rich-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-option-label-has-rich-content.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}ion-radio.select-option-has-rich-content.sc-ion-select-modal-md::part(label),ion-radio.select-option-has-rich-content.sc-ion-select-modal-md [part~="label"],ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-md::part(label),ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-md [part~="label"],.select-option-content.sc-ion-select-modal-md{-ms-flex:1;flex:1;white-space:normal}.sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(container),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="container"]{display:none}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(label),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}'}}},[34,"ion-select-modal",{header:[1],cancelText:[1,"cancel-text"],cancelIcon:[4,"cancel-icon"],multiple:[4],options:[16]}]);function A(){"undefined"!=typeof customElements&&["ion-select-modal","ion-button","ion-buttons","ion-checkbox","ion-content","ion-header","ion-icon","ion-item","ion-list","ion-radio","ion-radio-group","ion-ripple-effect","ion-title","ion-toolbar"].forEach((e=>{switch(e){case"ion-select-modal":customElements.get(n(e))||customElements.define(n(e),B);break;case"ion-button":customElements.get(n(e))||g();break;case"ion-buttons":customElements.get(n(e))||k();break;case"ion-checkbox":customElements.get(n(e))||v();break;case"ion-content":customElements.get(n(e))||u();break;case"ion-header":customElements.get(n(e))||y();break;case"ion-icon":customElements.get(n(e))||w();break;case"ion-item":customElements.get(n(e))||j();break;case"ion-list":customElements.get(n(e))||E();break;case"ion-radio":customElements.get(n(e))||C();break;case"ion-radio-group":customElements.get(n(e))||z();break;case"ion-ripple-effect":customElements.get(n(e))||I();break;case"ion-title":customElements.get(n(e))||U();break;case"ion-toolbar":customElements.get(n(e))||S()}}))}export{B as S,A as d}
4
+ import{d as e,H as o,e as t,h as i,j as s,f as l,t as n}from"./p-DFBWAYvo.js";import{b as c,c as a}from"./p-C93i7QCU.js";import{a as d,g as r}from"./p-CODBQrPj.js";import{s as m}from"./p-ET0FZop5.js";import{r as p}from"./p-CiEBXUnh.js";import{h,g as b}from"./p-BUF_V-Kg.js";import{w as x,k as f}from"./p-0rXxxCTt.js";import{d as g}from"./p-DktrWeJE.js";import{d as k}from"./p-BHiggB_l.js";import{d as v}from"./p-C7BPrXxF.js";import{d as u}from"./p-ByE0slik.js";import{d as y}from"./p-CAekGbOf.js";import{d as w}from"./p-B8TMb1l1.js";import{d as j}from"./p-fU4OdAZ9.js";import{d as E}from"./p-iNIvlAGo.js";import{d as C}from"./p-qbig9BW8.js";import{d as z}from"./p-DRpeTf7R.js";import{d as I}from"./p-CE7N7-7s.js";import{d as U}from"./p-BNV7BMZo.js";import{d as S}from"./p-DdOVnjsY.js";const B=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.pendingEnterTarget=null,this.cancelText="Close",this.cancelIcon=!1,this.options=[]}closeModal(){const e=this.el.closest("ion-modal");e&&e.dismiss()}findOptionFromEvent(e){const{options:o}=this;return o.find((o=>o.value===e.target.value))}getValues(e){const{multiple:o,options:t}=this;if(o)return t.filter((e=>e.checked)).map((e=>e.value));const i=e?this.findOptionFromEvent(e):null;return i?i.value:void 0}callOptionHandler(e){const o=this.findOptionFromEvent(e),t=this.getValues(e);o?.handler&&m(o.handler,t)}setChecked(e){const{multiple:o}=this,t=this.findOptionFromEvent(e);o&&t&&(t.checked=e.detail.checked)}get selectModalCancelIcon(){const e=c(this);return t.get("selectModalCancelIcon","ios"===e?x:f)}getModalContextClasses(){const e=this.el;return{"in-modal-default":h("ion-modal.modal-default",e),"in-modal-sheet":h("ion-modal.modal-sheet",e)}}renderRadioOptions(){const e=c(this),o=this.options.filter((e=>e.checked)).map((e=>e.value))[0];return i("ion-radio-group",{value:o,onIonChange:e=>this.callOptionHandler(e)},this.options.map(((t,s)=>{const l=t,n=!!l.startContent||!!l.endContent||!!l.description,c={id:`modal-option-${s}`,label:l.text,startContent:l.startContent,endContent:l.endContent,description:l.description},a=d(e,"radio","modal"),m=r(e,"radio","modal");return i("ion-item",{lines:"none","data-focus-ignore":!0,disabled:t.disabled,class:{"item-radio-checked":t.value===o,...b(t.cssClass)}},i("ion-radio",{class:{"select-option-has-rich-content":n},value:t.value,disabled:t.disabled,justify:l.justify??m,labelPlacement:l.labelPlacement??a,onClick:()=>this.closeModal(),onKeyDown:e=>{"Enter"!==e.key||e.repeat||(this.pendingEnterTarget=e.currentTarget)},onKeyUp:e=>{if(" "===e.key)this.closeModal();else if("Enter"===e.key){const o=this.pendingEnterTarget===e.currentTarget;this.pendingEnterTarget=null,o&&this.closeModal()}}},p(c,"select-option-label")))})))}renderCheckboxOptions(){const e=c(this);return this.options.map(((o,t)=>{const l=o,n=!!l.startContent||!!l.endContent||!!l.description,c={id:`modal-option-${t}`,label:l.text,startContent:l.startContent,endContent:l.endContent,description:l.description},a=d(e,"checkbox","modal"),m=r(e,"checkbox","modal");return i("ion-item",{"data-focus-ignore":!0,disabled:o.disabled,class:{"item-checkbox-checked":o.checked,...b(o.cssClass)}},i("ion-checkbox",{class:{"select-option-has-rich-content":n},value:o.value,disabled:o.disabled,checked:o.checked,justify:l.justify??m,labelPlacement:l.labelPlacement??a,onIonChange:e=>{this.setChecked(e),this.callOptionHandler(e),s(this)}},p(c,"select-option-label")))}))}render(){return i(l,{key:"523097dfb459f06d3060496c86230d2e739b0ed3",class:{[a(this)]:!0,...this.getModalContextClasses()}},i("ion-header",{key:"d07eeb47de02254fea5db6932a655c0423cc7975"},i("ion-toolbar",{key:"a12d6f5d96168024ac97e48ffb95e1f26df81d23"},void 0!==this.header&&i("ion-title",{key:"33cf2de34a1eff6ce412d9c17608dd628d95ea3c"},this.header),i("ion-buttons",{key:"8da140fbb98d7032f787940b8481d5d84fc3e1e1",slot:"end"},i("ion-button",{key:"b579ce37b28c9e934f35c63441933712b59874ff","aria-label":this.cancelIcon?this.cancelText:void 0,"data-focus-order":"2",onClick:()=>this.closeModal()},this.cancelIcon?i("ion-icon",{"aria-hidden":"true",slot:"icon-only",icon:this.selectModalCancelIcon}):this.cancelText)))),i("ion-content",{key:"56a33bcd8ab6676571c0264fec04074779099e2e"},i("ion-list",{key:"f9efec43aedc2afb5beb5b61a3207e09ce298b82"},!0===this.multiple?this.renderCheckboxOptions():this.renderRadioOptions())))}get el(){return this}static get style(){return{ionic:'.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ionic,.alert-radio-label-has-rich-content.sc-ion-select-modal-ionic,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ionic,.select-option-label-has-rich-content.sc-ion-select-modal-ionic{gap:var(--token-space-300, var(--token-scale-300, 12px))}.action-sheet-button-label-text.sc-ion-select-modal-ionic,.alert-checkbox-label-text.sc-ion-select-modal-ionic,.alert-radio-label-text.sc-ion-select-modal-ionic,.select-option-label-text.sc-ion-select-modal-ionic{gap:var(--token-space-300, var(--token-scale-300, 12px))}.select-option-description.sc-ion-select-modal-ionic{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-regular, 400);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.714286;-webkit-padding-start:var(--token-space-0, var(--token-scale-0, 0px));padding-inline-start:var(--token-space-0, var(--token-scale-0, 0px));-webkit-padding-end:var(--token-space-0, var(--token-scale-0, 0px));padding-inline-end:var(--token-space-0, var(--token-scale-0, 0px));padding-top:var(--token-space-0, var(--token-scale-0, 0px));padding-bottom:var(--token-space-0, var(--token-scale-0, 0px));color:var(--token-text-subtle, var(--token-primitives-neutral-1000, #383e45));font-size:var(--token-font-size-350, 0.875rem)}.select-option-start.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic{gap:var(--token-space-200, var(--token-scale-200, 8px))}.select-option-start.sc-ion-select-modal-ionic>ion-avatar.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>ion-img.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>ion-thumbnail.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>img.sc-ion-select-modal-ionic,.select-option-start.sc-ion-select-modal-ionic>svg.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-avatar.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-img.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-thumbnail.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>img.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>svg.sc-ion-select-modal-ionic{width:var(--token-scale-1200, 48px);height:var(--token-scale-1200, 48px)}.select-option-start.sc-ion-select-modal-ionic>ion-icon.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic>ion-icon.sc-ion-select-modal-ionic{font-size:var(--token-scale-1200, 48px)}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ionic,.alert-radio-label-has-rich-content.sc-ion-select-modal-ionic,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ionic,.select-option-label-has-rich-content.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ionic,.alert-radio-label-has-rich-content.sc-ion-select-modal-ionic,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ionic,.select-option-content.sc-ion-select-modal-ionic{-ms-flex:1;flex:1}.action-sheet-button-label-text.sc-ion-select-modal-ionic,.alert-checkbox-label-text.sc-ion-select-modal-ionic,.alert-radio-label-text.sc-ion-select-modal-ionic,.select-option-label-text.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-start.sc-ion-select-modal-ionic,.select-option-end.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-description.sc-ion-select-modal-ionic{display:block}.select-option-label.sc-ion-select-modal-ionic:not(.select-option-label-has-rich-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-option-label-has-rich-content.sc-ion-select-modal-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}ion-radio.select-option-has-rich-content.sc-ion-select-modal-ionic::part(label),ion-radio.select-option-has-rich-content.sc-ion-select-modal-ionic [part~="label"],ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ionic::part(label),ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ionic [part~="label"],.select-option-content.sc-ion-select-modal-ionic{-ms-flex:1;flex:1;white-space:normal}.sc-ion-select-modal-ionic-h{height:100%}.in-modal-default.sc-ion-select-modal-ionic-h ion-content.sc-ion-select-modal-ionic::part(scroll),.in-modal-default.sc-ion-select-modal-ionic-h ion-content.sc-ion-select-modal-ionic [part~="scroll"]{--padding-bottom:var(--token-space-400, var(--token-scale-400, 16px))}ion-item.sc-ion-select-modal-ionic{--border-width:var(--token-border-size-0, var(--token-scale-0, 0px));--background-focused:transparent;--background-focused-opacity:1;--background-hover:var(--token-bg-neutral-subtlest-press, var(--token-primitives-neutral-200, #ebeef2));--background-hover-opacity:1;--background-activated:var(--token-bg-neutral-subtlest-press, var(--token-primitives-neutral-200, #ebeef2));--background-activated-opacity:1;--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}ion-toolbar.sc-ion-select-modal-ionic{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-450, 1.125rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.555556}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(container),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="container"]{display:none}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="label"]{-webkit-margin-start:var(--token-space-0, var(--token-scale-0, 0px));margin-inline-start:var(--token-space-0, var(--token-scale-0, 0px));-webkit-margin-end:var(--token-space-0, var(--token-scale-0, 0px));margin-inline-end:var(--token-space-0, var(--token-scale-0, 0px));margin-top:var(--token-space-0, var(--token-scale-0, 0px));margin-bottom:var(--token-space-0, var(--token-scale-0, 0px))}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="label"],ion-list.sc-ion-select-modal-ionic ion-checkbox.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-checkbox.sc-ion-select-modal-ionic [part~="label"]{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.5}.item-radio-checked.sc-ion-select-modal-ionic,.item-checkbox-checked.sc-ion-select-modal-ionic{--background:var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)))}ion-content.sc-ion-select-modal-ionic{--padding-start:var(--token-space-400, var(--token-scale-400, 16px)) !important;--padding-end:var(--token-space-400, var(--token-scale-400, 16px)) !important;--padding-bottom:var(--token-space-1200, var(--token-scale-1200, 48px)) !important}',ios:'.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-label-has-rich-content.sc-ion-select-modal-ios{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-ios,.alert-checkbox-label-text.sc-ion-select-modal-ios,.alert-radio-label-text.sc-ion-select-modal-ios,.select-option-label-text.sc-ion-select-modal-ios{gap:12px}.select-option-start.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios{gap:8px}.select-option-description.sc-ion-select-modal-ios{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.select-option-start.sc-ion-select-modal-ios>ion-avatar.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>ion-img.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>ion-thumbnail.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>img.sc-ion-select-modal-ios,.select-option-start.sc-ion-select-modal-ios>svg.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-avatar.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-img.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-thumbnail.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>img.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>svg.sc-ion-select-modal-ios{width:44px;height:44px}.select-option-start.sc-ion-select-modal-ios>ion-icon.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios>ion-icon.sc-ion-select-modal-ios{font-size:28px}.action-sheet-button-label-text.sc-ion-select-modal-ios{-ms-flex-pack:center;justify-content:center}.select-option-has-rich-content.sc-ion-select-modal-ios{-webkit-padding-end:16px;padding-inline-end:16px}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-label-has-rich-content.sc-ion-select-modal-ios{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-ios,.alert-checkbox-label-text.sc-ion-select-modal-ios,.alert-radio-label-text.sc-ion-select-modal-ios,.select-option-label-text.sc-ion-select-modal-ios{gap:12px}.select-option-start.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios{gap:8px}.select-option-description.sc-ion-select-modal-ios{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-label-has-rich-content.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-ios,.alert-radio-label-has-rich-content.sc-ion-select-modal-ios,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-ios,.select-option-content.sc-ion-select-modal-ios{-ms-flex:1;flex:1}.action-sheet-button-label-text.sc-ion-select-modal-ios,.alert-checkbox-label-text.sc-ion-select-modal-ios,.alert-radio-label-text.sc-ion-select-modal-ios,.select-option-label-text.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-start.sc-ion-select-modal-ios,.select-option-end.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-description.sc-ion-select-modal-ios{display:block}.select-option-label.sc-ion-select-modal-ios:not(.select-option-label-has-rich-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-option-label-has-rich-content.sc-ion-select-modal-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}ion-radio.select-option-has-rich-content.sc-ion-select-modal-ios::part(label),ion-radio.select-option-has-rich-content.sc-ion-select-modal-ios [part~="label"],ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ios::part(label),ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-ios [part~="label"],.select-option-content.sc-ion-select-modal-ios{-ms-flex:1;flex:1;white-space:normal}.sc-ion-select-modal-ios-h{height:100%}ion-item.sc-ion-select-modal-ios{--inner-padding-end:0}ion-radio.sc-ion-select-modal-ios::after{bottom:0;position:absolute;width:calc(100% - 0.9375rem - 16px);border-width:0px 0px 0.55px 0px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));content:""}ion-radio.sc-ion-select-modal-ios::after{inset-inline-start:calc(0.9375rem + 16px)}',md:'.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-label-has-rich-content.sc-ion-select-modal-md{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-md,.alert-checkbox-label-text.sc-ion-select-modal-md,.alert-radio-label-text.sc-ion-select-modal-md,.select-option-label-text.sc-ion-select-modal-md{gap:12px}.select-option-start.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md{gap:8px}.select-option-description.sc-ion-select-modal-md{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.select-option-start.sc-ion-select-modal-md>ion-avatar.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-avatar.sc-ion-select-modal-md{width:40px;height:40px}.select-option-start.sc-ion-select-modal-md>ion-icon.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-icon.sc-ion-select-modal-md{font-size:24px}.select-option-start.sc-ion-select-modal-md>ion-img.sc-ion-select-modal-md,.select-option-start.sc-ion-select-modal-md>img.sc-ion-select-modal-md,.select-option-start.sc-ion-select-modal-md>svg.sc-ion-select-modal-md,.select-option-start.sc-ion-select-modal-md>ion-thumbnail.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-img.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>img.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>svg.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>ion-thumbnail.sc-ion-select-modal-md{width:56px;height:56px}.select-option-start.sc-ion-select-modal-md>video.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md>video.sc-ion-select-modal-md{width:114px;height:56px}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-label-has-rich-content.sc-ion-select-modal-md{gap:16px}.action-sheet-button-label-text.sc-ion-select-modal-md,.alert-checkbox-label-text.sc-ion-select-modal-md,.alert-radio-label-text.sc-ion-select-modal-md,.select-option-label-text.sc-ion-select-modal-md{gap:12px}.select-option-start.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md{gap:8px}.select-option-description.sc-ion-select-modal-md{padding-left:0;padding-right:0;padding-top:5px;padding-bottom:0;color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-label-has-rich-content.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.action-sheet-button-label-has-rich-content.sc-ion-select-modal-md,.alert-radio-label-has-rich-content.sc-ion-select-modal-md,.alert-checkbox-label-has-rich-content.sc-ion-select-modal-md,.select-option-content.sc-ion-select-modal-md{-ms-flex:1;flex:1}.action-sheet-button-label-text.sc-ion-select-modal-md,.alert-checkbox-label-text.sc-ion-select-modal-md,.alert-radio-label-text.sc-ion-select-modal-md,.select-option-label-text.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-start.sc-ion-select-modal-md,.select-option-end.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.select-option-description.sc-ion-select-modal-md{display:block}.select-option-label.sc-ion-select-modal-md:not(.select-option-label-has-rich-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-option-label-has-rich-content.sc-ion-select-modal-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}ion-radio.select-option-has-rich-content.sc-ion-select-modal-md::part(label),ion-radio.select-option-has-rich-content.sc-ion-select-modal-md [part~="label"],ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-md::part(label),ion-checkbox.select-option-has-rich-content.sc-ion-select-modal-md [part~="label"],.select-option-content.sc-ion-select-modal-md{-ms-flex:1;flex:1;white-space:normal}.sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(container),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="container"]{display:none}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(label),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}'}}},[34,"ion-select-modal",{header:[1],cancelText:[1,"cancel-text"],cancelIcon:[4,"cancel-icon"],multiple:[4],options:[16]}]);function A(){"undefined"!=typeof customElements&&["ion-select-modal","ion-button","ion-buttons","ion-checkbox","ion-content","ion-header","ion-icon","ion-item","ion-list","ion-radio","ion-radio-group","ion-ripple-effect","ion-title","ion-toolbar"].forEach((e=>{switch(e){case"ion-select-modal":customElements.get(n(e))||customElements.define(n(e),B);break;case"ion-button":customElements.get(n(e))||g();break;case"ion-buttons":customElements.get(n(e))||k();break;case"ion-checkbox":customElements.get(n(e))||v();break;case"ion-content":customElements.get(n(e))||u();break;case"ion-header":customElements.get(n(e))||y();break;case"ion-icon":customElements.get(n(e))||w();break;case"ion-item":customElements.get(n(e))||j();break;case"ion-list":customElements.get(n(e))||E();break;case"ion-radio":customElements.get(n(e))||C();break;case"ion-radio-group":customElements.get(n(e))||z();break;case"ion-ripple-effect":customElements.get(n(e))||I();break;case"ion-title":customElements.get(n(e))||U();break;case"ion-toolbar":customElements.get(n(e))||S()}}))}export{B as S,A as d}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{d as t,H as e,i,k as o,j as n,h as s,f as r,t as l,e as c}from"./p-DFBWAYvo.js";import{i as a,m as h,c as d}from"./p-7-zF1amS.js";import{n as b}from"./p-ET0FZop5.js";import{a as f,b as p,c as u}from"./p-C93i7QCU.js";import{i as m}from"./p-Dj4J3LkD.js";import{h as g,c as v}from"./p-BUF_V-Kg.js";const x=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.ionScrollStart=i(this,"ionScrollStart",7),this.ionScroll=i(this,"ionScroll",7),this.ionScrollEnd=i(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.inheritedAttributes={},this.tabsElement=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.sizeToContent=!1,this.fullscreen=!1,this.fixedSlotPlacement="after",this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}fullscreenChanged(){this.setupFullscreenResizeObserver()}componentWillLoad(){this.inheritedAttributes=a(this.el),this.sizeToContent=this.readSizeToContent()}connectedCallback(){if(this.isMainContent=null===this.el.closest("ion-menu, ion-popover, ion-modal"),h(this.el)){const t=this.tabsElement=this.el.closest("ion-tabs");null!==t&&(this.tabsLoadCallback=()=>this.resize(),t.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}this.setupFullscreenResizeObserver(),this.updateSizeToContent()}componentDidLoad(){this.setupFullscreenResizeObserver()}disconnectedCallback(){if(this.onScrollEnd(),h(this.el)){const{tabsElement:t,tabsLoadCallback:e}=this;null!==t&&void 0!==e&&t.removeEventListener("ionTabBarLoaded",e),this.tabsElement=null,this.tabsLoadCallback=void 0}this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.destroyFullscreenResizeObserver()}setupFullscreenResizeObserver(){"undefined"!=typeof ResizeObserver&&(this.fullscreen&&!g("ion-popover",this.el)?void 0===this.fullscreenResizeObserver&&(this.fullscreenResizeObserver=new ResizeObserver((()=>{null!==this.el.offsetParent&&this.resize()})),this.fullscreenResizeObserver.observe(this.el)):this.destroyFullscreenResizeObserver())}updateSizeToContent(){o((()=>{this.sizeToContent=this.readSizeToContent()}))}destroyFullscreenResizeObserver(){void 0!==this.fullscreenResizeObserver&&(this.fullscreenResizeObserver.disconnect(),this.fullscreenResizeObserver=void 0)}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout((()=>{null!==this.el.offsetParent&&this.resize()}),100)}shouldForceOverscroll(t){const{forceOverscroll:e}=this;return void 0===e?"ios"===t&&f("ios"):e}readSizeToContent(){if(g("ion-popover",this.el))return!0;const t=this.el.closest("ion-modal");if(null===t)return!1;const e=getComputedStyle(t).getPropertyValue("--height");return"content"===b(e)}resize(){this.updateSizeToContent(),this.fullscreen?o((()=>this.readDimensions())):0===this.cTop&&0===this.cBottom||(this.cTop=this.cBottom=0,n(this))}async recalculateDimensions(){o((()=>this.readDimensions())),this.updateSizeToContent()}readDimensions(){const t=w(this.el),e=Math.max(this.el.offsetTop,0),i=Math.max(t.offsetHeight-e-this.el.offsetHeight,0);(e!==this.cTop||i!==this.cBottom)&&(this.cTop=e,this.cBottom=i,n(this))}onScroll(t){const e=Date.now(),i=!this.isScrolling;this.lastScroll=e,i&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,o((e=>{this.queued=!1,this.detail.event=t,z(this.detail,this.scrollEl,e,i),this.ionScroll.emit(this.detail)})))}async getScrollElement(){return this.scrollEl||await new Promise((t=>d(this.el,t))),Promise.resolve(this.scrollEl)}async getBackgroundElement(){return this.backgroundContentEl||await new Promise((t=>d(this.el,t))),Promise.resolve(this.backgroundContentEl)}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}async scrollToBottom(t=0){const e=await this.getScrollElement();return this.scrollToPoint(void 0,e.scrollHeight-e.clientHeight,t)}async scrollByPoint(t,e,i){const o=await this.getScrollElement();return this.scrollToPoint(t+o.scrollLeft,e+o.scrollTop,i)}async scrollToPoint(t,e,i=0){const o=await this.getScrollElement();if(i<32)return null!=e&&(o.scrollTop=e),void(null!=t&&(o.scrollLeft=t));let n,s=0;const r=new Promise((t=>n=t)),l=o.scrollTop,c=o.scrollLeft,a=null!=e?e-l:0,h=null!=t?t-c:0,d=t=>{const e=Math.min(1,(t-s)/i)-1,r=Math.pow(e,3)+1;0!==a&&(o.scrollTop=Math.floor(r*a+l)),0!==h&&(o.scrollLeft=Math.floor(r*h+c)),r<1?requestAnimationFrame(d):n()};return requestAnimationFrame((t=>{s=t,d(t)})),r}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval((()=>{this.lastScroll<Date.now()-120&&this.onScrollEnd()}),100)}onScrollEnd(){this.watchDog&&clearInterval(this.watchDog),this.watchDog=null,this.isScrolling&&(this.isScrolling=!1,this.ionScrollEnd.emit({isScrolling:!1}))}render(){const{fixedSlotPlacement:t,inheritedAttributes:e,isMainContent:i,scrollX:o,scrollY:n,el:l}=this,c=m(l)?"rtl":"ltr",a=p(this),h=u(this,a),d=this.shouldForceOverscroll(h),b="ios"===a;return this.resize(),s(r,{key:"7e283337732b709e43fe89b08f6852c499b964ff",role:i?"main":void 0,class:v(this.color,{[a]:!0,"content-fullscreen":this.fullscreen,"content-sizing":this.sizeToContent,overscroll:d,[`content-${c}`]:!0}),style:{"--offset-top":`${this.cTop}px`,"--offset-bottom":`${this.cBottom}px`},...e},s("div",{key:"0dcbe4f4fe2d0f85b8c36bc656fc619afdc89cfe",ref:t=>this.backgroundContentEl=t,id:"background-content",part:"background"}),"before"===t?s("slot",{name:"fixed"}):null,s("div",{key:"cbe91794c2fc53a59f8994968571a677a2e8346b",class:{"inner-scroll":!0,"scroll-x":o,"scroll-y":n,overscroll:(o||n)&&d},ref:t=>this.scrollEl=t,onScroll:this.scrollEvents?t=>this.onScroll(t):void 0,part:"scroll"},s("slot",{key:"1a6b9bf25051eee41003185e1b519e4c4af2c001"})),b?s("div",{class:"transition-effect"},s("div",{class:"transition-cover"}),s("div",{class:"transition-shadow"})):null,"after"===t?s("slot",{name:"fixed"}):null)}get el(){return this}static get watchers(){return{fullscreen:[{fullscreenChanged:0}]}}static get style(){return':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}'}},[257,"ion-content",{color:[513],fullscreen:[4],fixedSlotPlacement:[1,"fixed-slot-placement"],forceOverscroll:[1028,"force-overscroll"],scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],scrollEvents:[4,"scroll-events"],sizeToContent:[32],recalculateDimensions:[64],getScrollElement:[64],getBackgroundElement:[64],scrollToTop:[64],scrollToBottom:[64],scrollByPoint:[64],scrollToPoint:[64]},[[9,"resize","onResize"]],{fullscreen:[{fullscreenChanged:0}]}]),w=t=>{const e=t.closest("ion-tabs");if(e)return e;const i=c.get("appRootSelector","ion-app");return t.closest(`${i}, ion-page, .ion-page, page-inner, .popover-content`)||(t=>t.parentElement?t.parentElement:t.parentNode?.host?t.parentNode.host:null)(t)},z=(t,e,i,o)=>{const n=t.currentX,s=t.currentY,r=e.scrollLeft,l=e.scrollTop,c=i-t.currentTime;if(o&&(t.startTime=i,t.startX=r,t.startY=l,t.velocityX=t.velocityY=0),t.currentTime=i,t.currentX=t.scrollLeft=r,t.currentY=t.scrollTop=l,t.deltaX=r-t.startX,t.deltaY=l-t.startY,c>0&&c<100){const e=(l-s)/c;t.velocityX=(r-n)/c*.7+.3*t.velocityX,t.velocityY=.7*e+.3*t.velocityY}};function k(){"undefined"!=typeof customElements&&["ion-content"].forEach((t=>{"ion-content"===t&&(customElements.get(l(t))||customElements.define(l(t),x))}))}export{x as C,k as d}