-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendor.material~d88c22b7.a442bde5623eaac2747d.chunk.js
24 lines (24 loc) · 10 KB
/
vendor.material~d88c22b7.a442bde5623eaac2747d.chunk.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{LIbT:function(t,e,i){"use strict";i.d(e,"a",function(){return n});var o=i("mrSG"),r=i("ZomG"),a=i("QPs2"),n=function(t){function e(i){var r=t.call(this,o.a({},e.defaultAdapter,i))||this;return r.checkRowHeightFrame_=0,r.scrollFrame_=0,r.executedLastChange_=!1,r.isFixed_=!1,r.isFixedLastRow_=!1,r.hasFlexibleFirstRow_=!1,r.useFlexDefaultBehavior_=!1,r.calculations_={flexibleExpansionHeight:0,flexibleExpansionRatio:0,maxTranslateYDistance:0,maxTranslateYRatio:0,scrollThreshold:0,scrollThresholdRatio:0,toolbarHeight:0,toolbarRatio:0,toolbarRowHeight:0},r}return o.b(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return a.a},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return a.c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return a.b},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},registerScrollHandler:function(){},deregisterScrollHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getViewportWidth:function(){return 0},getViewportScrollY:function(){return 0},getOffsetHeight:function(){return 0},getFirstRowElementOffsetHeight:function(){return 0},notifyChange:function(){},setStyle:function(){},setStyleForTitleElement:function(){},setStyleForFlexibleRowElement:function(){},setStyleForFixedAdjustElement:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this;this.isFixed_=this.adapter_.hasClass(a.a.FIXED),this.isFixedLastRow_=this.adapter_.hasClass(a.a.FIXED_LASTROW)&&this.isFixed_,this.hasFlexibleFirstRow_=this.adapter_.hasClass(a.a.TOOLBAR_ROW_FLEXIBLE),this.hasFlexibleFirstRow_&&(this.useFlexDefaultBehavior_=this.adapter_.hasClass(a.a.FLEXIBLE_DEFAULT_BEHAVIOR)),this.resizeHandler_=function(){return t.checkRowHeight_()},this.scrollHandler_=function(){return t.updateToolbarStyles_()},this.adapter_.registerResizeHandler(this.resizeHandler_),this.adapter_.registerScrollHandler(this.scrollHandler_),this.initKeyRatio_(),this.setKeyHeights_()},e.prototype.destroy=function(){this.adapter_.deregisterResizeHandler(this.resizeHandler_),this.adapter_.deregisterScrollHandler(this.scrollHandler_)},e.prototype.updateAdjustElementStyles=function(){this.isFixed_&&this.adapter_.setStyleForFixedAdjustElement("margin-top",this.calculations_.toolbarHeight+"px")},e.prototype.getFlexibleExpansionRatio_=function(t){return Math.max(0,1-t/(this.calculations_.flexibleExpansionHeight+1e-4))},e.prototype.checkRowHeight_=function(){var t=this;cancelAnimationFrame(this.checkRowHeightFrame_),this.checkRowHeightFrame_=requestAnimationFrame(function(){return t.setKeyHeights_()})},e.prototype.setKeyHeights_=function(){var t=this.getRowHeight_();t!==this.calculations_.toolbarRowHeight&&(this.calculations_.toolbarRowHeight=t,this.calculations_.toolbarHeight=this.calculations_.toolbarRatio*this.calculations_.toolbarRowHeight,this.calculations_.flexibleExpansionHeight=this.calculations_.flexibleExpansionRatio*this.calculations_.toolbarRowHeight,this.calculations_.maxTranslateYDistance=this.calculations_.maxTranslateYRatio*this.calculations_.toolbarRowHeight,this.calculations_.scrollThreshold=this.calculations_.scrollThresholdRatio*this.calculations_.toolbarRowHeight,this.updateAdjustElementStyles(),this.updateToolbarStyles_())},e.prototype.updateToolbarStyles_=function(){var t=this;cancelAnimationFrame(this.scrollFrame_),this.scrollFrame_=requestAnimationFrame(function(){var e=t.adapter_.getViewportScrollY(),i=t.scrolledOutOfThreshold_(e);if(!i||!t.executedLastChange_){var o=t.getFlexibleExpansionRatio_(e);t.updateToolbarFlexibleState_(o),t.isFixedLastRow_&&t.updateToolbarFixedState_(e),t.hasFlexibleFirstRow_&&t.updateFlexibleRowElementStyles_(o),t.executedLastChange_=i,t.adapter_.notifyChange({flexibleExpansionRatio:o})}})},e.prototype.scrolledOutOfThreshold_=function(t){return t>this.calculations_.scrollThreshold},e.prototype.initKeyRatio_=function(){var t=this.getRowHeight_(),e=this.adapter_.getFirstRowElementOffsetHeight()/t;this.calculations_.toolbarRatio=this.adapter_.getOffsetHeight()/t,this.calculations_.flexibleExpansionRatio=e-1,this.calculations_.maxTranslateYRatio=this.isFixedLastRow_?this.calculations_.toolbarRatio-e:0,this.calculations_.scrollThresholdRatio=(this.isFixedLastRow_?this.calculations_.toolbarRatio:e)-1},e.prototype.getRowHeight_=function(){var t=a.b.TOOLBAR_MOBILE_BREAKPOINT;return this.adapter_.getViewportWidth()<t?a.b.TOOLBAR_ROW_MOBILE_HEIGHT:a.b.TOOLBAR_ROW_HEIGHT},e.prototype.updateToolbarFlexibleState_=function(t){this.adapter_.removeClass(a.a.FLEXIBLE_MAX),this.adapter_.removeClass(a.a.FLEXIBLE_MIN),1===t?this.adapter_.addClass(a.a.FLEXIBLE_MAX):0===t&&this.adapter_.addClass(a.a.FLEXIBLE_MIN)},e.prototype.updateToolbarFixedState_=function(t){var e=Math.max(0,Math.min(t-this.calculations_.flexibleExpansionHeight,this.calculations_.maxTranslateYDistance));this.adapter_.setStyle("transform","translateY("+-e+"px)"),e===this.calculations_.maxTranslateYDistance?this.adapter_.addClass(a.a.FIXED_AT_LAST_ROW):this.adapter_.removeClass(a.a.FIXED_AT_LAST_ROW)},e.prototype.updateFlexibleRowElementStyles_=function(t){if(this.isFixed_){var e=this.calculations_.flexibleExpansionHeight*t;this.adapter_.setStyleForFlexibleRowElement("height",e+this.calculations_.toolbarRowHeight+"px")}this.useFlexDefaultBehavior_&&this.updateElementStylesDefaultBehavior_(t)},e.prototype.updateElementStylesDefaultBehavior_=function(t){var e=a.b.MAX_TITLE_SIZE,i=a.b.MIN_TITLE_SIZE,o=(e-i)*t+i;this.adapter_.setStyleForTitleElement("font-size",o+"rem")},e}(r.a)},QPs2:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return a});
/**
* @license
* Copyright 2017 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var o={FIXED:"mdc-toolbar--fixed",FIXED_AT_LAST_ROW:"mdc-toolbar--fixed-at-last-row",FIXED_LASTROW:"mdc-toolbar--fixed-lastrow-only",FLEXIBLE_DEFAULT_BEHAVIOR:"mdc-toolbar--flexible-default-behavior",FLEXIBLE_MAX:"mdc-toolbar--flexible-space-maximized",FLEXIBLE_MIN:"mdc-toolbar--flexible-space-minimized",TOOLBAR_ROW_FLEXIBLE:"mdc-toolbar--flexible"},r={CHANGE_EVENT:"MDCToolbar:change",FIRST_ROW_SELECTOR:".mdc-toolbar__row:first-child",ICON_SELECTOR:".mdc-toolbar__icon",TITLE_SELECTOR:".mdc-toolbar__title"},a={MAX_TITLE_SIZE:2.125,MIN_TITLE_SIZE:1.25,TOOLBAR_MOBILE_BREAKPOINT:600,TOOLBAR_ROW_HEIGHT:64,TOOLBAR_ROW_MOBILE_HEIGHT:56}},aWbL:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var o=i("mrSG"),r=i("gTb/"),a=i("QP88"),n=i("LIbT"),s=n.a.strings,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.b(e,t),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(){var t=this;this.ripples_=[],this.fixedAdjustElement_=null,this.titleElement_=this.root_.querySelector(s.TITLE_SELECTOR);var e=this.root_.querySelector(s.FIRST_ROW_SELECTOR);if(!e)throw new Error("MDCToolbar: Required sub-element '"+s.FIRST_ROW_SELECTOR+"' is missing");this.firstRowElement_=e,[].forEach.call(this.root_.querySelectorAll(s.ICON_SELECTOR),function(e){var i=a.a.attachTo(e);i.unbounded=!0,t.ripples_.push(i)})},e.prototype.destroy=function(){this.ripples_.forEach(function(t){t.destroy()}),t.prototype.destroy.call(this)},Object.defineProperty(e.prototype,"fixedAdjustElement",{get:function(){return this.fixedAdjustElement_},set:function(t){this.fixedAdjustElement_=t,this.foundation_.updateAdjustElementStyles()},enumerable:!0,configurable:!0}),e.prototype.getDefaultFoundation=function(){var t=this,e={hasClass:function(e){return t.root_.classList.contains(e)},addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},registerScrollHandler:function(t){return window.addEventListener("scroll",t)},deregisterScrollHandler:function(t){return window.removeEventListener("scroll",t)},registerResizeHandler:function(t){return window.addEventListener("resize",t)},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getViewportWidth:function(){return window.innerWidth},getViewportScrollY:function(){return window.pageYOffset},getOffsetHeight:function(){return t.root_.offsetHeight},getFirstRowElementOffsetHeight:function(){return t.firstRowElement_.offsetHeight},notifyChange:function(e){return t.emit(s.CHANGE_EVENT,e)},setStyle:function(e,i){return t.root_.style.setProperty(e,i)},setStyleForTitleElement:function(e,i){t.titleElement_&&t.titleElement_.style.setProperty(e,i)},setStyleForFlexibleRowElement:function(e,i){return t.firstRowElement_.style.setProperty(e,i)},setStyleForFixedAdjustElement:function(e,i){t.fixedAdjustElement&&t.fixedAdjustElement.style.setProperty(e,i)}};return new n.a(e)},e}(r.a)},zSke:function(t,e,i){"use strict";i.r(e);var o=i("aWbL");i.d(e,"MDCToolbar",function(){return o.a});var r=i("QPs2");i.d(e,"cssClasses",function(){return r.a}),i.d(e,"strings",function(){return r.c}),i.d(e,"numbers",function(){return r.b});var a=i("LIbT");i.d(e,"MDCToolbarFoundation",function(){return a.a})}}]);