igniteui-react-inputs
Version:
Ignite UI React input components.
7 lines • 743 kB
JavaScript
/*!
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("tslib"),require("react"),require("igniteui-react-core")):"function"==typeof define&&define.amd?define(["exports","tslib","react","igniteui-react-core"],e):e((t=t||self)["igniteui-react-inputs"]={},t.tslib,t.React,t.igniteuiReactCore)}(this,(function(t,e,i,n){"use strict";var r=function(t){return t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t}({}),o=n.markEnum("DayOfWeek","Sunday,0|Monday,1|Tuesday,2|Wednesday,3|Thursday,4|Friday,5|Saturday,6"),s=function(t){function i(){var e=t.call(this)||this;return e.b=0,e.c=0,e.d=0,e.a=0,e}return e.__extends(i,t),i.$t=n.markType(i,"DayInfo"),i}(n.Base),a=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.a=null,e.b=null,e.f=0,e.d=!1,e.c=!1,e.e=!1,e}return e.__extends(i,t),i.prototype.g=function(){var t=new n.StringBuilder(0);return t.l("{"),t.l("ActualHoverColor : "+this.a.serialize()+", "),t.l("ActualRippleColor : "+this.b.serialize()+", "),t.l("RippleDuration : "+this.f+", "),t.l("IsDisabled : "+this.d+", "),t.l("IsCentered : "+this.c+", "),t.l("IsHoverEnabled : "+this.e+", "),t.l("}"),t.toString()},i.$t=n.markType(i,"RippleVisualModelExport"),i}(n.Base),u=function(t){function i(){var e=t.call(this)||this;return e.b=null,e.g=null,e.c=null,e.f=new n.List$1(n.Delegate_$type,0),e.l=null,e.d=!0,e.k=null,e.h=null,e.j=null,e.i=null,e}return e.__extends(i,t),i.prototype.w=function(){},i.prototype.e=function(){return!0},i.prototype.t=function(t){var i,r;if(null==t){try{for(var o=e.__values(n.fromEnum(this.f)),s=o.next();!s.done;s=o.next()){(0,s.value)()}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}this.f.clear()}this.g=t,this.b.ai()},i.prototype.v=function(){var t,i;if(null==this.b.q){this.l=null;try{for(var r=e.__values(n.fromEnum(this.f)),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.f.clear()}else{var s=this.b.q,a=this.g.getWrapper(s);this.l=a,this.f.add(a.listen("click",n.runOn(this,this.p))),this.f.add(a.listen("mouseenter",n.runOn(this,this.q))),this.f.add(a.listen("mouseleave",n.runOn(this,this.r)))}},i.prototype.r=function(t){this.b.ag()},i.prototype.q=function(t){this.b.af()},i.prototype.p=function(t){if(null!=this.l){var e=this.g.rootWrapper.getOffset(),i=t.pageX-e.left,n=t.pageY-e.top;this.b.al(i,n,this.g.rootWrapper.outerWidth(),this.g.rootWrapper.outerHeight())}},i.prototype.aa=function(){this.b.j&&this.g.rootWrapper.setStyleProperty("background-color",this.b.as._fill)},i.prototype.x=function(){this.g.rootWrapper.setStyleProperty("background-color","transparent")},i.prototype.z=function(){this.g.rootWrapper.setStyleProperty("background-color",this.b.as._fill)},i.prototype.m=function(t,e,i){var r,o=this.g.createElement("span");return o.setStyleProperty("width",2*i+"px"),o.setStyleProperty("height",2*i+"px"),o.setStyleProperty("top",e+"px"),o.setStyleProperty("left",t+"px"),o.setStyleProperty("background-color",this.b.at._fill),o.setStyleProperty("position","absolute"),o.setStyleProperty("pointer-events","none"),o.setStyleProperty("border-radius",i+"px"),o.setStyleProperty("opacity",".5"),n.NativeUI.af(o,((r=new n.ScaleTransform).l=.3,r.m=.3,r)),this.g.append(o),o},i.prototype.y=function(t){t.remove()},i.prototype.n=function(){null==n.KeyFrameAnimationFactory.h&&(n.KeyFrameAnimationFactory.h=this.g)},i.prototype.a=function(t,e){return new n.AnimationKeyFrameEffect(0,t,0,null,e)},i.prototype.o=function(t){},i.prototype.s=function(){this.d=!0,this.v()},i.prototype.u=function(){var t,i;this.d=!1;try{for(var r=e.__values(n.fromEnum(this.f)),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.f.clear()},i.$t=n.markType(i,"RippleView"),i}(n.Base),h=function(t){function i(){var e=t.call(this)||this;e.c=null,e.j=!1,e.p=null,e.ar=null,e.aq=null,e.ao=i.au,e.m=new n.LinkedList$1(n.IKeyFrameAnimation_$type),e.ap=i.av,e.n=600,e.f=!1,e.e=!1,e.g=!1,e.propertyChanged=null;var r=new u;return r.b=e,e.c=r,e.c.w(),e}return e.__extends(i,t),i.prototype.destroy=function(){this.provideContainer(null)},i.prototype.ah=function(t,e,i){null!=this.propertyChanged&&this.propertyChanged(this,new n.PropertyChangedEventArgs(t)),this.aj(t,e,i)},i.prototype.aj=function(t,e,n){switch(t){case"RippleColor":this.at=null!=this.ax?this.ax:i.av;break;case"HoverColor":this.as=null!=this.aw?this.aw:i.au;break;case"EventSource":this.c.e()&&this.c.v();break;case"ActualRippleColor":this.an();break;case"ActualHoverColor":this.am()}},i.prototype.am=function(){this.i?this.c.x():this.c.aa()},i.prototype.an=function(){},i.prototype.af=function(){this.j=!0,this.i?this.c.x():this.k&&this.c.z()},i.prototype.ag=function(){this.j=!1,(this.k||this.i)&&this.c.x()},Object.defineProperty(i.prototype,"q",{get:function(){return this.p},set:function(t){var e=this.p;this.p=t,e!=this.p&&this.ah("EventSource",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ax",{get:function(){return this.ar},set:function(t){var e=this.ar;this.ar=t,e!=this.ar&&this.ah("RippleColor",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"aw",{get:function(){return this.aq},set:function(t){var e=this.aq;this.aq=t,e!=this.aq&&this.ah("HoverColor",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"as",{get:function(){return this.ao},set:function(t){var e=this.ao;this.ao=t,e!=this.ao&&this.ah("ActualHoverColor",e,t)},enumerable:!1,configurable:!0}),i.prototype.al=function(t,e,i,n){var r=this;if(!this.i){var o=Math.max(i,n)/2,s=t-o,a=e-o;this.h&&(s=0,a=0);var u=this.c.m(s,a,o),h=this.d(u);this.m.f(h);var l=this.m.d;h.play(),h.finished.f((function(t){h.commitStyles(),r.m.h(l),r.c.y(u)}))}},i.prototype.d=function(t){var e,i=this.a;return n.KeyFrameAnimationFactory.f.c(this.c.a(t,i).m(new n.AnimationKeyFrameProperty(1,.5),new n.AnimationKeyFrameProperty(14,(e=new n.ScaleTransform,e.l=.3,e.m=.3,e))).m(new n.AnimationKeyFrameProperty(1,0),new n.AnimationKeyFrameProperty(14,function(){var t=new n.ScaleTransform;return t.l=2,t.m=2,t}())))},Object.defineProperty(i.prototype,"at",{get:function(){return this.ap},set:function(t){var e=this.ap;this.ap=t,e!=this.ap&&this.ah("ActualRippleColor",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"o",{get:function(){return this.n},set:function(t){var e=this.n;this.n=t,e!=this.n&&this.ah("RippleDuration",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"i",{get:function(){return this.f},set:function(t){var e=this.f;this.f=t,e!=this.f&&this.ah("IsDisabled",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"h",{get:function(){return this.e},set:function(t){var e=this.e;this.e=t,e!=this.e&&this.ah("IsCentered",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"k",{get:function(){return this.g},set:function(t){var e=this.g;this.g=t,e!=this.g&&this.ah("IsHoverEnabled",e,t)},enumerable:!1,configurable:!0}),i.prototype.ai=function(){this.c.v()},Object.defineProperty(i.prototype,"a",{get:function(){var t=new n.AnimationKeyFrameEffectTiming;return t.g=this.o,t.b=0,t},enumerable:!1,configurable:!0}),i.prototype.onDetachedFromUI=function(){this.c.u()},i.prototype.onAttachedToUI=function(){this.c.s()},i.prototype.l=function(){return this.c.e()},i.prototype.r=function(){return this.b()},i.prototype.v=function(){return this.b().g()},i.prototype.b=function(){var t=new a;return t.a=n.AppearanceHelper.a(this.as),t.b=n.AppearanceHelper.a(this.at),t.f=this.o,t.d=this.i,t.c=this.h,t.e=this.k,t},i.prototype.provideContainer=function(t){this.c.t(t)},i.$t=n.markType(i,"XRipple",n.Base.$,[n.INotifyPropertyChanged_$type]),i.au=n.BrushUtil.j(40,0,0,0),i.av=n.BrushUtil.j(189,0,0,0),i}(n.Base),l=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.g=function(t,e){return null==i.c&&(i.c=["0 1px 3px 0 ","0 1px 5px 0 ","0 1px 8px 0 ","0 2px 4px -1px ","0 3px 5px -1px ","0 3px 5px -1px ","0 4px 5px -2px ","0 5px 5px -3px ","0 5px 6px -3px ","0 6px 6px -3px ","0 6px 7px -4px ","0 7px 8px -4px ","0 7px 8px -4px ","0 7px 9px -4px ","0 8px 9px -5px ","0 8px 10px -5px ","0 8px 11px -5px ","0 9px 11px -5px ","0 9px 12px -6px ","0 10px 13px -6px ","0 10px 13px -6px ","0 10px 14px -6px ","0 11px 14px -7px ","0 11px 15px -7px "]),--t<0?"":(t>i.c.length-1&&(t=i.c.length-1),i.c[t]+e)},i.f=function(t,e){return null==i.b&&(i.b=["0 1px 1px 0 ","0 2px 2px 0 ","0 3px 4px 0 ","0 4px 5px 0 ","0 5px 8px 0 ","0 6px 10px 0 ","0 7px 10px 1px ","0 8px 10px 1px ","0 9px 12px 1px ","0 10px 14px 1px ","0 11px 15px 1px ","0 12px 17px 2px ","0 13px 19px 2px ","0 14px 21px 2px ","0 15px 22px 2px ","0 16px 24px 2px ","0 17px 26px 2px ","0 18px 28px 2px ","0 19px 29px 2px ","0 20px 31px 3px ","0 21px 33px 3px ","0 22px 35px 3px ","0 23px 36px 3px ","0 24px 38px 3px "]),--t<0?"":(t>i.b.length-1&&(t=i.b.length-1),i.b[t]+e)},i.d=function(t,e){return null==i.a&&(i.a=["0 2px 1px -1px ","0 3px 1px -2px ","0 3px 3px -2px ","0 1px 10px 0 ","0 1px 14px 0 ","0 1px 18px 0 ","0 2px 16px 1px ","0 3px 14px 2px ","0 3px 16px 2px ","0 4px 18px 3px ","0 4px 20px 3px ","0 5px 22px 4px ","0 5px 24px 4px ","0 5px 26px 4px ","0 6px 28px 5px ","0 6px 30px 5px ","0 6px 32px 5px ","0 7px 34px 6px ","0 7px 36px 6px ","0 8px 38px 7px ","0 8px 40px 7px ","0 8px 42px 7px ","0 9px 44px 8px ","0 9px 46px 8px "]),--t<0?"":(t>i.a.length-1&&(t=i.a.length-1),i.a[t]+e)},i.e=function(t,e,n,r,o){return 2==o?"0 0 "+t+"px "+t/20+"rem "+e._fill:0==t?"":i.g(t,e._fill)+", "+i.f(t,n._fill)+", "+i.d(t,r._fill)},i.$t=n.markType(i,"ElevationHelper"),i.c=null,i.b=null,i.a=null,i}(n.Base),c=n.markEnum("ButtonDisplayStyle","Raised,0|Flat,1|Outlined,2|Fab,3|Icon,4"),p=function(t){function i(e){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=t.call(this)||this;switch(r.b=null,r.a=null,e=null==e?0:e){case 0:var o=i[0];r.b=o;break;case 1:o=i[0];var s=i[1],a=[o],u=a[0];r.b=u,r.a=s}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"c",{get:function(){return this.a},enumerable:!1,configurable:!0}),i.prototype.item=function(t){return this.b.item(t)},i.$t=n.markType(i,"Theme"),i}(n.Base),d=function(t){function i(e){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=t.call(this)||this;switch(r.b=0,r.h=null,e=null==e?0:e){case 0:break;case 1:var o=i[0],s=i[1];r.h=o,r.b=s}return r}return e.__extends(i,t),i.ah=function(t,e,i){return 1==t?i:e},i.r=function(t,e,i){return 1==t?i:e},i.m=function(t,e,i){return 1==t?i:e},i.ac=function(t,e,i){return 1==t?i:e},i.am=function(t,e,i){return 1==t?i:e},i.g=function(t,e,i){return 1==t?i:e},i.a=function(t){return new p(0,t)},i.ag=function(t,e,i){return e.ae(t,i)},i.af=function(t,e,i,n){return e.ad(t,i,n)},i.q=function(t,e,i){return e.o(t,i)},i.p=function(t,e,i,n){return e.n(t,i,n)},i.l=function(t,e,i){return e.j(t,i)},i.k=function(t,e,i,n){return e.i(t,i,n)},i.x=function(t,e,i){return e.v(t,i)},i.w=function(t,e,i,n){return e.u(t,i,n)},i.f=function(t,e,i){return e.d(t,i)},i.e=function(t,e,i,n){return e.c(t,i,n)},i.ab=function(t,e,i){return e.z(t,i)},i.aa=function(t,e,i,n){return e.y(t,i,n)},i.al=function(t,e,i){return e.aj(t,i)},i.ak=function(t,e,i,n){return e.ai(t,i,n)},i.prototype.t=function(t,e){return this.h.containsKey(t)?this.h.item(t).item(e):this.h.item(this.b).item(e)},i.prototype.s=function(t,e,i){return this.h.containsKey(t)?this.h.item(t).c.item(e).item(i):this.h.item(this.b).c.item(e).item(i)},i.prototype.ae=function(t,e){return this.t(t,e)},i.prototype.ad=function(t,e,i){return this.s(t,e,i)},i.prototype.o=function(t,e){return n.typeGetValue(this.t(t,e))},i.prototype.n=function(t,e,i){return n.typeGetValue(this.s(t,e,i))},i.prototype.j=function(t,e){return this.t(t,e)},i.prototype.i=function(t,e,i){return this.s(t,e,i)},i.prototype.v=function(t,e){return this.t(t,e)},i.prototype.u=function(t,e,i){return this.s(t,e,i)},i.prototype.d=function(t,e){return n.EnumUtil.getEnumValue(n.ElevationMode_$type,this.t(t,e))},i.prototype.c=function(t,e,i){return n.EnumUtil.getEnumValue(n.ElevationMode_$type,this.s(t,e,i))},i.prototype.z=function(t,e){return this.t(t,e)},i.prototype.y=function(t,e,i){return this.s(t,e,i)},i.prototype.aj=function(t,e){return this.t(t,e)},i.prototype.ai=function(t,e,i){return this.s(t,e,i)},i.$t=n.markType(i,"ThemeResolver"),i}(n.Base),f=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.$t=n.markType(i,"ButtonClickEventArgs",n.EventArgs.$),i}(n.EventArgs),b=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.s=0,e.q=0,e.p=0,e.t=0,e.h=0,e.i=0,e.c=null,e.g=null,e.d=null,e.a=null,e.u=0,e.e=null,e.ag=null,e.b=null,e.j=0,e.f=null,e.o=0,e.ad=null,e.ae=null,e.af=null,e.r=0,e.ab=null,e.ac=null,e.x=null,e.y=null,e.z=null,e.w=null,e.v=null,e.aa=null,e.m=!1,e.k=!1,e.n=!1,e.l=!1,e}return e.__extends(i,t),i.prototype.serialize=function(){var t=new n.StringBuilder(0);return t.l("{"),t.l("top : "+this.s+", "),t.l("left : "+this.q+", "),t.l("height : "+this.p+", "),t.l("width : "+this.t+", "),t.l("baseTheme : "+this.h+", "),t.l("actualDensity : "+this.i+", "),t.l("actualBorderColor : "+this.c.serialize()+", "),t.l("actualUmbraShadowColor : "+this.g.serialize()+", "),t.l("actualPenumbraShadowColor : "+this.d.serialize()+", "),t.l("actualAmbientShadowColor : "+this.a.serialize()+", "),t.l("actualRestingElevation : "+this.u+", "),null!=this.e&&t.l("actualRippleColor : "+this.e.serialize()+", "),t.l("actualBackgroundColor : "+this.b.serialize()+", "),t.l("actualElevationMode : "+this.j+", "),t.l("actualTextColor : "+this.f.serialize()+", "),t.l("actualBorderWidth : "+this.o+", "),n.stringIsNullOrEmpty(this.ad)||t.l('textStyleFontStyle : "'+this.ad+'", '),n.stringIsNullOrEmpty(this.ae)||t.l('textStyleFontVariant : "'+this.ae+'", '),n.stringIsNullOrEmpty(this.af)||t.l('textStyleFontWeight : "'+this.af+'", '),n.stringIsNullOrEmpty(this.ab)||t.l('textStyleFontFamily : "'+this.ab+'", '),n.stringIsNullOrEmpty(this.ac)||t.l('textStyleFontStretch : "'+this.ac+'", '),n.isNaN_(this.r)||t.l("textStyleFontSize : "+this.r+", "),t.l('display : "'+this.x+'", '),t.l('flexDirection : "'+this.y+'", '),t.l('flexGrow : "'+this.z+'", '),t.l('alignItems : "'+this.w+'", '),null!=this.v&&t.l('value : "'+this.v.toString()+'", '),t.l('name : "'+this.aa+'", '),t.l("isFocused : "+this.m+", "),t.l("actualDisableRipple : "+this.k+", "),t.l("isHover : "+this.n+", "),t.l("isDisabled : "+this.l+", "),t.l("}"),t.toString()},i.$t=n.markType(i,"ButtonVisualModelExport",n.Base.$,[n.IVisualData_$type]),i}(n.Base),y=function(t){function i(){var e=t.call(this)||this;return e.b=null,e.k=null,e.d=null,e.h=new n.List$1(n.Delegate_$type,0),e.e=!0,e.n=null,e.j=NaN,e.i=NaN,e.l=null,e.c=null,e.m=null,e.p=null,e.o=null,e}return e.__extends(i,t),i.prototype.aq=function(){},i.prototype.g=function(){return!0},Object.defineProperty(i.prototype,"q",{get:function(){return this.n},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"s",{get:function(){return this.m},enumerable:!1,configurable:!0}),i.prototype.ak=function(t){var i,r,o=this;if(null!=t){this.k=t,this.k.rootWrapper.setStyleProperty("display","flex"),this.k.rootWrapper.setStyleProperty("flex-direction","row"),this.k.rootWrapper.setStyleProperty("flex-wrap","no-wrap"),this.k.rootWrapper.setStyleProperty("align-items","center");var s=this.k.createElement("button");this.n=s,this.n.setStyleProperty("position","relative"),this.n.setStyleProperty("display","inline-flex"),this.n.setStyleProperty("align-items","center"),this.n.setStyleProperty("justify-content","center"),this.a0(),this.n.setStyleProperty("border","none"),this.n.setStyleProperty("cursor","pointer"),this.n.setStyleProperty("user-select","none"),this.n.setStyleProperty("outline-style","none"),this.n.setStyleProperty("-webkit-tap-highlight-color","transparent"),this.n.setStyleProperty("overflow","hidden"),this.n.setStyleProperty("white-space","no-wrap"),this.n.setStyleProperty("color","#000"),this.n.setStyleProperty("background",this.b.no._fill),n.NativeUI.o(this.n,this.b.kz),this.n.setAttribute("id",this.b.hy),this.ax(),this.h.add(s.listen("change",n.runOn(this,this.z))),this.h.add(s.listen("click",n.runOn(this,this.aa))),this.h.add(s.listen("focus",n.runOn(this,this.ab))),this.h.add(s.listen("blur",n.runOn(this,this.y))),this.h.add(this.k.rootWrapper.listen("mouseenter",n.runOn(this,this.v))),this.h.add(this.k.rootWrapper.listen("mouseleave",n.runOn(this,this.w))),this.h.add(this.k.rootWrapper.listen("mousedown",n.runOn(this,this.u))),this.h.add(this.k.rootWrapper.listen("mouseup",n.runOn(this,this.x))),this.h.add(this.k.rootWrapper.listen("focusin",n.runOn(this,this.ac))),this.h.add(this.k.rootWrapper.listen("focusout",n.runOn(this,this.ad))),this.k.append(s);var a=this.k.createElement("div"),u=this.k.getSubRenderer(a);a.setStyleProperty("position","absolute"),a.setStyleProperty("width","100%"),a.setStyleProperty("height","100%"),a.setStyleProperty("left","0px"),a.setStyleProperty("top","0px"),a.setStyleProperty("overflow","hidden");var l=new h;l.provideContainer(u),l.q=s;this.k.getExternal(l,this.k.rootWrapper,this.k.getExternal(this.b,null,null));l.h=!1,l.k=!0,this.c=l,this.n.append(a);var c=this.k.createElement("div");c.addClass("ig-button-content"),c.setStyleProperty("font-family","Verdana"),c.setStyleProperty("font-weight","400"),c.setStyleProperty("font-size",".875rem"),this.m=c,this.h.add(c.listen("click",n.runOn(this,this.t))),this.n.append(c),this.o=c,this.k.getPortal(c,"ChildContent",(function(t){var e=t.componentRef;o.p=e,o.o.setStyleProperty("flex-direction",o.b.g4),o.o.setStyleProperty("align-items",o.b.fb);var i=o.b.g4,n=null!=o.b.fj?o.b.fj:o.b.f0,r=o.b.fb;e.display=n,e.flexDirection=i,e.alignItems=r}),!0),this.b.kl()}else{try{for(var p=e.__values(n.fromEnum(this.h)),d=p.next();!d.done;d=p.next()){(0,d.value)()}}catch(t){i={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}this.h.clear()}},i.prototype.am=function(){this.c.i=this.b.as},i.prototype.a0=function(){var t="2.25rem",e="2.25rem",i="2.25rem",r="2.25rem",o="3.5rem",s="3.5rem",a="3.5rem",u="3.5rem",h="2.25rem",l=".9375rem",c=".5625rem 1rem";switch(this.b.q){case 2:c=".375rem .75rem",h="1.875rem",o="3rem",s="3rem",a="3rem",u="3rem",l=".6875rem";break;case 3:c=".1875rem 1rem",h="1.5rem",s="2.5rem",o="2.5rem",u="2.5rem",a="2.5rem",l=".4375rem";break;case 4:c="0.09375rem 0.5rem",h="0.5rem",s="1.5rem",o="1.5rem",u="1.5rem",a="1.5rem",l="0.21875rem",e="1rem",t="1rem",r="1rem",i="1rem"}n.isNaN_(this.b.bm)||n.isNaN_(this.b.bo)||n.isNaN_(this.b.bn)||n.isNaN_(this.b.bl)||(c=this.b.bo+"px "+this.b.bn+"px "+this.b.bl+"px "+this.b.bm+"px"),4==this.b.e?(this.n.setStyleProperty("min-width",t),this.n.setStyleProperty("min-height",e),this.n.setStyleProperty("padding","0px"),this.n.setStyleProperty("width",i),this.n.setStyleProperty("height",r)):3==this.b.e?(this.n.setStyleProperty("min-width",o),this.n.setStyleProperty("min-height",s),this.n.setStyleProperty("padding",l),this.n.setStyleProperty("width",a),this.n.setStyleProperty("height",u)):(this.n.setStyleProperty("width","auto"),this.n.setStyleProperty("height","auto"),this.n.setStyleProperty("min-width","5.5rem"),this.n.setStyleProperty("min-height",h),this.n.setStyleProperty("padding",c)),this.k.rootWrapper.setStyleProperty("height","auto"),!n.isNaN_(this.b.bj)&&this.b.bj>0?this.n.setStyleProperty("border-style","solid"):this.n.setStyleProperty("border-style","none"),n.isNaN_(this.j)||this.n.setStyleProperty("min-width",this.j.toString()+"px"),n.isNaN_(this.i)||this.n.setStyleProperty("min-height",this.i.toString()+"px"),this.b.ay&&(this.n.setStyleProperty("width","100%"),this.n.setStyleProperty("height","100%"),this.k.rootWrapper.setStyleProperty("height","100%"))},i.prototype.au=function(){switch(this.b.le){case 1:this.n.setStyleProperty("justify-content","center"),this.o.setStyleProperty("flex-grow","unset");break;case 3:this.n.setStyleProperty("justify-content","stretch"),this.o.setStyleProperty("flex-grow","1");break;case 0:this.n.setStyleProperty("justify-content","left"),this.o.setStyleProperty("flex-grow","unset");break;case 2:this.n.setStyleProperty("justify-content","right"),this.o.setStyleProperty("flex-grow","unset")}},i.prototype.aw=function(t){this.j=t},i.prototype.av=function(t){this.i=t},i.prototype.as=function(){this.n.setAttribute("disabled",this.b.disabled?"true":"false"),this.n.setProperty("disabled",this.b.disabled)},i.prototype.an=function(){if(null!=this.k){this.k.rootWrapper.setStyleProperty("display",this.b.f0);var t=this.p;if(null!=this.p){this.o.setStyleProperty("display",this.b.f0);var e=null!=this.b.fj?this.b.f0:this.b.fj;t.display=e}var i=this.k.getExternal(this.b,null,null);i&&i._onDisplayChanged&&i._onDisplayChanged()}},i.prototype.aj=function(){if(null!=this.k){var t=this.p;if(null!=this.p){var e=null!=this.b.fj?this.b.fj:this.b.f0;t.display=e}}},i.prototype.ah=function(){if(null!=this.k){this.k.rootWrapper.setStyleProperty("align-items",this.b.fb),this.n.setStyleProperty("align-items",this.b.fb);var t=this.p;if(null!=this.p){this.o.setStyleProperty("align-items",this.b.fb);var e=this.b.fb;t.alignItems=e}var i=this.k.getExternal(this.b,null,null);i&&i._onAlignItemsChanged&&i._onAlignItemsChanged()}},i.prototype.ao=function(){if(null!=this.k){this.k.rootWrapper.setStyleProperty("flex-direction",this.b.g4),this.n.setStyleProperty("flex-direction",this.b.g4);var t=this.k.getExternal(this.b,null,null),e=this.p;if(null!=this.p){this.o.setStyleProperty("flex-direction",this.b.g4);var i=this.b.g4;e.flexDirection=i}t&&t._onFlexDirectionChanged&&t._onFlexDirectionChanged()}},i.prototype.ap=function(){if(null!=this.k){this.k.rootWrapper.setStyleProperty("flex-grow",this.b.g6),this.n.setStyleProperty("flex-grow",this.b.g6);var t=this.k.getExternal(this.b,null,null);t&&t._onFlexGrowChanged&&t._onFlexGrowChanged()}},i.prototype.t=function(t){},i.prototype.ax=function(){if(this.g()){this.b.hy;this.n.setAttribute("name",this.b.h6),this.n.setProperty("value",this.b.ee),this.b.az&&this.n.setAttribute("tabindex",this.b.d7.toString()),this.n.setProperty("disabled",this.b.disabled),this.n.setAttribute("aria-label",this.b.fd),this.n.setStyleProperty("cursor",this.b.av?"unset":"pointer")}},i.prototype.ar=function(){if(this.g()){var t=this.b.hy;this.n.setAttribute("id",t)}},i.prototype.v=function(t){this.b.kh(),this.b.a5&&t.stopPropagation()},i.prototype.w=function(t){this.b.ki(),this.b.a5&&t.stopPropagation()},i.prototype.u=function(t){this.b.kg(),this.b.a5&&t.stopPropagation()},i.prototype.x=function(t){this.b.kj(),this.b.a5&&t.stopPropagation()},i.prototype.y=function(t){this.b.ka()},i.prototype.ab=function(t){this.b.kd()},i.prototype.aa=function(t){this.b.kb(),this.b.at||t.preventDefault(),this.b.a5&&t.stopPropagation()},i.prototype.ac=function(t){this.b.ke()},i.prototype.ad=function(t){this.b.kf(t.originalEvent.relatedTarget,t.originalEvent.target)},i.prototype.f=function(){return!1},i.prototype.z=function(t){},i.prototype.ag=function(){null==n.KeyFrameAnimationFactory.h&&(n.KeyFrameAnimationFactory.h=this.k)},i.prototype.ai=function(){this.e=!0,this.h.add(this.n.listen("change",n.runOn(this,this.z))),this.h.add(this.n.listen("click",n.runOn(this,this.aa))),this.h.add(this.n.listen("focus",n.runOn(this,this.ab))),this.h.add(this.n.listen("blur",n.runOn(this,this.y))),this.h.add(this.m.listen("click",n.runOn(this,this.t))),this.h.add(this.n.listen("mouseenter",n.runOn(this,this.v))),this.h.add(this.n.listen("mouseleave",n.runOn(this,this.w))),this.h.add(this.n.listen("mousedown",n.runOn(this,this.u))),this.h.add(this.n.listen("mouseup",n.runOn(this,this.x))),this.h.add(this.n.listen("focusin",n.runOn(this,this.ac))),this.h.add(this.n.listen("focusout",n.runOn(this,this.ad)))},i.prototype.al=function(){var t,i;this.e=!1;try{for(var r=e.__values(n.fromEnum(this.h)),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.h.clear()},i.prototype.at=function(){var t=this.b;t.externalObject&&t.externalObject.refreshDefaults&&t.externalObject.refreshDefaults()},i.prototype.ay=function(t,e){this.c.ax=t,this.c.aw=e},i.prototype.az=function(t,e){var i=l.e(t,this.b.n0,this.b.nx,this.b.nn,e);this.n.setStyleProperty("box-shadow",i)},i.prototype.a1=function(t){null!=t&&this.m.setStyleProperty("font",t.fontString)},i.prototype.ae=function(t){this.m.append(t)},i.prototype.af=function(){this.m.removeChildren()},i.prototype.r=function(){return this.m.getChildCount()>0?this.m.getChildAt(0):null},i.prototype.a=function(){var t=this.k.rootWrapper.getNativeElement().getBoundingClientRect(),e=t.top,i=t.left,n=new Array(2);return n[0]=e,n[1]=i,n},i.$t=n.markType(i,"ButtonView"),i}(n.Base),g=function(t){function i(){var e=t.call(this)||this;e._view=null,e.ed=null,e.po=i.k.ae(i.m,"UmbraShadowColor"),e.pc=i.k.ae(i.m,"PenumbraShadowColor"),e.n3=i.k.ae(i.m,"AmbientShadowColor"),e.v=i.k.d(i.m,"ElevationMode"),e.pf=i.k.ad(i.m,n.enumGetBox(c,0),"DisabledBackgroundColor"),e.pg=i.k.ad(i.m,n.enumGetBox(c,0),"DisabledBorderColor"),e.ph=i.k.ad(i.m,n.enumGetBox(c,0),"DisabledTextColor"),e.de=i.k.n(i.m,n.enumGetBox(c,0),"DisabledElevation"),e.dh=i.k.n(i.m,n.enumGetBox(c,0),"RestingElevation"),e.dg=i.k.n(i.m,n.enumGetBox(c,0),"HoverElevation"),e.df=i.k.n(i.m,n.enumGetBox(c,0),"FocusElevation"),e.pe=i.k.ad(i.m,n.enumGetBox(c,0),"BorderColor"),e.pm=i.k.ad(i.m,n.enumGetBox(c,0),"RippleColor"),e.k6=i.k.y(i.m,n.enumGetBox(c,0),"CornerRadius"),e.bt=i.k.i(i.m,n.enumGetBox(c,0),"BorderWidth"),e.pd=i.k.ad(i.m,n.enumGetBox(c,0),"BackgroundColor"),e.pn=i.k.ad(i.m,n.enumGetBox(c,0),"TextColor"),e.pl=i.k.ad(i.m,n.enumGetBox(c,0),"HoverTextColor"),e.pk=i.k.ad(i.m,n.enumGetBox(c,0),"HoverBackgroundColor"),e.pi=i.k.ad(i.m,n.enumGetBox(c,0),"FocusBackgroundColor"),e.pj=i.k.ad(i.m,n.enumGetBox(c,0),"FocusTextColor"),e.oh=i.k.ad(i.m,n.enumGetBox(c,1),"DisabledBackgroundColor"),e.oi=i.k.ad(i.m,n.enumGetBox(c,1),"DisabledBorderColor"),e.oj=i.k.ad(i.m,n.enumGetBox(c,1),"DisabledTextColor"),e.c2=i.k.n(i.m,n.enumGetBox(c,1),"DisabledElevation"),e.c5=i.k.n(i.m,n.enumGetBox(c,1),"RestingElevation"),e.c4=i.k.n(i.m,n.enumGetBox(c,1),"HoverElevation"),e.c3=i.k.n(i.m,n.enumGetBox(c,1),"FocusElevation"),e.og=i.k.ad(i.m,n.enumGetBox(c,1),"BorderColor"),e.oo=i.k.ad(i.m,n.enumGetBox(c,1),"RippleColor"),e.k3=i.k.y(i.m,n.enumGetBox(c,1),"CornerRadius"),e.bq=i.k.i(i.m,n.enumGetBox(c,1),"BorderWidth"),e.of=i.k.ad(i.m,n.enumGetBox(c,1),"BackgroundColor"),e.op=i.k.ad(i.m,n.enumGetBox(c,1),"TextColor"),e.on=i.k.ad(i.m,n.enumGetBox(c,1),"HoverTextColor"),e.om=i.k.ad(i.m,n.enumGetBox(c,1),"HoverBackgroundColor"),e.ok=i.k.ad(i.m,n.enumGetBox(c,1),"FocusBackgroundColor"),e.ol=i.k.ad(i.m,n.enumGetBox(c,1),"FocusTextColor"),e.o3=i.k.ad(i.m,n.enumGetBox(c,2),"DisabledBackgroundColor"),e.o4=i.k.ad(i.m,n.enumGetBox(c,2),"DisabledBorderColor"),e.o5=i.k.ad(i.m,n.enumGetBox(c,2),"DisabledTextColor"),e.da=i.k.n(i.m,n.enumGetBox(c,2),"DisabledElevation"),e.dd=i.k.n(i.m,n.enumGetBox(c,2),"RestingElevation"),e.dc=i.k.n(i.m,n.enumGetBox(c,2),"HoverElevation"),e.db=i.k.n(i.m,n.enumGetBox(c,2),"FocusElevation"),e.o2=i.k.ad(i.m,n.enumGetBox(c,2),"BorderColor"),e.pa=i.k.ad(i.m,n.enumGetBox(c,2),"RippleColor"),e.k5=i.k.y(i.m,n.enumGetBox(c,2),"CornerRadius"),e.bs=i.k.i(i.m,n.enumGetBox(c,2),"BorderWidth"),e.o1=i.k.ad(i.m,n.enumGetBox(c,2),"BackgroundColor"),e.pb=i.k.ad(i.m,n.enumGetBox(c,2),"TextColor"),e.o9=i.k.ad(i.m,n.enumGetBox(c,2),"HoverTextColor"),e.o8=i.k.ad(i.m,n.enumGetBox(c,2),"HoverBackgroundColor"),e.o6=i.k.ad(i.m,n.enumGetBox(c,2),"FocusBackgroundColor"),e.o7=i.k.ad(i.m,n.enumGetBox(c,2),"FocusTextColor"),e.os=i.k.ad(i.m,n.enumGetBox(c,4),"DisabledBackgroundColor"),e.ot=i.k.ad(i.m,n.enumGetBox(c,4),"DisabledBorderColor"),e.ou=i.k.ad(i.m,n.enumGetBox(c,4),"DisabledTextColor"),e.c6=i.k.n(i.m,n.enumGetBox(c,4),"DisabledElevation"),e.c9=i.k.n(i.m,n.enumGetBox(c,4),"RestingElevation"),e.c8=i.k.n(i.m,n.enumGetBox(c,4),"HoverElevation"),e.c7=i.k.n(i.m,n.enumGetBox(c,4),"FocusElevation"),e.or=i.k.ad(i.m,n.enumGetBox(c,4),"BorderColor"),e.oz=i.k.ad(i.m,n.enumGetBox(c,4),"RippleColor"),e.k4=i.k.y(i.m,n.enumGetBox(c,4),"CornerRadius"),e.br=i.k.i(i.m,n.enumGetBox(c,4),"BorderWidth"),e.oq=i.k.ad(i.m,n.enumGetBox(c,4),"BackgroundColor"),e.o0=i.k.ad(i.m,n.enumGetBox(c,4),"TextColor"),e.oy=i.k.ad(i.m,n.enumGetBox(c,4),"HoverTextColor"),e.ox=i.k.ad(i.m,n.enumGetBox(c,4),"HoverBackgroundColor"),e.ov=i.k.ad(i.m,n.enumGetBox(c,4),"FocusBackgroundColor"),e.ow=i.k.ad(i.m,n.enumGetBox(c,4),"FocusTextColor"),e.n6=i.k.ad(i.m,n.enumGetBox(c,3),"DisabledBackgroundColor"),e.n7=i.k.ad(i.m,n.enumGetBox(c,3),"DisabledBorderColor"),e.n8=i.k.ad(i.m,n.enumGetBox(c,3),"DisabledTextColor"),e.cy=i.k.n(i.m,n.enumGetBox(c,3),"DisabledElevation"),e.c1=i.k.n(i.m,n.enumGetBox(c,3),"RestingElevation"),e.c0=i.k.n(i.m,n.enumGetBox(c,3),"HoverElevation"),e.cz=i.k.n(i.m,n.enumGetBox(c,3),"FocusElevation"),e.n5=i.k.ad(i.m,n.enumGetBox(c,3),"BorderColor"),e.od=i.k.ad(i.m,n.enumGetBox(c,3),"RippleColor"),e.k2=i.k.y(i.m,n.enumGetBox(c,3),"CornerRadius"),e.bp=i.k.i(i.m,n.enumGetBox(c,3),"BorderWidth"),e.n4=i.k.ad(i.m,n.enumGetBox(c,3),"BackgroundColor"),e.oe=i.k.ad(i.m,n.enumGetBox(c,3),"TextColor"),e.oc=i.k.ad(i.m,n.enumGetBox(c,3),"HoverTextColor"),e.ob=i.k.ad(i.m,n.enumGetBox(c,3),"HoverBackgroundColor"),e.n9=i.k.ad(i.m,n.enumGetBox(c,3),"FocusBackgroundColor"),e.oa=i.k.ad(i.m,n.enumGetBox(c,3),"FocusTextColor"),e.bg=NaN,e.bf=NaN,e.d=0,e.p=0,e.l=0,e.o=1,e.lh=d.af(i.m,i.k,n.enumGetBox(c,0),"BorderColor"),e.ls=d.ag(i.m,i.k,"UmbraShadowColor"),e.lp=d.ag(i.m,i.k,"PenumbraShadowColor"),e.lf=d.ag(i.m,i.k,"AmbientShadowColor"),e.b4=d.p(i.m,i.k,n.enumGetBox(c,0),"RestingElevation"),e.b2=d.p(i.m,i.k,n.enumGetBox(c,0),"FocusElevation"),e.b3=d.p(i.m,i.k,n.enumGetBox(c,0),"HoverElevation"),e.lq=d.af(i.m,i.k,n.enumGetBox(c,0),"RippleColor"),e.ks=d.aa(i.m,i.k,n.enumGetBox(c,0),"CornerRadius"),e.lg=d.af(i.m,i.k,n.enumGetBox(c,0),"BackgroundColor"),e.li=d.af(i.m,i.k,n.enumGetBox(c,0),"DisabledBackgroundColor"),e.lj=d.af(i.m,i.k,n.enumGetBox(c,0),"DisabledBorderColor"),e.lk=d.af(i.m,i.k,n.enumGetBox(c,0),"DisabledTextColor"),e.b1=d.p(i.m,i.k,n.enumGetBox(c,0),"DisabledElevation"),e.s=d.f(i.m,i.k,"ElevationMode"),e.lr=d.af(i.m,i.k,n.enumGetBox(c,0),"TextColor"),e.lo=d.af(i.m,i.k,n.enumGetBox(c,0),"HoverTextColor"),e.ll=d.af(i.m,i.k,n.enumGetBox(c,0),"FocusBackgroundColor"),e.lm=d.af(i.m,i.k,n.enumGetBox(c,0),"FocusTextColor"),e.ln=d.af(i.m,i.k,n.enumGetBox(c,0),"HoverBackgroundColor"),e.a6=d.k(i.m,i.k,n.enumGetBox(c,0),"BorderWidth"),e.na=null,e.nc=null,e.nd=null,e.ne=null,e.co=-1,e.nh=null,e.nb=null,e.cr=-1,e.cq=-1,e.cp=-1,e.bi=NaN,e.ky=new n.CornerRadius(1,NaN,NaN,NaN,NaN),e.nj=null,e.l8=null,e.ma=null,e.mb=null,e.mc=null,e.ca=-1,e.mf=null,e.l9=null,e.cd=-1,e.cc=-1,e.cb=-1,e.mh=null,e.mi=null,e.mg=null,e.md=null,e.me=null,e.bd=NaN,e.kv=new n.CornerRadius(1,NaN,NaN,NaN,NaN),e.lt=null,e.lv=null,e.lw=null,e.lx=null,e.b5=-1,e.t=0,e.ml=null,e.lu=null,e.cs=-1,e.cf=-1,e.ce=-1,e.z=null,e.nm=null,e.mn=null,e.nl=null,e.nk=null,e.ni=null,e.nf=null,e.ng=null,e.mj=null,e.mk=null,e.a7=NaN,e.kt=new n.CornerRadius(1,NaN,NaN,NaN,NaN),e.mz=null,e.m1=null,e.m2=null,e.m3=null,e.ck=-1,e.m6=null,e.m0=null,e.cn=-1,e.cm=-1,e.cl=-1,e.bh=NaN,e.kx=new n.CornerRadius(1,NaN,NaN,NaN,NaN),e.m8=null,e.m9=null,e.m7=null,e.m4=null,e.m5=null,e.ly=null,e.l0=null,e.l1=null,e.l2=null,e.b6=-1,e.mm=null,e.lz=null,e.b9=-1,e.b8=-1,e.b7=-1,e.bc=NaN,e.ku=new n.CornerRadius(1,NaN,NaN,NaN,NaN),e.l6=null,e.l7=null,e.l5=null,e.l3=null,e.l4=null,e.mo=null,e.mq=null,e.mr=null,e.ms=null,e.cg=-1,e.mv=null,e.mp=null,e.cj=-1,e.ci=-1,e.ch=-1,e.be=NaN,e.kw=new n.CornerRadius(1,NaN,NaN,NaN,NaN),e.mx=null,e.my=null,e.mw=null,e.mt=null,e.mu=null,e.em="ig-native-button-"+i.d9++,e.el="ig-button-"+i.d8++,e.ei="inline-block",e.eh=null,e.ej="inline-block",e.ek=null,e.ef="center",e.ea=null,e.en=null,e.ct=0,e.am=!1,e.eg=null,e.al=!1,e.ao=!1,e.ap=!0,e.aj=!1,e.af=!1,e.ah=!1,e.aq=!1,e.an=!1,e.ak=!1,e.ai=!1,e.a9=NaN,e.bb=NaN,e.ba=NaN,e.a8=NaN,e.ld=1,e.rh=1,e.ag=!0,e.ar=!1,e.propertyChanged=null,e.clicked=null,e.mouseEnter=null,e.mouseLeave=null,e.mouseDown=null,e.mouseUp=null,e.gotFocus=null,e.lostFocus=null;var r=new y;return r.b=e,e.view=r,e.view.aq(),e}var r;return e.__extends(i,t),Object.defineProperty(i.prototype,"view",{get:function(){return this._view},set:function(t){this._view=t},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){this.provideContainer(null)},i.prototype.kk=function(t,e,i){null!=this.propertyChanged&&this.propertyChanged(this,new n.PropertyChangedEventArgs(t)),this.km(t,e,i)},i.prototype.km=function(t,e,i){switch(t){case"CornerRadius":case"BorderColor":case"RestingElevation":case"HoverElevation":case"FocusElevation":case"RippleColor":case"BorderWidth":case"BackgroundColor":case"DisabledBackgroundColor":case"DisabledBorderColor":case"DisabledTextColor":case"DisabledElevation":case"HoverBackgroundColor":case"FocusTextColor":case"TextColor":case"HoverTextColor":case"FocusBackgroundColor":case"RaisedBorderColor":case"RaisedRestingElevation":case"RaisedFocusElevation":case"RaisedHoverElevation":case"RaisedRippleColor":case"RaisedBorderWidth":case"RaisedBackgroundColor":case"RaisedDisabledBackgroundColor":case"RaisedDisabledBorderColor":case"RaisedDisabledTextColor":case"RaisedDisabledElevation":case"RaisedHoverBackgroundColor":case"RaisedCornerRadius":case"RaisedFocusBackgroundColor":case"RaisedFocusTextColor":case"RaisedTextColor":case"RaisedHoverTextColor":case"FlatBorderColor":case"FlatRestingElevation":case"FlatFocusElevation":case"FlatHoverElevation":case"FlatRippleColor":case"FlatBorderWidth":case"FlatBackgroundColor":case"FlatDisabledBackgroundColor":case"FlatDisabledBorderColor":case"FlatDisabledTextColor":case"FlatDisabledElevation":case"FlatHoverBackgroundColor":case"FlatCornerRadius":case"FlatFocusBackgroundColor":case"FlatFocusTextColor":case"FlatTextColor":case"FlatHoverTextColor":case"OutlinedRippleColor":case"OutlinedRestingElevation":case"OutlinedFocusElevation":case"OutlinedHoverElevation":case"OutlinedBorderColor":case"OutlinedBorderWidth":case"OutlinedBackgroundColor":case"OutlinedDisabledBackgroundColor":case"OutlinedDisabledBorderColor":case"OutlinedDisabledTextColor":case"OutlinedDisabledElevation":case"OutlinedHoverBackgroundColor":case"OutlinedCornerRadius":case"OutlinedFocusBackgroundColor":case"OutlinedFocusTextColor":case"OutlinedTextColor":case"OutlinedHoverTextColor":case"FabBorderColor":case"FabRippleColor":case"FabRestingElevation":case"FabFocusElevation":case"FabHoverElevation":case"FabBorderWidth":case"FabBackgroundColor":case"FabDisabledBackgroundColor":case"FabDisabledBorderColor":case"FabDisabledTextColor":case"FabDisabledElevation":case"FabHoverBackgroundColor":case"FabCornerRadius":case"FabFocusBackgroundColor":case"FabFocusTextColor":case"FabTextColor":case"FabHoverTextColor":case"IconRestingElevation":case"IconFocusElevation":case"IconHoverElevation":case"IconBorderColor":case"IconRippleColor":case"IconBorderWidth":case"IconBackgroundColor":case"IconDisabledBackgroundColor":case"IconDisabledBorderColor":case"IconDisabledTextColor":case"IconDisabledElevation":case"IconHoverBackgroundColor":case"IconCornerRadius":case"IconFocusBackgroundColor":case"IconFocusTextColor":case"IconTextColor":case"IconHoverTextColor":case"ElevationMode":this.kq();break;case"BaseTheme":this.kr(0==this.n?2:this.n),this.kq();break;case"IsDisabled":this.as=this.disabled||this.aw,this.kq(),this.view.as(),this.kp();break;case"DisableRipple":this.as=this.disabled||this.aw,this.kq();break;case"TextStyle":case"DisableHover":this.kp();break;case"ActualDisableRipple":this.view.am();break;case"ActualBackgroundColor":case"ActualDisabledBackgroundColor":case"ActualDisabledBorderColor":case"ActualDisabledTextColor":case"ActualDisabledElevation":case"ActualHoverBackgroundColor":case"ActualBorderColor":case"ActualFocusTextColor":case"ActualHoverTextColor":case"ActualElevationMode":this.kp();break;case"Density":this.q=0==this.r?1:this.r;break;case"ActualDensity":case"ActualBorderWidth":case"ActualCornerRadius":4==this.e&&this.ko(),this.view.a0(),this.kp();break;case"DisplayType":this.view.a0(),this.kq(),this.kp();break;case"ContentPaddingLeft":case"ContentPaddingTop":case"ContentPaddingRight":case"ContentPaddingBottom":case"FillAvailableSpace":this.view.a0();break;case"HorizontalContentAlignment":case"VerticalContentAlignment":this.view.au();break;case"InputId":this.view.ar();break;case"Display":this.view.an();break;case"ChildContentDisplay":this.view.aj();break;case"FlexDirection":this.view.ao();break;case"FlexGrow":this.view.ap();break;case"AlignItems":this.view.ah();break;case"TabIndex":case"DisablePointer":this.view.ax();break;case"MinWidth":this.view.aw(this.by),this.view.a0();break;case"MinHeight":this.view.av(this.bx),this.view.a0()}},i.prototype.k0=function(t,e){return new n.CornerRadius(1,n.isNaN_(t.d)?e.d:t.d,n.isNaN_(t.e)?e.e:t.e,n.isNaN_(t.c)?e.c:t.c,n.isNaN_(t.b)?e.b:t.b)},i.prototype.kq=function(){switch(this.u=0!=this.w?this.w:this.v,this.n0=this.po,this.nx=this.pc,this.nn=this.n3,this.e){case 0:this.nq=null!=this.pp?this.pp:null!=this.q6?this.q6:this.pf,this.nr=null!=this.pq?this.pq:null!=this.q7?this.q7:this.pg,this.ns=null!=this.pr?this.pr:null!=this.q8?this.q8:this.ph,this.cu=this.di>=0?this.di:this.d2>=0?this.d2:this.de,this.cx=this.d6>=0?this.d6:this.d5>=0?this.d5:this.dh,this.cw=this.dt>=0?this.dt:this.d4>=0?this.d4:this.dg,this.cv=this.ds>=0?this.ds:this.d3>=0?this.d3:this.df,this.np=null!=this.n2?this.n2:null!=this.q5?this.q5:this.pe,this.no=null!=this.n1?this.n1:null!=this.q4?this.q4:this.pd,this.nv=null!=this.qg?this.qg:null!=this.rb?this.rb:this.pk,this.kz=this.k0(this.k1,this.k0(this.lc,this.k6)),this.bj=n.isNaN_(this.bk)?n.isNaN_(this.b0)?this.bt:this.b0:this.bk,this.ny=null!=this.rf?this.rf:null!=this.rd?this.rd:this.pm,this.nt=null!=this.qe?this.qe:null!=this.q9?this.q9:this.pi,this.nu=null!=this.qf?this.qf:null!=this.ra?this.ra:this.pj,this.nz=null!=this.rg?this.rg:null!=this.re?this.re:this.pn,this.nw=null!=this.qh?this.qh:null!=this.rc?this.rc:this.pl;break;case 2:this.nq=null!=this.pp?this.pp:null!=this.qv?this.qv:this.o3,this.nr=null!=this.pq?this.pq:null!=this.qw?this.qw:this.o4,this.ns=null!=this.pr?this.pr:null!=this.qx?this.qx:this.o5,this.cu=this.di>=0?this.di:this.dy>=0?this.dy:this.da,this.cx=this.d6>=0?this.d6:this.d1>=0?this.d1:this.dd,this.cw=this.dt>=0?this.dt:this.d0>=0?this.d0:this.dc,this.cv=this.ds>=0?this.ds:this.dz>=0?this.dz:this.db,this.np=null!=this.n2?this.n2:null!=this.qu?this.qu:this.o2,this.no=null!=this.qg?this.qg:null!=this.n1?this.n1:null!=this.qt?this.qt:this.o1,this.nv=null!=this.q0?this.q0:this.o8,this.kz=this.k0(this.k1,this.k0(this.lb,this.k5)),this.bj=n.isNaN_(this.bk)?n.isNaN_(this.bz)?this.bs:this.bz:this.bk,this.ny=null!=this.rf?this.rf:null!=this.q2?this.q2:this.pa,this.nt=null!=this.qe?this.qe:null!=this.qy?this.qy:this.o6,this.nu=null!=this.qf?this.qf:null!=this.qz?this.qz:this.o7,this.nz=null!=this.rg?this.rg:null!=this.q3?this.q3:this.pb,this.nw=null!=this.qh?this.qh:null!=this.q1?this.q1:this.o9;break;case 1:this.nq=null!=this.pp?this.pp:null!=this.p5?this.p5:this.oh,this.nr=null!=this.pq?this.pq:null!=this.p6?this.p6:this.oi,this.ns=null!=this.pr?this.pr:null!=this.p7?this.p7:this.oj,this.cu=this.di>=0?this.di:this.dn>=0?this.dn:this.c2,this.cx=this.d6>=0?this.d6:this.dr>=0?this.dr:this.c5,this.cw=this.dt>=0?this.dt:this.dq>=0?this.dq:this.c4,this.cv=this.ds>=0?this.ds:this.dp>=0?this.dp:this.c3,this.np=null!=this.n2?this.n2:null!=this.p4?this.p4:this.og,this.no=null!=this.n1?this.n1:null!=this.p3?this.p3:this.of,this.nv=null!=this.qg?this.qg:null!=this.qa?this.qa:this.om,this.kz=this.k0(this.k1,this.k0(this.k8,this.k3)),this.bj=n.isNaN_(this.bk)?n.isNaN_(this.bv)?this.bq:this.bv:this.bk,this.ny=null!=this.rf?this.rf:null!=this.qc?this.qc:this.oo,this.nt=null!=this.qe?this.qe:null!=this.p8?this.p8:this.ok,this.nu=null!=this.qf?this.qf:null!=this.p9?this.p9:this.ol,this.nz=null!=this.rg?this.rg:null!=this.qd?this.qd:this.op,this.nw=null!=this.qh?this.qh:null!=this.qb?this.qb:this.on;break;case 4:this.nq=null!=this.pp?this.pp:null!=this.qk?this.qk:this.os,this.nr=null!=this.pq?this.pq:null!=this.ql?this.ql:this.ot,this.ns=null!=this.pr?this.pr:null!=this.qm?this.qm:this.ou,this.cu=this.di>=0?this.di:this.du>=0?this.du:this.c6,this.cx=this.d6>=0?this.d6:this.dx>=0?this.dx:this.c9,this.cw=this.dt>=0?this.dt:this.dw>=0?this.dw:this.c8,this.cv=this.ds>=0?this.ds:this.dv>=0?this.dv:this.c7,this.np=null!=this.n2?this.n2:null!=this.qj?this.qj:this.or,this.no=null!=this.n1?this.n1:null!=this.qi?this.qi:this.oq,this.nv=null!=this.qg?this.qg:null!=this.qp?this.qp:this.ox,this.ko(),this.bj=n.isNaN_(this.bk)?n.isNaN_(this.bw)?this.br:this.bw:this.bk,this.ny=null!=this.rf?this.rf:null!=this.qr?this.qr:this.oz,this.nt=null!=this.qe?this.qe:null!=this.qn?this.qn:this.ov,this.nu=null!=this.qf?this.qf:null!=this.qo?this.qo:this.ow,this.nz=null!=this.rg?this.rg:null!=this.qs?this.qs:this.o0,this.nw=null!=this.qh?this.qh:null!=this.qq?this.qq:this.oy;break;case 3:this.nq=null!=this.pp?this.pp:null!=this.pu?this.pu:this.n6,this.nr=null!=this.pq?this.pq:null!=this.pv?this.pv:this.n7,this.ns=null!=this.pr?this.pr:null!=this.pw?this.pw:this.n8,this.cu=this.di>=0?this.di:this.dj>=0?this.dj:this.cy,this.cx=this.d6>=0?this.d6:this.dm>=0?this.dm:this.c1,this.cw=this.dt>=0?this.dt:this.dl>=0?this.dl:this.c0,this.cv=this.ds>=0?this.ds:this.dk>=0?this.dk:this.cz,this.np=null!=this.n2?this.n2:null!=this.pt?this.pt:this.n5,this.no=null!=this.n1?this.n1:null!=this.ps?this.ps:this.n4,this.nv=null!=this.qg?this.qg:null!=this.pz?this.pz:this.ob,this.kz=this.k0(this.k1,this.k0(this.k7,this.k2)),this.bj=n.isNaN_(this.bk)?n.isNaN_(this.bu)?this.bp:this.bu:this.bk,this.ny=null!=this.rf?this.rf:null!=this.p1?this.p1:this.pm,this.nt=null!=this.qe?this.qe:null!=this.px?this.px:this.n9,this.nu=null!=this.qf?this.qf:null!=this.py?this.py:this.oa,this.nz=null!=this.rg?this.rg:null!=this.p2?this.p2:this.oe,this.nw=null!=this.qh?this.qh:null!=this.p0?this.p0:this.oc}},i.prototype.ko=function(){this.kz=this.k0(this.k1,this.k0(this.la,this.k9(this.k4)))},i.prototype.k9=function(t){switch(this.q){case 1:case 2:case 3:return t;case 4:return new n.CornerRadius(0,16)}return t},i.prototype.kb=function(){this.disabled||null!=this.clicked&&this.clicked(this,new f)},i.prototype.kg=function(){this.disabled||null!=this.mouseDown&&this.mouseDown(this,new n.MouseEventArgs)},i.prototype.kj=function(){this.disabled||null!=this.mouseUp&&this.mouseUp(this,new n.MouseEventArgs)},i.prototype.ka=function(){this.focused=!1,this.kp()},i.prototype.kd=function(){this.focused=!0,this.kp()},i.prototype.ki=function(){this.a3=!1,this.kp(),null!=this.mouseLeave&&this.mouseLeave(this,new n.MouseEventArgs)},i.prototype.kh=function(){this.a3=!0,this.kp(),null!=this.mouseEnter&&this.mouseEnter(this,new n.MouseEventArgs)},i.prototype.ke=function(){null!=this.gotFocus&&this.gotFocus(this,new n.FocusEventArgs)},i.prototype.kf=function(t,e){var i;null!=this.lostFocus&&this.lostFocus(this,((i=new n.FocusEventArgs).b=t,i.a=e,i))},i.prototype.kp=function(){var t=this.view.q;null!=t&&(n.NativeUI.o(t,this.kz),n.NativeUI.n(t,this.np),n.isNaN_(this.bj)||n.NativeUI.p(t,new n.Thickness(0,this.bj)),this.disabled?this.view.az(this.cu,this.u):this.focused&&this.a2?this.view.az(this.cv,this.u):this.a3&&!this.au?this.view.az(this.cw,this.u):this.view.az(this.cx,this.u),this.disabled?n.NativeUI.m(t,this.nq):this.focused&&this.a2?n.NativeUI.m(t,this.nt):this.a3&&!this.au?n.NativeUI.m(t,this.nv):n.NativeUI.m(t,this.no),this.view.ay(this.ny,n.BrushUtil.j(0,0,0,0)),null!=this.aa&&this.view.a1(this.aa),this.disabled?(n.NativeUI.q(this.view.s,this.ns),n.NativeUI.r(this.view.s,this.ns)):this.focused&&this.a2?(n.NativeUI.q(this.view.s,this.nu),n.NativeUI.r(this.view.s,this.nu)):this.a3&&!this.au?(n.NativeUI.q(this.view.s,this.nw),n.NativeUI.r(this.view.s,this.nw)):(n.NativeUI.q(this.view.s,this.nz),n.NativeUI.r(this.view.s,this.nz)))},i.prototype.kr=function(t){this.po=i.k.ae(t,"UmbraShadowColor"),this.pc=i.k.ae(t,"PenumbraShadowColor"),this.n3=i.k.ae(t,"AmbientShadowColor"),this.v=i.k.d(t,"ElevationMode"),this.pf=i.k.ad(t,n.enumGetBox(c,0),"DisabledBackgroundColor"),this.pg=i.k.ad(t,n.enumGetBox(c,0),"DisabledBorderColor"),this.ph=i.k.ad(t,n.enumGetBox(c,0),"DisabledTextColor"),this.de=i.k.n(t,n.enumGetBox(c,0),"DisabledElevation"),this.dh=i.k.n(t,n.enumGetBox(c,0),"RestingElevation"),this.dg=i.k.n(t,n.enumGetBox(c,0),"HoverElevation"),this.df=i.k.n(t,n.enumGetBox(c,0),"FocusElevation"),this.pe=i.k.ad(t,n.enumGetBox(c,0),"BorderColor"),this.pm=i.k.ad(t,n.enumGetBox(c,0),"RippleColor"),this.k6=i.k.y(t,n.enumGetBox(c,0),"CornerRadius"),this.bt=i.k.i(t,n.enumGetBox(c,0),"BorderWidth"),this.pd=i.k.ad(t,n.enumGetBox(c,0),"BackgroundColor"),this.pn=i.k.ad(t,n.enumGetBox(c,0),"TextColor"),this.pl=i.k.ad(t,n.enumGetBox(c,0),"HoverTextColor"),this.pk=i.k.ad(t,n.enumGetBox(c,0),"HoverBackgroundColor"),this.pi=i.k.ad(t,n.enumGetBox(c,0),"FocusBackgroundColor"),this.pj=i.k.ad(t,n.enumGetBox(c,0),"FocusTextColor"),this.oh=i.k.ad(t,n.enumGetBox(c,1),"DisabledBackgroundColor"),this.oi=i.k.ad(t,n.enumGetBox(c,1),"DisabledBorderColor"),this.oj=i.k.ad(t,n.enumGetBox(c,1),"DisabledTextColor"),this.c2=i.k.n(t,n.enumGetBox(c,1),"DisabledElevation"),this.c5=i.k.n(t,n.enumGetBox(c,1),"RestingElevation"),this.c4=i.k.n(t,n.enumGetBox(c,1),"HoverElevation"),this.c3=i.k.n(t,n.enumGetBox(c,1),"FocusElevation"),this.og=i.k.ad(t,n.enumGetBox(c,1),"BorderColor"),this.oo=i.k.ad(t,n.enumGetBox(c,1),"RippleColor"),this.k3=i.k.y(t,n.enumGetBox(c,1),"CornerRadius"),this.bq=i.k.i(t,n.enumGetBox(c,1),"BorderWidth"),this.of=i.k.ad(t,n.enumGetBox(c,1),"BackgroundColor"),this.op=i.k.ad(t,n.enumGetBox(c,1),"TextColor"),this.on=i.k.ad(t,n.enumGetBox(c,1),"HoverTextColor"),this.om=i.k.ad(t,n.enumGetBox(c,1),"HoverBackgroundColor"),this.ok=i.k.ad(t,n.enumGetBox(c,1),"FocusBackgroundColor"),this.ol=i.k.ad(t,n.enumGetBox(c,1),"FocusTextColor"),this.o3=i.k.ad(t,n.enumGetBox(c,2),"DisabledBackgroundColor"),this.o4=i.k.ad(t,n.enumGetBox(c,2),"DisabledBorderColor"),this.o5=i.k.ad(t,n.enumGetBox(c,2),"DisabledTextColor"),this.da=i.k.n(t,n.enumGetBox(c,2),"DisabledElevation"),this.dd=i.k.n(t,n.enumGetBox(c,2),"RestingElevation"),this.dc=i.k.n(t,n.enumGetBox(c,2),"HoverElevation"),this.db=i.k.n(t,n.enumGetBox(c,2),"FocusElevation"),this.o2=i.k.ad(t,n.enumGetBox(c,2),"BorderColor"),this.pa=i.k.ad(t,n.enumGetBox(c,2),"RippleColor"),this.k5=i.k.y(t,n.enumGetBox(c,2),"CornerRadius"),this.bs=i.k.i(t,n.enumGetBox(c,2),"BorderWidth"),this.o1=i.k.ad(t,n.enumGetBox(c,2),"BackgroundColor"),this.pb=i.k.ad(t,n.enumGetBox(c,2),"TextColor"),this.o9=i.k.ad(t,n.enumGetBox(c,2),"HoverTextColor"),this.o8=i.k.ad(t,n.enumGetBox(c,2),"HoverBackgroundColor"),this.o6=i.k.ad(t,n.enumGetBox(c,2),"FocusBackgroundColor"),this.o7=i.k.ad(t,n.enumGetBox(c,2),"FocusTextColor"),this.os=i.k.ad(t,n.enumGetBox(c,4),"DisabledBackgroundColor"),this.ot=i.k.ad(t,n.enumGetBox(c,4),"DisabledBorderColor"),this.ou=i.k.ad(t,n.enumGetBox(c,4),"DisabledTextColor"),this.c6=i.k.n(t,n.enumGetBox(c,4),"DisabledElevation"),this.c9=i.k.n(t,n.enumGetBox(c,4),"RestingElevation"),this.c8=i.k.n(t,n.enumGetBox(c,4),"HoverElevation"),this.c7=i.k.n(t,n.enumGetBox(c,4),"FocusElevation"),this.or=i.k.ad(t,n.enumGetBox(c,4),"BorderColor"),this.oz=i.k.ad(t,n.enumGetBox(c,4),"RippleColor"),this.k4=i.k.y(t,n.enumGetBox(c,4),"CornerRadius"),this.br=i.k.i(t,n.enumGetBox(c,4),"BorderWidth"),this.oq=i.k.ad(t,n.enumGetBox(c,4),"BackgroundColor"),this.o0=i.k.ad(t,n.enumGetBox(c,4),"TextColor"),this.oy=i.k.ad(t,n.enumGetBox(c,4),"HoverTextColor"),this.ox=i.k.ad(t,n.enumGetBox(c,4),"HoverBackgroundColor"),this.ov=i.k.ad(t,n.enumGetBox(c,4),"FocusBackgroundColor"),this.ow=i.k.ad(t,n.enumGetBox(c,4),"FocusTextColor"),this.n6=i.k.ad(t,n.enumGetBox(c,3),"DisabledBackgroundColor"),this.n7=i.k.ad(t,n.enumGetBox(c,3),"DisabledBorderColor"),this.n8=i.k.ad(t,n.enumGetBox(c,3),"DisabledTextColor"),this.cy=i.k.n(t,n.enumGetBox(c,3),"DisabledElevation"),this.c1=i.k.n(t,n.enumGetBox(c,3),"RestingElevation"),this.c0=i.k.n(t,n.enumGetBox(c,3),"HoverElevation"),this.cz=i.k.n(t,n.enumGetBox(c,3),"FocusElevation"),this.n5=i.k.ad(t,n.enumGetBox(c,3),"BorderColor"),this.od=i.k.ad(t,n.enumGetBox(c,3),"RippleColor"),this.k2=i.k.y(t,n.enumGetBox(c,3),"CornerRadius"),this.bp=i.k.i(t,n.enumGetBox(c,3),"BorderWidth"),this.n4=i.k.ad(t,n.enumGetBox(c,3),"BackgroundColor"),this.oe=i.k.ad(t,n.enumGetBox(c,3),"TextColor"),this.oc=i.k.ad(t,n.enumGetBox(c,3),"HoverTextColor"),this.ob=i.k.ad(t,n.enumGetBox(c,3),"HoverBackgroundColor"),this.n9=i.k.ad(t,n.enumGetBox(c,3),"FocusBackgroundColor"),this.oa=i.k.ad(t,n.enumGetBox(c,3),"FocusTextColor")},Object.defineProperty(i.prototype,"by",{get:function(){return this.bg},set:function(t){var e=this.bg;this.bg=t,e!=this.bg&&this.kk("MinWidth",e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bx",{get:function(){return this.bf},set:function(t){var e=this.bf;this.bf=t,e!=this.bf&&this.kk("MinHeight",e,