import{r as s,h as i,H as r,e}from"./p-d00c3523.js";import{k as n,l as t}from"./p-30c031bf.js";import{g as o,c,a}from"./p-8ad0c9b2.js";import{s as h}from"./p-70b2452c.js";import{S as l}from"./p-a9ccb0df.js";let p=class{constructor(i){s(this,i)}componentWillLoad(){if(void 0===this.pullingIcon){const s=o(this),i=void 0!==this.el.style.webkitOverflowScrolling?"lines":t;this.pullingIcon=c.get("refreshingIcon","ios"===s&&a("mobile")?c.get("spinner",i):"circular")}if(void 0===this.refreshingSpinner){const s=o(this);this.refreshingSpinner=c.get("refreshingSpinner",c.get("spinner","ios"===s?"lines":"circular"))}}render(){const s=this.pullingIcon,e=null!=s&&void 0!==l[s],t=o(this);return i(r,{class:t},i("div",{class:"refresher-pulling"},this.pullingIcon&&e&&i("div",{class:"refresher-pulling-icon"},i("div",{class:"spinner-arrow-container"},i("ion-spinner",{name:this.pullingIcon,paused:!0}),"md"===t&&"circular"===this.pullingIcon&&i("div",{class:"arrow-container"},i("ion-icon",{icon:n})))),this.pullingIcon&&!e&&i("div",{class:"refresher-pulling-icon"},i("ion-icon",{icon:this.pullingIcon,lazy:!1})),this.pullingText&&i("div",{class:"refresher-pulling-text",innerHTML:h(this.pullingText)})),i("div",{class:"refresher-refreshing"},this.refreshingSpinner&&i("div",{class:"refresher-refreshing-icon"},i("ion-spinner",{name:this.refreshingSpinner})),this.refreshingText&&i("div",{class:"refresher-refreshing-text",innerHTML:h(this.refreshingText)})))}get el(){return e(this)}};export{p as ion_refresher_content}