import{r as s,d as i,j as r,k as e,h as n,H as t,e as o}from"./p-2a37a33f.js";import{s as a}from"./p-8e0dcdf2.js";import{S as c}from"./p-a0c9c4ac.js";const h=class{constructor(i){s(this,i)}componentWillLoad(){if(void 0===this.pullingIcon){const s=i(this),n=void 0!==this.el.style.webkitOverflowScrolling?"lines":"arrow-down";this.pullingIcon=r.get("refreshingIcon","ios"===s&&e("mobile")?r.get("spinner",n):"circular")}if(void 0===this.refreshingSpinner){const s=i(this);this.refreshingSpinner=r.get("refreshingSpinner",r.get("spinner","ios"===s?"lines":"circular"))}}render(){const s=this.pullingIcon,r=null!=s&&void 0!==c[s],e=i(this);return n(t,{class:e},n("div",{class:"refresher-pulling"},this.pullingIcon&&r&&n("div",{class:"refresher-pulling-icon"},n("div",{class:"spinner-arrow-container"},n("ion-spinner",{name:this.pullingIcon,paused:!0}),"md"===e&&"circular"===this.pullingIcon&&n("div",{class:"arrow-container"},n("ion-icon",{name:"caret-back-sharp"})))),this.pullingIcon&&!r&&n("div",{class:"refresher-pulling-icon"},n("ion-icon",{icon:this.pullingIcon,lazy:!1})),this.pullingText&&n("div",{class:"refresher-pulling-text",innerHTML:a(this.pullingText)})),n("div",{class:"refresher-refreshing"},this.refreshingSpinner&&n("div",{class:"refresher-refreshing-icon"},n("ion-spinner",{name:this.refreshingSpinner})),this.refreshingText&&n("div",{class:"refresher-refreshing-text",innerHTML:a(this.refreshingText)})))}get el(){return o(this)}};export{h as ion_refresher_content};