import{r as e,h as s,H as i,d as n}from"./p-23450e8b.js";import{E as r,s as t}from"./p-573c3dca.js";import{c as a,g as c,a as h}from"./p-1e77b5bd.js";import{q as d,t as o}from"./p-20f51faf.js";import{S as l}from"./p-fcacd474.js";const f=class{constructor(s){e(this,s);this.customHTMLEnabled=a.get("innerHTMLTemplatesEnabled",r);this.pullingIcon=undefined;this.pullingText=undefined;this.refreshingSpinner=undefined;this.refreshingText=undefined}componentWillLoad(){if(this.pullingIcon===undefined){const e=c(this);const s=this.el.style.webkitOverflowScrolling!==undefined?"lines":o;this.pullingIcon=a.get("refreshingIcon",e==="ios"&&h("mobile")?a.get("spinner",s):"circular")}if(this.refreshingSpinner===undefined){const e=c(this);this.refreshingSpinner=a.get("refreshingSpinner",a.get("spinner",e==="ios"?"lines":"circular"))}}renderPullingText(){const{customHTMLEnabled:e,pullingText:i}=this;if(e){return s("div",{class:"refresher-pulling-text",innerHTML:t(i)})}return s("div",{class:"refresher-pulling-text"},i)}renderRefreshingText(){const{customHTMLEnabled:e,refreshingText:i}=this;if(e){return s("div",{class:"refresher-refreshing-text",innerHTML:t(i)})}return s("div",{class:"refresher-refreshing-text"},i)}render(){const e=this.pullingIcon;const n=e!=null&&l[e]!==undefined;const r=c(this);return s(i,{class:r},s("div",{class:"refresher-pulling"},this.pullingIcon&&n&&s("div",{class:"refresher-pulling-icon"},s("div",{class:"spinner-arrow-container"},s("ion-spinner",{name:this.pullingIcon,paused:true}),r==="md"&&this.pullingIcon==="circular"&&s("div",{class:"arrow-container"},s("ion-icon",{icon:d,"aria-hidden":"true"})))),this.pullingIcon&&!n&&s("div",{class:"refresher-pulling-icon"},s("ion-icon",{icon:this.pullingIcon,lazy:false,"aria-hidden":"true"})),this.pullingText!==undefined&&this.renderPullingText()),s("div",{class:"refresher-refreshing"},this.refreshingSpinner&&s("div",{class:"refresher-refreshing-icon"},s("ion-spinner",{name:this.refreshingSpinner})),this.refreshingText!==undefined&&this.renderRefreshingText()))}get el(){return n(this)}};export{f as ion_refresher_content};
//# sourceMappingURL=p-0c22d35f.entry.js.map