1import{a as F}from"./chunk-5HKGP5UB.js";import{a as Y,b as T,d as O,g as q,k as _}from"./chunk-JJIDVCXS.js";import{a as z}from"./chunk-QUJFQN2Y.js";import{a as R,b as L}from"./chunk-WIUS5UJB.js";import{a as D,f as M}from"./chunk-BXGZEXDX.js";import"./chunk-FPOZYJOD.js";import{a as g}from"./chunk-GXWWUYBK.js";import"./chunk-CKP3SGE2.js";import{b as I,c as H}from"./chunk-WPRTUFAF.js";import{b as m}from"./chunk-VXV6LGYV.js";import{a as k,b as S,h as E,i as v,m as w}from"./chunk-WCXRWRL6.js";import{a as y,c as X,f as C,g as P,h as d,j as a,k as N,m as A,n as b}from"./chunk-2TPYN4T3.js";import{h}from"./chunk-HHJ6TDNL.js";var j=e=>{let r=e.previousElementSibling;return r!==null&&r.tagName==="ION-HEADER"?"translate":"scale"},V=(e,r,t)=>e==="scale"?W(r,t):K(r,t),B=e=>{let r=e.querySelector("ion-spinner"),t=r.shadowRoot.querySelector("circle"),s=e.querySelector(".spinner-arrow-container"),o=e.querySelector(".arrow-container"),l=o?o.querySelector("ion-icon"):null,n=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"}]),c=g().addElement(t).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),p=g().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(o&&l){let u=g().addElement(o).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),f=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)"}]);n.addAnimation([u,f])}return n.addAnimation([i,c,p])},W=(e,r)=>{let t=r.clientHeight,s=g().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${t}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return B(e).addAnimation([s])},K=(e,r)=>{let t=r.clientHeight,s=g().addElement(e).keyframes([{offset:0,transform:`translateY(-${t}px)`},{offset:1,transform:"translateY(100px)"}]);return B(e).addAnimation([s])},Z=e=>g().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"),J=(e,r)=>{e.style.setProperty("opacity",r.toString())},Q=(e,r,t)=>{d(()=>{e.forEach((o,l)=>{let n=l*(1/r),i=1-n,c=t-n,p=w(0,c/i,1);o.style.setProperty("opacity",p.toString())})})},ee=(e,r)=>{d(()=>{e.style.setProperty("--refreshing-rotation-duration",r>=1?"0.5s":"2s"),e.style.setProperty("opacity","1")})},x=(e,r,t=200)=>{if(!e)return Promise.resolve();let s=k(e,t);return d(()=>{e.style.setProperty("transition",`${t}ms all ease-out`),r===void 0?e.style.removeProperty("transform"):e.style.setProperty("transform",`translate3d(0px, ${r}, 0px)`)}),s},U=()=>navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)"),$=(e,r)=>h(null,null,function*(){let t=e.querySelector("ion-refresher-content");if(!t)return Promise.resolve(!1);yield new Promise(l=>S(t,l));let s=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),o=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return s!==null&&o!==null&&(r==="ios"&&U()||r==="md")}),re=()=>"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)}}",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=class{constructor(e){C(this,e),this.ionRefresh=b(this,"ionRefresh",7),this.ionPull=b(this,"ionPull",7),this.ionStart=b(this,"ionStart",7),this.ionPullStart=b(this,"ionPullStart",7),this.ionPullEnd=b(this,"ionPullEnd",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 h(this,null,function*(){let e=yield $(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 h(this,null,function*(){this.state=r,m(this)==="ios"?yield x(e,void 0,300):yield k(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach(t=>t.destroy()),this.animations=[],this.progress=0,this.state=1,this.ionPullEnd.emit({reason:r===32?"complete":"cancel"})})}setupiOSNativeRefresher(e,r){return h(this,null,function*(){this.elementToTransform=this.scrollEl;let t=e.shadowRoot.querySelectorAll("svg"),s=this.scrollEl.clientHeight*.16,o=t.length;d(()=>t.forEach(n=>n.style.setProperty("animation","none"))),this.scrollListenerCallback=()=>{!this.pointerDown&&this.state===1||P(()=>{let n=this.scrollEl.scrollTop,i=this.el.clientHeight;if(n>0){if(this.state===8){let f=w(0,n/(i*.5),1);d(()=>J(r,1-f));return}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit(),this.ionPullStart.emit()),this.pointerDown&&this.ionPull.emit());let c=this.didStart?30:0,p=this.progress=w(0,(Math.abs(n)-c)/s,1);if(this.state===8||p===1){if(this.pointerDown&&ee(r,this.lastVelocityY),
1!this.didRefresh){this.beginRefresh(),this.didRefresh=!0,M({style:D.Light});let f=document.activeElement;f?.blur!==void 0&&f.blur(),this.pointerDown||x(this.elementToTransform,`${i}px`)}}else this.state=2,Q(t,o,p)})},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback);let{createGesture:l}=yield import("./index-CfgBF1SE-HDDAL42D.js");this.scrollEl&&(this.gesture=l({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||x(this.elementToTransform,"0px"),s===0&&(s=this.scrollEl.clientHeight*.16)},onMove:n=>{this.lastVelocityY=n.velocityY},onEnd:()=>{let n=this.didStart;this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh?P(()=>x(this.elementToTransform,`${this.el.clientHeight}px`)):n&&this.ionPullEnd.emit({reason:"cancel"})}}),this.disabledChanged())})}setupMDNativeRefresher(e,r,t){return h(this,null,function*(){let s=E(r).querySelector("circle"),o=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),l=E(t).querySelector("circle");s!==null&&l!==null&&d(()=>{s.style.setProperty("animation","none"),t.style.setProperty("animation-delay","-655ms"),l.style.setProperty("animation-delay","-655ms")});let{createGesture:n}=yield import("./index-CfgBF1SE-HDDAL42D.js");this.scrollEl&&(this.gesture=n({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:c}=this,p=c.matches(T)?"overflow":"--overflow";d(()=>c.style.setProperty(p,"hidden"));let u=j(e),f=V(u,o,this.el);i.data.animation=f,f.progressStart(!1,0),this.ionStart.emit(),this.ionPullStart.emit(),this.animations.push(f);return}this.progress=w(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:c}=this,p=c.matches(T)?"overflow":"--overflow";if(d(()=>c.style.removeProperty(p)),this.progress<=.4){i.data.animation.progressEnd(0,this.progress,500).onFinish(()=>{this.animations.forEach(G=>G.destroy()),this.animations=[],this.gesture.enable(!0),this.state=1,this.ionPullEnd.emit({reason:"cancel"})});return}let u=z([0,0],[0,0],[1,1],[1,1],this.progress)[0],f=Z(o);this.animations.push(f),d(()=>h(this,null,function*(){o.style.setProperty("--ion-pulling-refresher-translate",`${u*100}px`),i.data.animation.progressEnd(),yield f.play(),this.beginRefresh(),i.data.animation.destroy(),this.gesture.enable(!0)}))}}),this.disabledChanged())})}setupNativeRefresher(e){return h(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"),t=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");m(this)==="ios"?this.setupiOSNativeRefresher(r,t):this.setupMDNativeRefresher(e,r,t)})}componentDidUpdate(){this.checkNativeRefresher()}connectedCallback(){return h(this,null,function*(){if(this.el.getAttribute("slot")!=="fixed"){X('[ion-refresher] - Make sure you use: <ion-refresher slot="fixed">');return}let e=this.el.closest(Y);if(!e){_(this.el);return}S(e,()=>h(this,null,function*(){let r=q(e);if(this.scrollEl=yield O(r??e),this.backgroundContentEl=yield e.getBackgroundElement(),this.contentFullscreen=e.fullscreen,yield $(this.el,m(this)))this.setupNativeRefresher(e);else{let{createGesture:t}=yield import("./index-CfgBF1SE-HDDAL42D.js");if(!e.isConnected)return;this.gesture=t({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 h(this,null,function*(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||v(()=>v(()=>this.resetNativeRefresher(this.elementToTransform,32)))):this.close(32,"120ms")})}cancel(){return h(this,null,function*(){this.nativeRefresher?this.pointerDown||v(()=>v(()=>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 t=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,s=e.deltaY*t;if(s<=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(s,"0ms",!0,""),s===0){this.progress=0;return}let o=this.pullMin;if(this.progress=s/o,this.didStart||(this.didStart=!0,this.ionStart.emit(),this.ionPullStart.emit()),this.ionPull.emit(),s<o){this.state=2;return}if(s>this.pullMax){this.beginRefresh();return}this.state=4}onEnd(){this.state===4?this.beginRefresh():this.state===2?this.cancel():this.state===1&&(this.restoreOverflowStyle(),this.didStart&&(this.didStart=!1,this.ionPullEnd.emit({reason:"cancel"})))}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,"");let e=document.activeElement;e?.blur!==void 0&&e.blur(),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,r){setTimeout(()=>{var t;this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0),this.contentFullscreen&&this.backgroundContentEl&&((t=this.backgroundContentEl)===null||t===void 0||t.style.removeProperty("--offset-top")),this.ionPullEnd.emit({reason:e===32?"complete":"cancel"})},600),this.state=e,this.setCss(0,this.closeDuration,!0,r)}setCss(e,r,t,s,o=!1){this.nativeRefresher||(this.appliedStyles=e>0,d(()=>
1{if(this.scrollEl&&this.backgroundContentEl){let l=this.scrollEl.style,n=this.backgroundContentEl.style;l.transform=n.transform=e>0?`translateY(${e}px) translateZ(0px)`:"",l.transitionDuration=n.transitionDuration=r,l.transitionDelay=n.transitionDelay=s,l.overflow=t?"hidden":""}o&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){let{overflow:e,overflowX:r,overflowY:t}=this.scrollEl.style;this.overflowStyles={overflow:e??"",overflowX:r??"",overflowY:t??""}}}restoreOverflowStyle(){if(this.overflowStyles!==void 0&&this.scrollEl!==void 0){let{overflow:e,overflowX:r,overflowY:t}=this.overflowStyles;this.scrollEl.style.overflow=e,this.scrollEl.style.overflowX=r,this.scrollEl.style.overflowY=t,this.overflowStyles=void 0}}render(){let e=m(this);return a(N,{key:"6b94f11bd5382bdf4e92c43d4b5d0550c290852d",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:0}]}}};se.style={ios:re(),md:te()};var ue=class{constructor(e){C(this,e),this.customHTMLEnabled=y.get("innerHTMLTemplatesEnabled",L)}componentWillLoad(){if(this.pullingIcon===void 0){let e=U(),r=m(this),t=e?"lines":I;this.pullingIcon=y.get("refreshingIcon",r==="ios"&&e?y.get("spinner",t):"circular")}if(this.refreshingSpinner===void 0){let e=m(this);this.refreshingSpinner=y.get("refreshingSpinner",y.get("spinner",e==="ios"?"lines":"circular"))}}renderPullingText(){let{customHTMLEnabled:e,pullingText:r}=this;return e?a("div",{class:"refresher-pulling-text",innerHTML:R(r)}):a("div",{class:"refresher-pulling-text"},r)}renderRefreshingText(){let{customHTMLEnabled:e,refreshingText:r}=this;return e?a("div",{class:"refresher-refreshing-text",innerHTML:R(r)}):a("div",{class:"refresher-refreshing-text"},r)}render(){let e=this.pullingIcon,r=e!=null&&F[e]!==void 0,t=m(this);return a(N,{key:"4add42b9fdfded359d1b054d04c2c6ff48e028c8",class:t},a("div",{key:"45d4e4e0adfed7f96dd1849767aa2cde947de044",class:"refresher-pulling"},this.pullingIcon&&r&&a("div",{key:"6bd6c8ef5bf6e10699eec3bd8646431bfe1077a0",class:"refresher-pulling-icon"},a("div",{key:"852d20414da53352c8e58bc627e0fda38eff97cb",class:"spinner-arrow-container"},a("ion-spinner",{key:"0dde3578a80cc4b77a07c4d1db1af80c7eb10c27",name:this.pullingIcon,paused:!0}),t==="md"&&this.pullingIcon==="circular"&&a("div",{key:"c71dbfcf416a19c30fed38f722ebf0358c2181dd",class:"arrow-container"},a("ion-icon",{key:"fa7c2cf624e7a9c41964e66cabc88c594da6d1fd",icon:H,"aria-hidden":"true"})))),this.pullingIcon&&!r&&a("div",{key:"3dd68c9968b421c379d1c4349ba619ee0a189c6d",class:"refresher-pulling-icon"},a("ion-icon",{key:"f83bceceae4fa8245f91939fb6db589a595e975b",icon:this.pullingIcon,lazy:!1,"aria-hidden":"true"})),this.pullingText!==void 0&&this.renderPullingText()),a("div",{key:"98e22ceb0f7883e871f815f6199f5cb313e2e086",class:"refresher-refreshing"},this.refreshingSpinner&&a("div",{key:"faabe8a9b61c02a00994ef978bb82b9ba4537214",class:"refresher-refreshing-icon"},a("ion-spinner",{key:"029a0c073ee1a07f01211e12ba2abc985cf21ed7",name:this.refreshingSpinner})),this.refreshingText!==void 0&&this.renderRefreshingText()))}get el(){return A(this)}};export{se as ion_refresher,ue 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.