material-sass 4.0.0.beta3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +11 -10
  3. data/assets/javascripts/material-sprockets.js +1 -5
  4. data/assets/javascripts/material.js +155 -109
  5. data/assets/javascripts/material.min.js +4 -5
  6. data/assets/javascripts/material/addons/pickadate.js +0 -1
  7. data/assets/javascripts/material/components/expansion-panel.js +4 -5
  8. data/assets/javascripts/material/components/floating-label.js +10 -10
  9. data/assets/javascripts/material/components/nav-drawer.js +94 -68
  10. data/assets/javascripts/material/components/selection-control-focus.js +4 -5
  11. data/assets/javascripts/material/components/tab-switch.js +22 -11
  12. data/assets/javascripts/material/components/util.js +4 -14
  13. data/assets/stylesheets/material/{_colours.scss → _colors.scss} +414 -6
  14. data/assets/stylesheets/material/_functions.scss +17 -5
  15. data/assets/stylesheets/material/base/_base.scss +24 -0
  16. data/assets/stylesheets/material/bootstrap/_alert.scss +2 -2
  17. data/assets/stylesheets/material/bootstrap/_badge.scss +4 -4
  18. data/assets/stylesheets/material/bootstrap/_carousel.scss +36 -0
  19. data/assets/stylesheets/material/bootstrap/_close.scss +1 -1
  20. data/assets/stylesheets/material/bootstrap/_form.scss +26 -25
  21. data/assets/stylesheets/material/bootstrap/_pagination.scss +1 -1
  22. data/assets/stylesheets/material/material.scss +1 -1
  23. data/assets/stylesheets/material/material/_button-flat.scss +1 -1
  24. data/assets/stylesheets/material/material/_button-float.scss +22 -0
  25. data/assets/stylesheets/material/material/_button-group.scss +2 -2
  26. data/assets/stylesheets/material/material/_button.scss +6 -6
  27. data/assets/stylesheets/material/material/_card.scss +4 -4
  28. data/assets/stylesheets/material/material/_chip.scss +2 -2
  29. data/assets/stylesheets/material/material/_data-table.scss +62 -35
  30. data/assets/stylesheets/material/material/_dialog.scss +1 -1
  31. data/assets/stylesheets/material/material/_expansion-panel.scss +6 -6
  32. data/assets/stylesheets/material/material/_menu.scss +14 -0
  33. data/assets/stylesheets/material/material/_navdrawer.scss +99 -90
  34. data/assets/stylesheets/material/material/_picker.scss +69 -10
  35. data/assets/stylesheets/material/material/_progress-circular.scss +3 -3
  36. data/assets/stylesheets/material/material/_progress.scss +7 -7
  37. data/assets/stylesheets/material/material/_tab.scss +4 -0
  38. data/assets/stylesheets/material/material/_text-field-box.scss +19 -19
  39. data/assets/stylesheets/material/material/_text-field-floating-label.scss +8 -8
  40. data/assets/stylesheets/material/material/_text-field-input-group.scss +3 -3
  41. data/assets/stylesheets/material/material/_text-field.scss +3 -3
  42. data/assets/stylesheets/material/material/_toolbar.scss +48 -65
  43. data/assets/stylesheets/material/mixins/_breakpoint.scss +40 -22
  44. data/assets/stylesheets/material/mixins/_grid-framework.scss +6 -2
  45. data/assets/stylesheets/material/mixins/_grid.scss +10 -19
  46. data/assets/stylesheets/material/utilities/_background.scss +1 -1
  47. data/assets/stylesheets/material/utilities/_border.scss +1 -2
  48. data/assets/stylesheets/material/utilities/_display.scss +24 -16
  49. data/assets/stylesheets/material/utilities/_flex.scss +4 -0
  50. data/assets/stylesheets/material/utilities/_text.scss +1 -1
  51. data/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -6
  52. data/assets/stylesheets/material/variables/_grid.scss +10 -19
  53. data/assets/stylesheets/material/variables/_palette.scss +26 -25
  54. data/assets/stylesheets/material/variables/_spacer.scss +24 -21
  55. data/assets/stylesheets/material/variables/_typography.scss +0 -1
  56. data/assets/stylesheets/material/variables/_variable-bootstrap.scss +7 -9
  57. data/assets/stylesheets/material/variables/_variable-material.scss +34 -29
  58. data/lib/material-sass/version.rb +1 -1
  59. metadata +5 -5
