/*! * (C) Ionic http://ionicframework.com - MIT License */ System.register(["./p-f11a9436.system.js","./p-00023f5a.system.js","./p-4609d030.system.js","./p-1e955a45.system.js","./p-1974d5b2.system.js"],(function(t){"use strict";var e,n,i,s,o,r,a,u,c;return{setters:[function(t){e=t.r;n=t.h;i=t.e;s=t.f},function(t){o=t.p},function(t){r=t.c},function(t){a=t.x;u=t.y},function(t){c=t.b}],execute:function(){var f="";var d=f;var l="";var p=l;var h=t("ion_input_password_toggle",function(){function t(t){var n=this;e(this,t);this.togglePasswordVisibility=function(){var t=n.inputElRef;if(!t){return}t.type=t.type==="text"?"password":"text"};this.color=undefined;this.showIcon=undefined;this.hideIcon=undefined;this.type="password"}t.prototype.onTypeChange=function(t){if(t!=="text"&&t!=="password"){o('[ion-input-password-toggle] - Only inputs of type "text" or "password" are supported. Input of type "'.concat(t,'" is not compatible.'),this.el);return}};t.prototype.connectedCallback=function(){var t=this.el;var e=this.inputElRef=t.closest("ion-input");if(!e){o("[ion-input-password-toggle] - No ancestor ion-input found. This component must be slotted inside of an ion-input.",t);return}this.type=e.type};t.prototype.disconnectedCallback=function(){this.inputElRef=null};t.prototype.render=function(){var t;var e,s;var o=this,f=o.color,d=o.type;var l=c(this);var p=(e=this.showIcon)!==null&&e!==void 0?e:a;var h=(s=this.hideIcon)!==null&&s!==void 0?s:u;var b=d==="text";return n(i,{key:"1a28e078c83e74c72d8bb8189ece93ec2e3fa3d0",class:r(f,(t={},t[l]=true,t))},n("ion-button",{key:"039d1bab764093bb6fe4a34299b0872abda087fd",mode:l,color:f,fill:"clear",shape:"round","aria-checked":b?"true":"false","aria-label":"show password",role:"switch",type:"button",onPointerDown:function(t){t.preventDefault()},onClick:this.togglePasswordVisibility},n("ion-icon",{key:"26477ee97b808c3d79944bf5e33d4e05f1ae0b3f",slot:"icon-only","aria-hidden":"true",icon:b?h:p})))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{type:["onTypeChange"]}},enumerable:false,configurable:true});return t}());h.style={ios:d,md:p}}}}));