import{r as t,d as e,h as o,H as i,w as n,i as r,e as a,f as s}from"./p-03169580.js";import{g as c,a as l}from"./p-4cb16df5.js";import{c as d,a as p,b as h}from"./p-604a7987.js";import{createGesture as u}from"./p-e9431eeb.js";import{B as g,i as b,b as f,a as m,d as v,e as x,s as w,h as k,p as y,f as z,j}from"./p-c5cf028c.js";import{g as C,h as O}from"./p-0e4de1d0.js";import{c as D}from"./p-d5da637d.js";import{s as A}from"./p-7d8427eb.js";import{C as $,a as P,d as I}from"./p-ca7b7028.js";import{r as T,l as W,j as L,g as S,p as Y,n as E,m as N}from"./p-7cbdb4ea.js";import{d as H}from"./p-cd2253e7.js";import"./p-076f0239.js";const B="fireenjin-select ion-icon{margin-right:5px;color:var(--ion-text-color);opacity:0.33}fireenjin-select select{border:none;width:auto;padding:10px;min-width:30%;cursor:pointer;text-align:justify}";let X=class{constructor(o){t(this,o);this.fireenjinFetch=e(this,"fireenjinFetch",7);this.ionChange=e(this,"ionChange",7);this.disabled=false;this.cancelText="Dismiss";this.okText="Okay";this.multiple=false;this.interface="alert";this.interfaceOptions={};this.limit=15;this.options=[];this.required=false;this.results=[]}onSuccess(t){var e,o,i;if(((e=t===null||t===void 0?void 0:t.detail)===null||e===void 0?void 0:e.name)!=="select"||t.detail.endpoint!==this.endpoint)return;this.results=((i=(o=t===null||t===void 0?void 0:t.detail)===null||o===void 0?void 0:o.data)===null||i===void 0?void 0:i.results)?t.detail.data.results:[];setTimeout((()=>{this.value=this.value}),200)}fetchData(){if(!this.endpoint)return;this.fireenjinFetch.emit({name:"select",endpoint:this.endpoint,dataPropsMap:this.dataPropsMap?this.dataPropsMap:this.resultsKey?{[this.resultsKey]:"results"}:null,params:Object.assign({data:Object.assign(Object.assign(Object.assign({},this.query?{query:this.query}:{}),this.orderBy?{orderBy:this.orderBy}:{}),{limit:this.limit?this.limit:15})},this.params?this.params:{})})}componentWillLoad(){this.fetchData()}render(){return o(i,null,o("ion-item",{lines:this.lines},this.icon&&o("ion-icon",{slot:"start",name:this.icon}),this.label&&o("ion-label",{position:this.labelPosition},this.label),o("ion-select",{disabled:this.disabled,selectedText:this.selectedText,interface:this.interface,compareWith:this.compareWith,name:this.name,value:this.value,okText:this.okText,multiple:this.multiple,cancelText:this.cancelText,placeholder:this.placeholder,interfaceOptions:this.interfaceOptions?this.interfaceOptions:{header:this.header,subHeader:this.subHeader,message:this.message}},(this.options?this.options:[]).map((t=>this.optionEl?this.optionEl(t):o("ion-select-option",{value:t.value,disabled:t.disabled},t.label))),(this.results?this.results:[]).map((t=>this.optionEl?this.optionEl(t):o("ion-select-option",{value:t.id},t.name))))))}};X.style=B;
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const _=(t,e)=>{let o;let i;const r=(t,i,n)=>{if(typeof document==="undefined"){return}const r=document.elementFromPoint(t,i);if(!r||!e(r)){s();return}if(r!==o){s();a(r,n)}};const a=(t,e)=>{o=t;if(!i){i=o}const r=o;n((()=>r.classList.add("ion-activated")));e()};const s=(t=false)=>{if(!o){return}const e=o;n((()=>e.classList.remove("ion-activated")));if(t&&i!==o){o.click()}o=undefined};return u({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>r(t.currentX,t.currentY,p),onMove:t=>r(t.currentX,t.currentY,h),onEnd:()=>{s(true);d();i=undefined}})};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const V=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([o,i])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const M=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([o,i])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const R=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([o,i])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const F=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);i.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([o,i])};const K='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;transform:translate3d(0,  100%,  0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:flex;flex-flow:column;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports (backdrop-filter: blur(0)){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:13px;font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.3em;font-size:28px;pointer-events:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}';const U='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;transform:translate3d(0,  100%,  0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:flex;flex-flow:column;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{padding-bottom:4px;margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}';let q=class{constructor(o){t(this,o);this.didPresent=e(this,"ionActionSheetDidPresent",7);this.willPresent=e(this,"ionActionSheetWillPresent",7);this.willDismiss=e(this,"ionActionSheetWillDismiss",7);this.didDismiss=e(this,"ionActionSheetDidDismiss",7);this.presented=false;this.keyboardClose=true;this.buttons=[];this.backdropDismiss=true;this.translucent=false;this.animated=true;this.onBackdropTap=()=>{this.dismiss(undefined,g)};this.dispatchCancelHandler=t=>{const e=t.detail.role;if(b(e)){const t=this.getButtons().find((t=>t.role==="cancel"));this.callButtonHandler(t)}}}present(){return f(this,"actionSheetEnter",V,R)}connectedCallback(){m(this.el)}dismiss(t,e){return v(this,t,e,"actionSheetLeave",M,F)}onDidDismiss(){return x(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return x(this.el,"ionActionSheetWillDismiss")}async buttonClick(t){const e=t.role;if(b(e)){return this.dismiss(t.data,e)}const o=await this.callButtonHandler(t);if(o){return this.dismiss(t.data,t.role)}return Promise.resolve()}async callButtonHandler(t){if(t){const e=await w(t.handler);if(e===false){return false}}return true}getButtons(){return this.buttons.map((t=>typeof t==="string"?{text:t}:t))}disconnectedCallback(){if(this.gesture){this.gesture.destroy();this.gesture=undefined}}componentDidLoad(){const{groupEl:t,wrapperEl:e}=this;if(this.gesture||c(this)==="md"||!e||!t){return}r((()=>{const o=t.scrollHeight>t.clientHeight;if(!o){this.gesture=_(e,(t=>t.classList.contains("action-sheet-button")));this.gesture.enable(true)}}))}render(){const{htmlAttributes:t}=this;const e=c(this);const n=this.getButtons();const r=n.find((t=>t.role==="cancel"));const a=n.filter((t=>t.role!=="cancel"));return o(i,Object.assign({role:"dialog","aria-modal":"true",tabindex:"-1"},t,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[e]:true},C(this.cssClass)),{"overlay-hidden":true,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),o("ion-backdrop",{tappable:this.backdropDismiss}),o("div",{tabindex:"0"}),o("div",{class:"action-sheet-wrapper ion-overlay-wrapper",role:"dialog",ref:t=>this.wrapperEl=t},o("div",{class:"action-sheet-container"},o("div",{class:"action-sheet-group",ref:t=>this.groupEl=t},this.header!==undefined&&o("div",{class:{"action-sheet-title":true,"action-sheet-has-sub-title":this.subHeader!==undefined}},this.header,this.subHeader&&o("div",{class:"action-sheet-sub-title"},this.subHeader)),a.map((t=>o("button",{type:"button",id:t.id,class:G(t),onClick:()=>this.buttonClick(t)},o("span",{class:"action-sheet-button-inner"},t.icon&&o("ion-icon",{icon:t.icon,lazy:false,class:"action-sheet-icon"}),t.text),e==="md"&&o("ion-ripple-effect",null))))),r&&o("div",{class:"action-sheet-group action-sheet-group-cancel"},o("button",{type:"button",class:G(r),onClick:()=>this.buttonClick(r)},o("span",{class:"action-sheet-button-inner"},r.icon&&o("ion-icon",{icon:r.icon,lazy:false,class:"action-sheet-icon"}),r.text),e==="md"&&o("ion-ripple-effect",null))))),o("div",{tabindex:"0"}))}get el(){return a(this)}};const G=t=>Object.assign({"action-sheet-button":true,"ion-activatable":true,"ion-focusable":true,[`action-sheet-${t.role}`]:t.role!==undefined},C(t.cssClass));q.style={ios:K,md:U};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const J=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);i.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]);return e.addElement(t).easing("ease-in-out").duration(200).addAnimation([o,i])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const Q=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);i.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]);return e.addElement(t).easing("ease-in-out").duration(200).addAnimation([o,i])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const Z=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);i.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]);return e.addElement(t).easing("ease-in-out").duration(150).addAnimation([o,i])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const tt=t=>{const e=D();const o=D();const i=D();o.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);i.addElement(t.querySelector(".alert-wrapper")).fromTo("opacity",.99,0);return e.addElement(t).easing("ease-in-out").duration(150).addAnimation([o,i])};const et=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:flex;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios{box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:flex;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{flex-direction:column;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;appearance:none;contain:strict}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:14px}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports (backdrop-filter: blur(0)){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:7px;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:17px;font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:14px}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:13px;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;padding-left:6px;padding-right:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-input.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px}}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{height:44px}.alert-radio-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;flex:1;order:0;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px;top:-7px;position:absolute;width:6px;height:12px;transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}.alert-checkbox-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;flex:1;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;margin-left:16px;margin-right:6px;margin-top:10px;margin-bottom:10px;position:relative;width:24px;height:24px;border-width:1px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-checkbox-icon.sc-ion-alert-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px}}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:9px;top:4px;position:absolute;width:5px;height:12px;transform:rotate(45deg);border-width:1px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:9px}.alert-button-group.sc-ion-alert-ios{margin-right:-0.55px;flex-wrap:wrap}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-ios{margin-right:unset;-webkit-margin-end:-0.55px;margin-inline-end:-0.55px}}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;flex:1 1 auto;min-width:50%;height:44px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:17px;overflow:hidden}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}";const ot=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;touch-action:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:flex;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md{box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:flex;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{flex-direction:column;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;appearance:none;contain:strict}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:14px}.alert-wrapper.sc-ion-alert-md{border-radius:4px;box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{padding-left:23px;padding-right:23px;padding-top:20px;padding-bottom:15px;text-align:start}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px}}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:20px;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:16px}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:24px;padding-right:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.alert-message.sc-ion-alert-md{max-height:266px;font-size:16px}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;max-height:266px;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}.alert-tappable.sc-ion-alert-md{position:relative;height:48px;overflow:hidden}.alert-radio-label.sc-ion-alert-md{padding-left:52px;padding-right:26px;padding-top:13px;padding-bottom:13px;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-radio-icon.sc-ion-alert-md{left:26px;top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}.alert-radio-inner.sc-ion-alert-md{left:3px;top:3px;border-radius:50%;position:absolute;width:10px;height:10px;transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{padding-left:53px;padding-right:26px;padding-top:13px;padding-bottom:13px;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-checkbox-icon.sc-ion-alert-md{left:26px;top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px;top:0;position:absolute;width:6px;height:10px;transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}.alert-button-group.sc-ion-alert-md{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;box-sizing:border-box;flex-wrap:wrap-reverse;justify-content:flex-end}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.alert-button.sc-ion-alert-md{border-radius:2px;margin-left:0;margin-right:8px;margin-top:0;margin-bottom:0;padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.alert-button-inner.sc-ion-alert-md{justify-content:flex-end}";let it=class{constructor(o){t(this,o);this.didPresent=e(this,"ionAlertDidPresent",7);this.willPresent=e(this,"ionAlertWillPresent",7);this.willDismiss=e(this,"ionAlertWillDismiss",7);this.didDismiss=e(this,"ionAlertDidDismiss",7);this.processedInputs=[];this.processedButtons=[];this.presented=false;this.keyboardClose=true;this.buttons=[];this.inputs=[];this.backdropDismiss=true;this.translucent=false;this.animated=true;this.onBackdropTap=()=>{this.dismiss(undefined,g)};this.dispatchCancelHandler=t=>{const e=t.detail.role;if(b(e)){const t=this.processedButtons.find((t=>t.role==="cancel"));this.callButtonHandler(t)}}}onKeydown(t){const e=new Set(this.processedInputs.map((t=>t.type)));if(!e.has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button")){return}const o=this.el.querySelectorAll(".alert-radio");const i=Array.from(o).filter((t=>!t.disabled));const n=i.findIndex((e=>e.id===t.target.id));let r;if(["ArrowDown","ArrowRight"].includes(t.code)){r=n===i.length-1?i[0]:i[n+1]}if(["ArrowUp","ArrowLeft"].includes(t.code)){r=n===0?i[i.length-1]:i[n-1]}if(r&&i.includes(r)){const t=this.processedInputs.find((t=>t.id===(r===null||r===void 0?void 0:r.id)));if(t){this.rbClick(t);r.focus()}}}buttonsChanged(){const t=this.buttons;this.processedButtons=t.map((t=>typeof t==="string"?{text:t,role:t.toLowerCase()==="cancel"?"cancel":undefined}:t))}inputsChanged(){const t=this.inputs;const e=t.find((t=>!t.disabled));const o=t.find((t=>t.checked&&!t.disabled));const i=o||e;const n=new Set(t.map((t=>t.type)));if(n.has("checkbox")&&n.has("radio")){console.warn(`Alert cannot mix input types: ${Array.from(n.values()).join("/")}. Please see alert docs for more info.`)}this.inputType=n.values().next().value;this.processedInputs=t.map(((t,e)=>({type:t.type||"text",name:t.name||`${e}`,placeholder:t.placeholder||"",value:t.value,label:t.label,checked:!!t.checked,disabled:!!t.disabled,id:t.id||`alert-input-${this.overlayIndex}-${e}`,handler:t.handler,min:t.min,max:t.max,cssClass:t.cssClass||"",attributes:t.attributes||{},tabindex:t.type==="radio"&&t!==i?-1:0})))}connectedCallback(){m(this.el)}componentWillLoad(){this.inputsChanged();this.buttonsChanged()}disconnectedCallback(){if(this.gesture){this.gesture.destroy();this.gesture=undefined}}componentDidLoad(){if(this.gesture||c(this)==="md"||!this.wrapperEl){return}this.gesture=_(this.wrapperEl,(t=>t.classList.contains("alert-button")));this.gesture.enable(true)}present(){return f(this,"alertEnter",J,Z)}dismiss(t,e){return v(this,t,e,"alertLeave",Q,tt)}onDidDismiss(){return x(this.el,"ionAlertDidDismiss")}onWillDismiss(){return x(this.el,"ionAlertWillDismiss")}rbClick(t){for(const e of this.processedInputs){e.checked=e===t;e.tabindex=e===t?0:-1}this.activeId=t.id;w(t.handler,t);s(this)}cbClick(t){t.checked=!t.checked;w(t.handler,t);s(this)}buttonClick(t){const e=t.role;const o=this.getValues();if(b(e)){return this.dismiss({values:o},e)}const i=this.callButtonHandler(t,o);if(i!==false){return this.dismiss(Object.assign({values:o},i),t.role)}return Promise.resolve(false)}callButtonHandler(t,e){if(t===null||t===void 0?void 0:t.handler){const o=w(t.handler,e);if(o===false){return false}if(typeof o==="object"){return o}}return{}}getValues(){if(this.processedInputs.length===0){return undefined}if(this.inputType==="radio"){const t=this.processedInputs.find((t=>!!t.checked));return t?t.value:undefined}if(this.inputType==="checkbox"){return this.processedInputs.filter((t=>t.checked)).map((t=>t.value))}const t={};this.processedInputs.forEach((e=>{t[e.name]=e.value||""}));return t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs;const e=c(this);if(t.length===0){return null}return o("div",{class:"alert-checkbox-group"},t.map((t=>o("button",{type:"button",onClick:()=>this.cbClick(t),"aria-checked":`${t.checked}`,id:t.id,disabled:t.disabled,tabIndex:t.tabindex,role:"checkbox",class:Object.assign(Object.assign({},C(t.cssClass)),{"alert-tappable":true,"alert-checkbox":true,"alert-checkbox-button":true,"ion-focusable":true,"alert-checkbox-button-disabled":t.disabled||false})},o("div",{class:"alert-button-inner"},o("div",{class:"alert-checkbox-icon"},o("div",{class:"alert-checkbox-inner"})),o("div",{class:"alert-checkbox-label"},t.label)),e==="md"&&o("ion-ripple-effect",null)))))}renderRadio(){const t=this.processedInputs;if(t.length===0){return null}return o("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map((t=>o("button",{type:"button",onClick:()=>this.rbClick(t),"aria-checked":`${t.checked}`,disabled:t.disabled,id:t.id,tabIndex:t.tabindex,class:Object.assign(Object.assign({},C(t.cssClass)),{"alert-radio-button":true,"alert-tappable":true,"alert-radio":true,"ion-focusable":true,"alert-radio-button-disabled":t.disabled||false}),role:"radio"},o("div",{class:"alert-button-inner"},o("div",{class:"alert-radio-icon"},o("div",{class:"alert-radio-inner"})),o("div",{class:"alert-radio-label"},t.label))))))}renderInput(){const t=this.processedInputs;if(t.length===0){return null}return o("div",{class:"alert-input-group"},t.map((t=>{var e,i,n,r;if(t.type==="textarea"){return o("div",{class:"alert-input-wrapper"},o("textarea",Object.assign({placeholder:t.placeholder,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:(i=(e=t.attributes)===null||e===void 0?void 0:e.disabled)!==null&&i!==void 0?i:t.disabled,class:nt(t),onInput:e=>{var o;t.value=e.target.value;if((o=t.attributes)===null||o===void 0?void 0:o.onInput){t.attributes.onInput(e)}}})))}else{return o("div",{class:"alert-input-wrapper"},o("input",Object.assign({placeholder:t.placeholder,type:t.type,min:t.min,max:t.max,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:(r=(n=t.attributes)===null||n===void 0?void 0:n.disabled)!==null&&r!==void 0?r:t.disabled,class:nt(t),onInput:e=>{var o;t.value=e.target.value;if((o=t.attributes)===null||o===void 0?void 0:o.onInput){t.attributes.onInput(e)}}})))}})))}renderAlertButtons(){const t=this.processedButtons;const e=c(this);const i={"alert-button-group":true,"alert-button-group-vertical":t.length>2};return o("div",{class:i},t.map((t=>o("button",{type:"button",id:t.id,class:rt(t),tabIndex:0,onClick:()=>this.buttonClick(t)},o("span",{class:"alert-button-inner"},t.text),e==="md"&&o("ion-ripple-effect",null)))))}render(){const{overlayIndex:t,header:e,subHeader:n,htmlAttributes:r}=this;const a=c(this);const s=`alert-${t}-hdr`;const l=`alert-${t}-sub-hdr`;const d=`alert-${t}-msg`;const p=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return o(i,Object.assign({role:p,"aria-modal":"true",tabindex:"-1"},r,{style:{zIndex:`${2e4+t}`},class:Object.assign(Object.assign({},C(this.cssClass)),{[a]:true,"overlay-hidden":true,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),o("ion-backdrop",{tappable:this.backdropDismiss}),o("div",{tabindex:"0"}),o("div",{class:"alert-wrapper ion-overlay-wrapper",ref:t=>this.wrapperEl=t},o("div",{class:"alert-head"},e&&o("h2",{id:s,class:"alert-title"},e),n&&o("h2",{id:l,class:"alert-sub-title"},n)),o("div",{id:d,class:"alert-message",innerHTML:A(this.message)}),this.renderAlertInputs(),this.renderAlertButtons()),o("div",{tabindex:"0"}))}get el(){return a(this)}static get watchers(){return{buttons:["buttonsChanged"],inputs:["inputsChanged"]}}};const nt=t=>{var e,o,i;return Object.assign(Object.assign({"alert-input":true,"alert-input-disabled":((o=(e=t.attributes)===null||e===void 0?void 0:e.disabled)!==null&&o!==void 0?o:t.disabled)||false},C(t.cssClass)),C(t.attributes?(i=t.attributes.class)===null||i===void 0?void 0:i.toString():""))};const rt=t=>Object.assign({"alert-button":true,"ion-focusable":true,"ion-activatable":true,[`alert-button-role-${t.role}`]:t.role!==undefined},C(t.cssClass));it.style={ios:et,md:ot};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const at=t=>{if(!t){return{arrowWidth:0,arrowHeight:0}}const{width:e,height:o}=t.getBoundingClientRect();return{arrowWidth:e,arrowHeight:o}};const st=(t,e,o)=>{const i=e.getBoundingClientRect();const n=i.height;let r=i.width;if(t==="cover"&&o){const t=o.getBoundingClientRect();r=t.width}return{contentWidth:r,contentHeight:n}};const ct=(t,e,o,i)=>{let n=[];const r=W(i);const a=r.querySelector(".popover-content");switch(e){case"hover":n=[{eventName:"mouseenter",callback:e=>{const i=document.elementFromPoint(e.clientX,e.clientY);if(i===t){return}o.dismiss(undefined,undefined,false)}}];break;case"context-menu":case"click":default:n=[{eventName:"click",callback:e=>{const i=e.target;const n=i.closest("[data-ion-popover-trigger]");if(n===t){e.stopPropagation();return}o.dismiss(undefined,undefined,false)}}];break}n.forEach((({eventName:t,callback:e})=>a.addEventListener(t,e)));return()=>{n.forEach((({eventName:t,callback:e})=>a.removeEventListener(t,e)))}};const lt=(t,e,o)=>{let i=[];switch(e){case"hover":let t;i=[{eventName:"mouseenter",callback:async e=>{e.stopPropagation();if(t){clearTimeout(t)}t=setTimeout((()=>{T((()=>{o.presentFromTrigger(e);t=undefined}))}),100)}},{eventName:"mouseleave",callback:e=>{if(t){clearTimeout(t)}const i=e.relatedTarget;if(!i){return}if(i.closest("ion-popover")!==o){o.dismiss(undefined,undefined,false)}}},{eventName:"click",callback:t=>t.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:t=>o.presentFromTrigger(t,true)}];break;case"context-menu":i=[{eventName:"contextmenu",callback:t=>{t.preventDefault();o.presentFromTrigger(t)}},{eventName:"click",callback:t=>t.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:t=>o.presentFromTrigger(t,true)}];break;case"click":default:i=[{eventName:"click",callback:t=>o.presentFromTrigger(t)},{eventName:"ionPopoverActivateTrigger",callback:t=>o.presentFromTrigger(t,true)}];break}i.forEach((({eventName:e,callback:o})=>t.addEventListener(e,o)));t.setAttribute("data-ion-popover-trigger","true");return()=>{i.forEach((({eventName:e,callback:o})=>t.removeEventListener(e,o)));t.removeAttribute("data-ion-popover-trigger")}};const dt=(t,e)=>{if(!e||e.tagName!=="ION-ITEM"){return-1}return t.findIndex((t=>t===e))};const pt=(t,e)=>{const o=dt(t,e);return t[o+1]};const ht=(t,e)=>{const o=dt(t,e);return t[o-1]};const ut=t=>{const e=W(t);const o=e.querySelector("button");if(o){T((()=>o.focus()))}};const gt=t=>t.hasAttribute("data-ion-popover-trigger");const bt=t=>{const e=async e=>{var o;const i=document.activeElement;let n=[];const r=(o=e.target)===null||o===void 0?void 0:o.tagName;if(r!=="ION-POPOVER"&&r!=="ION-ITEM"){return}try{n=Array.from(t.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch(t){}switch(e.key){case"ArrowLeft":const o=await t.getParentPopover();if(o){t.dismiss(undefined,undefined,false)}break;case"ArrowDown":e.preventDefault();const r=pt(n,i);if(r!==undefined){ut(r)}break;case"ArrowUp":e.preventDefault();const a=ht(n,i);if(a!==undefined){ut(a)}break;case"Home":e.preventDefault();const s=n[0];if(s!==undefined){ut(s)}break;case"End":e.preventDefault();const c=n[n.length-1];if(c!==undefined){ut(c)}break;case"ArrowRight":case" ":case"Enter":if(i&&gt(i)){const t=new CustomEvent("ionPopoverActivateTrigger");i.dispatchEvent(t)}break}};t.addEventListener("keydown",e);return()=>t.removeEventListener("keydown",e)};const ft=(t,e,o,i,n,r,a,s,c,l,d)=>{var p;let h={top:0,left:0,width:0,height:0};switch(r){case"event":if(!d){return c}const t=d;h={top:t.clientY,left:t.clientX,width:1,height:1};break;case"trigger":default:const e=d;const o=l||((p=e===null||e===void 0?void 0:e.detail)===null||p===void 0?void 0:p.ionShadowTarget)||(e===null||e===void 0?void 0:e.target);if(!o){return c}const i=o.getBoundingClientRect();h={top:i.top,left:i.left,width:i.width,height:i.height};break}const u=kt(a,h,e,o,i,n,t);const g=yt(s,a,h,e,o);const b=u.top+g.top;const f=u.left+g.left;const{arrowTop:m,arrowLeft:v}=wt(a,i,n,b,f,e,o,t);const{originX:x,originY:w}=mt(a,s,t);return{top:b,left:f,referenceCoordinates:h,arrowTop:m,arrowLeft:v,originX:x,originY:w}};const mt=(t,e,o)=>{switch(t){case"top":return{originX:vt(e),originY:"bottom"};case"bottom":return{originX:vt(e),originY:"top"};case"left":return{originX:"right",originY:xt(e)};case"right":return{originX:"left",originY:xt(e)};case"start":return{originX:o?"left":"right",originY:xt(e)};case"end":return{originX:o?"right":"left",originY:xt(e)}}};const vt=t=>{switch(t){case"start":return"left";case"center":return"center";case"end":return"right"}};const xt=t=>{switch(t){case"start":return"top";case"center":return"center";case"end":return"bottom"}};const wt=(t,e,o,i,n,r,a,s)=>{const c={arrowTop:i+a/2-e/2,arrowLeft:n+r-e/2};const l={arrowTop:i+a/2-e/2,arrowLeft:n-e*1.5};switch(t){case"top":return{arrowTop:i+a,arrowLeft:n+r/2-e/2};case"bottom":return{arrowTop:i-o,arrowLeft:n+r/2-e/2};case"left":return c;case"right":return l;case"start":return s?l:c;case"end":return s?c:l;default:return{arrowTop:0,arrowLeft:0}}};const kt=(t,e,o,i,n,r,a)=>{const s={top:e.top,left:e.left-o-n};const c={top:e.top,left:e.left+e.width+n};switch(t){case"top":return{top:e.top-i-r,left:e.left};case"right":return c;case"bottom":return{top:e.top+e.height+r,left:e.left};case"left":return s;case"start":return a?c:s;case"end":return a?s:c}};const yt=(t,e,o,i,n)=>{switch(t){case"center":return jt(e,o,i,n);case"end":return zt(e,o,i,n);case"start":default:return{top:0,left:0}}};const zt=(t,e,o,i)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(i-e.height),left:0};case"top":case"bottom":default:return{top:0,left:-(o-e.width)}}};const jt=(t,e,o,i)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(i/2-e.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(o/2-e.width/2)}}};const Ct=(t,e,o,i,n,r,a,s,c,l,d,p,h=0,u=0,g=0)=>{let b=h;const f=u;let m=o;let v=e;let x;let w=l;let k=d;let y=false;let z=false;const j=p?p.top+p.height:r/2-s/2;const C=p?p.height:0;let O=false;if(m<i+c){m=i;y=true;w="left"}else if(a+i+m+c>n){z=true;m=n-a-i;w="right"}if(j+C+s>r&&(t==="top"||t==="bottom")){if(j-s>0){v=j-s-C-(g-1);b=v+s;k="bottom";O=true}else{x=i}}return{top:v,left:m,bottom:x,originX:w,originY:k,checkSafeAreaLeft:y,checkSafeAreaRight:z,arrowTop:b,arrowLeft:f,addPopoverBottomClass:O}};const Ot=(t,e=false,o,i)=>{if(!o&&!i){return false}if(t!=="top"&&t!=="bottom"&&e){return false}return true};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const Dt=5;const At=(t,e)=>{var o;const{event:i,size:n,trigger:r,reference:a,side:s,align:c}=e;const l=t.ownerDocument;const d=l.dir==="rtl";const p=l.defaultView.innerWidth;const h=l.defaultView.innerHeight;const u=W(t);const g=u.querySelector(".popover-content");const b=u.querySelector(".popover-arrow");const f=r||((o=i===null||i===void 0?void 0:i.detail)===null||o===void 0?void 0:o.ionShadowTarget)||(i===null||i===void 0?void 0:i.target);const{contentWidth:m,contentHeight:v}=st(n,g,f);const{arrowWidth:x,arrowHeight:w}=at(b);const k={top:h/2-v/2,left:p/2-m/2,originX:d?"right":"left",originY:"top"};const y=ft(d,m,v,x,w,a,s,c,k,r,i);const z=n==="cover"?0:Dt;const j=n==="cover"?0:25;const{originX:C,originY:O,top:A,left:$,bottom:P,checkSafeAreaLeft:I,checkSafeAreaRight:T,arrowTop:L,arrowLeft:S,addPopoverBottomClass:Y}=Ct(s,y.top,y.left,z,p,h,m,v,j,y.originX,y.originY,y.referenceCoordinates,y.arrowTop,y.arrowLeft,w);const E=D();const N=D();const H=D();N.addElement(u.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);H.addElement(u.querySelector(".popover-wrapper")).fromTo("opacity",.01,1);return E.easing("ease").duration(100).beforeAddWrite((()=>{if(n==="cover"){t.style.setProperty("--width",`${m}px`)}if(Y){t.classList.add("popover-bottom")}if(P!==undefined){g.style.setProperty("bottom",`${P}px`)}const e=" + var(--ion-safe-area-left, 0)";const o=" - var(--ion-safe-area-right, 0)";let a=`${$}px`;if(I){a=`${$}px${e}`}if(T){a=`${$}px${o}`}g.style.setProperty("top",`calc(${A}px + var(--offset-y, 0))`);g.style.setProperty("left",`calc(${a} + var(--offset-x, 0))`);g.style.setProperty("transform-origin",`${O} ${C}`);if(b!==null){const t=y.top!==A||y.left!==$;const e=Ot(s,t,i,r);if(e){b.style.setProperty("top",`calc(${L}px + var(--offset-y, 0))`);b.style.setProperty("left",`calc(${S}px + var(--offset-x, 0))`)}else{b.style.setProperty("display","none")}}})).addAnimation([N,H])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const $t=t=>{const e=W(t);const o=e.querySelector(".popover-content");const i=e.querySelector(".popover-arrow");const n=D();const r=D();const a=D();r.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);a.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0);return n.easing("ease").afterAddWrite((()=>{t.style.removeProperty("--width");t.classList.remove("popover-bottom");o.style.removeProperty("top");o.style.removeProperty("left");o.style.removeProperty("bottom");o.style.removeProperty("transform-origin");if(i){i.style.removeProperty("top");i.style.removeProperty("left");i.style.removeProperty("display")}})).duration(300).addAnimation([r,a])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const Pt=12;const It=(t,e)=>{var o;const{event:i,size:n,trigger:r,reference:a,side:s,align:c}=e;const l=t.ownerDocument;const d=l.dir==="rtl";const p=l.defaultView.innerWidth;const h=l.defaultView.innerHeight;const u=W(t);const g=u.querySelector(".popover-content");const b=r||((o=i===null||i===void 0?void 0:i.detail)===null||o===void 0?void 0:o.ionShadowTarget)||(i===null||i===void 0?void 0:i.target);const{contentWidth:f,contentHeight:m}=st(n,g,b);const v={top:h/2-m/2,left:p/2-f/2,originX:d?"right":"left",originY:"top"};const x=ft(d,f,m,0,0,a,s,c,v,r,i);const w=n==="cover"?0:Pt;const{originX:k,originY:y,top:z,left:j,bottom:C}=Ct(s,x.top,x.left,w,p,h,f,m,0,x.originX,x.originY,x.referenceCoordinates);const O=D();const A=D();const $=D();const P=D();const I=D();A.addElement(u.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);$.addElement(u.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1);P.addElement(g).beforeStyles({top:`calc(${z}px + var(--offset-y, 0px))`,left:`calc(${j}px + var(--offset-x, 0px))`,"transform-origin":`${y} ${k}`}).beforeAddWrite((()=>{if(C!==undefined){g.style.setProperty("bottom",`${C}px`)}})).fromTo("transform","scale(0.8)","scale(1)");I.addElement(u.querySelector(".popover-viewport")).fromTo("opacity",.01,1);return O.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite((()=>{if(n==="cover"){t.style.setProperty("--width",`${f}px`)}if(y==="bottom"){t.classList.add("popover-bottom")}})).addAnimation([A,$,P,I])};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const Tt=t=>{const e=W(t);const o=e.querySelector(".popover-content");const i=D();const n=D();const r=D();n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0);r.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0);return i.easing("ease").afterAddWrite((()=>{t.style.removeProperty("--width");t.classList.remove("popover-bottom");o.style.removeProperty("top");o.style.removeProperty("left");o.style.removeProperty("bottom");o.style.removeProperty("transform-origin")})).duration(150).addAnimation([n,r])};const Wt=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:flex;position:fixed;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:flex;position:absolute;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:flex;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl] .popover-arrow::after,:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{transform:rotate(-90deg)}:host(.popover-side-end) .popover-arrow{transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{transform:rotate(90deg)}@supports (backdrop-filter: blur(0)){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);backdrop-filter:saturate(180%) blur(20px)}}';const Lt=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:flex;position:fixed;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:flex;position:absolute;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:flex;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;transform-origin:left top}[dir=rtl] .popover-content,:host-context([dir=rtl]) .popover-content{transform-origin:right top}.popover-viewport{transition-delay:100ms}";let St=class{constructor(o){t(this,o);this.didPresent=e(this,"ionPopoverDidPresent",7);this.willPresent=e(this,"ionPopoverWillPresent",7);this.willDismiss=e(this,"ionPopoverWillDismiss",7);this.didDismiss=e(this,"ionPopoverDidDismiss",7);this.didPresentShorthand=e(this,"didPresent",7);this.willPresentShorthand=e(this,"willPresent",7);this.willDismissShorthand=e(this,"willDismiss",7);this.didDismissShorthand=e(this,"didDismiss",7);this.parentPopover=null;this.popoverIndex=Et++;this.coreDelegate=$();this.inline=false;this.focusDescendantOnPresent=false;this.presented=false;this.hasController=false;this.keyboardClose=true;this.backdropDismiss=true;this.showBackdrop=true;this.translucent=false;this.animated=true;this.triggerAction="click";this.size="auto";this.dismissOnSelect=false;this.reference="trigger";this.side="bottom";this.arrow=true;this.isOpen=false;this.keyboardEvents=false;this.onBackdropTap=()=>{this.dismiss(undefined,g)};this.onLifecycle=t=>{const e=this.usersElement;const o=Yt[t.type];if(e&&o){const i=new CustomEvent(o,{bubbles:false,cancelable:false,detail:t.detail});e.dispatchEvent(i)}};this.configureTriggerInteraction=()=>{const{trigger:t,triggerAction:e,el:o,destroyTriggerInteraction:i}=this;if(i){i()}const n=this.triggerEl=t!==undefined?document.getElementById(t):null;if(!n){return}this.destroyTriggerInteraction=lt(n,e,o)};this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:t,el:e}=this;if(t){t()}this.destroyKeyboardInteraction=bt(e)};this.configureDismissInteraction=()=>{const{destroyDismissInteraction:t,parentPopover:e,triggerAction:o,triggerEl:i,el:n}=this;if(!e||!i){return}if(t){t()}this.destroyDismissInteraction=ct(i,o,n,e)}}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}}connectedCallback(){m(this.el)}componentWillLoad(){this.popoverId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-popover-${this.popoverIndex}`;this.parentPopover=this.el.closest(`ion-popover:not(#${this.popoverId})`);if(this.alignment===undefined){this.alignment=c(this)==="ios"?"center":"start"}}componentDidLoad(){const{parentPopover:t,isOpen:e}=this;if(e===true){T((()=>this.present()))}if(t){L(t,"ionPopoverWillDismiss",(()=>{this.dismiss(undefined,undefined,false)}))}this.configureTriggerInteraction()}async presentFromTrigger(t,e=false){this.focusDescendantOnPresent=e;await this.present(t);this.focusDescendantOnPresent=false}getDelegate(t=false){if(this.workingDelegate&&!t){return{delegate:this.workingDelegate,inline:this.inline}}const e=this.el.parentNode;const o=this.inline=e!==null&&!this.hasController;const i=this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate;return{inline:o,delegate:i}}async present(t){if(this.presented){return}if(this.currentTransition!==undefined){await this.currentTransition}const e=Object.assign(Object.assign({},this.componentProps),{popover:this.el});const{inline:o,delegate:i}=this.getDelegate(true);this.usersElement=await P(i,this.el,this.component,["popover-viewport"],e,o);await H(this.usersElement);if(!this.keyboardEvents){this.configureKeyboardInteraction()}this.configureDismissInteraction();this.currentTransition=f(this,"popoverEnter",At,It,{event:t||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment});await this.currentTransition;this.currentTransition=undefined;if(this.focusDescendantOnPresent){k(this.el,this.el)}}async dismiss(t,e,o=true){if(this.currentTransition!==undefined){await this.currentTransition}const{destroyKeyboardInteraction:i,destroyDismissInteraction:n}=this;if(o&&this.parentPopover){this.parentPopover.dismiss(t,e,o)}this.currentTransition=v(this,t,e,"popoverLeave",$t,Tt,this.event);const r=await this.currentTransition;if(r){if(i){i();this.destroyKeyboardInteraction=undefined}if(n){n();this.destroyDismissInteraction=undefined}const{delegate:t}=this.getDelegate();await I(t,this.usersElement)}this.currentTransition=undefined;return r}async getParentPopover(){return this.parentPopover}onDidDismiss(){return x(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return x(this.el,"ionPopoverWillDismiss")}render(){const t=c(this);const{onLifecycle:e,popoverId:n,parentPopover:r,dismissOnSelect:a,side:s,arrow:d,htmlAttributes:p}=this;const h=l("desktop");const u=d&&!r;return o(i,Object.assign({"aria-modal":"true","no-router":true,tabindex:"-1"},p,{style:{zIndex:`${2e4+this.overlayIndex}`},id:n,class:Object.assign(Object.assign({},C(this.cssClass)),{[t]:true,"popover-translucent":this.translucent,"overlay-hidden":true,"popover-desktop":h,[`popover-side-${s}`]:true,"popover-nested":!!r}),onIonPopoverDidPresent:e,onIonPopoverWillPresent:e,onIonPopoverWillDismiss:e,onIonPopoverDidDismiss:e,onIonBackdropTap:this.onBackdropTap}),!r&&o("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),o("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:a?()=>this.dismiss():undefined},u&&o("div",{class:"popover-arrow",part:"arrow"}),o("div",{class:"popover-content",part:"content"},o("slot",null))))}get el(){return a(this)}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}};const Yt={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};let Et=0;St.style={ios:Wt,md:Lt};
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const Nt=(t,e,o)=>{if(typeof MutationObserver==="undefined"){return}const i=new MutationObserver((t=>{o(Ht(t,e))}));i.observe(t,{childList:true,subtree:true});return i};const Ht=(t,e)=>{let o;t.forEach((t=>{for(let i=0;i<t.addedNodes.length;i++){o=Bt(t.addedNodes[i],e)||o}}));return o};const Bt=(t,e)=>{if(t.nodeType!==1){return undefined}const o=t.tagName===e.toUpperCase()?[t]:Array.from(t.querySelectorAll(e));return o.find((e=>e.value===t.value))};const Xt=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:flex;position:relative;align-items:center;font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px;opacity:0.33}";const _t=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:flex;position:relative;align-items:center;font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px;transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:0.55}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){transform:translate3d(0,  -9px,  0)}:host-context(.item-has-focus) .select-icon{transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)) .select-icon{transform:translate3d(0,  -9px,  0) rotate(180deg)}:host-context(ion-item.ion-focused) .select-icon,:host-context(.item-has-focus) .select-icon{color:var(--highlight-color-focused);opacity:1}";let Vt=class{constructor(o){t(this,o);this.ionChange=e(this,"ionChange",7);this.ionCancel=e(this,"ionCancel",7);this.ionDismiss=e(this,"ionDismiss",7);this.ionFocus=e(this,"ionFocus",7);this.ionBlur=e(this,"ionBlur",7);this.ionStyle=e(this,"ionStyle",7);this.inputId=`ion-sel-${Gt++}`;this.didInit=false;this.isExpanded=false;this.disabled=false;this.cancelText="Cancel";this.okText="OK";this.name=this.inputId;this.multiple=false;this.interface="alert";this.interfaceOptions={};this.onClick=t=>{this.setFocus();this.open(t)};this.onFocus=()=>{this.ionFocus.emit()};this.onBlur=()=>{this.ionBlur.emit()}}styleChanged(){this.emitStyle()}valueChanged(){this.emitStyle();if(this.didInit){this.ionChange.emit({value:this.value})}}async connectedCallback(){this.updateOverlayOptions();this.emitStyle();this.mutationO=Nt(this.el,"ion-select-option",(async()=>{this.updateOverlayOptions()}))}disconnectedCallback(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}}componentDidLoad(){this.didInit=true}async open(t){if(this.disabled||this.isExpanded){return undefined}this.isExpanded=true;const e=this.overlay=await this.createOverlay(t);e.onDidDismiss().then((()=>{this.overlay=undefined;this.isExpanded=false;this.ionDismiss.emit();this.setFocus()}));await e.present();if(this.interface==="popover"){let t=this.childOpts.map((t=>t.value)).indexOf(this.value);t=t>-1?t:0;const o=e.querySelector(`.select-interface-option:nth-child(${t+1})`);if(o){S(o)}}return e}createOverlay(t){let e=this.interface;if(e==="action-sheet"&&this.multiple){console.warn(`Select interface cannot be "${e}" with a multi-value select. Using the "alert" interface instead.`);e="alert"}if(e==="popover"&&!t){console.warn(`Select interface cannot be a "${e}" without passing an event. Using the "alert" interface instead.`);e="alert"}if(e==="action-sheet"){return this.openActionSheet()}if(e==="popover"){return this.openPopover(t)}return this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t){return}const e=this.childOpts;const o=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(e,o);break;case"popover":const i=t.querySelector("ion-select-popover");if(i){i.options=this.createPopoverOptions(e,o)}break;case"alert":const n=this.multiple?"checkbox":"radio";t.inputs=this.createAlertInputs(e,n,o);break}}createActionSheetButtons(t,e){const o=t.map((t=>{const o=Rt(t);const i=Array.from(t.classList).filter((t=>t!=="hydrated")).join(" ");const n=`${Jt} ${i}`;return{role:Mt(e,o,this.compareWith)?"selected":"",text:t.textContent,cssClass:n,handler:()=>{this.value=o}}}));o.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}});return o}createAlertInputs(t,e,o){const i=t.map((t=>{const i=Rt(t);const n=Array.from(t.classList).filter((t=>t!=="hydrated")).join(" ");const r=`${Jt} ${n}`;return{type:e,cssClass:r,label:t.textContent||"",value:i,checked:Mt(o,i,this.compareWith),disabled:t.disabled}}));return i}createPopoverOptions(t,e){const o=t.map((t=>{const o=Rt(t);const i=Array.from(t.classList).filter((t=>t!=="hydrated")).join(" ");const n=`${Jt} ${i}`;return{text:t.textContent||"",cssClass:n,value:o,checked:Mt(e,o,this.compareWith),disabled:t.disabled,handler:t=>{this.value=t;if(!this.multiple){this.close()}}}}));return o}async openPopover(t){const e=this.interfaceOptions;const o=c(this);const i=o==="md"?false:true;const n=this.multiple;const r=this.value;let a=t;let s="auto";const l=this.el.closest("ion-item");if(l&&(l.classList.contains("item-label-floating")||l.classList.contains("item-label-stacked"))){a=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:l}});s="cover"}const d=Object.assign(Object.assign({mode:o,event:a,alignment:"center",size:s,showBackdrop:i},e),{component:"ion-select-popover",cssClass:["select-popover",e.cssClass],componentProps:{header:e.header,subHeader:e.subHeader,message:e.message,multiple:n,value:r,options:this.createPopoverOptions(this.childOpts,r)}});return y.create(d)}async openActionSheet(){const t=c(this);const e=this.interfaceOptions;const o=Object.assign(Object.assign({mode:t},e),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",e.cssClass]});return z.create(o)}async openAlert(){const t=this.getLabel();const e=t?t.textContent:null;const o=this.interfaceOptions;const i=this.multiple?"checkbox":"radio";const n=c(this);const r=Object.assign(Object.assign({mode:n},o),{header:o.header?o.header:e,inputs:this.createAlertInputs(this.childOpts,i,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:t=>{this.value=t}}],cssClass:["select-alert",o.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return j.create(r)}close(){if(!this.overlay){return Promise.resolve(false)}return this.overlay.dismiss()}getLabel(){return Y(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const t=this.selectedText;if(t!=null&&t!==""){return t}return Ut(this.childOpts,this.value,this.compareWith)}setFocus(){if(this.focusEl){this.focusEl.focus()}}emitStyle(){this.ionStyle.emit({interactive:true,"interactive-disabled":this.disabled,select:true,"select-disabled":this.disabled,"has-placeholder":this.placeholder!==undefined,"has-value":this.hasValue(),"has-focus":this.isExpanded})}render(){const{disabled:t,el:e,inputId:n,isExpanded:r,name:a,placeholder:s,value:l}=this;const d=c(this);const{labelText:p,labelId:h}=E(e,n);N(true,e,a,Ft(l),t);const u=this.getText();let g=false;let b=u;if(b===""&&s!==undefined){b=s;g=true}const f={"select-text":true,"select-placeholder":g};const m=g?"placeholder":"text";const v=p!==undefined?b!==""?`${b}, ${p}`:p:b;return o(i,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":v,class:{[d]:true,"in-item":O("ion-item",e),"select-disabled":t,"select-expanded":r}},o("div",{"aria-hidden":"true",class:f,part:m},b),o("div",{class:"select-icon",role:"presentation",part:"icon"},o("div",{class:"select-icon-inner"})),o("label",{id:h},v),o("button",{type:"button",disabled:t,id:n,"aria-labelledby":h,"aria-haspopup":"listbox","aria-expanded":`${r}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.focusEl=t}))}get el(){return a(this)}static get watchers(){return{disabled:["styleChanged"],placeholder:["styleChanged"],isExpanded:["styleChanged"],value:["valueChanged"]}}};const Mt=(t,e,o)=>{if(t===undefined){return false}if(Array.isArray(t)){return t.some((t=>Kt(t,e,o)))}else{return Kt(t,e,o)}};const Rt=t=>{const e=t.value;return e===undefined?t.textContent||"":e};const Ft=t=>{if(t==null){return undefined}if(Array.isArray(t)){return t.join(",")}return t.toString()};const Kt=(t,e,o)=>{if(typeof o==="function"){return o(t,e)}else if(typeof o==="string"){return t[o]===e[o]}else{return Array.isArray(e)?e.includes(t):t===e}};const Ut=(t,e,o)=>{if(e===undefined){return""}if(Array.isArray(e)){return e.map((e=>qt(t,e,o))).filter((t=>t!==null)).join(", ")}else{return qt(t,e,o)||""}};const qt=(t,e,o)=>{const i=t.find((t=>Kt(Rt(t),e,o)));return i?i.textContent:null};let Gt=0;const Jt="select-interface-option";Vt.style={ios:Xt,md:_t};const Qt=":host{display:none}";let Zt=class{constructor(e){t(this,e);this.inputId=`ion-selopt-${te++}`;this.disabled=false}render(){return o(i,{role:"option",id:this.inputId,class:c(this)})}get el(){return a(this)}};let te=0;Zt.style=Qt;const ee=".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";const oe=".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md{opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}";let ie=class{constructor(e){t(this,e);this.options=[]}onSelect(t){this.setChecked(t);this.callOptionHandler(t)}findOptionFromEvent(t){const{options:e}=this;return e.find((e=>e.value===t.target.value))}callOptionHandler(t){const e=this.findOptionFromEvent(t);const o=this.getValues(t);if(e===null||e===void 0?void 0:e.handler){w(e.handler,o)}}rbClick(t){this.callOptionHandler(t)}setChecked(t){const{multiple:e}=this;const o=this.findOptionFromEvent(t);if(e&&o){o.checked=t.detail.checked}}getValues(t){const{multiple:e,options:o}=this;if(e){return o.filter((t=>t.checked)).map((t=>t.value))}const i=this.findOptionFromEvent(t);return i?i.value:undefined}renderOptions(t){const{multiple:e}=this;switch(e){case true:return this.renderCheckboxOptions(t);default:return this.renderRadioOptions(t)}}renderCheckboxOptions(t){return t.map((t=>o("ion-item",{class:C(t.cssClass)},o("ion-checkbox",{slot:"start",value:t.value,disabled:t.disabled,checked:t.checked}),o("ion-label",null,t.text))))}renderRadioOptions(t){const e=t.filter((t=>t.checked)).map((t=>t.value))[0];return o("ion-radio-group",{value:e},t.map((t=>o("ion-item",{class:C(t.cssClass)},o("ion-label",null,t.text),o("ion-radio",{value:t.value,disabled:t.disabled,onClick:t=>this.rbClick(t)})))))}render(){const{header:t,message:e,options:n,subHeader:r}=this;const a=r!==undefined||e!==undefined;return o(i,{class:c(this)},o("ion-list",null,t!==undefined&&o("ion-list-header",null,t),a&&o("ion-item",null,o("ion-label",{class:"ion-text-wrap"},r!==undefined&&o("h3",null,r),e!==undefined&&o("p",null,e))),this.renderOptions(n)))}};ie.style={ios:ee,md:oe};export{X as fireenjin_select,q as ion_action_sheet,it as ion_alert,St as ion_popover,Vt as ion_select,Zt as ion_select_option,ie as ion_select_popover};
//# sourceMappingURL=p-c4a6d613.entry.js.map