Files
kapp/2349.0d525062d46a6c2f.js
T
2026-05-21 11:19:10 -03:00

1 line
32 KiB
JavaScript

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2349,5234],{87626:(te,N,f)=>{f.d(N,{C:()=>y,a:()=>T,d:()=>k});var E=f(15861),b=f(35730);const T=function(){var i=(0,E.Z)(function*(v,c,a,h,D,S){var p;if(v)return v.attachViewToDom(c,a,D,h);if(!(S||"string"==typeof a||a instanceof HTMLElement))throw new Error("framework delegate is missing");const A="string"==typeof a?null===(p=c.ownerDocument)||void 0===p?void 0:p.createElement(a):a;return h&&h.forEach(I=>A.classList.add(I)),D&&Object.assign(A,D),c.appendChild(A),yield new Promise(I=>(0,b.c)(A,I)),A});return function(c,a,h,D,S,p){return i.apply(this,arguments)}}(),k=(i,v)=>{if(v){if(i)return i.removeViewFromDom(v.parentElement,v);v.remove()}return Promise.resolve()},y=()=>{let i,v;return{attachViewToDom:function(){var h=(0,E.Z)(function*(D,S,p={},A=[]){var I,F;if(i=D,S){const m="string"==typeof S?null===(I=i.ownerDocument)||void 0===I?void 0:I.createElement(S):S;A.forEach(r=>m.classList.add(r)),Object.assign(m,p),i.appendChild(m),yield new Promise(r=>(0,b.c)(m,r))}else if(i.children.length>0&&!i.children[0].classList.contains("ion-delegate-host")){const r=null===(F=i.ownerDocument)||void 0===F?void 0:F.createElement("div");r.classList.add("ion-delegate-host"),A.forEach(B=>r.classList.add(B)),r.append(...i.children),i.appendChild(r)}const l=document.querySelector("ion-app")||document.body;return v=document.createComment("ionic teleport"),i.parentNode.insertBefore(v,i),l.appendChild(i),i});return function(S,p){return h.apply(this,arguments)}}(),removeViewFromDom:()=>(i&&v&&(v.parentNode.insertBefore(i,v),v.remove()),Promise.resolve())}}},94147:(te,N,f)=>{f.d(N,{a:()=>T,b:()=>b,p:()=>E});const E=(k,...y)=>console.warn(`[Ionic Warning]: ${k}`,...y),b=(k,...y)=>console.error(`[Ionic Error]: ${k}`,...y),T=(k,...y)=>console.error(`<${k.tagName.toLowerCase()}> must be used inside ${y.join(" or ")}.`)},48416:(te,N,f)=>{f.d(N,{I:()=>y,a:()=>h,b:()=>i,c:()=>p,d:()=>I,f:()=>D,g:()=>a,i:()=>c,p:()=>A,r:()=>F,s:()=>S});var E=f(15861),b=f(35730),T=f(94147);const y="ion-content",i=".ion-content-scroll-host",v=`${y}, ${i}`,c=l=>"ION-CONTENT"===l.tagName,a=function(){var l=(0,E.Z)(function*(m){return c(m)?(yield new Promise(r=>(0,b.c)(m,r)),m.getScrollElement()):m});return function(r){return l.apply(this,arguments)}}(),h=l=>l.querySelector(i)||l.querySelector(v),D=l=>l.closest(v),S=(l,m)=>c(l)?l.scrollToTop(m):Promise.resolve(l.scrollTo({top:0,left:0,behavior:m>0?"smooth":"auto"})),p=(l,m,r,B)=>c(l)?l.scrollByPoint(m,r,B):Promise.resolve(l.scrollBy({top:r,left:m,behavior:B>0?"smooth":"auto"})),A=l=>(0,T.a)(l,y),I=l=>{if(c(l)){const r=l.scrollY;return l.scrollY=!1,r}return l.style.setProperty("overflow","hidden"),!0},F=(l,m)=>{c(l)?l.scrollY=m:l.style.removeProperty("overflow")}},42349:(te,N,f)=>{f.r(N),f.d(N,{ion_modal:()=>be});var E=f(15861),b=f(71308),T=f(35179),k=f(48416),y=f(87626),i=f(35730),v=f(45234),c=f(94147),a=f(13457),h=f(63539),D=f(92854),S=f(1843),p=f(90181),A=f(32225),I=f(81898),l=(f(34349),(()=>{return(e=l||(l={})).Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT",l;var e})());const m={getEngine(){var e;return(null===(e=null==a.w?void 0:a.w.Capacitor)||void 0===e?void 0:e.isPluginAvailable("StatusBar"))&&(null==a.w?void 0:a.w.Capacitor.Plugins.StatusBar)},supportsDefaultStatusBarStyle(){var e;return!(null===(e=null==a.w?void 0:a.w.Capacitor)||void 0===e||!e.PluginHeaders)},setStyle(e){const t=this.getEngine();!t||t.setStyle(e)},getStyle:(e=(0,E.Z)(function*(){const t=this.getEngine();if(!t)return l.Default;const{style:n}=yield t.getInfo();return n}),function(){return e.apply(this,arguments)})},r=(e,t)=>{if(1===t)return 0;const n=1/(1-t);return e*n+-t*n},B=()=>{!a.w||a.w.innerWidth>=768||!m.supportsDefaultStatusBarStyle()||m.setStyle({style:l.Dark})},ne=(e=l.Default)=>{!a.w||a.w.innerWidth>=768||!m.supportsDefaultStatusBarStyle()||m.setStyle({style:e})},ie=function(){var e=(0,E.Z)(function*(t,n){"function"!=typeof t.canDismiss||!(yield t.canDismiss(void 0,h.G))||(n.isRunning()?n.onFinish(()=>{t.dismiss(void 0,"handler")},{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))});return function(n,o){return e.apply(this,arguments)}}(),le=e=>.00255275*2.71828**(-14.9619*e)-1.00255*2.71828**(-.0380968*e)+1,he=(e,t)=>(0,i.l)(400,e/Math.abs(1.1*t),500),ue=e=>{const{currentBreakpoint:t,backdropBreakpoint:n}=e,o=void 0===n||n<t,d=o?`calc(var(--backdrop-opacity) * ${t})`:"0",s=(0,p.c)("backdropAnimation").fromTo("opacity",0,d);return o&&s.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:(0,p.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*t}%)`}]),backdropAnimation:s}},fe=e=>{const{currentBreakpoint:t,backdropBreakpoint:n}=e,o=`calc(var(--backdrop-opacity) * ${r(t,n)})`,d=[{offset:0,opacity:o},{offset:1,opacity:0}],s=[{offset:0,opacity:o},{offset:n,opacity:0},{offset:1,opacity:0}],u=(0,p.c)("backdropAnimation").keyframes(0!==n?s:d);return{wrapperAnimation:(0,p.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*t}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:u}},me=(e,t)=>{const{presentingEl:n,currentBreakpoint:o}=t,d=(0,i.g)(e),{wrapperAnimation:s,backdropAnimation:u}=void 0!==o?ue(t):{backdropAnimation:(0,p.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,p.c)().fromTo("transform","translateY(100vh)","translateY(0vh)")};u.addElement(d.querySelector("ion-backdrop")),s.addElement(d.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const g=(0,p.c)("entering-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(s);if(n){const _=window.innerWidth<768,L="ION-MODAL"===n.tagName&&void 0!==n.presentingElement,R=(0,i.g)(n),O=(0,p.c)().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),M=document.body;if(_){const Y=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",K=`translateY(${L?"-10px":Y}) scale(0.93)`;O.afterStyles({transform:K}).beforeAddWrite(()=>M.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:K,borderRadius:"10px 10px 0 0"}]),g.addAnimation(O)}else if(g.addAnimation(u),L){const P=`translateY(-10px) scale(${L?.93:1})`;O.afterStyles({transform:P}).addElement(R.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:P}]);const w=(0,p.c)().afterStyles({transform:P}).addElement(R.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:P}]);g.addAnimation([O,w])}else s.fromTo("opacity","0","1")}else g.addAnimation(u);return g},ge=(e,t,n=500)=>{const{presentingEl:o,currentBreakpoint:d}=t,s=(0,i.g)(e),{wrapperAnimation:u,backdropAnimation:g}=void 0!==d?fe(t):{backdropAnimation:(0,p.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,p.c)().fromTo("transform","translateY(0vh)","translateY(100vh)")};g.addElement(s.querySelector("ion-backdrop")),u.addElement(s.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const _=(0,p.c)("leaving-base").addElement(e).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(u);if(o){const L=window.innerWidth<768,R="ION-MODAL"===o.tagName&&void 0!==o.presentingElement,O=(0,i.g)(o),M=(0,p.c)().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(P=>{1===P&&(o.style.setProperty("overflow",""),Array.from(Y.querySelectorAll("ion-modal")).filter(K=>void 0!==K.presentingElement).length<=1&&Y.style.setProperty("background-color",""))}),Y=document.body;if(L){const P=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",Q=`translateY(${R?"-10px":P}) scale(0.93)`;M.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:Q,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),_.addAnimation(M)}else if(_.addAnimation(g),R){const w=`translateY(-10px) scale(${R?.93:1})`;M.addElement(O.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:w},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const K=(0,p.c)().addElement(O.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:w},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);_.addAnimation([M,K])}else u.fromTo("opacity","1","0")}else _.addAnimation(g);return _},ve=(e,t)=>{const{currentBreakpoint:n}=t,o=(0,i.g)(e),{wrapperAnimation:d,backdropAnimation:s}=void 0!==n?ue(t):{backdropAnimation:(0,p.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,p.c)().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return s.addElement(o.querySelector("ion-backdrop")),d.addElement(o.querySelector(".modal-wrapper")),(0,p.c)().addElement(e).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([s,d])},xe=(e,t)=>{const{currentBreakpoint:n}=t,o=(0,i.g)(e),{wrapperAnimation:d,backdropAnimation:s}=void 0!==n?fe(t):{backdropAnimation:(0,p.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,p.c)().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return s.addElement(o.querySelector("ion-backdrop")),d.addElement(o.querySelector(".modal-wrapper")),(0,p.c)().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([s,d])},be=class{constructor(e){(0,b.r)(this,e),this.didPresent=(0,b.e)(this,"ionModalDidPresent",7),this.willPresent=(0,b.e)(this,"ionModalWillPresent",7),this.willDismiss=(0,b.e)(this,"ionModalWillDismiss",7),this.didDismiss=(0,b.e)(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=(0,b.e)(this,"ionBreakpointDidChange",7),this.didPresentShorthand=(0,b.e)(this,"didPresent",7),this.willPresentShorthand=(0,b.e)(this,"willPresent",7),this.willDismissShorthand=(0,b.e)(this,"willDismiss",7),this.didDismissShorthand=(0,b.e)(this,"didDismiss",7),this.modalIndex=Te++,this.coreDelegate=(0,y.C)(),this.isSheetModal=!1,this.inheritedAttributes={},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:o}=this;if(o&&o(),void 0===t)return;const d=void 0!==t?document.getElementById(t):null;d?this.destroyTriggerInteraction=((u,g)=>{const _=()=>{g.present()};return u.addEventListener("click",_),()=>{u.removeEventListener("click",_)}})(d,n):(0,c.p)(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-modal.`,this.el)},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,o=Ce[t.type];if(n&&o){const d=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:t.detail});n.dispatchEvent(d)}}}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,E.Z)(function*(){t.gesture?t.gesture.enable(e):e&&t.initSwipeToClose()})()}breakpointsChanged(e){void 0!==e&&(this.sortedBreakpoints=e.sort((t,n)=>t-n))}connectedCallback(){const{configureTriggerInteraction:e,el:t}=this;(0,h.e)(t),e()}disconnectedCallback(){const{destroyTriggerInteraction:e}=this;e&&e()}componentWillLoad(){const{breakpoints:e,initialBreakpoint:t,swipeToClose:n,el:o}=this;this.inheritedAttributes=(0,i.j)(o,["aria-label","role"]),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,c.p)("Your breakpoints array must include the initialBreakpoint value."),n&&(0,c.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,i.r)(()=>this.present()),this.breakpointsChanged(this.breakpoints)}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(e,t){var n=this;return(0,E.Z)(function*(){const{canDismiss:o}=n;return void 0===o||("function"==typeof o?o(e,t):o)})()}present(){var e=this;return(0,E.Z)(function*(){if(e.presented)return;void 0!==e.currentTransition&&(yield e.currentTransition),e.currentBreakpoint=e.initialBreakpoint;const{inline:t,delegate:n}=e.getDelegate(!0);e.usersElement=yield(0,y.a)(n,e.el,e.component,["ion-page"],e.componentProps,t),yield(0,S.e)(e.usersElement),(0,b.c)(()=>e.el.classList.add("show-modal")),e.currentTransition=(0,h.d)(e,"modalEnter",me,ve,{presentingEl:e.presentingElement,currentBreakpoint:e.initialBreakpoint,backdropBreakpoint:e.backdropBreakpoint}),typeof window<"u"&&(e.keyboardOpenCallback=()=>{e.gesture&&(e.gesture.enable(!1),(0,i.r)(()=>{e.gesture&&e.gesture.enable(!0)}))},window.addEventListener(v.KEYBOARD_DID_OPEN,e.keyboardOpenCallback));const o=void 0!==e.presentingElement&&(e.swipeToClose||void 0!==e.canDismiss);o&&"ios"===(0,T.b)(e)&&(e.statusBarStyle=yield m.getStyle(),B()),yield e.currentTransition,e.isSheetModal?e.initSheetGesture():o&&e.initSwipeToClose(),e.currentTransition=void 0})()}initSwipeToClose(){var t,e=this;if("ios"!==(0,T.b)(this))return;const{el:n}=this,o=this.leaveAnimation||T.c.get("modalLeave",ge),d=this.animation=o(n,{presentingEl:this.presentingElement});if(!(0,k.a)(n))return void(0,k.p)(n);const u=null!==(t=this.statusBarStyle)&&void 0!==t?t:l.Default;this.gesture=((e,t,n,o)=>{const s=e.offsetHeight;let u=!1,g=!1,_=null,L=null,O=!0,M=0;const oe=(0,I.createGesture)({el:e,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:C=>{const x=C.event.target;return null===x||!x.closest||(_=(0,k.f)(x),_?(L=(0,k.i)(_)?(0,i.g)(_).querySelector(".inner-scroll"):_,!_.querySelector("ion-refresher")&&0===L.scrollTop):null===x.closest("ion-footer"))},onStart:C=>{const{deltaY:x}=C;O=!_||!(0,k.i)(_)||_.scrollY,g=void 0!==e.canDismiss&&!0!==e.canDismiss,x>0&&_&&(0,k.d)(_),t.progressStart(!0,u?1:0)},onMove:C=>{const{deltaY:x}=C;x>0&&_&&(0,k.d)(_);const j=C.deltaY/s,$=j>=0&&g,U=$?.2:.9999,ee=$?le(j/U):j,H=(0,i.l)(1e-4,ee,U);t.progressStep(H),H>=.5&&M<.5?ne(n):H<.5&&M>=.5&&B(),M=H},onEnd:C=>{const x=C.velocityY,j=C.deltaY/s,$=j>=0&&g,U=$?.2:.9999,ee=$?le(j/U):j,H=(0,i.l)(1e-4,ee,U),Z=!$&&(C.deltaY+1e3*x)/s>=.5;let re=Z?-.001:.001;Z?(t.easing("cubic-bezier(0.32, 0.72, 0, 1)"),re+=(0,A.g)([0,0],[.32,.72],[0,1],[1,1],H)[0]):(t.easing("cubic-bezier(1, 0, 0.68, 0.28)"),re+=(0,A.g)([0,0],[1,0],[.68,.28],[1,1],H)[0]);const ae=he(Z?j*s:(1-H)*s,x);u=Z,oe.enable(!1),_&&(0,k.r)(_,O),t.onFinish(()=>{Z||oe.enable(!0)}).progressEnd(Z?1:0,re,ae),$&&H>U/4?ie(e,t):Z&&o()}});return oe})(n,d,u,()=>{this.gestureAnimationDismissing=!0,this.animation.onFinish((0,E.Z)(function*(){yield e.dismiss(void 0,h.G),e.gestureAnimationDismissing=!1}))}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:e,initialBreakpoint:t,backdropBreakpoint:n}=this;if(!e||void 0===t)return;const o=this.enterAnimation||T.c.get("modalEnter",me),d=this.animation=o(this.el,{presentingEl:this.presentingElement,currentBreakpoint:t,backdropBreakpoint:n});d.progressStart(!0,1);const{gesture:s,moveSheetToBreakpoint:u}=((e,t,n,o,d,s,u=[],g,_,L)=>{const M={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==d?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-d,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},Y=e.querySelector("ion-content"),P=n.clientHeight;let w=o,K=0,Q=!1;const C=s.childAnimations.find(W=>"wrapperAnimation"===W.id),x=s.childAnimations.find(W=>"backdropAnimation"===W.id),j=u[u.length-1],$=u[0],U=()=>{e.style.setProperty("pointer-events","auto"),t.style.setProperty("pointer-events","auto"),e.classList.remove("ion-disable-focus-trap")},ee=()=>{e.style.setProperty("pointer-events","none"),t.style.setProperty("pointer-events","none"),e.classList.add("ion-disable-focus-trap")};C&&x&&(C.keyframes([...M.WRAPPER_KEYFRAMES]),x.keyframes([...M.BACKDROP_KEYFRAMES]),s.progressStart(!0,1-w),w>d?U():ee()),Y&&w!==j&&(Y.scrollY=!1);const ae=W=>{const{breakpoint:J,canDismiss:G,breakpointOffset:z}=W,X=G&&0===J,V=X?w:J,q=0!==V;return w=0,C&&x&&(C.keyframes([{offset:0,transform:`translateY(${100*z}%)`},{offset:1,transform:`translateY(${100*(1-V)}%)`}]),x.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${r(1-z,d)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${r(V,d)})`}]),s.progressStep(0)),de.enable(!1),X?ie(e,s):q||_(),new Promise(pe=>{s.onFinish(()=>{q?C&&x?(0,i.r)(()=>{C.keyframes([...M.WRAPPER_KEYFRAMES]),x.keyframes([...M.BACKDROP_KEYFRAMES]),s.progressStart(!0,1-V),w=V,L(w),Y&&w===u[u.length-1]&&(Y.scrollY=!0),w>d?U():ee(),de.enable(!0),pe()}):(de.enable(!0),pe()):pe()},{oneTimeCallback:!0}).progressEnd(1,0,500)})},de=(0,I.createGesture)({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:W=>{const J=W.event.target.closest("ion-content");return w=g(),!(1===w&&J)},onStart:()=>{Q=void 0!==e.canDismiss&&!0!==e.canDismiss&&0===$,Y&&(Y.scrollY=!1),(0,i.r)(()=>{e.focus()}),s.progressStart(!0,1-w)},onMove:W=>{const G=u.length>1?1-u[1]:void 0,z=1-w+W.deltaY/P,X=void 0!==G&&z>=G&&Q,V=X?.95:.9999,q=X&&void 0!==G?G+le((z-G)/(V-G)):z;K=(0,i.l)(1e-4,q,V),s.progressStep(K)},onEnd:W=>{const z=w-(W.deltaY+350*W.velocityY)/P,X=u.reduce((V,q)=>Math.abs(q-z)<Math.abs(V-z)?q:V);ae({breakpoint:X,breakpointOffset:K,canDismiss:Q})}});return{gesture:de,moveSheetToBreakpoint:ae}})(this.el,this.backdropEl,e,t,n,d,this.sortedBreakpoints,()=>{var g;return null!==(g=this.currentBreakpoint)&&void 0!==g?g:0},()=>this.sheetOnDismiss(),g=>{this.currentBreakpoint!==g&&(this.currentBreakpoint=g,this.ionBreakpointDidChange.emit({breakpoint:g}))});this.gesture=s,this.moveSheetToBreakpoint=u,this.gesture.enable(!0)}sheetOnDismiss(){var e=this;this.gestureAnimationDismissing=!0,this.animation.onFinish((0,E.Z)(function*(){e.currentBreakpoint=0,e.ionBreakpointDidChange.emit({breakpoint:e.currentBreakpoint}),yield e.dismiss(void 0,h.G),e.gestureAnimationDismissing=!1}))}dismiss(e,t){var n=this;return(0,E.Z)(function*(){var o;if(n.gestureAnimationDismissing&&t!==h.G||"handler"!==t&&!(yield n.checkCanDismiss(e,t)))return!1;void 0!==n.presentingElement&&(n.swipeToClose||void 0!==n.canDismiss)&&"ios"===(0,T.b)(n)&&ne(n.statusBarStyle),typeof window<"u"&&n.keyboardOpenCallback&&(window.removeEventListener(v.KEYBOARD_DID_OPEN,n.keyboardOpenCallback),n.keyboardOpenCallback=void 0),void 0!==n.currentTransition&&(yield n.currentTransition);const s=h.h.get(n)||[];n.currentTransition=(0,h.f)(n,e,t,"modalLeave",ge,xe,{presentingEl:n.presentingElement,currentBreakpoint:null!==(o=n.currentBreakpoint)&&void 0!==o?o:n.initialBreakpoint,backdropBreakpoint:n.backdropBreakpoint});const u=yield n.currentTransition;if(u){const{delegate:g}=n.getDelegate();yield(0,y.d)(g,n.usersElement),(0,b.c)(()=>n.el.classList.remove("show-modal")),n.animation&&n.animation.destroy(),n.gesture&&n.gesture.destroy(),s.forEach(_=>_.destroy())}return n.currentBreakpoint=void 0,n.currentTransition=void 0,n.animation=void 0,u})()}onDidDismiss(){return(0,h.g)(this.el,"ionModalDidDismiss")}onWillDismiss(){return(0,h.g)(this.el,"ionModalWillDismiss")}setCurrentBreakpoint(e){var t=this;return(0,E.Z)(function*(){if(!t.isSheetModal)return void(0,c.p)("setCurrentBreakpoint is only supported on sheet modals.");if(!t.breakpoints.includes(e))return void(0,c.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:o,canDismiss:d,breakpoints:s}=t;n!==e&&o&&(t.sheetTransition=o({breakpoint:e,breakpointOffset:1-n,canDismiss:void 0!==d&&!0!==d&&0===s[0]}),yield t.sheetTransition,t.sheetTransition=void 0)})()}getCurrentBreakpoint(){var e=this;return(0,E.Z)(function*(){return e.currentBreakpoint})()}moveToNextBreakpoint(){var e=this;return(0,E.Z)(function*(){const{breakpoints:t,currentBreakpoint:n}=e;if(!t||null==n)return!1;const o=t.filter(g=>0!==g),s=(o.indexOf(n)+1)%o.length,u=o[s];return yield e.setCurrentBreakpoint(u),!0})()}render(){const{handle:e,isSheetModal:t,presentingElement:n,htmlAttributes:o,handleBehavior:d,inheritedAttributes:s}=this,u=!1!==e&&t,g=(0,T.b)(this),{modalId:_}=this,L=void 0!==n&&"ios"===g,R="cycle"===d;return(0,b.h)(b.H,Object.assign({"no-router":!0,tabindex:"-1"},o,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[g]:!0,"modal-default":!L&&!t,"modal-card":L,"modal-sheet":t,"overlay-hidden":!0},(0,D.g)(this.cssClass)),id:_,onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),(0,b.h)("ion-backdrop",{ref:O=>this.backdropEl=O,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===g&&(0,b.h)("div",{class:"modal-shadow"}),(0,b.h)("div",Object.assign({role:"dialog"},s,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:O=>this.wrapperEl=O}),u&&(0,b.h)("button",{class:"modal-handle",tabIndex:R?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:R?this.onHandleClick:void 0,part:"handle"}),(0,b.h)("slot",null)))}get el(){return(0,b.i)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["onTriggerChange"],swipeToClose:["swipeToCloseChanged"]}}},Ce={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};var e;let Te=0;be.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}'}},45234:(te,N,f)=>{f.r(N),f.d(N,{KEYBOARD_DID_CLOSE:()=>b,KEYBOARD_DID_OPEN:()=>E,copyVisualViewport:()=>m,keyboardDidClose:()=>A,keyboardDidOpen:()=>S,keyboardDidResize:()=>p,resetKeyboardAssist:()=>v,setKeyboardClose:()=>D,setKeyboardOpen:()=>h,startKeyboardAssist:()=>c,trackViewportChanges:()=>l});const E="ionKeyboardDidShow",b="ionKeyboardDidHide";let k={},y={},i=!1;const v=()=>{k={},y={},i=!1},c=r=>{a(r),r.visualViewport&&(y=m(r.visualViewport),r.visualViewport.onresize=()=>{l(r),S()||p(r)?h(r):A(r)&&D(r)})},a=r=>{r.addEventListener("keyboardDidShow",B=>h(r,B)),r.addEventListener("keyboardDidHide",()=>D(r))},h=(r,B)=>{I(r,B),i=!0},D=r=>{F(r),i=!1},S=()=>!i&&k.width===y.width&&(k.height-y.height)*y.scale>150,p=r=>i&&!A(r),A=r=>i&&y.height===r.innerHeight,I=(r,B)=>{const ie=new CustomEvent(E,{detail:{keyboardHeight:B?B.keyboardHeight:r.innerHeight-y.height}});r.dispatchEvent(ie)},F=r=>{const B=new CustomEvent(b);r.dispatchEvent(B)},l=r=>{k=Object.assign({},y),y=m(r.visualViewport)},m=r=>({width:Math.round(r.width),height:Math.round(r.height),offsetTop:r.offsetTop,offsetLeft:r.offsetLeft,pageTop:r.pageTop,pageLeft:r.pageLeft,scale:r.scale})},92854:(te,N,f)=>{f.d(N,{c:()=>T,g:()=>y,h:()=>b,o:()=>v});var E=f(15861);const b=(c,a)=>null!==a.closest(c),T=(c,a)=>"string"==typeof c&&c.length>0?Object.assign({"ion-color":!0,[`ion-color-${c}`]:!0},a):a,y=c=>{const a={};return(c=>void 0!==c?(Array.isArray(c)?c:c.split(" ")).filter(h=>null!=h).map(h=>h.trim()).filter(h=>""!==h):[])(c).forEach(h=>a[h]=!0),a},i=/^[a-z][a-z0-9+\-.]*:/,v=function(){var c=(0,E.Z)(function*(a,h,D,S){if(null!=a&&"#"!==a[0]&&!i.test(a)){const p=document.querySelector("ion-router");if(p)return h?.preventDefault(),p.push(a,D,S)}return!1});return function(h,D,S,p){return c.apply(this,arguments)}}()}}]);