-
Notifications
You must be signed in to change notification settings - Fork 0
/
2349.6755e701460aa077.js
1 lines (1 loc) · 27.5 KB
/
2349.6755e701460aa077.js
1
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2349],{4147:(ie,U,p)=>{p.d(U,{a:()=>I,b:()=>l,p:()=>x});const x=(b,...M)=>console.warn(`[Ionic Warning]: ${b}`,...M),l=(b,...M)=>console.error(`[Ionic Error]: ${b}`,...M),I=(b,...M)=>console.error(`<${b.tagName.toLowerCase()}> must be used inside ${M.join(" or ")}.`)},2349:(ie,U,p)=>{p.r(U),p.d(U,{ion_modal:()=>fe});var x=p(5861),l=p(7205),I=p(5729),b=p(8935),M=p(1878),g=p(3756),V=p(1316),m=p(4147),h=p(3280),S=p(2854),J=p(9753),c=p(9442),G=p(8685),se=p(3139);p(3509);const N=typeof window<"u"?window:void 0;var F=(()=>{return(e=F||(F={})).Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT",F;var e})();const q={getEngine(){var e,t,n;return(null===(t=null===(e=N)||void 0===e?void 0:e.Capacitor)||void 0===t?void 0:t.isPluginAvailable("StatusBar"))&&(null===(n=N)||void 0===n?void 0:n.Capacitor.Plugins.StatusBar)},supportsDefaultStatusBarStyle(){var e,t;return!(null===(t=null===(e=N)||void 0===e?void 0:e.Capacitor)||void 0===t||!t.PluginHeaders)},setStyle(e){const t=this.getEngine();!t||t.setStyle(e)}},ee=(e,t)=>{if(1===t)return 0;const n=1/(1-t);return e*n+-t*n},ae=()=>{!N||N.innerWidth>=768||!q.supportsDefaultStatusBarStyle()||q.setStyle({style:F.Dark})},de=()=>{!N||N.innerWidth>=768||!q.supportsDefaultStatusBarStyle()||q.setStyle({style:F.Default})},le=function(){var e=(0,x.Z)(function*(t,n){"function"!=typeof t.canDismiss||!(yield t.canDismiss())||(n.isRunning()?n.onFinish(()=>{t.dismiss(void 0,"handler")},{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))});return function(n,r){return e.apply(this,arguments)}}(),te=e=>.00255275*2.71828**(-14.9619*e)-1.00255*2.71828**(-.0380968*e)+1,ce=(e,t)=>(0,g.l)(400,e/Math.abs(1.1*t),500),pe=e=>{const{currentBreakpoint:t,backdropBreakpoint:n}=e,r=void 0===n||n<t,o=r?`calc(var(--backdrop-opacity) * ${t})`:"0",s=(0,c.c)("backdropAnimation").fromTo("opacity",0,o);return r&&s.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:(0,c.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*t}%)`}]),backdropAnimation:s}},he=e=>{const{currentBreakpoint:t,backdropBreakpoint:n}=e,r=`calc(var(--backdrop-opacity) * ${ee(t,n)})`,o=[{offset:0,opacity:r},{offset:1,opacity:0}],s=[{offset:0,opacity:r},{offset:n,opacity:0},{offset:1,opacity:0}],a=(0,c.c)("backdropAnimation").keyframes(0!==n?s:o);return{wrapperAnimation:(0,c.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*t}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:a}},me=(e,t)=>{const{presentingEl:n,currentBreakpoint:r}=t,o=(0,g.g)(e),{wrapperAnimation:s,backdropAnimation:a}=void 0!==r?pe(t):{backdropAnimation:(0,c.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,c.c)().fromTo("transform","translateY(100vh)","translateY(0vh)")};a.addElement(o.querySelector("ion-backdrop")),s.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const i=(0,c.c)("entering-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(s);if(n){const u=window.innerWidth<768,_="ION-MODAL"===n.tagName&&void 0!==n.presentingElement,k=(0,g.g)(n),D=(0,c.c)().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),A=document.body;if(u){const v=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",E=`translateY(${_?"-10px":v}) scale(0.93)`;D.afterStyles({transform:E}).beforeAddWrite(()=>A.style.setProperty("background-color","black")).addElement(n).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:E,borderRadius:"10px 10px 0 0"}]),i.addAnimation(D)}else if(i.addAnimation(a),_){const y=`translateY(-10px) scale(${_?.93:1})`;D.afterStyles({transform:y}).addElement(k.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:y}]);const d=(0,c.c)().afterStyles({transform:y}).addElement(k.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:y}]);i.addAnimation([D,d])}else s.fromTo("opacity","0","1")}else i.addAnimation(a);return i},ue=(e,t,n=500)=>{const{presentingEl:r,currentBreakpoint:o}=t,s=(0,g.g)(e),{wrapperAnimation:a,backdropAnimation:i}=void 0!==o?he(t):{backdropAnimation:(0,c.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,c.c)().fromTo("transform","translateY(0vh)","translateY(100vh)")};i.addElement(s.querySelector("ion-backdrop")),a.addElement(s.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const u=(0,c.c)("leaving-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(a);if(r){const _=window.innerWidth<768,k="ION-MODAL"===r.tagName&&void 0!==r.presentingElement,D=(0,g.g)(r),A=(0,c.c)().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(y=>{1===y&&(r.style.setProperty("overflow",""),Array.from(v.querySelectorAll("ion-modal")).filter(E=>void 0!==E.presentingElement).length<=1&&v.style.setProperty("background-color",""))}),v=document.body;if(_){const y=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",R=`translateY(${k?"-10px":y}) scale(0.93)`;A.addElement(r).keyframes([{offset:0,filter:"contrast(0.85)",transform:R,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),u.addAnimation(A)}else if(u.addAnimation(i),k){const d=`translateY(-10px) scale(${k?.93:1})`;A.addElement(D.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:d},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const E=(0,c.c)().addElement(D.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:d},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);u.addAnimation([A,E])}else a.fromTo("opacity","1","0")}else u.addAnimation(i);return u},xe=(e,t)=>{const{currentBreakpoint:n}=t,r=(0,g.g)(e),{wrapperAnimation:o,backdropAnimation:s}=void 0!==n?pe(t):{backdropAnimation:(0,c.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,c.c)().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return s.addElement(r.querySelector("ion-backdrop")),o.addElement(r.querySelector(".modal-wrapper")),(0,c.c)().addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([s,o])},Ee=(e,t)=>{const{currentBreakpoint:n}=t,r=(0,g.g)(e),{wrapperAnimation:o,backdropAnimation:s}=void 0!==n?he(t):{backdropAnimation:(0,c.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,c.c)().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return s.addElement(r.querySelector("ion-backdrop")),o.addElement(r.querySelector(".modal-wrapper")),(0,c.c)().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([s,o])},fe=class{constructor(e){(0,l.r)(this,e),this.didPresent=(0,l.e)(this,"ionModalDidPresent",7),this.willPresent=(0,l.e)(this,"ionModalWillPresent",7),this.willDismiss=(0,l.e)(this,"ionModalWillDismiss",7),this.didDismiss=(0,l.e)(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=(0,l.e)(this,"ionBreakpointDidChange",7),this.didPresentShorthand=(0,l.e)(this,"didPresent",7),this.willPresentShorthand=(0,l.e)(this,"willPresent",7),this.willDismissShorthand=(0,l.e)(this,"willDismiss",7),this.didDismissShorthand=(0,l.e)(this,"didDismiss",7),this.modalIndex=Ce++,this.coreDelegate=(0,M.C)(),this.isSheetModal=!1,this.inline=!1,this.gestureAnimationDismissing=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropBreakpoint=0,this.handleBehavior="none",this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.swipeToClose=!1,this.isOpen=!1,this.keepContentsMounted=!1,this.configureTriggerInteraction=()=>{const{trigger:t,el:n,destroyTriggerInteraction:r}=this;r&&r();const o=void 0!==t?document.getElementById(t):null;o&&(this.destroyTriggerInteraction=((a,i)=>{const u=()=>{i.present()};return a.addEventListener("click",u),()=>{a.removeEventListener("click",u)}})(o,n))},this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:n}=this;"cycle"!==n||void 0!==t||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,h.B)},this.onLifecycle=t=>{const n=this.usersElement,r=Ae[t.type];if(n&&r){const o=new CustomEvent(r,{bubbles:!1,cancelable:!1,detail:t.detail});n.dispatchEvent(o)}}}onIsOpenChange(e,t){!0===e&&!1===t?this.present():!1===e&&!0===t&&this.dismiss()}onTriggerChange(){this.configureTriggerInteraction()}swipeToCloseChanged(e){var t=this;return(0,x.Z)(function*(){t.gesture?t.gesture.enable(e):e&&(yield t.initSwipeToClose())})()}breakpointsChanged(e){void 0!==e&&(this.sortedBreakpoints=e.sort((t,n)=>t-n))}connectedCallback(){(0,h.e)(this.el)}componentWillLoad(){const{breakpoints:e,initialBreakpoint:t,swipeToClose:n}=this;this.modalId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-modal-${this.modalIndex}`,(this.isSheetModal=void 0!==e&&void 0!==t)&&(this.currentBreakpoint=this.initialBreakpoint),void 0!==e&&void 0!==t&&!e.includes(t)&&(0,m.p)("Your breakpoints array must include the initialBreakpoint value."),n&&(0,m.p)("swipeToClose has been deprecated in favor of canDismiss.\n\nIf you want a card modal to be swipeable, set canDismiss to `true`. In the next major release of Ionic, swipeToClose will be removed, and all card modals will be swipeable by default.")}componentDidLoad(){!0===this.isOpen&&(0,g.r)(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.configureTriggerInteraction()}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};const n=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:n,delegate:this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate}}checkCanDismiss(){var e=this;return(0,x.Z)(function*(){const{canDismiss:t}=e;return void 0===t||("function"==typeof t?t():t)})()}present(){var e=this;return(0,x.Z)(function*(){if(e.presented)return;void 0!==e.currentTransition&&(yield e.currentTransition),e.currentBreakpoint=e.initialBreakpoint;const t=Object.assign(Object.assign({},e.componentProps),{modal:e.el}),{inline:n,delegate:r}=e.getDelegate(!0);e.usersElement=yield(0,M.a)(r,e.el,e.component,["ion-page"],t,n),yield(0,J.e)(e.usersElement),(0,l.c)(()=>e.el.classList.add("show-modal")),e.currentTransition=(0,h.d)(e,"modalEnter",me,xe,{presentingEl:e.presentingElement,currentBreakpoint:e.initialBreakpoint,backdropBreakpoint:e.backdropBreakpoint});const o=e.swipeToClose||void 0!==e.canDismiss&&void 0!==e.presentingElement;o&&"ios"===(0,I.b)(e)&&ae(),yield e.currentTransition,e.isSheetModal?e.initSheetGesture():o&&(yield e.initSwipeToClose()),typeof window<"u"&&(e.keyboardOpenCallback=()=>{e.gesture&&(e.gesture.enable(!1),(0,g.r)(()=>{e.gesture&&e.gesture.enable(!0)}))},window.addEventListener(V.KEYBOARD_DID_OPEN,e.keyboardOpenCallback)),e.currentTransition=void 0})()}initSwipeToClose(){var e=this;if("ios"!==(0,I.b)(this))return;const{el:t}=this,n=this.leaveAnimation||I.c.get("modalLeave",ue),r=this.animation=n(t,{presentingEl:this.presentingElement});(0,b.a)(t)?(this.gesture=((e,t,n)=>{const o=e.offsetHeight;let s=!1,a=!1,i=null,u=null,k=!0,D=0;const R=(0,se.createGesture)({el:e,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:B=>{const f=B.event.target;return null===f||!f.closest||(i=(0,b.f)(f),i?(u=(0,b.i)(i)?(0,g.g)(i).querySelector(".inner-scroll"):i,!i.querySelector("ion-refresher")&&0===u.scrollTop):null===f.closest("ion-footer"))},onStart:B=>{const{deltaY:f}=B;k=!i||!(0,b.i)(i)||i.scrollY,a=void 0!==e.canDismiss&&!0!==e.canDismiss,f>0&&i&&(0,b.d)(i),t.progressStart(!0,s?1:0)},onMove:B=>{const{deltaY:f}=B;f>0&&i&&(0,b.d)(i);const w=B.deltaY/o,O=w>=0&&a,Y=O?.2:.9999,z=O?te(w/Y):w,T=(0,g.l)(1e-4,z,Y);t.progressStep(T),T>=.5&&D<.5?de():T<.5&&D>=.5&&ae(),D=T},onEnd:B=>{const f=B.velocityY,w=B.deltaY/o,O=w>=0&&a,Y=O?.2:.9999,z=O?te(w/Y):w,T=(0,g.l)(1e-4,z,Y),W=!O&&(B.deltaY+1e3*f)/o>=.5;let Z=W?-.001:.001;W?(t.easing("cubic-bezier(0.32, 0.72, 0, 1)"),Z+=(0,G.g)([0,0],[.32,.72],[0,1],[1,1],T)[0]):(t.easing("cubic-bezier(1, 0, 0.68, 0.28)"),Z+=(0,G.g)([0,0],[1,0],[.68,.28],[1,1],T)[0]);const re=ce(W?w*o:(1-T)*o,f);s=W,R.enable(!1),i&&(0,b.r)(i,k),t.onFinish(()=>{W||R.enable(!0)}).progressEnd(W?1:0,Z,re),O&&T>Y/4?le(e,t):W&&n()}});return R})(t,r,()=>{this.gestureAnimationDismissing=!0,this.animation.onFinish((0,x.Z)(function*(){yield e.dismiss(void 0,"gesture"),e.gestureAnimationDismissing=!1}))}),this.gesture.enable(!0)):(0,b.p)(t)}initSheetGesture(){const{wrapperEl:e,initialBreakpoint:t,backdropBreakpoint:n}=this;if(!e||void 0===t)return;const r=this.enterAnimation||I.c.get("modalEnter",me),o=this.animation=r(this.el,{presentingEl:this.presentingElement,currentBreakpoint:t,backdropBreakpoint:n});o.progressStart(!0,1);const{gesture:s,moveSheetToBreakpoint:a}=((e,t,n,r,o,s,a=[],i,u,_)=>{const A={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==o?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-o,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},v=e.querySelector("ion-content"),y=n.clientHeight;let d=r,E=0,R=!1;const f=s.childAnimations.find(C=>"wrapperAnimation"===C.id),w=s.childAnimations.find(C=>"backdropAnimation"===C.id),O=a[a.length-1],Y=a[0],z=()=>{e.style.setProperty("pointer-events","auto"),t.style.setProperty("pointer-events","auto"),e.classList.remove("ion-disable-focus-trap")},T=()=>{e.style.setProperty("pointer-events","none"),t.style.setProperty("pointer-events","none"),e.classList.add("ion-disable-focus-trap")};f&&w&&(f.keyframes([...A.WRAPPER_KEYFRAMES]),w.keyframes([...A.BACKDROP_KEYFRAMES]),s.progressStart(!0,1-d),d>o?z():T()),v&&d!==O&&(v.scrollY=!1);const ge=C=>{const{breakpoint:K,canDismiss:L,breakpointOffset:j}=C,$=L&&0===K,P=$?d:K,H=0!==P;return d=0,f&&w&&(f.keyframes([{offset:0,transform:`translateY(${100*j}%)`},{offset:1,transform:`translateY(${100*(1-P)}%)`}]),w.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${ee(1-j,o)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${ee(P,o)})`}]),s.progressStep(0)),X.enable(!1),$?le(e,s):H||u(),new Promise(oe=>{s.onFinish(()=>{H?f&&w?(0,g.r)(()=>{f.keyframes([...A.WRAPPER_KEYFRAMES]),w.keyframes([...A.BACKDROP_KEYFRAMES]),s.progressStart(!0,1-P),d=P,_(d),v&&d===a[a.length-1]&&(v.scrollY=!0),d>o?z():T(),X.enable(!0),oe()}):(X.enable(!0),oe()):oe()},{oneTimeCallback:!0}).progressEnd(1,0,500)})},X=(0,se.createGesture)({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:C=>{const K=C.event.target.closest("ion-content");return d=i(),!(1===d&&K)},onStart:()=>{R=void 0!==e.canDismiss&&!0!==e.canDismiss&&0===Y,v&&(v.scrollY=!1),(0,g.r)(()=>{e.focus()}),s.progressStart(!0,1-d)},onMove:C=>{const L=a.length>1?1-a[1]:void 0,j=1-d+C.deltaY/y,$=void 0!==L&&j>=L&&R,P=$?.95:.9999,H=$&&void 0!==L?L+te((j-L)/(P-L)):j;E=(0,g.l)(1e-4,H,P),s.progressStep(E)},onEnd:C=>{const j=d-(C.deltaY+100*C.velocityY)/y,$=a.reduce((P,H)=>Math.abs(H-j)<Math.abs(P-j)?H:P);ge({breakpoint:$,breakpointOffset:E,canDismiss:R})}});return{gesture:X,moveSheetToBreakpoint:ge}})(this.el,this.backdropEl,e,t,n,o,this.sortedBreakpoints,()=>{var i;return null!==(i=this.currentBreakpoint)&&void 0!==i?i:0},()=>this.sheetOnDismiss(),i=>{this.currentBreakpoint!==i&&(this.currentBreakpoint=i,this.ionBreakpointDidChange.emit({breakpoint:i}))});this.gesture=s,this.moveSheetToBreakpoint=a,this.gesture.enable(!0)}sheetOnDismiss(){var e=this;this.gestureAnimationDismissing=!0,this.animation.onFinish((0,x.Z)(function*(){e.currentBreakpoint=0,e.ionBreakpointDidChange.emit({breakpoint:e.currentBreakpoint}),yield e.dismiss(void 0,"gesture"),e.gestureAnimationDismissing=!1}))}dismiss(e,t){var n=this;return(0,x.Z)(function*(){if(n.gestureAnimationDismissing&&"gesture"!==t||"handler"!==t&&!(yield n.checkCanDismiss()))return!1;(n.swipeToClose||void 0!==n.canDismiss&&void 0!==n.presentingElement)&&"ios"===(0,I.b)(n)&&de(),typeof window<"u"&&n.keyboardOpenCallback&&window.removeEventListener(V.KEYBOARD_DID_OPEN,n.keyboardOpenCallback),void 0!==n.currentTransition&&(yield n.currentTransition);const o=h.h.get(n)||[];n.currentTransition=(0,h.f)(n,e,t,"modalLeave",ue,Ee,{presentingEl:n.presentingElement,currentBreakpoint:n.currentBreakpoint||n.initialBreakpoint,backdropBreakpoint:n.backdropBreakpoint});const s=yield n.currentTransition;if(s){const{delegate:a}=n.getDelegate();yield(0,M.d)(a,n.usersElement),(0,l.c)(()=>n.el.classList.remove("show-modal")),n.animation&&n.animation.destroy(),n.gesture&&n.gesture.destroy(),o.forEach(i=>i.destroy())}return n.currentBreakpoint=void 0,n.currentTransition=void 0,n.animation=void 0,s})()}onDidDismiss(){return(0,h.g)(this.el,"ionModalDidDismiss")}onWillDismiss(){return(0,h.g)(this.el,"ionModalWillDismiss")}setCurrentBreakpoint(e){var t=this;return(0,x.Z)(function*(){if(!t.isSheetModal)return void(0,m.p)("setCurrentBreakpoint is only supported on sheet modals.");if(!t.breakpoints.includes(e))return void(0,m.p)(`Attempted to set invalid breakpoint value ${e}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:n,moveSheetToBreakpoint:r,canDismiss:o,breakpoints:s}=t;n!==e&&r&&(t.sheetTransition=r({breakpoint:e,breakpointOffset:1-n,canDismiss:void 0!==o&&!0!==o&&0===s[0]}),yield t.sheetTransition,t.sheetTransition=void 0)})()}getCurrentBreakpoint(){var e=this;return(0,x.Z)(function*(){return e.currentBreakpoint})()}moveToNextBreakpoint(){var e=this;return(0,x.Z)(function*(){const{breakpoints:t,currentBreakpoint:n}=e;if(!t||null==n)return!1;const r=t.filter(i=>0!==i),s=(r.indexOf(n)+1)%r.length,a=r[s];return yield e.setCurrentBreakpoint(a),!0})()}render(){const{handle:e,isSheetModal:t,presentingElement:n,htmlAttributes:r,handleBehavior:o}=this,s=!1!==e&&t,a=(0,I.b)(this),{modalId:i}=this,u=void 0!==n&&"ios"===a,_="cycle"===o;return(0,l.h)(l.H,Object.assign({"no-router":!0,"aria-modal":"true",tabindex:"-1"},r,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[a]:!0,"modal-default":!u&&!t,"modal-card":u,"modal-sheet":t,"overlay-hidden":!0},(0,S.g)(this.cssClass)),id:i,onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),(0,l.h)("ion-backdrop",{ref:k=>this.backdropEl=k,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===a&&(0,l.h)("div",{class:"modal-shadow"}),(0,l.h)("div",{role:"dialog",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:k=>this.wrapperEl=k},s&&(0,l.h)("button",{class:"modal-handle",tabIndex:_?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:_?this.onHandleClick:void 0,part:"handle"}),(0,l.h)("slot",null)))}get el(){return(0,l.i)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["onTriggerChange"],swipeToClose:["swipeToCloseChanged"]}}},Ae={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};let Ce=0;fe.style={ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right: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-shadow{position:absolute;background:transparent}@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{left:0px;right:0px;top:5px;border-radius:8px;margin-left:auto;margin-right:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.modal-handle::before{padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle::before{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}: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: 1px){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: 1px){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-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-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right: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-shadow{position:absolute;background:transparent}@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{left:0px;right:0px;top:5px;border-radius:8px;margin-left:auto;margin-right:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.modal-handle::before{padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle::before{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}: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}'}},2854:(ie,U,p)=>{p.d(U,{c:()=>I,g:()=>M,h:()=>l,o:()=>V});var x=p(5861);const l=(m,h)=>null!==h.closest(m),I=(m,h)=>"string"==typeof m&&m.length>0?Object.assign({"ion-color":!0,[`ion-color-${m}`]:!0},h):h,M=m=>{const h={};return(m=>void 0!==m?(Array.isArray(m)?m:m.split(" ")).filter(S=>null!=S).map(S=>S.trim()).filter(S=>""!==S):[])(m).forEach(S=>h[S]=!0),h},g=/^[a-z][a-z0-9+\-.]*:/,V=function(){var m=(0,x.Z)(function*(h,S,J,c){if(null!=h&&"#"!==h[0]&&!g.test(h)){const G=document.querySelector("ion-router");if(G)return S?.preventDefault(),G.push(h,J,c)}return!1});return function(S,J,c,G){return m.apply(this,arguments)}}()}}]);