/*! * (C) Ionic http://ionicframework.com - MIT License */ System.register(["./p-74a9cafe.system.js","./p-ff4b7e40.system.js","./p-4609d030.system.js","./p-1e955a45.system.js","./p-d2544865.system.js"],(function(t){"use strict";var n,e,i,o,s,r,a,u,c;return{setters:[function(t){n=t.r;e=t.h;i=t.f;o=t.i},function(t){s=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 e=this;n(this,t);this.togglePasswordVisibility=function(){var t=e.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"){s('ion-input-password-toggle only supports inputs of type "text" or "password". Input of type "'.concat(t,'" is not compatible.'),this.el);return}};t.prototype.connectedCallback=function(){var t=this.el;var n=this.inputElRef=t.closest("ion-input");if(!n){s("No ancestor ion-input found for ion-input-password-toggle. This component must be slotted inside of an ion-input.",t);return}this.type=n.type};t.prototype.disconnectedCallback=function(){this.inputElRef=null};t.prototype.render=function(){var t;var n,o;var s=this,f=s.color,d=s.type;var l=c(this);var p=(n=this.showIcon)!==null&&n!==void 0?n:a;var h=(o=this.hideIcon)!==null&&o!==void 0?o:u;var v=d==="text";return e(i,{key:"1cb075999e41c2fde3a3d6cafe6f37c9b5429299",class:r(f,(t={},t[l]=true,t))},e("ion-button",{key:"cfaaec221f530ecc475690b6508c2333e32ff609",mode:l,color:f,fill:"clear",shape:"round","aria-checked":v?"true":"false","aria-label":"show password",role:"switch",type:"button",onPointerDown:function(t){t.preventDefault()},onClick:this.togglePasswordVisibility},e("ion-icon",{key:"dc0fc5fe8df4df4c145e29b30e589f159aab9cd9",slot:"icon-only","aria-hidden":"true",icon:v?h:p})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(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}}}}));