igniteui-webcomponents-inputs
Version:
Ignite UI Web Components inputs components.
7 lines • 785 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("igniteui-webcomponents-core")):"function"==typeof define&&define.amd?define(["exports","tslib","igniteui-webcomponents-core"],e):e((t=t||self)["igniteui-webcomponents-inputs"]={},t.tslib,t.igniteuiWebcomponentsCore)}(this,(function(t,e,i){"use strict";var n=function(t){function n(){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(n,t),n.prototype.g=function(){var t=new i.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()},n.$t=i.markType(n,"RippleVisualModelExport"),n}(i.Base),r=function(t){function n(){var e=t.call(this)||this;return e.b=null,e.g=null,e.c=null,e.f=new i.List$1(i.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(n,t),n.prototype.w=function(){},n.prototype.e=function(){return!0},n.prototype.t=function(t){var n,r;if(null==t){try{for(var o=e.__values(i.fromEnum(this.f)),s=o.next();!s.done;s=o.next()){(0,s.value)()}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.f.clear()}this.g=t,this.b.ai()},n.prototype.v=function(){var t,n;if(null==this.b.q){this.l=null;try{for(var r=e.__values(i.fromEnum(this.f)),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.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",i.runOn(this,this.p))),this.f.add(a.listen("mouseenter",i.runOn(this,this.q))),this.f.add(a.listen("mouseleave",i.runOn(this,this.r)))}},n.prototype.r=function(t){this.b.ag()},n.prototype.q=function(t){this.b.af()},n.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())}},n.prototype.aa=function(){this.b.j&&this.g.rootWrapper.setStyleProperty("background-color",this.b.as._fill)},n.prototype.x=function(){this.g.rootWrapper.setStyleProperty("background-color","transparent")},n.prototype.z=function(){this.g.rootWrapper.setStyleProperty("background-color",this.b.as._fill)},n.prototype.m=function(t,e,n){var r,o=this.g.createElement("span");return o.setStyleProperty("width",2*n+"px"),o.setStyleProperty("height",2*n+"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",n+"px"),o.setStyleProperty("opacity",".5"),i.NativeUI.af(o,((r=new i.ScaleTransform).l=.3,r.m=.3,r)),this.g.append(o),o},n.prototype.y=function(t){t.remove()},n.prototype.n=function(){null==i.KeyFrameAnimationFactory.h&&(i.KeyFrameAnimationFactory.h=this.g)},n.prototype.a=function(t,e){return new i.AnimationKeyFrameEffect(0,t,0,null,e)},n.prototype.o=function(t){},n.prototype.s=function(){this.d=!0,this.v()},n.prototype.u=function(){var t,n;this.d=!1;try{for(var r=e.__values(i.fromEnum(this.f)),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.f.clear()},n.$t=i.markType(n,"RippleView"),n}(i.Base),o=function(t){function o(){var e=t.call(this)||this;e.c=null,e.j=!1,e.p=null,e.ar=null,e.aq=null,e.ao=o.au,e.m=new i.LinkedList$1(i.IKeyFrameAnimation_$type),e.ap=o.av,e.n=600,e.f=!1,e.e=!1,e.g=!1,e.propertyChanged=null;var n=new r;return n.b=e,e.c=n,e.c.w(),e}return e.__extends(o,t),o.prototype.destroy=function(){this.provideContainer(null)},o.prototype.ah=function(t,e,n){null!=this.propertyChanged&&this.propertyChanged(this,new i.PropertyChangedEventArgs(t)),this.aj(t,e,n)},o.prototype.aj=function(t,e,i){switch(t){case"RippleColor":this.at=null!=this.ax?this.ax:o.av;break;case"HoverColor":this.as=null!=this.aw?this.aw:o.au;break;case"EventSource":this.c.e()&&this.c.v();break;case"ActualRippleColor":this.an();break;case"ActualHoverColor":this.am()}},o.prototype.am=function(){this.i?this.c.x():this.c.aa()},o.prototype.an=function(){},o.prototype.af=function(){this.j=!0,this.i?this.c.x():this.k&&this.c.z()},o.prototype.ag=function(){this.j=!1,(this.k||this.i)&&this.c.x()},Object.defineProperty(o.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(o.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(o.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(o.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}),o.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 h=this.c.m(s,a,o),u=this.d(h);this.m.f(u);var l=this.m.d;u.play(),u.finished.f((function(t){u.commitStyles(),r.m.h(l),r.c.y(h)}))}},o.prototype.d=function(t){var e,n=this.a;return i.KeyFrameAnimationFactory.f.c(this.c.a(t,n).m(new i.AnimationKeyFrameProperty(1,.5),new i.AnimationKeyFrameProperty(14,(e=new i.ScaleTransform,e.l=.3,e.m=.3,e))).m(new i.AnimationKeyFrameProperty(1,0),new i.AnimationKeyFrameProperty(14,function(){var t=new i.ScaleTransform;return t.l=2,t.m=2,t}())))},Object.defineProperty(o.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(o.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(o.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(o.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(o.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}),o.prototype.ai=function(){this.c.v()},Object.defineProperty(o.prototype,"a",{get:function(){var t=new i.AnimationKeyFrameEffectTiming;return t.g=this.o,t.b=0,t},enumerable:!1,configurable:!0}),o.prototype.onDetachedFromUI=function(){this.c.u()},o.prototype.onAttachedToUI=function(){this.c.s()},o.prototype.l=function(){return this.c.e()},o.prototype.r=function(){return this.b()},o.prototype.v=function(){return this.b().g()},o.prototype.b=function(){var t=new n;return t.a=i.AppearanceHelper.a(this.as),t.b=i.AppearanceHelper.a(this.at),t.f=this.o,t.d=this.i,t.c=this.h,t.e=this.k,t},o.prototype.provideContainer=function(t){this.c.t(t)},o.$t=i.markType(o,"XRipple",i.Base.$,[i.INotifyPropertyChanged_$type]),o.au=i.BrushUtil.j(40,0,0,0),o.av=i.BrushUtil.j(189,0,0,0),o}(i.Base),s=function(t){function n(){var e=t.call(this)||this;e._disconnected=!1,e._settingAttributes=!1,e._attached=!1,e._queuedSetAttributes=[],e._updatingFromAttribute=!1,e.__p=null,e._hasUserValues=new Set,e._stylingContainer=null,e._stylingParent=null,e._inStyling=!1,e._styling&&i.NamePatcher.ensureStylablePatched(Object.getPrototypeOf(e)),e._renderer=new i.WebComponentRenderer(e,document,!0,{}),e._implementation=e.createImplementation(),e._implementation.externalObject=e,e._container=e._renderer.createElement("div"),e._renderer.updateRoot(e._container),e._container.setStyleProperty("display","inline-block"),e._container,null!=e._container.getNativeElement()&&e._container.getNativeElement(),e._wrapper=e._renderer;var n=e.i;return e._ripple=n,n.provideContainer(e._renderer),e}return e.__extends(n,t),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this.style.height=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this.style.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return this._top},set:function(t){this._top=t,this.style.top=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return this._left},set:function(t){this._left=t,this.style.left=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return this._position},set:function(t){this._position=t,this.style.position=t},enumerable:!1,configurable:!0}),n.prototype.updateStyle=function(){this._styling(this,this)},n.prototype.destroy=function(){this._ripple.destroy(),this._wrapper.destroy()},n.prototype.createImplementation=function(){return new o},n.prototype.disconnectedCallback=function(){this._disconnected=!0,this.i&&this.i.onDetachedFromUI()},n.prototype.connectedCallback=function(){if(this._disconnected)return this._disconnected=!1,void(this.i&&this.i.onAttachedToUI());this.classList.add("ig-x-ripple"),this.classList.add("igc-x-ripple"),this.appendChild(this._renderer.rootWrapper.getNativeElement()),this._attached=!0,this.style.display="inline-block",this._flushQueuedAttributes(),this._styling(this,this),this.afterContentInit()},n.prototype.afterContentInit=function(){},Object.defineProperty(n.prototype,"i",{get:function(){return this._implementation},enumerable:!1,configurable:!0}),n._createFromInternal=function(t){if(!t)return null;if(!t.$type)return null;var e="Igc"+t.$type.name+"Component";return i.TypeRegistrar.isRegistered(e)?i.TypeRegistrar.create(e):null},n.prototype._enqueueSetAttribute=function(t,e){this._queuedSetAttributes.push({attrName:t,attrValue:e})},n.prototype._flushQueuedAttributes=function(){this._settingAttributes=!0;for(var t=0;t<this._queuedSetAttributes.length;t++)this.setAttribute(this._queuedSetAttributes[t].attrName,this._queuedSetAttributes[t].attrValue);this._settingAttributes=!1,this._queuedSetAttributes.length=0},n.prototype._a=function(t,e){this._updatingFromAttribute||(e&&(e=e.toString()),this._settingAttributes=!0,t=i.toSpinal(t),this._attached?this.setAttribute(t,e):this._enqueueSetAttribute(t,e),this._settingAttributes=!1)},Object.defineProperty(n,"observedAttributes",{get:function(){if(null==n._observedAttributesIgcXRippleComponent){for(var t=i.getAllPropertyNames(n),e=0;e<t.length;e++)t[e]=i.toSpinal(t[e]);n._observedAttributesIgcXRippleComponent=t}return n._observedAttributesIgcXRippleComponent},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t,e,n){if(!this._settingAttributes){var r=i.fromSpinal(t);this._updatingFromAttribute=!0,this[r]=n,this._updatingFromAttribute=!1}},n.register=function(){n._isElementRegistered||(n._isElementRegistered=!0,i.RegisterElementHelper.registerElement(n.htmlTagName,n))},Object.defineProperty(n.prototype,"eventSource",{get:function(){return this.i.q},set:function(t){this.i.q=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rippleColor",{get:function(){return i.brushToString(this.i.ax)},set:function(t){this.i.ax=i.stringToBrush(t),this._a("rippleColor",i.brushToString(this.i.ax))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hoverColor",{get:function(){return i.brushToString(this.i.aw)},set:function(t){this.i.aw=i.stringToBrush(t),this._a("hoverColor",i.brushToString(this.i.aw))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"actualHoverColor",{get:function(){return i.brushToString(this.i.as)},set:function(t){this.i.as=i.stringToBrush(t),this._a("actualHoverColor",i.brushToString(this.i.as))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"actualRippleColor",{get:function(){return i.brushToString(this.i.at)},set:function(t){this.i.at=i.stringToBrush(t),this._a("actualRippleColor",i.brushToString(this.i.at))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rippleDuration",{get:function(){return this.i.o},set:function(t){this.i.o=+t,this._a("rippleDuration",this.i.o)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isDisabled",{get:function(){return this.i.i},set:function(t){this.i.i=i.ensureBool(t),this._a("isDisabled",this.i.i)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCentered",{get:function(){return this.i.h},set:function(t){this.i.h=i.ensureBool(t),this._a("isCentered",this.i.h)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isHoverEnabled",{get:function(){return this.i.k},set:function(t){this.i.k=i.ensureBool(t),this._a("isHoverEnabled",this.i.k)},enumerable:!1,configurable:!0}),n.prototype.findByName=function(t){return this.findEphemera&&t&&0==t.indexOf("@@e:")?this.findEphemera(t):null},Object.defineProperty(n.prototype,"hasUserValues",{get:function(){return this._hasUserValues},enumerable:!1,configurable:!0}),n.prototype.__m=function(t){this._inStyling||this._hasUserValues.add(t)},n.prototype._styling=function(t,e,n){if(!this._inStyling){this._inStyling=!0,this._stylingContainer=t,this._stylingParent=e;var r,o=this.i.$type.name;0===o.indexOf("Xam")&&(o=o.substring(3)),r=i.toSpinal("XRippleComponent");var s=[],a=i.toSpinal(o);s.push(a+"-");for(var h=this.i.$type.baseType;h&&"Object"!=h.name&&"Base"!=h.name&&"Control"!=h.name&&"DependencyObject"!=h.Name&&"FrameworkElement"!=h.Name;){0===(o=h.name).indexOf("Xam")&&(o=o.substring(3));var u=i.toSpinal(o);s.push(u+"-"),h=h.baseType}if(n){var l=n.i.$type.name;0===l.indexOf("Xam")&&(l=l.substring(3));var c=i.toSpinal(l);s.push(c+"-"+r+"-"),s.push(c+"-"+a+"-")}i.initializePropertiesFromCss(t,this,r+"-",this.hasUserValues,!1,s),this._otherStyling&&this._otherStyling(t,e,n),this._inStyling=!1}},n.prototype.onDetachedFromUI=function(){this.i.onDetachedFromUI()},n.prototype.onAttachedToUI=function(){this.i.onAttachedToUI()},n.prototype.exportVisualModel=function(){return this.i.r()},n.prototype.exportSerializedVisualModel=function(){return this.i.v()},n._observedAttributesIgcXRippleComponent=null,n.htmlTagName="igc-x-ripple",n._isElementRegistered=!1,n}(i.IgcHTMLElement),a=function(){function t(){}return t.register=function(){s.register(),i.TypeRegistrar.registerCons("IgcXRippleComponent",s),i.TypeRegistrar.registerCons("IgcXRippleComponent",s),i.TypeRegistrar.register("XRipple",o.$type)},t}(),h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(n,t),n.g=function(t,e){return null==n.c&&(n.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>n.c.length-1&&(t=n.c.length-1),n.c[t]+e)},n.f=function(t,e){return null==n.b&&(n.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>n.b.length-1&&(t=n.b.length-1),n.b[t]+e)},n.d=function(t,e){return null==n.a&&(n.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>n.a.length-1&&(t=n.a.length-1),n.a[t]+e)},n.e=function(t,e,i,r,o){return 2==o?"0 0 "+t+"px "+t/20+"rem "+e._fill:0==t?"":n.g(t,e._fill)+", "+n.f(t,i._fill)+", "+n.d(t,r._fill)},n.$t=i.markType(n,"ElevationHelper"),n.c=null,n.b=null,n.a=null,n}(i.Base),u=i.markEnum("ButtonDisplayStyle","Raised,0|Flat,1|Outlined,2|Fab,3|Icon,4"),l=function(t){function n(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],h=a[0];r.b=h,r.a=s}return r}return e.__extends(n,t),Object.defineProperty(n.prototype,"c",{get:function(){return this.a},enumerable:!1,configurable:!0}),n.prototype.item=function(t){return this.b.item(t)},n.$t=i.markType(n,"Theme"),n}(i.Base),c=function(t){function n(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(n,t),n.ah=function(t,e,i){return 1==t?i:e},n.r=function(t,e,i){return 1==t?i:e},n.m=function(t,e,i){return 1==t?i:e},n.ac=function(t,e,i){return 1==t?i:e},n.am=function(t,e,i){return 1==t?i:e},n.g=function(t,e,i){return 1==t?i:e},n.a=function(t){return new l(0,t)},n.ag=function(t,e,i){return e.ae(t,i)},n.af=function(t,e,i,n){return e.ad(t,i,n)},n.q=function(t,e,i){return e.o(t,i)},n.p=function(t,e,i,n){return e.n(t,i,n)},n.l=function(t,e,i){return e.j(t,i)},n.k=function(t,e,i,n){return e.i(t,i,n)},n.x=function(t,e,i){return e.v(t,i)},n.w=function(t,e,i,n){return e.u(t,i,n)},n.f=function(t,e,i){return e.d(t,i)},n.e=function(t,e,i,n){return e.c(t,i,n)},n.ab=function(t,e,i){return e.z(t,i)},n.aa=function(t,e,i,n){return e.y(t,i,n)},n.al=function(t,e,i){return e.aj(t,i)},n.ak=function(t,e,i,n){return e.ai(t,i,n)},n.prototype.t=function(t,e){return this.h.containsKey(t)?this.h.item(t).item(e):this.h.item(this.b).item(e)},n.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)},n.prototype.ae=function(t,e){return this.t(t,e)},n.prototype.ad=function(t,e,i){return this.s(t,e,i)},n.prototype.o=function(t,e){return i.typeGetValue(this.t(t,e))},n.prototype.n=function(t,e,n){return i.typeGetValue(this.s(t,e,n))},n.prototype.j=function(t,e){return this.t(t,e)},n.prototype.i=function(t,e,i){return this.s(t,e,i)},n.prototype.v=function(t,e){return this.t(t,e)},n.prototype.u=function(t,e,i){return this.s(t,e,i)},n.prototype.d=function(t,e){return i.EnumUtil.getEnumValue(i.ElevationMode_$type,this.t(t,e))},n.prototype.c=function(t,e,n){return i.EnumUtil.getEnumValue(i.ElevationMode_$type,this.s(t,e,n))},n.prototype.z=function(t,e){return this.t(t,e)},n.prototype.y=function(t,e,i){return this.s(t,e,i)},n.prototype.aj=function(t,e){return this.t(t,e)},n.prototype.ai=function(t,e,i){return this.s(t,e,i)},n.$t=i.markType(n,"ThemeResolver"),n}(i.Base),p=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(n,t),n.$t=i.markType(n,"ButtonClickEventArgs",i.EventArgs.$),n}(i.EventArgs),d=function(t){function n(){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(n,t),n.prototype.serialize=function(){var t=new i.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+", "),i.stringIsNullOrEmpty(this.ad)||t.l('textStyleFontStyle : "'+this.ad+'", '),i.stringIsNullOrEmpty(this.ae)||t.l('textStyleFontVariant : "'+this.ae+'", '),i.stringIsNullOrEmpty(this.af)||t.l('textStyleFontWeight : "'+this.af+'", '),i.stringIsNullOrEmpty(this.ab)||t.l('textStyleFontFamily : "'+this.ab+'", '),i.stringIsNullOrEmpty(this.ac)||t.l('textStyleFontStretch : "'+this.ac+'", '),i.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()},n.$t=i.markType(n,"ButtonVisualModelExport",i.Base.$,[i.IVisualData_$type]),n}(i.Base),f=function(t){function n(){var e=t.call(this)||this;return e.b=null,e.k=null,e.d=null,e.h=new i.List$1(i.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(n,t),n.prototype.aq=function(){},n.prototype.g=function(){return!0},Object.defineProperty(n.prototype,"q",{get:function(){return this.n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"s",{get:function(){return this.m},enumerable:!1,configurable:!0}),n.prototype.ak=function(t){var n,r,s=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 a=this.k.createElement("button");this.n=a,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),i.NativeUI.o(this.n,this.b.kz),this.n.setAttribute("id",this.b.hy),this.ax(),this.h.add(a.listen("change",i.runOn(this,this.z))),this.h.add(a.listen("click",i.runOn(this,this.aa))),this.h.add(a.listen("focus",i.runOn(this,this.ab))),this.h.add(a.listen("blur",i.runOn(this,this.y))),this.h.add(this.k.rootWrapper.listen("mouseenter",i.runOn(this,this.v))),this.h.add(this.k.rootWrapper.listen("mouseleave",i.runOn(this,this.w))),this.h.add(this.k.rootWrapper.listen("mousedown",i.runOn(this,this.u))),this.h.add(this.k.rootWrapper.listen("mouseup",i.runOn(this,this.x))),this.h.add(this.k.rootWrapper.listen("focusin",i.runOn(this,this.ac))),this.h.add(this.k.rootWrapper.listen("focusout",i.runOn(this,this.ad))),this.k.append(a);var h=this.k.createElement("div"),u=this.k.getSubRenderer(h);h.setStyleProperty("position","absolute"),h.setStyleProperty("width","100%"),h.setStyleProperty("height","100%"),h.setStyleProperty("left","0px"),h.setStyleProperty("top","0px"),h.setStyleProperty("overflow","hidden");var l=new o;l.provideContainer(u),l.q=a;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(h);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",i.runOn(this,this.t))),this.n.append(c),this.o=c,this.k.getPortal(c,"ChildContent",(function(t){var e=t.componentRef;s.p=e,s.o.setStyleProperty("flex-direction",s.b.g4),s.o.setStyleProperty("align-items",s.b.fb);var i=s.b.g4,n=null!=s.b.fj?s.b.fj:s.b.f0,r=s.b.fb;e.display=n,e.flexDirection=i,e.alignItems=r}),!0),this.b.kl()}else{try{for(var p=e.__values(i.fromEnum(this.h)),d=p.next();!d.done;d=p.next()){(0,d.value)()}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}this.h.clear()}},n.prototype.am=function(){this.c.i=this.b.as},n.prototype.a0=function(){var t="2.25rem",e="2.25rem",n="2.25rem",r="2.25rem",o="3.5rem",s="3.5rem",a="3.5rem",h="3.5rem",u="2.25rem",l=".9375rem",c=".5625rem 1rem";switch(this.b.q){case 2:c=".375rem .75rem",u="1.875rem",o="3rem",s="3rem",a="3rem",h="3rem",l=".6875rem";break;case 3:c=".1875rem 1rem",u="1.5rem",s="2.5rem",o="2.5rem",h="2.5rem",a="2.5rem",l=".4375rem";break;case 4:c="0.09375rem 0.5rem",u="0.5rem",s="1.5rem",o="1.5rem",h="1.5rem",a="1.5rem",l="0.21875rem",e="1rem",t="1rem",r="1rem",n="1rem"}i.isNaN_(this.b.bm)||i.isNaN_(this.b.bo)||i.isNaN_(this.b.bn)||i.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",n),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",h)):(this.n.setStyleProperty("width","auto"),this.n.setStyleProperty("height","auto"),this.n.setStyleProperty("min-width","5.5rem"),this.n.setStyleProperty("min-height",u),this.n.setStyleProperty("padding",c)),this.k.rootWrapper.setStyleProperty("height","auto"),!i.isNaN_(this.b.bj)&&this.b.bj>0?this.n.setStyleProperty("border-style","solid"):this.n.setStyleProperty("border-style","none"),i.isNaN_(this.j)||this.n.setStyleProperty("min-width",this.j.toString()+"px"),i.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%"))},n.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")}},n.prototype.aw=function(t){this.j=t},n.prototype.av=function(t){this.i=t},n.prototype.as=function(){this.n.setAttribute("disabled",this.b.disabled?"true":"false"),this.n.setProperty("disabled",this.b.disabled)},n.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()}},n.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}}},n.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()}},n.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()}},n.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()}},n.prototype.t=function(t){},n.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")}},n.prototype.ar=function(){if(this.g()){var t=this.b.hy;this.n.setAttribute("id",t)}},n.prototype.v=function(t){this.b.kh(),this.b.a5&&t.stopPropagation()},n.prototype.w=function(t){this.b.ki(),this.b.a5&&t.stopPropagation()},n.prototype.u=function(t){this.b.kg(),this.b.a5&&t.stopPropagation()},n.prototype.x=function(t){this.b.kj(),this.b.a5&&t.stopPropagation()},n.prototype.y=function(t){this.b.ka()},n.prototype.ab=function(t){this.b.kd()},n.prototype.aa=function(t){this.b.kb(),this.b.at||t.preventDefault(),this.b.a5&&t.stopPropagation()},n.prototype.ac=function(t){this.b.ke()},n.prototype.ad=function(t){this.b.kf(t.originalEvent.relatedTarget,t.originalEvent.target)},n.prototype.f=function(){return!1},n.prototype.z=function(t){},n.prototype.ag=function(){null==i.KeyFrameAnimationFactory.h&&(i.KeyFrameAnimationFactory.h=this.k)},n.prototype.ai=function(){this.e=!0,this.h.add(this.n.listen("change",i.runOn(this,this.z))),this.h.add(this.n.listen("click",i.runOn(this,this.aa))),this.h.add(this.n.listen("focus",i.runOn(this,this.ab))),this.h.add(this.n.listen("blur",i.runOn(this,this.y))),this.h.add(this.m.listen("click",i.runOn(this,this.t))),this.h.add(this.n.listen("mouseenter",i.runOn(this,this.v))),this.h.add(this.n.listen("mouseleave",i.runOn(this,this.w))),this.h.add(this.n.listen("mousedown",i.runOn(this,this.u))),this.h.add(this.n.listen("mouseup",i.runOn(this,this.x))),this.h.add(this.n.listen("focusin",i.runOn(this,this.ac))),this.h.add(this.n.listen("focusout",i.runOn(this,this.ad)))},n.prototype.al=function(){var t,n;this.e=!1;try{for(var r=e.__values(i.fromEnum(this.h)),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.h.clear()},n.prototype.at=function(){var t=this.b;t.externalObject&&t.externalObject.refreshDefaults&&t.externalObject.refreshDefaults()},n.prototype.ay=function(t,e){this.c.ax=t,this.c.aw=e},n.prototype.az=function(t,e){var i=h.e(t,this.b.n0,this.b.nx,this.b.nn,e);this.n.setStyleProperty("box-shadow",i)},n.prototype.a1=function(t){null!=t&&this.m.setStyleProperty("font",t.fontString)},n.prototype.ae=function(t){this.m.append(t)},n.prototype.af=function(){this.m.removeChildren()},n.prototype.r=function(){return this.m.getChildCount()>0?this.m.getChildAt(0):null},n.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},n.$t=i.markType(n,"ButtonView"),n}(i.Base),b=function(t){function n(){var e=t.call(this)||this;e._view=null,e.ed=null,e.po=n.k.ae(n.m,"UmbraShadowColor"),e.pc=n.k.ae(n.m,"PenumbraShadowColor"),e.n3=n.k.ae(n.m,"AmbientShadowColor"),e.v=n.k.d(n.m,"ElevationMode"),e.pf=n.k.ad(n.m,i.enumGetBox(u,0),"DisabledBackgroundColor"),e.pg=n.k.ad(n.m,i.enumGetBox(u,0),"DisabledBorderColor"),e.ph=n.k.ad(n.m,i.enumGetBox(u,0),"DisabledTextColor"),e.de=n.k.n(n.m,i.enumGetBox(u,0),"DisabledElevation"),e.dh=n.k.n(n.m,i.enumGetBox(u,0),"RestingElevation"),e.dg=n.k.n(n.m,i.enumGetBox(u,0),"HoverElevation"),e.df=n.k.n(n.m,i.enumGetBox(u,0),"FocusElevation"),e.pe=n.k.ad(n.m,i.enumGetBox(u,0),"BorderColor"),e.pm=n.k.ad(n.m,i.enumGetBox(u,0),"RippleColor"),e.k6=n.k.y(n.m,i.enumGetBox(u,0),"CornerRadius"),e.bt=n.k.i(n.m,i.enumGetBox(u,0),"BorderWidth"),e.pd=n.k.ad(n.m,i.enumGetBox(u,0),"BackgroundColor"),e.pn=n.k.ad(n.m,i.enumGetBox(u,0),"TextColor"),e.pl=n.k.ad(n.m,i.enumGetBox(u,0),"HoverTextColor"),e.pk=n.k.ad(n.m,i.enumGetBox(u,0),"HoverBackgroundColor"),e.pi=n.k.ad(n.m,i.enumGetBox(u,0),"FocusBackgroundColor"),e.pj=n.k.ad(n.m,i.enumGetBox(u,0),"FocusTextColor"),e.oh=n.k.ad(n.m,i.enumGetBox(u,1),"DisabledBackgroundColor"),e.oi=n.k.ad(n.m,i.enumGetBox(u,1),"DisabledBorderColor"),e.oj=n.k.ad(n.m,i.enumGetBox(u,1),"DisabledTextColor"),e.c2=n.k.n(n.m,i.enumGetBox(u,1),"DisabledElevation"),e.c5=n.k.n(n.m,i.enumGetBox(u,1),"RestingElevation"),e.c4=n.k.n(n.m,i.enumGetBox(u,1),"HoverElevation"),e.c3=n.k.n(n.m,i.enumGetBox(u,1),"FocusElevation"),e.og=n.k.ad(n.m,i.enumGetBox(u,1),"BorderColor"),e.oo=n.k.ad(n.m,i.enumGetBox(u,1),"RippleColor"),e.k3=n.k.y(n.m,i.enumGetBox(u,1),"CornerRadius"),e.bq=n.k.i(n.m,i.enumGetBox(u,1),"BorderWidth"),e.of=n.k.ad(n.m,i.enumGetBox(u,1),"BackgroundColor"),e.op=n.k.ad(n.m,i.enumGetBox(u,1),"TextColor"),e.on=n.k.ad(n.m,i.enumGetBox(u,1),"HoverTextColor"),e.om=n.k.ad(n.m,i.enumGetBox(u,1),"HoverBackgroundColor"),e.ok=n.k.ad(n.m,i.enumGetBox(u,1),"FocusBackgroundColor"),e.ol=n.k.ad(n.m,i.enumGetBox(u,1),"FocusTextColor"),e.o3=n.k.ad(n.m,i.enumGetBox(u,2),"DisabledBackgroundColor"),e.o4=n.k.ad(n.m,i.enumGetBox(u,2),"DisabledBorderColor"),e.o5=n.k.ad(n.m,i.enumGetBox(u,2),"DisabledTextColor"),e.da=n.k.n(n.m,i.enumGetBox(u,2),"DisabledElevation"),e.dd=n.k.n(n.m,i.enumGetBox(u,2),"RestingElevation"),e.dc=n.k.n(n.m,i.enumGetBox(u,2),"HoverElevation"),e.db=n.k.n(n.m,i.enumGetBox(u,2),"FocusElevation"),e.o2=n.k.ad(n.m,i.enumGetBox(u,2),"BorderColor"),e.pa=n.k.ad(n.m,i.enumGetBox(u,2),"RippleColor"),e.k5=n.k.y(n.m,i.enumGetBox(u,2),"CornerRadius"),e.bs=n.k.i(n.m,i.enumGetBox(u,2),"BorderWidth"),e.o1=n.k.ad(n.m,i.enumGetBox(u,2),"BackgroundColor"),e.pb=n.k.ad(n.m,i.enumGetBox(u,2),"TextColor"),e.o9=n.k.ad(n.m,i.enumGetBox(u,2),"HoverTextColor"),e.o8=n.k.ad(n.m,i.enumGetBox(u,2),"HoverBackgroundColor"),e.o6=n.k.ad(n.m,i.enumGetBox(u,2),"FocusBackgroundColor"),e.o7=n.k.ad(n.m,i.enumGetBox(u,2),"FocusTextColor"),e.os=n.k.ad(n.m,i.enumGetBox(u,4),"DisabledBackgroundColor"),e.ot=n.k.ad(n.m,i.enumGetBox(u,4),"DisabledBorderColor"),e.ou=n.k.ad(n.m,i.enumGetBox(u,4),"DisabledTextColor"),e.c6=n.k.n(n.m,i.enumGetBox(u,4),"DisabledElevation"),e.c9=n.k.n(n.m,i.enumGetBox(u,4),"RestingElevation"),e.c8=n.k.n(n.m,i.enumGetBox(u,4),"HoverElevation"),e.c7=n.k.n(n.m,i.enumGetBox(u,4),"FocusElevation"),e.or=n.k.ad(n.m,i.enumGetBox(u,4),"BorderColor"),e.oz=n.k.ad(n.m,i.enumGetBox(u,4),"RippleColor"),e.k4=n.k.y(n.m,i.enumGetBox(u,4),"CornerRadius"),e.br=n.k.i(n.m,i.enumGetBox(u,4),"BorderWidth"),e.oq=n.k.ad(n.m,i.enumGetBox(u,4),"BackgroundColor"),e.o0=n.k.ad(n.m,i.enumGetBox(u,4),"TextColor"),e.oy=n.k.ad(n.m,i.enumGetBox(u,4),"HoverTextColor"),e.ox=n.k.ad(n.m,i.enumGetBox(u,4),"HoverBackgroundColor"),e.ov=n.k.ad(n.m,i.enumGetBox(u,4),"FocusBackgroundColor"),e.ow=n.k.ad(n.m,i.enumGetBox(u,4),"FocusTextColor"),e.n6=n.k.ad(n.m,i.enumGetBox(u,3),"DisabledBackgroundColor"),e.n7=n.k.ad(n.m,i.enumGetBox(u,3),"DisabledBorderColor"),e.n8=n.k.ad(n.m,i.enumGetBox(u,3),"DisabledTextColor"),e.cy=n.k.n(n.m,i.enumGetBox(u,3),"DisabledElevation"),e.c1=n.k.n(n.m,i.enumGetBox(u,3),"RestingElevation"),e.c0=n.k.n(n.m,i.enumGetBox(u,3),"HoverElevation"),e.cz=n.k.n(n.m,i.enumGetBox(u,3),"FocusElevation"),e.n5=n.k.ad(n.m,i.enumGetBox(u,3),"BorderColor"),e.od=n.k.ad(n.m,i.enumGetBox(u,3),"RippleColor"),e.k2=n.k.y(n.m,i.enumGetBox(u,3),"CornerRadius"),e.bp=n.k.i(n.m,i.enumGetBox(u,3),"BorderWidth"),e.n4=n.k.ad(n.m,i.enumGetBox(u,3),"BackgroundColor"),e.oe=n.k.ad(n.m,i.enumGetBox(u,3),"TextColor"),e.oc=n.k.ad(n.m,i.enumGetBox(u,3),"HoverTextColor"),e.ob=n.k.ad(n.m,i.enumGetBox(u,3),"HoverBackgroundColor"),e.n9=n.k.ad(n.m,i.enumGetBox(u,3),"FocusBackgroundColor"),e.oa=n.k.ad(n.m,i.enumGetBox(u,3),"FocusTextColor"),e.bg=NaN,e.bf=NaN,e.d=0,e.p=0,e.l=0,e.o=1,e.lh=c.af(n.m,n.k,i.enumGetBox(u,0),"BorderColor"),e.ls=c.ag(n.m,n.k,"UmbraShadowColor"),e.lp=c.ag(n.m,n.k,"PenumbraShadowColor"),e.lf=c.ag(n.m,n.k,"AmbientShadowColor"),e.b4=c.p(n.m,n.k,i.enumGetBox(u,0),"RestingElevation"),e.b2=c.p(n.m,n.k,i.enumGetBox(u,0),"FocusElevation"),e.b3=c.p(n.m,n.k,i.enumGetBox(u,0),"HoverElevation"),e.lq=c.af(n.m,n.k,i.enumGetBox(u,0),"RippleColor"),e.ks=c.aa(n.m,n.k,i.enumGetBox(u,0),"CornerRadius"),e.lg=c.af(n.m,n.k,i.enumGetBox(u,0),"BackgroundColor"),e.li=c.af(n.m,n.k,i.enumGetBox(u,0),"DisabledBackgroundColor"),e.lj=c.af(n.m,n.k,i.enumGetBox(u,0),"DisabledBorderColor"),e.lk=c.af(n.m,n.k,i.enumGetBox(u,0),"DisabledTextColor"),e.b1=c.p(n.m,n.k,i.enumGetBox(u,0),"DisabledElevation"),e.s=c.f(n.m,n.k,"ElevationMode"),e.lr=c.af(n.m,n.k,i.enumGetBox(u,0),"TextColor"),e.lo=c.af(n.m,n.k,i.enumGetBox(u,0),"HoverTextColor"),e.ll=c.af(n.m,n.k,i.enumGetBox(u,0),"FocusBackgroundColor"),e.lm=c.af(n.m,n.k,i.enumGetBox(u,0),"FocusTextColor"),e.ln=c.af(n.m,n.k,i.enumGetBox(u,0),"HoverBackgroundColor"),e.a6=c.k(n.m,n.k,i.enumGetBox(u,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 i.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 i.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 i.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 i.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 i.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 i.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-"+n.d9++,e.el="ig-button-"+n.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 f;return r.b=e,e.view=r,e.view.aq(),e}var r;return e.__extends(n,t),Object.defineProperty(n.prototype,"view",{get:function(){return this._view},set:function(t){this._view=t},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){this.provideContainer(null)},n.prototype.kk=function(t,e,n){null!=this.propertyChanged&&this.propertyChanged(this,new i.PropertyChangedEventArgs(t)),this.km(t,e,n)},n.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()}},n.prototype.k0=function(t,e){return new i.CornerRadius(1,i.isNaN_(t.d)?e.d:t.d,i.isNaN_(t.e)?e.e:t.e,i.isNaN_(t.c)?e.c:t.c,i.isNaN_(t.b)?e.b:t.b)},n.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=i.isNaN_(this.bk)?i.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=i.isNaN_(this.bk)?i.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=i.isNaN_(this.bk)?i.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=i.isNaN_(this.bk)?i.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=i.isNaN_(this.bk)?i.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}},n.prototype.ko=function(){this.kz=this.k0(this.k1,this.k0(this.la,this.k9(this.k4)))},n.prototype.