import{r as s,h as i,H as r,e}from"./p-ee1e0eb4.js";import{j as n,k as t}from"./p-4c6a7e52.js";import{g as o,c as a,a as c}from"./p-871106e0.js";import{s as h}from"./p-7d8427eb.js";import{S as l}from"./p-f3cba72a.js";const 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=a.get("refreshingIcon","ios"===s&&c("mobile")?a.get("spinner",i):"circular")}if(void 0===this.refreshingSpinner){const s=o(this);this.refreshingSpinner=a.get("refreshingSpinner",a.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}