1import{a as F}from"./chunk-C6TWYN5N.js";import{a as L,f as Y}from"./chunk-3TZHS7H3.js";import{a as O,b as w,d as q,i as _}from"./chunk-A4HEGPUB.js";import"./chunk-WMEG6PAA.js";import{b as M,c as I}from"./chunk-IFNCDCK6.js";import{a as z}from"./chunk-HC6MZPB3.js";import{a as T,b as H}from"./chunk-4QCDUIMV.js";import{a as g}from"./chunk-3H72FJST.js";import{b as m}from"./chunk-MDNOIDWB.js";import{b as C,c as N,d as c,f as a,g as P,i as A,j as x}from"./chunk-XAKB7R5D.js";import{a as S,b as E,h as R,i as b,m as v}from"./chunk-RTD7OIC3.js";import"./chunk-MCRJI3T3.js";import{a as y,c as D}from"./chunk-MJBR6MFX.js";import{k as f}from"./chunk-AOMQVBFH.js";var G=t=>{let e=t.previousElementSibling;return e!==null&&e.tagName==="ION-HEADER"?"translate":"scale"},j=(t,e,r)=>t==="scale"?V(e,r):W(e,r),$=t=>{let e=t.querySelector("ion-spinner"),r=e.shadowRoot.querySelector("circle"),s=t.querySelector(".spinner-arrow-container"),n=t.querySelector(".arrow-container"),l=n?n.querySelector("ion-icon"):null,o=g().duration(1e3).easing("ease-out"),i=g().addElement(s).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),h=g().addElement(r).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),d=g().addElement(e).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(n&&l){let u=g().addElement(n).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),p=g().addElement(l).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([u,p])}return o.addAnimation([i,h,d])},V=(t,e)=>{let r=e.clientHeight,s=g().addElement(t).keyframes([{offset:0,transform:`scale(0) translateY(-${r}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return $(t).addAnimation([s])},W=(t,e)=>{let r=e.clientHeight,s=g().addElement(t).keyframes([{offset:0,transform:`translateY(-${r}px)`},{offset:1,transform:"translateY(100px)"}]);return $(t).addAnimation([s])},K=t=>g().duration(125).addElement(t).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"),Z=(t,e)=>{t.style.setProperty("opacity",e.toString())},J=(t,e,r)=>{c(()=>{t.forEach((n,l)=>{let o=l*(1/e),i=1-o,h=r-o,d=v(0,h/i,1);n.style.setProperty("opacity",d.toString())})})},Q=(t,e)=>{c(()=>{t.style.setProperty("--refreshing-rotation-duration",e>=1?"0.5s":"2s"),t.style.setProperty("opacity","1")})},k=(t,e,r=200)=>{if(!t)return Promise.resolve();let s=S(t,r);return c(()=>{t.style.setProperty("transition",`${r}ms all ease-out`),e===void 0?t.style.removeProperty("transform"):t.style.setProperty("transform",`translate3d(0px, ${e}, 0px)`)}),s},B=()=>navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)"),X=(t,e)=>f(null,null,function*(){let r=t.querySelector("ion-refresher-content");if(!r)return Promise.resolve(!1);yield new Promise(l=>E(r,l));let s=t.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),n=t.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return s!==null&&n!==null&&(e==="ios"&&B()||e==="md")}),ee="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var
1(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",re=ee,te="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var
1(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}",se=te,ye=(()=>{let t=class{constructor(e){C(this,e),this.ionRefresh=x(this,"ionRefresh",7),this.ionPull=x(this,"ionPull",7),this.ionStart=x(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.contentFullscreen=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}checkNativeRefresher(){return f(this,null,function*(){let e=yield X(this.el,m(this));if(e&&!this.nativeRefresher){let r=this.el.closest("ion-content");this.setupNativeRefresher(r)}else e||this.destroyNativeRefresher()})}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}resetNativeRefresher(e,r){return f(this,null,function*(){this.state=r,m(this)==="ios"?yield k(e,void 0,300):yield S(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach(s=>s.destroy()),this.animations=[],this.progress=0,this.state=1})}setupiOSNativeRefresher(e,r){return f(this,null,function*(){this.elementToTransform=this.scrollEl;let s=e.shadowRoot.querySelectorAll("svg"),n=this.scrollEl.clientHeight*.16,l=s.length;c(()=>s.forEach(o=>o.style.setProperty("animation","none"))),this.scrollListenerCallback=()=>{!this.pointerDown&&this.state===1||N(()=>{let o=this.scrollEl.scrollTop,i=this.el.clientHeight;if(o>0){if(this.state===8){let p=v(0,o/(i*.5),1);c(()=>Z(r,1-p));return}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit()),this.pointerDown&&this.ionPull.emit());let h=this.didStart?30:0,d=this.progress=v(0,(Math.abs(o)-h)/n,1);this.state===8||d===1?(this.pointerDown&&Q(r,this.lastVelocityY),this.didRefresh||(this.beginRefresh(),this.didRefresh=!0,Y({
1style:L.Light}),this.pointerDown||k(this.elementToTransform,`${i}px`))):(this.state=2,J(s,l,d))})},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback),this.gesture=(yield import("./chunk-GYV6NWRJ.js")).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||k(this.elementToTransform,"0px"),n===0&&(n=this.scrollEl.clientHeight*.16)},onMove:o=>{this.lastVelocityY=o.velocityY},onEnd:()=>{this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh&&N(()=>k(this.elementToTransform,`${this.el.clientHeight}px`))}}),this.disabledChanged()})}setupMDNativeRefresher(e,r,s){return f(this,null,function*(){let n=R(r).querySelector("circle"),l=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),o=R(s).querySelector("circle");n!==null&&o!==null&&c(()=>{n.style.setProperty("animation","none"),s.style.setProperty("animation-delay","-655ms"),o.style.setProperty("animation-delay","-655ms")}),this.gesture=(yield import("./chunk-GYV6NWRJ.js")).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>this.state!==8&&this.state!==32&&this.scrollEl.scrollTop===0,onStart:i=>{this.progress=0,i.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:i=>{if(i.velocityY<0&&this.progress===0&&!i.data.didStart||i.data.cancelled){i.data.cancelled=!0;return}if(!i.data.didStart){i.data.didStart=!0,this.state=2;let{scrollEl:h}=this,d=h.matches(w)?"overflow":"--overflow";c(()=>h.style.setProperty(d,"hidden"));let u=G(e),p=j(u,l,this.el);i.data.animation=p,p.progressStart(!1,0),this.ionStart.emit(),this.animations.push(p);return}this.progress=v(0,i.deltaY/180*.5,1),i.data.animation.progressStep(this.progress),this.ionPull.emit()},onEnd:i=>{if(!i.data.didStart)return;this.gesture.enable(!1);let{scrollEl:h}=this,d=h.matches(w)?"overflow":"--overflow";if(c(()=>h.style.removeProperty(d)),this.progress<=.4){i.data.animation.progressEnd(0,this.progress,500).onFinish(()=>{this.animations.forEach(U=>U.destroy()),this.animations=[],this.gesture.enable(!0),this.state=1});return}let u=z([0,0],[0,0],[1,1],[1,1],this.progress)[0],p=K(l);this.animations.push(p),c(()=>f(this,null,function*(){l.style.setProperty("--ion-pulling-refresher-translate",`${u*100}px`),i.data.animation.progressEnd(),yield p.play(),this.beginRefresh(),i.data.animation.destroy(),this.gesture.enable(!0)}))}}),this.disabledChanged()})}setupNativeRefresher(e){return f(this,null,function*(){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl)return;this.setCss(0,"",!1,""),this.nativeRefresher=!0;let r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),s=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");m(this)==="ios"?this.setupiOSNativeRefresher(r,s):this.setupMDNativeRefresher(e,r,s)})}componentDidUpdate(){this.checkNativeRefresher()}connectedCallback(){return f(this,null,function*(){if(this.el.getAttribute("slot")!=="fixed"){D('[ion-refresher] - Make sure you use: <ion-refresher slot="fixed">');return}let e=this.el.closest(O);if(!e){_(this.el);return}E(e,()=>f(this,null,function*(){let r=e.querySelector(w);this.scrollEl=yield q(r!=null?r:e),this.backgroundContentEl=yield e.getBackgroundElement(),this.contentFullscreen=e.fullscreen,(yield X(this.el,m(this)))?this.setupNativeRefresher(e):(this.gesture=(yield import("./chunk-GYV6NWRJ.js")).createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>this.canStart(),onStart:()=>this.onStart(),onMove:s=>this.onMove(s),onEnd:()=>this.onEnd()}),this.disabledChanged())}))})}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(){return f(this,null,function*(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||b(()=>b(()=>this.resetNativeRefresher(this.elementToTransform,32)))):this.close(32,"120ms")})}cancel(){return f(this,null,function*(){this.nativeRefresher?this.pointerDown||b(()=>b(()=>this.resetNativeRefresher(this.elementToTransform,16))):this.close(16,"")})}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||this.state!==1||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle(),this.contentFullscreen&&this.backgroundContentEl&&this.backgroundContentEl.style.setProperty("--offset-top","0px")}onMove(e){if(!this.scrollEl)return;let r=e.event;if(r.touches!==void 0&&r.touches.length>1||(this.state&56)!==0)return;let s=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,n=e.deltaY*s;if(n<=0){if(this.progress=0,this.state=1,this.appliedStyles){this.setCss(0,"",!1,"");return}return}if(this.state===1){if(this.scrollEl.scrollTop>0){this.progress=0;return}this.state=2}if(r.cancelable&&r.preventDefault(),this.setCss(n,"0ms",!0,""),n===0){this.progress=0;return}let l=this.pullMin;if(this.progress=n/l,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),n<l){this.state=2;return}if(n>this.pullMax){this.beginRefresh();return}this.state=4}onEnd(){this.state===4?this.beginRefresh():this.state===2?this.cancel():this.state===1&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,r){setTimeout(()=>{var s;this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0),this.contentFullscreen&&this.backgroundContentEl&&((s=this.backgroundContentEl)===null||s===void 0||s.style.removeProperty("--offset-top"))},600),this.state=e,this.setCss(0,this.closeDuration,!0,r)}setCss(e,r,s,n,l=!1){this.nativeRefresher||(this.appliedStyles=e>0,c(()=>
1{if(this.scrollEl&&this.backgroundContentEl){let o=this.scrollEl.style,i=this.backgroundContentEl.style;o.transform=i.transform=e>0?`translateY(${e}px) translateZ(0px)`:"",o.transitionDuration=i.transitionDuration=r,o.transitionDelay=i.transitionDelay=n,o.overflow=s?"hidden":""}l&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){let{overflow:e,overflowX:r,overflowY:s}=this.scrollEl.style;this.overflowStyles={overflow:e!=null?e:"",overflowX:r!=null?r:"",overflowY:s!=null?s:""}}}restoreOverflowStyle(){if(this.overflowStyles!==void 0&&this.scrollEl!==void 0){let{overflow:e,overflowX:r,overflowY:s}=this.overflowStyles;this.scrollEl.style.overflow=e,this.scrollEl.style.overflowX=r,this.scrollEl.style.overflowY=s,this.overflowStyles=void 0}}render(){let e=m(this);return a(P,{key:"c717c16f2ca3e42351848cc8ad37918dec28961d",slot:"fixed",class:{[e]:!0,[`refresher-${e}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":this.state!==1,"refresher-pulling":this.state===2,"refresher-ready":this.state===4,"refresher-refreshing":this.state===8,"refresher-cancelling":this.state===16,"refresher-completing":this.state===32}})}get el(){return A(this)}static get watchers(){return{disabled:["disabledChanged"]}}};return t.style={ios:re,md:se},t})(),be=class{constructor(t){C(this,t),this.customHTMLEnabled=y.get("innerHTMLTemplatesEnabled",H),this.pullingIcon=void 0,this.pullingText=void 0,this.refreshingSpinner=void 0,this.refreshingText=void 0}componentWillLoad(){if(this.pullingIcon===void 0){let t=B(),e=m(this),r=t?"lines":M;this.pullingIcon=y.get("refreshingIcon",e==="ios"&&t?y.get("spinner",r):"circular")}if(this.refreshingSpinner===void 0){let t=m(this);this.refreshingSpinner=y.get("refreshingSpinner",y.get("spinner",t==="ios"?"lines":"circular"))}}renderPullingText(){let{customHTMLEnabled:t,pullingText:e}=this;return t?a("div",{class:"refresher-pulling-text",innerHTML:T(e)}):a("div",{class:"refresher-pulling-text"},e)}renderRefreshingText(){let{customHTMLEnabled:t,refreshingText:e}=this;return t?a("div",{class:"refresher-refreshing-text",innerHTML:T(e)}):a("div",{class:"refresher-refreshing-text"},e)}render(){let t=this.pullingIcon,e=t!=null&&F[t]!==void 0,r=m(this);return a(P,{key:"fb78d7e31f8feb31025e58903eb9de85cb928dbd",class:r},a("div",{key:"23f67800f09765ef8fde8cf85a843e19e667f337",class:"refresher-pulling"},this.pullingIcon&&e&&a("div",{key:"5a08d3b69762f8b51dcd3dcfbaf3fddb707257fa",class:"refresher-pulling-icon"},a("div",{key:"42a613b029e092acdff7fe613a429375d89f157e",class:"spinner-arrow-container"},a("ion-spinner",{key:"2f9cdc75938c4d306de7a717ed67901daef71c2c",name:this.pullingIcon,paused:!0}),r==="md"&&this.pullingIcon==="circular"&&a("div",{key:"1f8a6347b4a46417ba55286a79f1a41f04bf9c91",class:"arrow-container"},a("ion-icon",{key:"326713d11d482d420ba5a739ff4528400a37e9ca",icon:I,"aria-hidden":"true"})))),this.pullingIcon&&!e&&a("div",{key:"ab18c7cbea7bcbfa034f90f317652af4d93660ed",class:"refresher-pulling-icon"},a("ion-icon",{key:"f488acd54acc8a61b6c5a279f0d7f9a437c370c0",icon:this.pullingIcon,lazy:!1,"aria-hidden":"true"})),this.pullingText!==void 0&&this.renderPullingText()),a("div",{key:"914ad6139442dac53af47120ea821fa11c309a38",class:"refresher-refreshing"},this.refreshingSpinner&&a("div",{key:"7eba732f5e2d72b90399d68a3e89617d8979b3d1",class:"refresher-refreshing-icon"},a("ion-spinner",{key:"838d66d8bef6f56622c62b1068e7fed29e094302",name:this.refreshingSpinner})),this.refreshingText!==void 0&&this.renderRefreshingText()))}get el(){return A(this)}};export{ye as ion_refresher,be as ion_refresher_content};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.