@@ -1,17 +1,16 @@
1
1
  /*!
2
- * Daemonite Material v4.0.0-beta (http://daemonite.github.io/material/)
2
+ * Daemonite Material v4.0.0 (http://daemonite.github.io/material/)
3
3
  * Copyright 2011-2018 Daemon Pty Ltd
4
4
  * Licensed under MIT (https://github.com/Daemonite/material/blob/master/LICENSE)
5
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,t){"use strict";function n(e,t){return e(t={exports:{}},t.exports),t.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var o=n(function(e,n){
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,t){"use strict";function n(e,t){return e(t={exports:{}},t.exports),t.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var i=n(function(e,n){
7
7
  /*!
8
8
  * pickadate.js v3.5.6, 2015/04/20
9
9
  * By Amsul, http://amsul.ca
10
10
  * Hosted on http://amsul.github.io/pickadate.js
11
11
  * Licensed under MIT
12
- */var o;o=function(e){var t=e(window),n=e(document),o=e(document.documentElement),i=null!=document.documentElement.style.transition;function r(t,c,d,u){if(!t)return r;var h=!1,f={id:t.id||"P"+Math.abs(~~(Math.random()*new Date))},p=d?e.extend(!0,{},d.defaults,u):u||{},m=e.extend({},r.klasses(),p.klass),y=e(t),g=function(){return this.start()},v=g.prototype={constructor:g,$node:y,start:function(){return f&&f.start?v:(f.methods={},f.start=!0,f.open=!1,f.type=t.type,t.autofocus=t==l(),t.readOnly=!p.editable,t.id=t.id||f.id,"text"!=t.type&&(t.type="text"),v.component=new d(v,p),v.$root=e('<div class="'+m.picker+'" id="'+t.id+'_root" />'),s(v.$root[0],"hidden",!0),v.$holder=e(b()).appendTo(v.$root),_(),p.formatSubmit&&function(){var n;!0===p.hiddenName?(n=t.name,t.name=""):n=(n=["string"==typeof p.hiddenPrefix?p.hiddenPrefix:"","string"==typeof p.hiddenSuffix?p.hiddenSuffix:"_submit"])[0]+t.name+n[1];v._hidden=e('<input type=hidden name="'+n+'"'+(y.data("value")||t.value?' value="'+v.get("select",p.formatSubmit)+'"':"")+">")[0],y.on("change."+f.id,function(){v._hidden.value=t.value?v.get("select",p.formatSubmit):""})}(),function(){y.data(c,v).addClass(m.input).val(y.data("value")?v.get("select",p.format):t.value),p.editable||y.on("focus."+f.id+" click."+f.id,function(e){e.preventDefault(),v.open()}).on("keydown."+f.id,S);s(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+"_root"})}(),p.containerHidden?e(p.containerHidden).append(v._hidden):y.after(v._hidden),p.container?e(p.container).append(v.$root):y.after(v.$root),v.on({start:v.component.onStart,render:v.component.onRender,stop:v.component.onStop,open:v.component.onOpen,close:v.component.onClose,set:v.component.onSet}).on({start:p.onStart,render:p.onRender,stop:p.onStop,open:p.onOpen,close:p.onClose,set:p.onSet}),h=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(v.$holder[0]),t.autofocus&&v.open(),v.trigger("start").trigger("render"))},render:function(t){return t?(v.$holder=e(b()),_(),v.$root.html(v.$holder)):v.$root.find("."+m.box).html(v.component.nodes(f.open)),v.trigger("render")},stop:function(){return f.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),y.removeClass(m.input).removeData(c),setTimeout(function(){y.off("."+f.id)},0),t.type=f.type,t.readOnly=!1,v.trigger("stop"),f.methods={},f.start=!1,v):v},open:function(c){return f.open?v:(y.addClass(m.active),s(t,"expanded",!0),setTimeout(function(){v.$root.addClass(m.opened),s(v.$root[0],"hidden",!1)},0),!1!==c&&(f.open=!0,h&&o.css("overflow","hidden").css("padding-right","+="+a()),h&&i?v.$holder.find("."+m.frame).one("transitionend",function(){v.$holder[0].focus()}):v.$holder[0].focus(),n.on("click."+f.id+" focusin."+f.id,function(e){var n=e.target;n!=t&&n!=document&&3!=e.which&&v.close(n===v.$holder[0])}).on("keydown."+f.id,function(t){var n=t.keyCode,o=v.component.key[n],i=t.target;27==n?v.close(!0):i!=v.$holder[0]||!o&&13!=n?e.contains(v.$root[0],i)&&13==n&&(t.preventDefault(),i.click()):(t.preventDefault(),o?r._.trigger(v.component.key.go,v,[r._.trigger(o)]):v.$root.find("."+m.highlighted).hasClass(m.disabled)||(v.set("select",v.component.item.highlight),p.closeOnSelect&&v.close(!0)))})),v.trigger("open"))},close:function(e){return e&&(p.editable?t.focus():(v.$holder.off("focus.toOpen").focus(),setTimeout(function(){v.$holder.on("focus.toOpen",k)},0))),y.removeClass(m.active),s(t,"expanded",!1),setTimeout(function(){v.$root.removeClass(m.opened+" "+m.focused),s(v.$root[0],"hidden",!0)},0),f.open?(f.open=!1,h&&o.css("overflow","").css("padding-right","-="+a()),n.off("."+f.id),v.trigger("close")):v},clear:function(e){return v.set("clear",null,e)},set:function(t,n,o){var i,r,a=e.isPlainObject(t),s=a?t:{};if(o=a&&e.isPlainObject(n)?n:o||{},t){a||(s[t]=n);for(i in s)r=s[i],i in v.component.item&&(void 0===r&&(r=null),v.component.set(i,r,o)),"select"!=i&&"clear"!=i||y.val("clear"==i?"":v.get(i,p.format)).trigger("change");v.render()}return o.muted?v:v.trigger("set",s)},get:function(e,n){if(null!=f[e=e||"value"])return f[e];if("valueSubmit"==e){if(v._hidden)return v._hidden.value;e="value"}if("value"==e)return t.value;if(e in v.component.item){if("string"==typeof n){var o=v.component.get(e);return o?r._.trigger(v.component.formats.toString,v.component,[n,o]):""}return v.component.get(e)}},on:function(t,n,o){var i,r,a=e.isPlainObject(t),s=a?t:{};if(t){a||(s[t]=n);for(i in s)r=s[i],o&&(i="_"+i),f.methods[i]=f.methods[i]||[],f.methods[i].push(r)}return v},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in f.methods&&delete f.methods[t];return v},trigger:function(e,t){var n=function(e){var n=f.methods[e];n&&n.map(function(e){r._.trigger(e,v,[t])})};return n("_"+e),n(e),v}};function b(){return r._.node("div",r._.node("div",r._.node("div",r._.node("div",v.component.nodes(f.open),m.box),m.wrap),m.frame),m.holder,'tabindex="-1"')}function _(){v.$holder.on({keydown:S,"focus.toOpen":k,blur:function(){y.removeClass(m.target)},focusin:function(e){v.$root.removeClass(m.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=v.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),v.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),o=t.hasClass(m.navDisabled)||t.hasClass(m.disabled),i=l();i=i&&(i.type||i.href),(o||i&&!e.contains(v.$root[0],i))&&v.$holder[0].focus(),!o&&n.nav?v.set("highlight",v.component.item.highlight,{nav:n.nav}):!o&&"pick"in n?(v.set("select",n.pick),p.closeOnSelect&&v.close(!0)):n.clear?(v.clear(),p.closeOnClear&&v.close(!0)):n.close&&v.close(!0)})}function k(e){e.stopPropagation(),y.addClass(m.target),v.$root.addClass(m.focused),v.open()}function S(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return v.close(!0),!1;(32==t||n||!f.open&&v.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?v.clear().close():v.open())}return new g}function a(){if(o.height()<=t.height())return 0;var n=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=n[0].offsetWidth;n.css("overflow","scroll");var r=e('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),i-r}function s(t,n,o){if(e.isPlainObject(n))for(var i in n)c(t,i,n[i]);else c(t,n,o)}function c(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function l(){try{return document.activeElement}catch(e){}}return r.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},r._={group:function(e){for(var t,n="",o=r._.trigger(e.min,e);o<=r._.trigger(e.max,e,[o]);o+=e.i)t=r._.trigger(e.item,e,[o]),n+=r._.node(e.node,t[0],t[1],t[2]);return n},node:function(t,n,o,i){return n?(n=e.isArray(n)?n.join(""):n,"<"+t+(o=o?' class="'+o+'"':"")+(i=i?" "+i:"")+">"+n+"</"+t+">"):""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){e.isPlainObject(t)||(t={attribute:n});n="";for(var o in t){var i=("role"==o?"":"aria-")+o,r=t[o];n+=null==r?"":i+'="'+t[o]+'"'}return n}},r.extend=function(t,n){e.fn[t]=function(o,i){var a=this.data(t);return"picker"==o?a:a&&"string"==typeof o?r._.trigger(a[o],a,[i]):this.each(function(){e(this).data(t)||new r(this,t,n,o)})},e.fn[t].defaults=n.defaults},r},e.exports=o(t)});n(function(e,n){
12
+ */var i;i=function(e){var t=e(window),n=e(document),i=e(document.documentElement),o=null!=document.documentElement.style.transition;function r(t,c,d,u){if(!t)return r;var h=!1,p={id:t.id||"P"+Math.abs(~~(Math.random()*new Date))},f=d?e.extend(!0,{},d.defaults,u):u||{},m=e.extend({},r.klasses(),f.klass),y=e(t),g=function(){return this.start()},v=g.prototype={constructor:g,$node:y,start:function(){return p&&p.start?v:(p.methods={},p.start=!0,p.open=!1,p.type=t.type,t.autofocus=t==l(),t.readOnly=!f.editable,t.id=t.id||p.id,"text"!=t.type&&(t.type="text"),v.component=new d(v,f),v.$root=e('<div class="'+m.picker+'" id="'+t.id+'_root" />'),s(v.$root[0],"hidden",!0),v.$holder=e(_()).appendTo(v.$root),b(),f.formatSubmit&&function(){var n;!0===f.hiddenName?(n=t.name,t.name=""):n=(n=["string"==typeof f.hiddenPrefix?f.hiddenPrefix:"","string"==typeof f.hiddenSuffix?f.hiddenSuffix:"_submit"])[0]+t.name+n[1];v._hidden=e('<input type=hidden name="'+n+'"'+(y.data("value")||t.value?' value="'+v.get("select",f.formatSubmit)+'"':"")+">")[0],y.on("change."+p.id,function(){v._hidden.value=t.value?v.get("select",f.formatSubmit):""})}(),function(){y.data(c,v).addClass(m.input).val(y.data("value")?v.get("select",f.format):t.value),f.editable||y.on("focus."+p.id+" click."+p.id,function(e){e.preventDefault(),v.open()}).on("keydown."+p.id,w);s(t,{haspopup:!0,expanded:!1,readonly:!1,owns:t.id+"_root"})}(),f.containerHidden?e(f.containerHidden).append(v._hidden):y.after(v._hidden),f.container?e(f.container).append(v.$root):y.after(v.$root),v.on({start:v.component.onStart,render:v.component.onRender,stop:v.component.onStop,open:v.component.onOpen,close:v.component.onClose,set:v.component.onSet}).on({start:f.onStart,render:f.onRender,stop:f.onStop,open:f.onOpen,close:f.onClose,set:f.onSet}),h=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(v.$holder[0]),t.autofocus&&v.open(),v.trigger("start").trigger("render"))},render:function(t){return t?(v.$holder=e(_()),b(),v.$root.html(v.$holder)):v.$root.find("."+m.box).html(v.component.nodes(p.open)),v.trigger("render")},stop:function(){return p.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),y.removeClass(m.input).removeData(c),setTimeout(function(){y.off("."+p.id)},0),t.type=p.type,t.readOnly=!1,v.trigger("stop"),p.methods={},p.start=!1,v):v},open:function(c){return p.open?v:(y.addClass(m.active),s(t,"expanded",!0),setTimeout(function(){v.$root.addClass(m.opened),s(v.$root[0],"hidden",!1)},0),!1!==c&&(p.open=!0,h&&i.css("overflow","hidden").css("padding-right","+="+a()),h&&o?v.$holder.find("."+m.frame).one("transitionend",function(){v.$holder[0].focus()}):v.$holder[0].focus(),n.on("click."+p.id+" focusin."+p.id,function(e){var n=e.target;n!=t&&n!=document&&3!=e.which&&v.close(n===v.$holder[0])}).on("keydown."+p.id,function(t){var n=t.keyCode,i=v.component.key[n],o=t.target;27==n?v.close(!0):o!=v.$holder[0]||!i&&13!=n?e.contains(v.$root[0],o)&&13==n&&(t.preventDefault(),o.click()):(t.preventDefault(),i?r._.trigger(v.component.key.go,v,[r._.trigger(i)]):v.$root.find("."+m.highlighted).hasClass(m.disabled)||(v.set("select",v.component.item.highlight),f.closeOnSelect&&v.close(!0)))})),v.trigger("open"))},close:function(e){return e&&(f.editable?t.focus():(v.$holder.off("focus.toOpen").focus(),setTimeout(function(){v.$holder.on("focus.toOpen",k)},0))),y.removeClass(m.active),s(t,"expanded",!1),setTimeout(function(){v.$root.removeClass(m.opened+" "+m.focused),s(v.$root[0],"hidden",!0)},0),p.open?(p.open=!1,h&&i.css("overflow","").css("padding-right","-="+a()),n.off("."+p.id),v.trigger("close")):v},clear:function(e){return v.set("clear",null,e)},set:function(t,n,i){var o,r,a=e.isPlainObject(t),s=a?t:{};if(i=a&&e.isPlainObject(n)?n:i||{},t){for(o in a||(s[t]=n),s)r=s[o],o in v.component.item&&(void 0===r&&(r=null),v.component.set(o,r,i)),"select"!=o&&"clear"!=o||y.val("clear"==o?"":v.get(o,f.format)).trigger("change");v.render()}return i.muted?v:v.trigger("set",s)},get:function(e,n){if(null!=p[e=e||"value"])return p[e];if("valueSubmit"==e){if(v._hidden)return v._hidden.value;e="value"}if("value"==e)return t.value;if(e in v.component.item){if("string"==typeof n){var i=v.component.get(e);return i?r._.trigger(v.component.formats.toString,v.component,[n,i]):""}return v.component.get(e)}},on:function(t,n,i){var o,r,a=e.isPlainObject(t),s=a?t:{};if(t)for(o in a||(s[t]=n),s)r=s[o],i&&(o="_"+o),p.methods[o]=p.methods[o]||[],p.methods[o].push(r);return v},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in p.methods&&delete p.methods[t];return v},trigger:function(e,t){var n=function(e){var n=p.methods[e];n&&n.map(function(e){r._.trigger(e,v,[t])})};return n("_"+e),n(e),v}};function _(){return r._.node("div",r._.node("div",r._.node("div",r._.node("div",v.component.nodes(p.open),m.box),m.wrap),m.frame),m.holder,'tabindex="-1"')}function b(){v.$holder.on({keydown:w,"focus.toOpen":k,blur:function(){y.removeClass(m.target)},focusin:function(e){v.$root.removeClass(m.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=v.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),v.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),i=t.hasClass(m.navDisabled)||t.hasClass(m.disabled),o=l();o=o&&(o.type||o.href),(i||o&&!e.contains(v.$root[0],o))&&v.$holder[0].focus(),!i&&n.nav?v.set("highlight",v.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(v.set("select",n.pick),f.closeOnSelect&&v.close(!0)):n.clear?(v.clear(),f.closeOnClear&&v.close(!0)):n.close&&v.close(!0)})}function k(e){e.stopPropagation(),y.addClass(m.target),v.$root.addClass(m.focused),v.open()}function w(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return v.close(!0),!1;(32==t||n||!p.open&&v.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?v.clear().close():v.open())}return new g}function a(){if(i.height()<=t.height())return 0;var n=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),o=n[0].offsetWidth;n.css("overflow","scroll");var r=e('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),o-r}function s(t,n,i){if(e.isPlainObject(n))for(var o in n)c(t,o,n[o]);else c(t,n,i)}function c(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function l(){try{return document.activeElement}catch(e){}}return r.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},r._={group:function(e){for(var t,n="",i=r._.trigger(e.min,e);i<=r._.trigger(e.max,e,[i]);i+=e.i)t=r._.trigger(e.item,e,[i]),n+=r._.node(e.node,t[0],t[1],t[2]);return n},node:function(t,n,i,o){return n?(n=e.isArray(n)?n.join(""):n,"<"+t+(i=i?' class="'+i+'"':"")+(o=o?" "+o:"")+">"+n+"</"+t+">"):""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){e.isPlainObject(t)||(t={attribute:n});for(var i in n="",t){var o=("role"==i?"":"aria-")+i,r=t[i];n+=null==r?"":o+'="'+t[i]+'"'}return n}},r.extend=function(t,n){e.fn[t]=function(i,o){var a=this.data(t);return"picker"==i?a:a&&"string"==typeof i?r._.trigger(a[i],a,[o]):this.each(function(){e(this).data(t)||new r(this,t,n,i)})},e.fn[t].defaults=n.defaults},r},e.exports=i(t)});n(function(e,n){
13
13
  /*!
14
14
  * Date picker for pickadate.js v3.5.6
15
15
  * http://amsul.github.io/pickadate.js/date.htm
16
- */var i;i=function(e,t){var n,o=e._;function i(e,t){var n,o=this,i=e.$node[0],r=i.value,a=e.$node.data("value"),s=a||r,c=a?t.formatSubmit:t.format,l=function(){return i.currentStyle?"rtl"==i.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};o.settings=t,o.$node=e.$node,o.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},o.item={},o.item.clear=null,o.item.disable=(t.disable||[]).slice(0),o.item.enable=-(!0===(n=o.item.disable)[0]?n.shift():-1),o.set("min",t.min).set("max",t.max).set("now"),s?o.set("select",s,{format:c,defaultValue:!0}):o.set("select",null).set("highlight",o.item.now),o.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=o.item.highlight,n=new Date(t.year,t.month,t.date+e);o.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";o.disabled(o.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}i.prototype.set=function(e,t,n){var o=this,i=o.item;return null===t?("clear"==e&&(e="select"),i[e]=t,o):(i["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(i){return t=o[i](e,t,n)}).pop(),"select"==e?o.set("highlight",i.select,n):"highlight"==e?o.set("view",i.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(i.select&&o.disabled(i.select)&&o.set("select",i.select,n),i.highlight&&o.disabled(i.highlight)&&o.set("highlight",i.highlight,n)),o)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,n,i){var r;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&o.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=o.isDate(n)?n:this.create().obj):n=o.isInteger(n)||o.isDate(n)?this.normalize(new Date(n),i):this.now(e,n,i),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},i.prototype.createRange=function(e,n){var i=this,r=function(e){return!0===e||t.isArray(e)||o.isDate(e)?i.create(e):e};return o.isInteger(e)||(e=r(e)),o.isInteger(n)||(n=r(n)),o.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:o.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},i.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},i.prototype.navigate=function(e,n,o){var i,r,a,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),o&&o.nav&&d&&d.month!==a&&(r=d.year,a=d.month),r=(i=new Date(r,a+(o&&o.nav?o.nav:0),1)).getFullYear(),a=i.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},i.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},i.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):o.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},i.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},i.prototype.validate=function(e,n,i){var r,a,s,c,l=this,d=n,u=i&&i.interval?i.interval:1,h=-1===l.item.enable,f=l.item.min,p=l.item.max,m=h&&l.item.disable.filter(function(e){if(t.isArray(e)){var i=l.create(e).pick;i<n.pick?r=!0:i>n.pick&&(a=!0)}return o.isInteger(e)}).length;if((!i||!i.nav&&!i.defaultValue)&&(!h&&l.disabled(n)||h&&l.disabled(n)&&(m||r||a)||!h&&(n.pick<=f.pick||n.pick>=p.pick)))for(h&&!m&&(!a&&u>0||!r&&u<0)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=f.pick?(s=!0,u=1,n=l.create([f.year,f.month,f.date+(n.pick===f.pick?0:-1)])):n.pick>=p.pick&&(c=!0,u=-1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},i.prototype.disabled=function(e){var n=this,i=n.item.disable.filter(function(i){return o.isInteger(i)?e.day===(n.settings.firstDay?i:i-1)%7:t.isArray(i)||o.isDate(i)?e.pick===n.create(i).pick:t.isPlainObject(i)?n.withinRange(i,e):void 0});return i=i.length&&!i.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!i:i||e.pick<n.item.min.pick||e.pick>n.item.max.pick},i.prototype.parse=function(e,t,n){var i=this,r={};return t&&"string"==typeof t?(n&&n.format||((n=n||{}).format=i.settings.format),i.formats.toArray(n.format).map(function(e){var n=i.formats[e],a=n?o.trigger(n,i,[t,r]):e.replace(/^!/,"").length;n&&(r[e]=t.substr(0,a)),t=t.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},i.prototype.formats=function(){function e(e,t,n){var o=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(o)+1),o.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?o.digits(e):t.date},dd:function(e,t){return e?2:o.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?o.digits(e):t.month+1},mm:function(e,t){return e?2:o.lead(t.month+1)},mmm:function(t,n){var o=this.settings.monthsShort;return t?e(t,o,n):o[n.month]},mmmm:function(t,n){var o=this.settings.monthsFull;return t?e(t,o,n):o[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return o.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(e,n){return o.isInteger(e)&&o.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(o.isDate(e)||t.isArray(e))&&(o.isDate(n)||t.isArray(n))?this.create(e).pick===this.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(this.isDateExact(e.from,n.from)&&this.isDateExact(e.to,n.to))},i.prototype.isDateOverlap=function(e,n){var i=this.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+i)===this.create(n).day+1:o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+i)===this.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&this.overlapRanges(e,n)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},i.prototype.deactivate=function(e,n){var i=this,r=i.item.disable.slice(0);return"flip"==n?i.flipEnable():!1===n?(i.flipEnable(1),r=[]):!0===n?(i.flipEnable(-1),r=[]):n.map(function(e){for(var n,a=0;a<r.length;a+=1)if(i.isDateExact(e,r[a])){n=!0;break}n||(o.isInteger(e)||o.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},i.prototype.activate=function(e,n){var i=this,r=i.item.disable,a=r.length;return"flip"==n?i.flipEnable():!0===n?(i.flipEnable(1),r=[]):!1===n?(i.flipEnable(-1),r=[]):n.map(function(e){var n,s,c,l;for(c=0;c<a;c+=1){if(s=r[c],i.isDateExact(s,e)){n=r[c]=null,l=!0;break}if(i.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):o.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;c<a;c+=1)if(i.isDateExact(r[c],e)){r[c]=null;break}if(l)for(c=0;c<a;c+=1)if(i.isDateOverlap(r[c],e)){r[c]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},i.prototype.nodes=function(e){var t,n,i=this,r=i.settings,a=i.item,s=a.now,c=a.select,l=a.highlight,d=a.view,u=a.disable,h=a.min,f=a.max,p=(t=(r.showWeekdaysFull?r.weekdaysFull:r.weekdaysShort).slice(0),n=r.weekdaysFull.slice(0),r.firstDay&&(t.push(t.shift()),n.push(n.shift())),o.node("thead",o.node("tr",o.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],r.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),m=function(e){return o.node("div"," ",r.klass["nav"+(e?"Next":"Prev")]+(e&&d.year>=f.year&&d.month>=f.month||!e&&d.year<=h.year&&d.month<=h.month?" "+r.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:i.$node[0].id+"_table"})+' title="'+(e?r.labelMonthNext:r.labelMonthPrev)+'"')},y=function(){var t=r.showMonthsShort?r.monthsShort:r.monthsFull;return r.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(d.month==e?" selected":"")+(d.year==h.year&&e<h.month||d.year==f.year&&e>f.month?" disabled":"")]}}),r.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:i.$node[0].id+"_table"})+' title="'+r.labelMonthSelect+'"'):o.node("div",t[d.month],r.klass.month)},g=function(){var t=d.year,n=!0===r.selectYears?5:~~(r.selectYears/2);if(n){var a=h.year,s=f.year,c=t-n,l=t+n;if(a>c&&(l+=a-c,c=a),s<l){var u=c-a,p=l-s;c-=u>p?p:u,l=s}return o.node("select",o.group({min:c,max:l,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),r.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:i.$node[0].id+"_table"})+' title="'+r.labelYearSelect+'"')}return o.node("div",t,r.klass.year)};return o.node("div",(r.selectYears?g()+y():y()+g())+m()+m(1),r.klass.header)+o.node("table",p+o.node("tbody",o.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=r.firstDay&&0===i.create([d.year,d.month,1]).day?-7:0;return[o.group({min:7*e-d.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=i.create([d.year,d.month,e+(r.firstDay?1:0)]);var t,n=c&&c.pick==e.pick,a=l&&l.pick==e.pick,p=u&&i.disabled(e)||e.pick<h.pick||e.pick>f.pick,m=o.trigger(i.formats.toString,i,[r.format,e]);return[o.node("div",e.date,(t=[r.klass.day],t.push(d.month==e.month?r.klass.infocus:r.klass.outfocus),s.pick==e.pick&&t.push(r.klass.now),n&&t.push(r.klass.selected),a&&t.push(r.klass.highlighted),p&&t.push(r.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",label:m,selected:!(!n||i.$node.val()!==m)||null,activedescendant:!!a||null,disabled:!!p||null})),"",o.ariaAttr({role:"presentation"})]}})]}})),r.klass.table,'id="'+i.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:i.$node[0].id,readonly:!0}))+o.node("div",o.node("button",r.today,r.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!i.disabled(s)?"":" disabled")+" "+o.ariaAttr({controls:i.$node[0].id}))+o.node("button",r.clear,r.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:i.$node[0].id}))+o.node("button",r.close,r.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:i.$node[0].id})),r.klass.footer)},i.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(n=e.klasses().picker+"__")+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},e.extend("pickadate",i)},e.exports=i(o,t)});function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}!function(e){var t=function(e,t){this._element=e,this._options=t};t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,o){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(o,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(o,"dddd")+'</span><span class="picker-day-display">'+t.get(o,"d")+'</span><span class="picker-month-display">'+t.get(o,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),o=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",o).length||t.display(n,o,"highlight")},set:function(){null!==n.get("select")&&t.display(n,o,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var o=e(this).data("bs.pickdate"),i=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);o||e(this).data("bs.pickdate",o=new t(this,i)),o.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery);var r,a,s,c,l,d,u,h,f,p,m,y,g,v,b,_,k,S,w,D,C,O,I,E,x,T,N,A,M,$,j,P,F,R,W,U,Y,Q,H,L,J,B,K,q,z,G,V,Z,X,ee,te,ne,oe,ie,re,ae,se,ce=(s="show",c="show-predecessor",l="hide"+(a=".bs.collapse"),d="show"+a,u=".expansion-panel",h=".expansion-panel .collapse",void(r=t)(document).on(""+l,h,function(e){var t=r(e.target).closest(u);t.removeClass(s);var n=t.prev(u);n.length&&n.removeClass(c)}).on(""+d,h,function(e){var t=r(e.target).closest(u);t.addClass(s);var n=t.prev(u);n.length&&n.addClass(c)})),le=(m="."+(p="md.floatinglabel"),y="floatinglabel",g=(f=t).fn[y],v="is-focused",b="has-value",_="change"+m,k="focusin"+m,S="focusout"+m,w=".floating-label",D=".floating-label .form-control",C=function(){function e(e){this._element=e}var t=e.prototype;return t.change=function(e){f(this._element).val()||f(this._element).is("select")&&""!==f("option:first-child",f(this._element)).html().replace(" ","")?f(e).addClass(b):f(e).removeClass(b)},t.focusin=function(e){f(e).addClass(v)},t.focusout=function(e){f(e).removeClass(v)},e._jQueryInterface=function(t){return this.each(function(){var n=t||"change",o=f(this).data(p);if(o||(o=new e(this),f(this).data(p,o)),"string"==typeof n){if("undefined"===o[n])throw new Error('No method named "'+n+'"');o[n](f(this).closest(w))}})},e}(),f(document).on(_+" "+k+" "+S,D,function(e){C._jQueryInterface.call(f(this),e.type)}),f.fn[y]=C._jQueryInterface,f.fn[y].Constructor=C,f.fn[y].noConflict=function(){return f.fn[y]=g,C._jQueryInterface},C),de=function(e){var t=!1;function n(t){var n=this,i=!1;return e(this).one(o.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||o.triggerTransitionEnd(n)},t),this}var o={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(t){var n,o=t.getAttribute("data-target");o&&"#"!==o||(o=t.getAttribute("href")||""),"#"===o.charAt(0)&&(n=o,o=n="function"==typeof e.escapeSelector?e.escapeSelector(n).substr(1):n.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return e(document).find(o).length>0?o:null}catch(e){return null}},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(n){e(n).trigger(t.end)},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],a=t[i],s=a&&o.isElement(a)?"element":(c=a,{}.toString.call(c).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var c}};return t=!window.QUnit&&{end:"transitionend"},e.fn.emulateTransitionEnd=n,o.supportsTransitionEnd()&&(e.event.special[o.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),o}(t),ue=(E="."+(I="md.navdrawer"),x="navdrawer",T=(O=t).fn[x],N="navdrawer-backdrop",A="navdrawer-open",M="show",$={breakpoint:1280,keyboard:!0,show:!0,type:"default"},j={keyboard:"boolean",show:"boolean",type:"string"},P={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:"show"+E,SHOWN:"shown"+E},F={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},R=function(){function e(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(F.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1}var t,n,o,r=e.prototype;return r.hide=function(e){e&&e.preventDefault();var t=A+"-"+this._config.type,n=O.Event(P.HIDE);O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),O(document).off(P.FOCUSIN),O(this._content).off(P.MOUSEDOWN_DISMISS),O(this._element).off(P.CLICK_DISMISS).removeClass(M),this._hideNavdrawer(t))},r.show=function(e){var t=this,n=O.Event(P.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,O(document.body).addClass(A+"-"+this._config.type),this._setEscapeEvent(),O(this._element).addClass(x+"-"+this._config.type),O(this._element).on(P.CLICK_DISMISS,F.DATA_DISMISS,O.proxy(this.hide,this)),O(this._content).on(P.MOUSEDOWN_DISMISS,function(){O(t._element).one(P.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))},r.toggle=function(e){return this._isShown?this.hide():this.show(e)},r._enforceFocus=function(){var e=this;O(document).off(P.FOCUSIN).on(P.FOCUSIN,function(t){("default"===e._config.type||O(window).width()<=e._config.breakpoint)&&(e._element===t.target||O(e._element).has(t.target).length||e._element.focus())})},r._getConfig=function(e){return e=O.extend({},$,e),de.typeCheckConfig(x,e,j),e},r._hideNavdrawer=function(e){var t=this;this._showBackdrop(function(){O(document.body).removeClass(e),t._element.setAttribute("aria-hidden","true"),t._element.style.display="none",O(t._element).trigger(P.HIDDEN)})},r._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},r._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?O(this._element).on(P.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||O(this._element).off(P.KEYDOWN_DISMISS)},r._showBackdrop=function(e){var t=this,n=de.supportsTransitionEnd();if(this._isShown){if(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(N).addClass(N+"-"+this._config.type).appendTo(document.body),O(this._element).on(P.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t.hide()}),n&&de.reflow(this._backdrop),O(this._backdrop).addClass(M),!e)return;if(!n)return void e();O(this._backdrop).one(de.TRANSITION_END,e).emulateTransitionEnd(487.5)}else if(this._backdrop&&!this._isShown){O(this._backdrop).removeClass(M);var o=function(){t._removeBackdrop(),e&&e()};n?O(this._backdrop).one(de.TRANSITION_END,o).emulateTransitionEnd(487.5):o()}else e&&e()},r._showElement=function(e){var t=this,n=de.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.removeAttribute("aria-hidden"),this._element.style.display="block",n&&de.reflow(this._element),O(this._element).addClass(M),this._enforceFocus();var o=O.Event(P.SHOWN,{relatedTarget:e}),i=function(){t._element.focus(),O(t._element).trigger(o)};n?O(this._content).one(de.TRANSITION_END,i).emulateTransitionEnd(292.5):i()},e._jQueryInterface=function(t,n){return this.each(function(){var o=O.extend({},e.Default,O(this).data(),"object"==typeof t&&t),i=O(this).data(I);if(i||(i=new e(this,o),O(this).data(I,i)),"string"==typeof t){if("undefined"===i[t])throw new Error('No method named "'+t+'"');i[t](n)}else o.show&&i.show(n)})},t=e,o=[{key:"Default",get:function(){return $}}],(n=null)&&i(t.prototype,n),o&&i(t,o),e}(),O(document).on(P.CLICK_DATA_API,F.DATA_TOGGLE,function(e){var t,n=this,o=de.getSelectorFromElement(this);o&&(t=O(o)[0]);var i=O(t).data(I)?"toggle":O.extend({},O(t).data(),O(this).data());"A"===this.tagName&&e.preventDefault();var r=O(t).one(P.SHOW,function(e){e.isDefaultPrevented()||r.one(P.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});R._jQueryInterface.call(O(t),i,this)}),O.fn[x]=R._jQueryInterface,O.fn[x].Constructor=R,O.fn[x].noConflict=function(){return O.fn[x]=T,R._jQueryInterface},R),he=(Y="focus",Q={IS_MOUSEDOWN:!1},H="blur"+(U=".md.selectioncontrolfocus"),L="focus"+U,J="mousedown"+U,B="mouseup"+U,K=".custom-control",q=".custom-control-input",void(W=t)(document).on(""+H,q,function(e){W(e.target).removeClass(Y)}).on(""+L,q,function(e){!1===Q.IS_MOUSEDOWN&&W(e.target).addClass(Y)}).on(""+J,K,function(){Q.IS_MOUSEDOWN=!0}).on(""+B,K,function(){setTimeout(function(){Q.IS_MOUSEDOWN=!1},1)})),fe=(G="md.tabswitch",V="tabswitch",Z=(z=t).fn[V],X="animate",ee="dropdown-item",te="nav-tabs-indicator",ne="nav-tabs-material",oe="show",ie='.nav-tabs [data-toggle="tab"]',re=".dropdown",ae=".nav-tabs",se=function(){function e(e){if("undefined"==typeof z.fn.tab)throw new Error("Material's JavaScript requires Bootstrap's tab.js");this._nav=e,this._navindicator=null}var t=e.prototype;return t.switch=function(e,t){var n=this,o=z(this._nav).offset().left,i=z(this._nav).scrollLeft(),r=z(this._nav).outerWidth(),a=de.supportsTransitionEnd();this._navindicator||this._createIndicator(o,i,r,t),z(e).hasClass(ee)&&(e=z(e).closest(re));var s=z(e).offset().left,c=z(e).outerWidth();z(this._navindicator).addClass(oe),de.reflow(this._navindicator),a&&z(this._nav).addClass(X),z(this._navindicator).css({left:s+i-o,right:r-(s+i-o+c)});var l=function(){z(n._nav).removeClass(X),z(n._navindicator).removeClass(oe)};a?z(this._navindicator).one(de.TRANSITION_END,l).emulateTransitionEnd(390):l()},t._createIndicator=function(e,t,n,o){if(this._navindicator=document.createElement("div"),z(this._navindicator).addClass(te).appendTo(this._nav),"undefined"!==o){z(o).hasClass(ee)&&(o=z(o).closest(re));var i=z(o).offset().left,r=z(o).outerWidth();z(this._navindicator).css({left:i+t-e,right:n-(i+t-e+r)})}z(this._nav).addClass(ne)},e._jQueryInterface=function(t){return this.each(function(){var n=z(this).closest(ae)[0];if(n){var o=z(n).data(G);o||(o=new e(n),z(n).data(G,o)),o.switch(this,t)}})},e}(),z(document).on("show.bs.tab",ie,function(e){se._jQueryInterface.call(z(e.target),e.relatedTarget)}),z.fn[V]=se._jQueryInterface,z.fn[V].Constructor=se,z.fn[V].noConflict=function(){return z.fn[V]=Z,se._jQueryInterface},se);e.Util=de,e.ExpansionPanel=ce,e.FloatingLabel=le,e.NavDrawer=ue,e.SelectionControlFocus=he,e.TabSwitch=fe,Object.defineProperty(e,"__esModule",{value:!0})});
17
- //# sourceMappingURL=material.min.js.map
16
+ */var o;o=function(e,t){var n,i=e._;function o(e,t){var n,i=this,o=e.$node[0],r=o.value,a=e.$node.data("value"),s=a||r,c=a?t.formatSubmit:t.format,l=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};i.settings=t,i.$node=e.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",t.min).set("max",t.max).set("now"),s?i.set("select",s,{format:c,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(e,t,n){var i=this,o=i.item;return null===t?("clear"==e&&(e="select"),o[e]=t,i):(o["enable"==e?"disable":"flip"==e?"enable":e]=i.queue[e].split(" ").map(function(o){return t=i[o](e,t,n)}).pop(),"select"==e?i.set("highlight",o.select,n):"highlight"==e?i.set("view",o.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&i.disabled(o.select)&&i.set("select",o.select,n),o.highlight&&i.disabled(o.highlight)&&i.set("highlight",o.highlight,n)),i)},o.prototype.get=function(e){return this.item[e]},o.prototype.create=function(e,n,o){var r;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:this.create().obj):n=i.isInteger(n)||i.isDate(n)?this.normalize(new Date(n),o):this.now(e,n,o),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},o.prototype.createRange=function(e,n){var o=this,r=function(e){return!0===e||t.isArray(e)||i.isDate(e)?o.create(e):e};return i.isInteger(e)||(e=r(e)),i.isInteger(n)||(n=r(n)),i.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:i.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},o.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},o.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},o.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},o.prototype.navigate=function(e,n,i){var o,r,a,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),i&&i.nav&&d&&d.month!==a&&(r=d.year,a=d.month),r=(o=new Date(r,a+(i&&i.nav?i.nav:0),1)).getFullYear(),a=o.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},o.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},o.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):i.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},o.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},o.prototype.validate=function(e,n,o){var r,a,s,c,l=this,d=n,u=o&&o.interval?o.interval:1,h=-1===l.item.enable,p=l.item.min,f=l.item.max,m=h&&l.item.disable.filter(function(e){if(t.isArray(e)){var o=l.create(e).pick;o<n.pick?r=!0:o>n.pick&&(a=!0)}return i.isInteger(e)}).length;if((!o||!o.nav&&!o.defaultValue)&&(!h&&l.disabled(n)||h&&l.disabled(n)&&(m||r||a)||!h&&(n.pick<=p.pick||n.pick>=f.pick)))for(h&&!m&&(!a&&u>0||!r&&u<0)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=p.pick?(s=!0,u=1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=f.pick&&(c=!0,u=-1,n=l.create([f.year,f.month,f.date+(n.pick===f.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},o.prototype.disabled=function(e){var n=this,o=n.item.disable.filter(function(o){return i.isInteger(o)?e.day===(n.settings.firstDay?o:o-1)%7:t.isArray(o)||i.isDate(o)?e.pick===n.create(o).pick:t.isPlainObject(o)?n.withinRange(o,e):void 0});return o=o.length&&!o.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!o:o||e.pick<n.item.min.pick||e.pick>n.item.max.pick},o.prototype.parse=function(e,t,n){var o=this,r={};return t&&"string"==typeof t?(n&&n.format||((n=n||{}).format=o.settings.format),o.formats.toArray(n.format).map(function(e){var n=o.formats[e],a=n?i.trigger(n,o,[t,r]):e.replace(/^!/,"").length;n&&(r[e]=t.substr(0,a)),t=t.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},o.prototype.formats=function(){function e(e,t,n){var i=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?i.digits(e):t.date},dd:function(e,t){return e?2:i.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?i.digits(e):t.month+1},mm:function(e,t){return e?2:i.lead(t.month+1)},mmm:function(t,n){var i=this.settings.monthsShort;return t?e(t,i,n):i[n.month]},mmmm:function(t,n){var i=this.settings.monthsFull;return t?e(t,i,n):i[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return i.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(e,n){return i.isInteger(e)&&i.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(i.isDate(e)||t.isArray(e))&&(i.isDate(n)||t.isArray(n))?this.create(e).pick===this.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(this.isDateExact(e.from,n.from)&&this.isDateExact(e.to,n.to))},o.prototype.isDateOverlap=function(e,n){var o=this.settings.firstDay?1:0;return i.isInteger(e)&&(i.isDate(n)||t.isArray(n))?(e=e%7+o)===this.create(n).day+1:i.isInteger(n)&&(i.isDate(e)||t.isArray(e))?(n=n%7+o)===this.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&this.overlapRanges(e,n)},o.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},o.prototype.deactivate=function(e,n){var o=this,r=o.item.disable.slice(0);return"flip"==n?o.flipEnable():!1===n?(o.flipEnable(1),r=[]):!0===n?(o.flipEnable(-1),r=[]):n.map(function(e){for(var n,a=0;a<r.length;a+=1)if(o.isDateExact(e,r[a])){n=!0;break}n||(i.isInteger(e)||i.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},o.prototype.activate=function(e,n){var o=this,r=o.item.disable,a=r.length;return"flip"==n?o.flipEnable():!0===n?(o.flipEnable(1),r=[]):!1===n?(o.flipEnable(-1),r=[]):n.map(function(e){var n,s,c,l;for(c=0;c<a;c+=1){if(s=r[c],o.isDateExact(s,e)){n=r[c]=null,l=!0;break}if(o.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):i.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;c<a;c+=1)if(o.isDateExact(r[c],e)){r[c]=null;break}if(l)for(c=0;c<a;c+=1)if(o.isDateOverlap(r[c],e)){r[c]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},o.prototype.nodes=function(e){var t,n,o=this,r=o.settings,a=o.item,s=a.now,c=a.select,l=a.highlight,d=a.view,u=a.disable,h=a.min,p=a.max,f=(t=(r.showWeekdaysFull?r.weekdaysFull:r.weekdaysShort).slice(0),n=r.weekdaysFull.slice(0),r.firstDay&&(t.push(t.shift()),n.push(n.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],r.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),m=function(e){return i.node("div"," ",r.klass["nav"+(e?"Next":"Prev")]+(e&&d.year>=p.year&&d.month>=p.month||!e&&d.year<=h.year&&d.month<=h.month?" "+r.klass.navDisabled:""),"data-nav="+(e||-1)+" "+i.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(e?r.labelMonthNext:r.labelMonthPrev)+'"')},y=function(){var t=r.showMonthsShort?r.monthsShort:r.monthsFull;return r.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(d.month==e?" selected":"")+(d.year==h.year&&e<h.month||d.year==p.year&&e>p.month?" disabled":"")]}}),r.klass.selectMonth,(e?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelMonthSelect+'"'):i.node("div",t[d.month],r.klass.month)},g=function(){var t=d.year,n=!0===r.selectYears?5:~~(r.selectYears/2);if(n){var a=h.year,s=p.year,c=t-n,l=t+n;if(a>c&&(l+=a-c,c=a),s<l){var u=c-a,f=l-s;c-=u>f?f:u,l=s}return i.node("select",i.group({min:c,max:l,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),r.klass.selectYear,(e?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelYearSelect+'"')}return i.node("div",t,r.klass.year)};return i.node("div",(r.selectYears?g()+y():y()+g())+m()+m(1),r.klass.header)+i.node("table",f+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=r.firstDay&&0===o.create([d.year,d.month,1]).day?-7:0;return[i.group({min:7*e-d.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=o.create([d.year,d.month,e+(r.firstDay?1:0)]);var t,n=c&&c.pick==e.pick,a=l&&l.pick==e.pick,f=u&&o.disabled(e)||e.pick<h.pick||e.pick>p.pick,m=i.trigger(o.formats.toString,o,[r.format,e]);return[i.node("div",e.date,(t=[r.klass.day],t.push(d.month==e.month?r.klass.infocus:r.klass.outfocus),s.pick==e.pick&&t.push(r.klass.now),n&&t.push(r.klass.selected),a&&t.push(r.klass.highlighted),f&&t.push(r.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+i.ariaAttr({role:"gridcell",label:m,selected:!(!n||o.$node.val()!==m)||null,activedescendant:!!a||null,disabled:!!f||null})),"",i.ariaAttr({role:"presentation"})]}})]}})),r.klass.table,'id="'+o.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0}))+i.node("div",i.node("button",r.today,r.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!o.disabled(s)?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.clear,r.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.close,r.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id})),r.klass.footer)},o.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(n=e.klasses().picker+"__")+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},e.extend("pickadate",o)},e.exports=o(i,t)});function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}!function(e){var t=function(e,t){this._element=e,this._options=t};t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,i){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(i,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(i,"dddd")+'</span><span class="picker-day-display">'+t.get(i,"d")+'</span><span class="picker-month-display">'+t.get(i,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),i=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",i).length||t.display(n,i,"highlight")},set:function(){null!==n.get("select")&&t.display(n,i,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var i=e(this).data("bs.pickdate"),o=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);i||e(this).data("bs.pickdate",i=new t(this,o)),i.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery);var a,s,c,l,d,u,h,p,f,m,y,g,v,_,b,k,w,S,D,C,O,T,E,I,A,x,N,M,$,j,P,F,W,R,B,L,U,Y,Q,H,K,J,G,q,z,V,X,Z,ee,te,ne,ie,oe,re,ae,se,ce,le,de,ue,he,pe,fe,me,ye,ge=(c="show",l="show-predecessor",d="hide"+(s=".bs.collapse"),u="show"+s,h=".expansion-panel",p=".expansion-panel .collapse",void(a=t)(document).on(""+d,p,function(){var e=a(this).closest(h);e.removeClass(c);var t=e.prev(h);t.length&&t.removeClass(l)}).on(""+u,p,function(){var e=a(this).closest(h);e.addClass(c);var t=e.prev(h);t.length&&t.addClass(l)})),ve=(y="."+(m="md.floatinglabel"),g="floatinglabel",v=(f=t).fn[g],_="is-focused",b="has-value",k="change"+y,w="focusin"+y,S="focusout"+y,D={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},C=function(){function e(e){this._element=e,this._parent=f(e).closest(D.DATA_PARENT)[0]}var t=e.prototype;return t.change=function(){f(this._element).val()||f(this._element).is("select")&&""!==f("option:first-child",f(this._element)).html().replace(" ","")?f(this._parent).addClass(b):f(this._parent).removeClass(b)},t.focusin=function(){f(this._parent).addClass(_)},t.focusout=function(){f(this._parent).removeClass(_)},e._jQueryInterface=function(t){return this.each(function(){var n=t||"change",i=f(this).data(m);if(i||(i=new e(this),f(this).data(m,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},e}(),f(document).on(k+" "+w+" "+S,D.DATA_TOGGLE,function(e){C._jQueryInterface.call(f(this),e.type)}),f.fn[g]=C._jQueryInterface,f.fn[g].Constructor=C,f.fn[g].noConflict=function(){return f.fn[g]=v,C._jQueryInterface},C),_e=function(e){var t=!1;function n(t){var n=this,o=!1;return e(this).one(i.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||i.triggerTransitionEnd(n)},t),this}var i={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(t){var n=t.getAttribute("data-target");n&&"#"!==n||(n=t.getAttribute("href")||"");try{return e(document).find(n).length>0?n:null}catch(e){return null}},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(n){e(n).trigger(t.end)},typeCheckConfig:function(e,t,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o],a=t[o],s=a&&i.isElement(a)?"element":(c=a,{}.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+s+'" but expected type "'+r+'".')}var c}};return t=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},e.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(e.event.special[i.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),i}(t),be=(E="."+(T="md.navdrawer"),I="navdrawer",A=(O=t).fn[I],x=992,N=576,M="navdrawer-backdrop",$="navdrawer-open",j="show",P={breakpoint:"",keyboard:!0,show:!0,type:"default"},F={keyboard:"boolean",show:"boolean",type:"string"},W={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:"show"+E,SHOWN:"shown"+E},R={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},B={DESKTOP:150,MOBILE:225,TABLET:292.5},L={DESKTOP:130,MOBILE:195,TABLET:253.5},U=function(){function e(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(R.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1,this._typeBreakpoint=""===this._config.breakpoint?"":"-"+this._config.breakpoint}var t,n,i,a=e.prototype;return a.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=O.Event(W.HIDE);if(O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=_e.supportsTransitionEnd();i&&(this._isTransitioning=!0),this._setEscapeEvent(),O(document).off(W.FOCUSIN),O(this._element).removeClass(j),O(this._element).off(W.CLICK_DISMISS),O(this._content).off(W.MOUSEDOWN_DISMISS),i?O(this._element).one(_e.TRANSITION_END,function(e){return t._hideNavdrawer(e)}).emulateTransitionEnd(this._getTransitionDuration(L)):this._hideNavdrawer(),this._showBackdrop()}}},a.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){_e.supportsTransitionEnd()&&(this._isTransitioning=!0);var n=O.Event(W.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,O(document.body).addClass($+"-"+this._config.type+this._typeBreakpoint),this._setEscapeEvent(),O(this._element).addClass(I+"-"+this._config.type+this._typeBreakpoint),O(this._element).on(W.CLICK_DISMISS,R.DATA_DISMISS,function(e){return t.hide(e)}),O(this._content).on(W.MOUSEDOWN_DISMISS,function(){O(t._element).one(W.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))}},a.toggle=function(e){return this._isShown?this.hide():this.show(e)},a._enforceFocus=function(){var e=this;O(document).off(W.FOCUSIN).on(W.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===O(e._element).has(t.target).length&&e._element.focus()})},a._getConfig=function(e){return e=r({},P,e),_e.typeCheckConfig(I,e,F),e},a._getTransitionDuration=function(e){return window.innerWidth>=x?e.DESKTOP:window.innerWidth>=N?e.TABLET:e.MOBILE},a._hideNavdrawer=function(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,O(document.body).removeClass($+"-"+this._config.type+this._typeBreakpoint),O(this._element).trigger(W.HIDDEN)},a._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},a._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?O(this._element).on(W.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||O(this._element).off(W.KEYDOWN_DISMISS)},a._showBackdrop=function(){var e=this,t=_e.supportsTransitionEnd();this._isShown?(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(M).addClass(M+"-"+this._config.type+this._typeBreakpoint).appendTo(document.body),O(this._element).on(W.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e.hide()}),t&&_e.reflow(this._backdrop),O(this._backdrop).addClass(j)):!this._isShown&&this._backdrop&&(O(this._backdrop).removeClass(j),this._removeBackdrop())},a._showElement=function(e){var t=this,n=_e.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),n&&_e.reflow(this._element),O(this._element).addClass(j),this._enforceFocus();var i=O.Event(W.SHOWN,{relatedTarget:e}),o=function(){t._element.focus(),t._isTransitioning=!1,O(t._element).trigger(i)};n?O(this._content).one(_e.TRANSITION_END,o).emulateTransitionEnd(this._getTransitionDuration(B)):o()},e._jQueryInterface=function(t,n){return this.each(function(){var i=r({},e.Default,O(this).data(),"object"==typeof t&&t),o=O(this).data(T);if(o||(o=new e(this,i),O(this).data(T,o)),"string"==typeof t){if("undefined"==typeof o[t])throw new TypeError('No method named "'+t+'"');o[t](n)}else i.show&&o.show(n)})},t=e,i=[{key:"Default",get:function(){return P}}],(n=null)&&o(t.prototype,n),i&&o(t,i),e}(),O(document).on(W.CLICK_DATA_API,R.DATA_TOGGLE,function(e){var t,n=this,i=_e.getSelectorFromElement(this);i&&(t=O(i)[0]);var o=O(t).data(T)?"toggle":r({},O(t).data(),O(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=O(t).one(W.SHOW,function(e){e.isDefaultPrevented()||a.one(W.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});U._jQueryInterface.call(O(t),o,this)}),O.fn[I]=U._jQueryInterface,O.fn[I].Constructor=U,O.fn[I].noConflict=function(){return O.fn[I]=A,U._jQueryInterface},U),ke=(H="focus",K={IS_MOUSEDOWN:!1},J="blur"+(Q=".md.selectioncontrolfocus"),G="focus"+Q,q="mousedown"+Q,z="mouseup"+Q,V=".custom-control",X=".custom-control-input",void(Y=t)(document).on(""+J,X,function(){Y(this).removeClass(H)}).on(""+G,X,function(){!1===K.IS_MOUSEDOWN&&Y(this).addClass(H)}).on(""+q,V,function(){K.IS_MOUSEDOWN=!0}).on(""+z,V,function(){setTimeout(function(){K.IS_MOUSEDOWN=!1},1)})),we=(ee="md.tabswitch",te="tabswitch",ne=(Z=t).fn[te],ie=992,oe=576,re="animate",ae="dropdown-item",se="nav-tabs-indicator",ce="nav-tabs-material",le="show",de='.nav-tabs [data-toggle="tab"]',ue=".dropdown",he=".nav-tabs",pe=200,fe=300,me=390,ye=function(){function e(e){this._nav=e,this._navindicator=null}var t=e.prototype;return t.switch=function(e,t){var n=this,i=Z(this._nav).offset().left,o=Z(this._nav).scrollLeft(),r=Z(this._nav).outerWidth(),a=_e.supportsTransitionEnd();this._navindicator||this._createIndicator(i,o,r,t),Z(e).hasClass(ae)&&(e=Z(e).closest(ue));var s=Z(e).offset().left,c=Z(e).outerWidth();Z(this._navindicator).addClass(le),_e.reflow(this._navindicator),a&&Z(this._nav).addClass(re),Z(this._navindicator).css({left:s+o-i,right:r-(s+o-i+c)});var l=function(){Z(n._nav).removeClass(re),Z(n._navindicator).removeClass(le)};if(a){var d=fe;window.innerWidth>=ie?d=pe:window.innerWidth>=oe&&(d=me),Z(this._navindicator).one(_e.TRANSITION_END,l).emulateTransitionEnd(d)}else l()},t._createIndicator=function(e,t,n,i){if(this._navindicator=document.createElement("div"),Z(this._navindicator).addClass(se).appendTo(this._nav),"undefined"!==i){Z(i).hasClass(ae)&&(i=Z(i).closest(ue));var o=Z(i).offset().left,r=Z(i).outerWidth();Z(this._navindicator).css({left:o+t-e,right:n-(o+t-e+r)})}Z(this._nav).addClass(ce)},e._jQueryInterface=function(t){return this.each(function(){var n=Z(this).closest(he)[0];if(n){var i=Z(n).data(ee);i||(i=new e(n),Z(n).data(ee,i)),i.switch(this,t)}})},e}(),Z(document).on("show.bs.tab",de,function(e){ye._jQueryInterface.call(Z(this),e.relatedTarget)}),Z.fn[te]=ye._jQueryInterface,Z.fn[te].Constructor=ye,Z.fn[te].noConflict=function(){return Z.fn[te]=ne,ye._jQueryInterface},ye);e.Util=_e,e.ExpansionPanel=ge,e.FloatingLabel=ve,e.NavDrawer=be,e.SelectionControlFocus=ke,e.TabSwitch=we,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -150,4 +150,3 @@
150
150
  return this;
151
151
  };
152
152
  })(jQuery);
153
- //# sourceMappingURL=pickadate.js.map
@@ -20,16 +20,16 @@ var ExpansionPanel = function ($) {
20
20
  PANEL_BODY: '.expansion-panel .collapse' // <<< constants
21
21
 
22
22
  };
23
- $(document).on("" + Event.HIDE, Selector.PANEL_BODY, function (event) {
24
- var target = $(event.target).closest(Selector.PANEL);
23
+ $(document).on("" + Event.HIDE, Selector.PANEL_BODY, function () {
24
+ var target = $(this).closest(Selector.PANEL);
25
25
  target.removeClass(ClassName.SHOW);
26
26
  var predecessor = target.prev(Selector.PANEL);
27
27
 
28
28
  if (predecessor.length) {
29
29
  predecessor.removeClass(ClassName.SHOW_PREDECESSOR);
30
30
  }
31
- }).on("" + Event.SHOW, Selector.PANEL_BODY, function (event) {
32
- var target = $(event.target).closest(Selector.PANEL);
31
+ }).on("" + Event.SHOW, Selector.PANEL_BODY, function () {
32
+ var target = $(this).closest(Selector.PANEL);
33
33
  target.addClass(ClassName.SHOW);
34
34
  var predecessor = target.prev(Selector.PANEL);
35
35
 
@@ -38,4 +38,3 @@ var ExpansionPanel = function ($) {
38
38
  }
39
39
  });
40
40
  }($);
41
- //# sourceMappingURL=expansion-panel.js.map
@@ -29,24 +29,25 @@ var FloatingLabel = function ($) {
29
29
  function () {
30
30
  function FloatingLabel(element) {
31
31
  this._element = element;
32
+ this._parent = $(element).closest(Selector.DATA_PARENT)[0];
32
33
  }
33
34
 
34
35
  var _proto = FloatingLabel.prototype;
35
36
 
36
- _proto.change = function change(relatedTarget) {
37
+ _proto.change = function change() {
37
38
  if ($(this._element).val() || $(this._element).is('select') && $('option:first-child', $(this._element)).html().replace(' ', '') !== '') {
38
- $(relatedTarget).addClass(ClassName.HAS_VALUE);
39
+ $(this._parent).addClass(ClassName.HAS_VALUE);
39
40
  } else {
40
- $(relatedTarget).removeClass(ClassName.HAS_VALUE);
41
+ $(this._parent).removeClass(ClassName.HAS_VALUE);
41
42
  }
42
43
  };
43
44
 
44
- _proto.focusin = function focusin(relatedTarget) {
45
- $(relatedTarget).addClass(ClassName.IS_FOCUSED);
45
+ _proto.focusin = function focusin() {
46
+ $(this._parent).addClass(ClassName.IS_FOCUSED);
46
47
  };
47
48
 
48
- _proto.focusout = function focusout(relatedTarget) {
49
- $(relatedTarget).removeClass(ClassName.IS_FOCUSED);
49
+ _proto.focusout = function focusout() {
50
+ $(this._parent).removeClass(ClassName.IS_FOCUSED);
50
51
  };
51
52
 
52
53
  FloatingLabel._jQueryInterface = function _jQueryInterface(event) {
@@ -61,11 +62,11 @@ var FloatingLabel = function ($) {
61
62
  }
62
63
 
63
64
  if (typeof _event === 'string') {
64
- if (data[_event] === 'undefined') {
65
+ if (typeof data[_event] === 'undefined') {
65
66
  throw new Error("No method named \"" + _event + "\"");
66
67
  }
67
68
 
68
- data[_event]($(this).closest(Selector.DATA_PARENT));
69
+ data[_event]();
69
70
  }
70
71
  });
71
72
  };
@@ -86,4 +87,3 @@ var FloatingLabel = function ($) {
86
87
 
87
88
  return FloatingLabel;
88
89
  }($);
89
- //# sourceMappingURL=floating-label.js.map
@@ -1,10 +1,12 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2
4
 
3
5
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4
6
 
5
7
  /*
6
- * navigation drawer
7
- * based on bootstrap's (v4.0.0-beta) modal.js
8
+ * Navigation drawer
9
+ * Based on Bootstrap's (v4.0.0) `modal.js`
8
10
  */
9
11
  var NavDrawer = function ($) {
10
12
  // constants >>>
@@ -14,15 +16,17 @@ var NavDrawer = function ($) {
14
16
  var EVENT_KEY = "." + DATA_KEY;
15
17
  var NAME = 'navdrawer';
16
18
  var NO_CONFLICT = $.fn[NAME];
17
- var TRANSITION_DURATION = 292.5;
18
- var TRANSITION_DURATION_BACKDROP = 487.5;
19
+ var Breakpoints = {
20
+ DESKTOP: 992,
21
+ TABLET: 576
22
+ };
19
23
  var ClassName = {
20
24
  BACKDROP: 'navdrawer-backdrop',
21
25
  OPEN: 'navdrawer-open',
22
26
  SHOW: 'show'
23
27
  };
24
28
  var Default = {
25
- breakpoint: 1280,
29
+ breakpoint: '',
26
30
  keyboard: true,
27
31
  show: true,
28
32
  type: 'default'
@@ -47,7 +51,17 @@ var NavDrawer = function ($) {
47
51
  var Selector = {
48
52
  CONTENT: '.navdrawer-content',
49
53
  DATA_DISMISS: '[data-dismiss="navdrawer"]',
50
- DATA_TOGGLE: '[data-toggle="navdrawer"]' // <<< constants
54
+ DATA_TOGGLE: '[data-toggle="navdrawer"]'
55
+ };
56
+ var TransitionDurationEntering = {
57
+ DESKTOP: 150,
58
+ MOBILE: 225,
59
+ TABLET: 292.5
60
+ };
61
+ var TransitionDurationLeaving = {
62
+ DESKTOP: 130,
63
+ MOBILE: 195,
64
+ TABLET: 253.5 // <<< constants
51
65
 
52
66
  };
53
67
 
@@ -61,16 +75,22 @@ var NavDrawer = function ($) {
61
75
  this._element = element;
62
76
  this._ignoreBackdropClick = false;
63
77
  this._isShown = false;
78
+ this._typeBreakpoint = this._config.breakpoint === '' ? '' : "-" + this._config.breakpoint;
64
79
  }
65
80
 
66
81
  var _proto = NavDrawer.prototype;
67
82
 
68
83
  _proto.hide = function hide(event) {
84
+ var _this = this;
85
+
69
86
  if (event) {
70
87
  event.preventDefault();
71
88
  }
72
89
 
73
- var hideClassName = ClassName.OPEN + "-" + this._config.type;
90
+ if (this._isTransitioning || !this._isShown) {
91
+ return;
92
+ }
93
+
74
94
  var hideEvent = $.Event(Event.HIDE);
75
95
  $(this._element).trigger(hideEvent);
76
96
 
@@ -79,18 +99,40 @@ var NavDrawer = function ($) {
79
99
  }
80
100
 
81
101
  this._isShown = false;
102
+ var supportsTransition = Util.supportsTransitionEnd();
103
+
104
+ if (supportsTransition) {
105
+ this._isTransitioning = true;
106
+ }
82
107
 
83
108
  this._setEscapeEvent();
84
109
 
85
110
  $(document).off(Event.FOCUSIN);
111
+ $(this._element).removeClass(ClassName.SHOW);
112
+ $(this._element).off(Event.CLICK_DISMISS);
86
113
  $(this._content).off(Event.MOUSEDOWN_DISMISS);
87
- $(this._element).off(Event.CLICK_DISMISS).removeClass(ClassName.SHOW);
88
114
 
89
- this._hideNavdrawer(hideClassName);
115
+ if (supportsTransition) {
116
+ $(this._element).one(Util.TRANSITION_END, function (event) {
117
+ return _this._hideNavdrawer(event);
118
+ }).emulateTransitionEnd(this._getTransitionDuration(TransitionDurationLeaving));
119
+ } else {
120
+ this._hideNavdrawer();
121
+ }
122
+
123
+ this._showBackdrop();
90
124
  };
91
125
 
92
126
  _proto.show = function show(relatedTarget) {
93
- var _this = this;
127
+ var _this2 = this;
128
+
129
+ if (this._isTransitioning || this._isShown) {
130
+ return;
131
+ }
132
+
133
+ if (Util.supportsTransitionEnd()) {
134
+ this._isTransitioning = true;
135
+ }
94
136
 
95
137
  var showEvent = $.Event(Event.SHOW, {
96
138
  relatedTarget: relatedTarget
@@ -102,16 +144,18 @@ var NavDrawer = function ($) {
102
144
  }
103
145
 
104
146
  this._isShown = true;
105
- $(document.body).addClass(ClassName.OPEN + "-" + this._config.type);
147
+ $(document.body).addClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
106
148
 
107
149
  this._setEscapeEvent();
108
150
 
109
- $(this._element).addClass(NAME + "-" + this._config.type);
110
- $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, $.proxy(this.hide, this));
151
+ $(this._element).addClass(NAME + "-" + this._config.type + this._typeBreakpoint);
152
+ $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
153
+ return _this2.hide(event);
154
+ });
111
155
  $(this._content).on(Event.MOUSEDOWN_DISMISS, function () {
112
- $(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
113
- if ($(event.target).is(_this._element)) {
114
- _this._ignoreBackdropClick = true;
156
+ $(_this2._element).one(Event.MOUSEUP_DISMISS, function (event) {
157
+ if ($(event.target).is(_this2._element)) {
158
+ _this2._ignoreBackdropClick = true;
115
159
  }
116
160
  });
117
161
  });
@@ -126,34 +170,39 @@ var NavDrawer = function ($) {
126
170
  };
127
171
 
128
172
  _proto._enforceFocus = function _enforceFocus() {
129
- var _this2 = this;
173
+ var _this3 = this;
130
174
 
131
175
  $(document).off(Event.FOCUSIN).on(Event.FOCUSIN, function (event) {
132
- if (_this2._config.type === 'default' || $(window).width() <= _this2._config.breakpoint) {
133
- if (_this2._element !== event.target && !$(_this2._element).has(event.target).length) {
134
- _this2._element.focus();
135
- }
176
+ if (document !== event.target && _this3._element !== event.target && $(_this3._element).has(event.target).length === 0) {
177
+ _this3._element.focus();
136
178
  }
137
179
  });
138
180
  };
139
181
 
140
182
  _proto._getConfig = function _getConfig(config) {
141
- config = $.extend({}, Default, config);
183
+ config = _extends({}, Default, config);
142
184
  Util.typeCheckConfig(NAME, config, DefaultType);
143
185
  return config;
144
186
  };
145
187
 
146
- _proto._hideNavdrawer = function _hideNavdrawer(className) {
147
- var _this3 = this;
188
+ _proto._getTransitionDuration = function _getTransitionDuration(duration) {
189
+ if (window.innerWidth >= Breakpoints.DESKTOP) {
190
+ return duration.DESKTOP;
191
+ } else if (window.innerWidth >= Breakpoints.TABLET) {
192
+ return duration.TABLET;
193
+ }
148
194
 
149
- this._showBackdrop(function () {
150
- $(document.body).removeClass(className);
195
+ return duration.MOBILE;
196
+ };
151
197
 
152
- _this3._element.setAttribute('aria-hidden', 'true');
198
+ _proto._hideNavdrawer = function _hideNavdrawer() {
199
+ this._element.style.display = 'none';
153
200
 
154
- _this3._element.style.display = 'none';
155
- $(_this3._element).trigger(Event.HIDDEN);
156
- });
201
+ this._element.setAttribute('aria-hidden', true);
202
+
203
+ this._isTransitioning = false;
204
+ $(document.body).removeClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
205
+ $(this._element).trigger(Event.HIDDEN);
157
206
  };
158
207
 
159
208
  _proto._removeBackdrop = function _removeBackdrop() {
@@ -169,6 +218,8 @@ var NavDrawer = function ($) {
169
218
  if (this._isShown && this._config.keyboard) {
170
219
  $(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
171
220
  if (event.which === ESCAPE_KEYCODE) {
221
+ event.preventDefault();
222
+
172
223
  _this4.hide();
173
224
  }
174
225
  });
@@ -177,14 +228,14 @@ var NavDrawer = function ($) {
177
228
  }
178
229
  };
179
230
 
180
- _proto._showBackdrop = function _showBackdrop(callback) {
231
+ _proto._showBackdrop = function _showBackdrop() {
181
232
  var _this5 = this;
182
233
 
183
234
  var supportsTransition = Util.supportsTransitionEnd();
184
235
 
185
236
  if (this._isShown) {
186
237
  this._backdrop = document.createElement('div');
187
- $(this._backdrop).addClass(ClassName.BACKDROP).addClass(ClassName.BACKDROP + "-" + this._config.type).appendTo(document.body);
238
+ $(this._backdrop).addClass(ClassName.BACKDROP).addClass(ClassName.BACKDROP + "-" + this._config.type + this._typeBreakpoint).appendTo(document.body);
188
239
  $(this._element).on(Event.CLICK_DISMISS, function (event) {
189
240
  if (_this5._ignoreBackdropClick) {
190
241
  _this5._ignoreBackdropClick = false;
@@ -203,35 +254,10 @@ var NavDrawer = function ($) {
203
254
  }
204
255
 
205
256
  $(this._backdrop).addClass(ClassName.SHOW);
206
-
207
- if (!callback) {
208
- return;
209
- }
210
-
211
- if (!supportsTransition) {
212
- callback();
213
- return;
214
- }
215
-
216
- $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(TRANSITION_DURATION_BACKDROP);
217
- } else if (this._backdrop && !this._isShown) {
257
+ } else if (!this._isShown && this._backdrop) {
218
258
  $(this._backdrop).removeClass(ClassName.SHOW);
219
259
 
220
- var callbackRemove = function callbackRemove() {
221
- _this5._removeBackdrop();
222
-
223
- if (callback) {
224
- callback();
225
- }
226
- };
227
-
228
- if (supportsTransition) {
229
- $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(TRANSITION_DURATION_BACKDROP);
230
- } else {
231
- callbackRemove();
232
- }
233
- } else if (callback) {
234
- callback();
260
+ this._removeBackdrop();
235
261
  }
236
262
  };
237
263
 
@@ -244,10 +270,10 @@ var NavDrawer = function ($) {
244
270
  document.body.appendChild(this._element);
245
271
  }
246
272
 
247
- this._element.removeAttribute('aria-hidden');
248
-
249
273
  this._element.style.display = 'block';
250
274
 
275
+ this._element.removeAttribute('aria-hidden');
276
+
251
277
  if (supportsTransition) {
252
278
  Util.reflow(this._element);
253
279
  }
@@ -263,11 +289,12 @@ var NavDrawer = function ($) {
263
289
  var transitionComplete = function transitionComplete() {
264
290
  _this6._element.focus();
265
291
 
292
+ _this6._isTransitioning = false;
266
293
  $(_this6._element).trigger(shownEvent);
267
294
  };
268
295
 
269
296
  if (supportsTransition) {
270
- $(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION);
297
+ $(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(this._getTransitionDuration(TransitionDurationEntering));
271
298
  } else {
272
299
  transitionComplete();
273
300
  }
@@ -275,7 +302,7 @@ var NavDrawer = function ($) {
275
302
 
276
303
  NavDrawer._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
277
304
  return this.each(function () {
278
- var _config = $.extend({}, NavDrawer.Default, $(this).data(), typeof config === 'object' && config);
305
+ var _config = _extends({}, NavDrawer.Default, $(this).data(), typeof config === 'object' && config);
279
306
 
280
307
  var data = $(this).data(DATA_KEY);
281
308
 
@@ -285,8 +312,8 @@ var NavDrawer = function ($) {
285
312
  }
286
313
 
287
314
  if (typeof config === 'string') {
288
- if (data[config] === 'undefined') {
289
- throw new Error("No method named \"" + config + "\"");
315
+ if (typeof data[config] === 'undefined') {
316
+ throw new TypeError("No method named \"" + config + "\"");
290
317
  }
291
318
 
292
319
  data[config](relatedTarget);
@@ -316,9 +343,9 @@ var NavDrawer = function ($) {
316
343
  target = $(selector)[0];
317
344
  }
318
345
 
319
- var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data());
346
+ var config = $(target).data(DATA_KEY) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
320
347
 
321
- if (this.tagName === 'A') {
348
+ if (this.tagName === 'A' || this.tagName === 'AREA') {
322
349
  event.preventDefault();
323
350
  }
324
351
 
@@ -346,4 +373,3 @@ var NavDrawer = function ($) {
346
373
 
347
374
  return NavDrawer;
348
375
  }($);
349
- //# sourceMappingURL=nav-drawer.js.map
@@ -23,11 +23,11 @@ var SelectionControlFocus = function ($) {
23
23
  INPUT: '.custom-control-input' // <<< constants
24
24
 
25
25
  };
26
- $(document).on("" + Event.BLUR, Selector.INPUT, function (event) {
27
- $(event.target).removeClass(ClassName.FOCUS);
28
- }).on("" + Event.FOCUS, Selector.INPUT, function (event) {
26
+ $(document).on("" + Event.BLUR, Selector.INPUT, function () {
27
+ $(this).removeClass(ClassName.FOCUS);
28
+ }).on("" + Event.FOCUS, Selector.INPUT, function () {
29
29
  if (LastInteraction.IS_MOUSEDOWN === false) {
30
- $(event.target).addClass(ClassName.FOCUS);
30
+ $(this).addClass(ClassName.FOCUS);
31
31
  }
32
32
  }).on("" + Event.MOUSEDOWN, Selector.CONTROL, function () {
33
33
  LastInteraction.IS_MOUSEDOWN = true;
@@ -37,4 +37,3 @@ var SelectionControlFocus = function ($) {
37
37
  }, 1);
38
38
  });
39
39
  }($);
40
- //# sourceMappingURL=selection-control-focus.js.map