-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path39-es5.7825e4daffc4a97b6a62.js
1 lines (1 loc) · 17.9 KB
/
39-es5.7825e4daffc4a97b6a62.js
1
!function(){function t(e,n){return(t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(e,n)}function e(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var a,c=o(t);if(e){var i=o(this).constructor;a=Reflect.construct(c,arguments,i)}else a=c.apply(this,arguments);return n(this,a)}}function n(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{Cet0:function(t,e,n){"use strict";n.r(e),n.d(e,"ButtonToggleAppearanceExample",function(){return i}),n.d(e,"ButtonToggleExamplesModule",function(){return b}),n.d(e,"ButtonToggleExclusiveExample",function(){return l}),n.d(e,"ButtonToggleHarnessExample",function(){return s}),n.d(e,"ButtonToggleOverviewExample",function(){return u});var o=n("fXoL"),a=n("jaxi"),c=n("NFeN"),i=function(){var t=function t(){r(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Object(o.Sb)({type:t,selectors:[["button-toggle-appearance-example"]],decls:18,vars:0,consts:[["name","fontStyle","aria-label","Font Style"],["value","bold"],["value","italic"],["value","underline"],["appearance","legacy","name","fontStyle","aria-label","Font Style"]],template:function(t,e){1&t&&(Object(o.ec)(0,"p"),Object(o.Sc)(1," Default appearance: "),Object(o.ec)(2,"mat-button-toggle-group",0),Object(o.ec)(3,"mat-button-toggle",1),Object(o.Sc)(4,"Bold"),Object(o.dc)(),Object(o.ec)(5,"mat-button-toggle",2),Object(o.Sc)(6,"Italic"),Object(o.dc)(),Object(o.ec)(7,"mat-button-toggle",3),Object(o.Sc)(8,"Underline"),Object(o.dc)(),Object(o.dc)(),Object(o.dc)(),Object(o.ec)(9,"p"),Object(o.Sc)(10," Legacy appearance: "),Object(o.ec)(11,"mat-button-toggle-group",4),Object(o.ec)(12,"mat-button-toggle",1),Object(o.Sc)(13,"Bold"),Object(o.dc)(),Object(o.ec)(14,"mat-button-toggle",2),Object(o.Sc)(15,"Italic"),Object(o.dc)(),Object(o.ec)(16,"mat-button-toggle",3),Object(o.Sc)(17,"Underline"),Object(o.dc)(),Object(o.dc)(),Object(o.dc)())},directives:[a.b,a.a],styles:["mat-button-toggle-group[_ngcontent-%COMP%] {\n margin-left: 12px;\n}"]}),t}(),l=function(){var t=function t(){r(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Object(o.Sb)({type:t,selectors:[["button-toggle-exclusive-example"]],decls:16,vars:1,consts:[["group","matButtonToggleGroup"],["value","left","aria-label","Text align left"],["value","center","aria-label","Text align center"],["value","right","aria-label","Text align right"],["value","justify","disabled","","aria-label","Text align justify"],[1,"example-selected-value"]],template:function(t,e){if(1&t&&(Object(o.ec)(0,"mat-button-toggle-group",null,0),Object(o.ec)(2,"mat-button-toggle",1),Object(o.ec)(3,"mat-icon"),Object(o.Sc)(4,"format_align_left"),Object(o.dc)(),Object(o.dc)(),Object(o.ec)(5,"mat-button-toggle",2),Object(o.ec)(6,"mat-icon"),Object(o.Sc)(7,"format_align_center"),Object(o.dc)(),Object(o.dc)(),Object(o.ec)(8,"mat-button-toggle",3),Object(o.ec)(9,"mat-icon"),Object(o.Sc)(10,"format_align_right"),Object(o.dc)(),Object(o.dc)(),Object(o.ec)(11,"mat-button-toggle",4),Object(o.ec)(12,"mat-icon"),Object(o.Sc)(13,"format_align_justify"),Object(o.dc)(),Object(o.dc)(),Object(o.dc)(),Object(o.ec)(14,"div",5),Object(o.Sc)(15),Object(o.dc)()),2&t){var n=Object(o.Cc)(1);Object(o.Mb)(15),Object(o.Uc)("Selected value: ",n.value,"")}},directives:[a.b,a.a,c.a],styles:[".example-selected-value[_ngcontent-%COMP%] {\n margin: 15px 0;\n}"]}),t}(),u=function(){var t=function t(){r(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Object(o.Sb)({type:t,selectors:[["button-toggle-overview-example"]],decls:7,vars:0,consts:[["name","fontStyle","aria-label","Font Style"],["value","bold"],["value","italic"],["value","underline"]],template:function(t,e){1&t&&(Object(o.ec)(0,"mat-button-toggle-group",0),Object(o.ec)(1,"mat-button-toggle",1),Object(o.Sc)(2,"Bold"),Object(o.dc)(),Object(o.ec)(3,"mat-button-toggle",2),Object(o.Sc)(4,"Italic"),Object(o.dc)(),Object(o.ec)(5,"mat-button-toggle",3),Object(o.Sc)(6,"Underline"),Object(o.dc)(),Object(o.dc)())},directives:[a.b,a.a],encapsulation:2}),t}(),s=function(){var t=function t(){r(this,t),this.disabled=!1,this.appearance="standard"};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Object(o.Sb)({type:t,selectors:[["button-toggle-harness-example"]],decls:5,vars:2,consts:[[3,"disabled","appearance"],["value","1"],["value","2"]],template:function(t,e){1&t&&(Object(o.ec)(0,"mat-button-toggle-group",0),Object(o.ec)(1,"mat-button-toggle",1),Object(o.Sc)(2,"One"),Object(o.dc)(),Object(o.ec)(3,"mat-button-toggle",2),Object(o.Sc)(4,"Two"),Object(o.dc)(),Object(o.dc)()),2&t&&Object(o.vc)("disabled",e.disabled)("appearance",e.appearance)},directives:[a.b,a.a],encapsulation:2}),t}(),b=function(){var t=function t(){r(this,t)};return t.\u0275mod=Object(o.Wb)({type:t}),t.\u0275inj=Object(o.Vb)({factory:function(e){return new(e||t)},imports:[[a.c,c.b]]}),t}()},jaxi:function(n,o,c){"use strict";c.d(o,"a",function(){return k}),c.d(o,"b",function(){return O}),c.d(o,"c",function(){return T});var i=c("8LU1"),u=c("0EQZ"),s=c("fXoL"),b=c("3Pt+"),g=c("FKr1"),d=c("u47x"),p=["button"],h=["*"],f=new s.x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),m=new s.x("MatButtonToggleGroup"),v={provide:b.l,useExisting:Object(s.eb)(function(){return O}),multi:!0},y=0,_=function t(e,n){r(this,t),this.source=e,this.value=n},O=function(){var t=function(){function t(e,n){r(this,t),this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-"+y++,this.valueChange=new s.s,this.change=new s.s,this.appearance=n&&n.appearance?n.appearance:"standard"}return l(t,[{key:"ngOnInit",value:function(){this._selectionModel=new u.c(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,a(this._buttonToggles.filter(function(t){return t.checked})))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_emitChangeEvent",value:function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new _(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}},{key:"_syncButtonToggle",value:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve().then(function(){return n._updateModelValue(o)}):this._updateModelValue(o)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(e){return null!=t.value&&e===t.value}):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})):(this._clearSelection(),this._selectValue(t)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach(function(t){t.name=e._name,t._markForCheck()})}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Object(i.c)(t)}},{key:"value",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(function(t){return t.value}):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=Object(i.c)(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(i.c)(t),this._buttonToggles&&this._buttonToggles.forEach(function(t){return t._markForCheck()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Yb(s.i),s.Yb(f,8))},t.\u0275dir=s.Tb({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var o;(1&t&&s.Rb(n,k,!0),2&t)&&(s.Bc(o=s.mc())&&(e._buttonToggles=o))},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(s.Nb("aria-disabled",e.disabled),s.Qb("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[s.Lb([v,{provide:m,useExisting:t}])]}),t}(),j=Object(g.A)(function t(){r(this,t)}),k=function(){var n=function(n){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&t(e,n)}(a,n);var o=e(a);function a(t,e,n,c,i,l){var u;r(this,a),(u=o.call(this))._changeDetectorRef=e,u._elementRef=n,u._focusMonitor=c,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new s.s;var b=Number(i);return u.tabIndex=b||0===b?b:null,u.buttonToggleGroup=t,u.appearance=l&&l.appearance?l.appearance:"standard",u}return l(a,[{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-"+y++,this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new _(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return this.id+"-button"}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=Object(i.c)(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=Object(i.c)(t)}}]),a}(j);return n.\u0275fac=function(t){return new(t||n)(s.Yb(m,8),s.Yb(s.i),s.Yb(s.p),s.Yb(d.h),s.jc("tabindex"),s.Yb(f,8))},n.\u0275cmp=s.Sb({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;(1&t&&s.Wc(p,!0),2&t)&&(s.Bc(n=s.mc())&&(e._buttonElement=n.first))},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&s.lc("focus",function(){return e.focus()}),2&t&&(s.Nb("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),s.Qb("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[s.Jb],ngContentSelectors:h,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(s.uc(),s.ec(0,"button",0,1),s.lc("click",function(){return e._onButtonClick()}),s.ec(2,"span",2),s.tc(3),s.dc(),s.dc(),s.Zb(4,"span",3),s.Zb(5,"span",4)),2&t){var n=s.Cc(1);s.vc("id",e.buttonId)("disabled",e.disabled||null),s.Nb("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.Mb(5),s.vc("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[g.t],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),n}(),T=function(){var t=function t(){r(this,t)};return t.\u0275mod=s.Wb({type:t}),t.\u0275inj=s.Vb({factory:function(e){return new(e||t)},imports:[[g.j,g.u],g.j]}),t}()}}])}();