/*! For license information please see 6521.c9509936caf31de7.js.LICENSE.txt */
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6521],{6521:(t,e,o)=>{o.r(e),o.d(e,{ion_input_password_toggle:()=>a});var n=o(96317),i=o(99144),s=o(80333),r=o(23992),l=o(74346);const a=class{constructor(t){(0,n.r)(this,t),this.togglePasswordVisibility=()=>{const{inputElRef:t}=this;t&&(t.type="text"===t.type?"password":"text")},this.color=void 0,this.showIcon=void 0,this.hideIcon=void 0,this.type="password"}onTypeChange(t){if("text"!==t&&"password"!==t)return(0,i.p)(`ion-input-password-toggle only supports inputs of type "text" or "password". Input of type "${t}" is not compatible.`,this.el),void 0}connectedCallback(){const{el:t}=this,e=this.inputElRef=t.closest("ion-input");if(!e)return(0,i.p)("No ancestor ion-input found for ion-input-password-toggle. This component must be slotted inside of an ion-input.",t),void 0;this.type=e.type}disconnectedCallback(){this.inputElRef=null}render(){var t,e;const{color:o,type:i}=this,a=(0,l.b)(this),c=null!==(t=this.showIcon)&&void 0!==t?t:r.x,p=null!==(e=this.hideIcon)&&void 0!==e?e:r.y,u="text"===i;return(0,n.h)(n.e,{key:"d9811e25bfeb2aa197352bb9be852e9e420739d5",class:(0,s.c)(o,{[a]:!0})},(0,n.h)("ion-button",{key:"1eaea1442b248fb2b8d61538b27274e647a07804",mode:a,color:o,fill:"clear",shape:"round","aria-checked":u?"true":"false","aria-label":"show password",role:"switch",type:"button",onPointerDown:t=>{t.preventDefault()},onClick:this.togglePasswordVisibility},(0,n.h)("ion-icon",{key:"9c88de8f4631d9bde222ce2edf6950d639e04773",slot:"icon-only","aria-hidden":"true",icon:u?p:c})))}get el(){return(0,n.f)(this)}static get watchers(){return{type:["onTypeChange"]}}};a.style={ios:"",md:""}},80333:(t,e,o)=>{o.d(e,{c:()=>createColorClasses,g:()=>getClassMap,h:()=>hostContext,o:()=>s});var n=o(10467);const hostContext=(t,e)=>null!==e.closest(t),createColorClasses=(t,e)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},e):e,getClassMap=t=>{const e={};return(t=>{if(void 0!==t)return(Array.isArray(t)?t:t.split(" ")).filter((t=>null!=t)).map((t=>t.trim())).filter((t=>""!==t));return[]})(t).forEach((t=>e[t]=!0)),e},i=/^[a-z][a-z0-9+\-.]*:/,s=function(){var t=(0,n.A)((function*(t,e,o,n){if(null!=t&&"#"!==t[0]&&!i.test(t)){const i=document.querySelector("ion-router");if(i)return null!=e&&e.preventDefault(),i.push(t,o,n)}return!1}));return function openURL(e,o,n,i){return t.apply(this,arguments)}}()}}]);