material-sass 4.0.0.alpha6 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -0,0 +1 @@
1
+ function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if("undefined"==typeof jQuery)throw new Error("Material's JavaScript requires jQuery");+function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<3||t[0]>=4)throw new Error("Material's JavaScript requires at least jQuery v3.0.0 but less than v4.0.0")}(),function(e){this.Picker=e(jQuery)}(function(e){function t(r,s,u,f){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",D.component.nodes(w.open),O.box),O.wrap),O.frame),O.holder,'tabindex="-1"')}function h(){C.data(s,D).addClass(O.input).val(C.data("value")?D.get("select",S.format):r.value),S.editable||C.on("focus."+w.id+" click."+w.id,function(e){e.preventDefault(),D.open()}).on("keydown."+w.id,_),i(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"})}function m(){i(D.$root[0],"hidden",!0)}function v(){D.$holder.on({keydown:_,"focus.toOpen":b,blur:function(){C.removeClass(O.target)},focusin:function(e){D.$root.removeClass(O.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=D.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),D.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),o=t.hasClass(O.navDisabled)||t.hasClass(O.disabled),i=a();i=i&&(i.type||i.href),(o||i&&!e.contains(D.$root[0],i))&&D.$holder[0].focus(),!o&&n.nav?D.set("highlight",D.component.item.highlight,{nav:n.nav}):!o&&"pick"in n?(D.set("select",n.pick),S.closeOnSelect&&D.close(!0)):n.clear?(D.clear(),S.closeOnClear&&D.close(!0)):n.close&&D.close(!0)})}function y(){var t;!0===S.hiddenName?(t=r.name,r.name=""):(t=["string"==typeof S.hiddenPrefix?S.hiddenPrefix:"","string"==typeof S.hiddenSuffix?S.hiddenSuffix:"_submit"],t=t[0]+r.name+t[1]),D._hidden=e('<input type=hidden name="'+t+'"'+(C.data("value")||r.value?' value="'+D.get("select",S.formatSubmit)+'"':"")+">")[0],C.on("change."+w.id,function(){D._hidden.value=r.value?D.get("select",S.formatSubmit):""})}function g(){k&&d?D.$holder.find("."+O.frame).one("transitionend",function(){D.$holder[0].focus()}):D.$holder[0].focus()}function b(e){e.stopPropagation(),C.addClass(O.target),D.$root.addClass(O.focused),D.open()}function _(e){var t=e.keyCode,n=/^(8|46)$/.test(t);return 27==t?(D.close(!0),!1):void((32==t||n||!w.open&&D.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?D.clear().close():D.open()))}if(!r)return t;var k=!1,w={id:r.id||"P"+Math.abs(~~(Math.random()*new Date))},S=u?e.extend(!0,{},u.defaults,f):f||{},O=e.extend({},t.klasses(),S.klass),C=e(r),E=function(){return this.start()},D=E.prototype={constructor:E,$node:C,start:function(){return w&&w.start?D:(w.methods={},w.start=!0,w.open=!1,w.type=r.type,r.autofocus=r==a(),r.readOnly=!S.editable,r.id=r.id||w.id,"text"!=r.type&&(r.type="text"),D.component=new u(D,S),D.$root=e('<div class="'+O.picker+'" id="'+r.id+'_root" />'),m(),D.$holder=e(p()).appendTo(D.$root),v(),S.formatSubmit&&y(),h(),S.containerHidden?e(S.containerHidden).append(D._hidden):C.after(D._hidden),S.container?e(S.container).append(D.$root):C.after(D.$root),D.on({start:D.component.onStart,render:D.component.onRender,stop:D.component.onStop,open:D.component.onOpen,close:D.component.onClose,set:D.component.onSet}).on({start:S.onStart,render:S.onRender,stop:S.onStop,open:S.onOpen,close:S.onClose,set:S.onSet}),k=n(D.$holder[0]),r.autofocus&&D.open(),D.trigger("start").trigger("render"))},render:function(t){return t?(D.$holder=e(p()),v(),D.$root.html(D.$holder)):D.$root.find("."+O.box).html(D.component.nodes(w.open)),D.trigger("render")},stop:function(){return w.start?(D.close(),D._hidden&&D._hidden.parentNode.removeChild(D._hidden),D.$root.remove(),C.removeClass(O.input).removeData(s),setTimeout(function(){C.off("."+w.id)},0),r.type=w.type,r.readOnly=!1,D.trigger("stop"),w.methods={},w.start=!1,D):D},open:function(n){return w.open?D:(C.addClass(O.active),i(r,"expanded",!0),setTimeout(function(){D.$root.addClass(O.opened),i(D.$root[0],"hidden",!1)},0),!1!==n&&(w.open=!0,k&&l.css("overflow","hidden").css("padding-right","+="+o()),g(),c.on("click."+w.id+" focusin."+w.id,function(e){var t=e.target;t!=r&&t!=document&&3!=e.which&&D.close(t===D.$holder[0])}).on("keydown."+w.id,function(n){var o=n.keyCode,i=D.component.key[o],r=n.target;27==o?D.close(!0):r!=D.$holder[0]||!i&&13!=o?e.contains(D.$root[0],r)&&13==o&&(n.preventDefault(),r.click()):(n.preventDefault(),i?t._.trigger(D.component.key.go,D,[t._.trigger(i)]):D.$root.find("."+O.highlighted).hasClass(O.disabled)||(D.set("select",D.component.item.highlight),S.closeOnSelect&&D.close(!0)))})),D.trigger("open"))},close:function(e){return e&&(S.editable?r.focus():(D.$holder.off("focus.toOpen").focus(),setTimeout(function(){D.$holder.on("focus.toOpen",b)},0))),C.removeClass(O.active),i(r,"expanded",!1),setTimeout(function(){D.$root.removeClass(O.opened+" "+O.focused),i(D.$root[0],"hidden",!0)},0),w.open?(w.open=!1,k&&l.css("overflow","").css("padding-right","-="+o()),c.off("."+w.id),D.trigger("close")):D},clear:function(e){return D.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 D.component.item&&(void 0===r&&(r=null),D.component.set(i,r,o)),("select"==i||"clear"==i)&&C.val("clear"==i?"":D.get(i,S.format)).trigger("change");D.render()}return o.muted?D:D.trigger("set",s)},get:function(e,n){if(e=e||"value",null!=w[e])return w[e];if("valueSubmit"==e){if(D._hidden)return D._hidden.value;e="value"}if("value"==e)return r.value;if(e in D.component.item){if("string"==typeof n){var o=D.component.get(e);return o?t._.trigger(D.component.formats.toString,D.component,[n,o]):""}return D.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),w.methods[i]=w.methods[i]||[],w.methods[i].push(r)}return D},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in w.methods&&delete w.methods[t];return D},trigger:function(e,n){var o=function(e){var o=w.methods[e];o&&o.map(function(e){t._.trigger(e,D,[n])})};return o("_"+e),o(e),D}};return new E}function n(e){var t,n="position";return e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]),"fixed"==t}function o(){if(l.height()<=s.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),n=t[0].offsetWidth;t.css("overflow","scroll");var o=e('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),n-o}function i(t,n,o){if(e.isPlainObject(n))for(var i in n)r(t,i,n[i]);else r(t,n,o)}function r(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function a(){try{return document.activeElement}catch(e){}}var s=e(window),c=e(document),l=e(document.documentElement),d=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,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"}},t._={group:function(e){for(var n,o="",i=t._.trigger(e.min,e);i<=t._.trigger(e.max,e,[i]);i+=e.i)n=t._.trigger(e.item,e,[i]),o+=t._.node(e.node,n[0],n[1],n[2]);return o},node:function(t,n,o,i){return n?(n=e.isArray(n)?n.join(""):n,o=o?' class="'+o+'"':"",i=i?" "+i:"","<"+t+o+i+">"+n+"</"+t+">"):""},lead:function(e){return(10>e?"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;n+=null==t[o]?"":i+'="'+t[o]+'"'}return n}},t.extend=function(n,o){e.fn[n]=function(i,r){var a=this.data(n);return"picker"==i?a:a&&"string"==typeof i?t._.trigger(a[i],a,[r]):this.each(function(){e(this).data(n)||new t(this,n,o,i)})},e.fn[n].defaults=o.defaults},t}),function(e){e(Picker,jQuery)}(function(e,t){function n(e,t){var n=this,o=e.$node[0],i=o.value,r=e.$node.data("value"),a=r||i,s=r?t.formatSubmit:t.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.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"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return!0===e[0]?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),a?n.set("select",a,{format:s,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(e){var t=n.item.highlight,o=new Date(t.year,t.month,t.date+e);n.set("highlight",o,{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 o="";n.disabled(n.get("now"))&&(o=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+o+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var o=e._;n.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)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,i){var r,a=this;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:a.create().obj):n=o.isInteger(n)||o.isDate(n)?a.normalize(new Date(n),i):a.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()}},n.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)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.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)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.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},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){var n=this;return t?"string"==typeof t?t=n.parse(e,t):o.isInteger(t)&&(t=n.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,i){var r,a,s,c,l=this,d=n,u=i&&i.interval?i.interval:1,f=-1===l.item.enable,p=l.item.min,h=l.item.max,m=f&&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)&&(!f&&l.disabled(n)||f&&l.disabled(n)&&(m||r||a)||!f&&(n.pick<=p.pick||n.pick>=h.pick)))for(f&&!m&&(!a&&u>0||!r&&0>u)&&(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>=h.pick&&(c=!0,u=-1,n=l.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},n.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},n.prototype.parse=function(e,t,n){var i=this,r={};return t&&"string"==typeof t?(n&&n.format||(n=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},n.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("")}}}(),n.prototype.isDateExact=function(e,n){var i=this;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))?i.create(e).pick===i.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(i.isDateExact(e.from,n.from)&&i.isDateExact(e.to,n.to))},n.prototype.isDateOverlap=function(e,n){var i=this,r=i.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+r)===i.create(n).day+1:o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+r)===i.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&i.overlapRanges(e,n)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.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},n.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;a>c;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;a>c;c+=1)if(i.isDateExact(r[c],e)){r[c]=null;break}if(l)for(c=0;a>c;c+=1)if(i.isDateOverlap(r[c],e)){r[c]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},n.prototype.nodes=function(e){var t=this,n=t.settings,i=t.item,r=i.now,a=i.select,s=i.highlight,c=i.view,l=i.disable,d=i.min,u=i.max,f=function(e,t){return n.firstDay&&(e.push(e.shift()),t.push(t.shift())),o.node("thead",o.node("tr",o.group({min:0,max:6,i:1,node:"th",item:function(o){return[e[o],n.klass.weekdays,'scope=col title="'+t[o]+'"']}})))}((n.showWeekdaysFull?n.weekdaysFull:n.weekdaysShort).slice(0),n.weekdaysFull.slice(0)),p=function(e){return o.node("div"," ",n.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=u.year&&c.month>=u.month||!e&&c.year<=d.year&&c.month<=d.month?" "+n.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?n.labelMonthNext:n.labelMonthPrev)+'"')},h=function(){var i=n.showMonthsShort?n.monthsShort:n.monthsFull;return n.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[i[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==d.year&&e<d.month||c.year==u.year&&e>u.month?" disabled":"")]}}),n.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelMonthSelect+'"'):o.node("div",i[c.month],n.klass.month)},m=function(){var i=c.year,r=!0===n.selectYears?5:~~(n.selectYears/2);if(r){var a=d.year,s=u.year,l=i-r,f=i+r;if(a>l&&(f+=a-l,l=a),f>s){var p=l-a,h=f-s;l-=p>h?h:p,f=s}return o.node("select",o.group({min:l,max:f,i:1,node:"option",item:function(e){return[e,0,"value="+e+(i==e?" selected":"")]}}),n.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelYearSelect+'"')}return o.node("div",i,n.klass.year)};return o.node("div",(n.selectYears?m()+h():h()+m())+p()+p(1),n.klass.header)+o.node("table",f+o.node("tbody",o.group({min:0,max:5,i:1,node:"tr",item:function(e){var i=n.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[o.group({min:7*e-c.day+i+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(n.firstDay?1:0)]);var i=a&&a.pick==e.pick,f=s&&s.pick==e.pick,p=l&&t.disabled(e)||e.pick<d.pick||e.pick>u.pick,h=o.trigger(t.formats.toString,t,[n.format,e]);return[o.node("div",e.date,function(t){return t.push(c.month==e.month?n.klass.infocus:n.klass.outfocus),r.pick==e.pick&&t.push(n.klass.now),i&&t.push(n.klass.selected),f&&t.push(n.klass.highlighted),p&&t.push(n.klass.disabled),t.join(" ")}([n.klass.day]),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",label:h,selected:!(!i||t.$node.val()!==h)||null,activedescendant:!!f||null,disabled:!!p||null})),"",o.ariaAttr({role:"presentation"})]}})]}})),n.klass.table,'id="'+t.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+o.node("div",o.node("button",n.today,n.klass.buttonToday,"type=button data-pick="+r.pick+(e&&!t.disabled(r)?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.close,n.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id})),n.klass.footer)},n.defaults=function(e){return{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:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",n)}),function(e,t,n,o){function i(t,n){this.element=t,this.$element=e(t),this.init()}var r="textareaAutoSize",a="plugin_"+r,s=function(e){return e.replace(/\s/g,"").length>0};i.prototype={init:function(){var n=parseInt(this.$element.css("paddingBottom"))+parseInt(this.$element.css("paddingTop"))+parseInt(this.$element.css("borderTopWidth"))+parseInt(this.$element.css("borderBottomWidth"))||0;s(this.element.value)&&this.$element.height(this.element.scrollHeight-n),this.$element.on("input keyup",function(o){var i=e(t),r=i.scrollTop();e(this).height(0).height(this.scrollHeight-n),i.scrollTop(r)})}},e.fn[r]=function(t){return this.each(function(){e.data(this,a)||e.data(this,a,new i(this,t))}),this}}(jQuery,window,document),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(e)}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";function e(e){return null!==e&&e===e.window}function t(t){return e(t)?t:9===t.nodeType&&t.defaultView}function n(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function o(e){return n(e)&&e.nodeType>0}function i(e){var t=f.call(e);return"[object String]"===t?u(e):n(e)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&e.hasOwnProperty("length")?e:o(e)?[e]:[]}function r(e){var n,o,i={top:0,left:0},r=e&&e.ownerDocument;return n=r.documentElement,void 0!==e.getBoundingClientRect&&(i=e.getBoundingClientRect()),o=t(r),{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}}function a(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function s(e,t,n,o){if(n){o.classList.remove("waves-wrapping"),n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),r=n.getAttribute("data-y"),s=n.getAttribute("data-scale"),c=n.getAttribute("data-translate"),l=350-(Date.now()-Number(n.getAttribute("data-hold")));0>l&&(l=0),"mousemove"===e.type&&(l=150);var d="mousemove"===e.type?2500:h.duration;setTimeout(function(){var e={top:r+"px",left:i+"px",opacity:"0","-webkit-transition-duration":d+"ms","-moz-transition-duration":d+"ms","-o-transition-duration":d+"ms","transition-duration":d+"ms","-webkit-transform":s+" "+c,"-moz-transform":s+" "+c,"-ms-transform":s+" "+c,"-o-transform":s+" "+c,transform:s+" "+c};n.setAttribute("style",a(e)),setTimeout(function(){try{o.removeChild(n),t.removeChild(o)}catch(e){return!1}},d)},l)}}function c(e){if(!1===v.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(n.classList.contains("waves-effect")&&!(n instanceof SVGElement)){t=n;break}n=n.parentElement}return t}function l(e){var t=c(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(v.registerEvent(e),"touchstart"===e.type&&h.delay){var n=!1,o=setTimeout(function(){o=null,h.show(e,t)},h.delay),i=function(i){o&&(clearTimeout(o),o=null,h.show(e,t)),n||(n=!0,h.hide(i,t))};t.addEventListener("touchmove",function(e){o&&(clearTimeout(o),o=null),i(e)},!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1)}else h.show(e,t),p&&(t.addEventListener("touchend",h.hide,!1),t.addEventListener("touchcancel",h.hide,!1)),t.addEventListener("mouseup",h.hide,!1),t.addEventListener("mouseleave",h.hide,!1)}}var d=d||{},u=document.querySelectorAll.bind(document),f=Object.prototype.toString,p="ontouchstart"in window,h={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var o=document.createElement("div");o.className="waves-wrap waves-wrapping",t.appendChild(o);var i=document.createElement("div");i.className="waves-ripple waves-rippling",o.appendChild(i);var s=r(t),c=0,l=0;"touches"in e&&e.touches.length?(c=e.touches[0].pageY-s.top,l=e.touches[0].pageX-s.left):(c=e.pageY-s.top,l=e.pageX-s.left),l=l>=0?l:0,c=c>=0?c:0;var d="scale("+t.clientWidth/100*3+")",u="translate(0,0)";n&&(u="translate("+n.x+"px, "+n.y+"px)"),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-x",l),i.setAttribute("data-y",c),i.setAttribute("data-scale",d),i.setAttribute("data-translate",u);var f={top:c+"px",left:l+"px"};i.classList.add("waves-notransition"),i.setAttribute("style",a(f)),i.classList.remove("waves-notransition"),f["-webkit-transform"]=d+" "+u,f["-moz-transform"]=d+" "+u,f["-ms-transform"]=d+" "+u,f["-o-transform"]=d+" "+u,f.transform=d+" "+u,f.opacity="1";var p="mousemove"===e.type?2500:h.duration;f["-webkit-transition-duration"]=p+"ms",f["-moz-transition-duration"]=p+"ms",f["-o-transition-duration"]=p+"ms",f["transition-duration"]=p+"ms",i.setAttribute("style",a(f))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-wrapping"),o=t.getElementsByClassName("waves-rippling"),i=0,r=o.length;r>i;i++)s(e,t,o[i],n[i])}},m={input:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");n.className=e.className+" waves-input-wrapper",e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);var o=window.getComputedStyle(e,null),i=o.color,r=o.backgroundColor;n.setAttribute("style","color:"+i+";background:"+r),e.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}}},v={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&v.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?v.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){v.touches&&(v.touches-=1)},500)}};return d.init=function(e){var t=document.body;"duration"in(e=e||{})&&(h.duration=e.duration),"delay"in e&&(h.delay=e.delay),p&&(t.addEventListener("touchstart",l,!1),t.addEventListener("touchcancel",v.registerEvent,!1),t.addEventListener("touchend",v.registerEvent,!1)),t.addEventListener("mousedown",l,!1)},d.attach=function(e,t){e=i(e),"[object Array]"===f.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var n,o,r=0,a=e.length;a>r;r++)n=e[r],o=n.tagName.toLowerCase(),-1!==["input","img"].indexOf(o)&&(m[o](n),n=n.parentElement),-1===n.className.indexOf("waves-effect")&&(n.className+=" waves-effect"+t)},d.ripple=function(e,t){var n=(e=i(e)).length;if(t=t||{},t.wait=t.wait||0,t.position=t.position||null,n)for(var o,a,s,c={},l=0,d={type:"mousedown",button:1};n>l;l++)if(o=e[l],a=t.position||{x:o.clientWidth/2,y:o.clientHeight/2},s=r(o),c.x=s.left+a.x,c.y=s.top+a.y,d.pageX=c.x,d.pageY=c.y,h.show(d,o),t.wait>=0&&null!==t.wait){var u={type:"mouseup",button:1};setTimeout(function(e,t){return function(){h.hide(e,t)}}(u,o),t.wait)}},d.calm=function(e){for(var t={type:"mouseup",button:1},n=0,o=(e=i(e)).length;o>n;n++)h.hide(t,e[n])},d.displayEffect=function(e){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),d.init(e)},d}),function(e){"use strict";var t=function(e,t){this._element=e,this._options=t};if(void 0===e.fn.pickadate)throw new Error("Material's JavaScript requires pickadate.js");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),$(function(){$(".textarea-autosize").length&&void 0!==$.fn.textareaAutoSize&&$(".textarea-autosize").textareaAutoSize()}),$(function(){$(".waves-attach").length&&"undefined"!=typeof Waves&&(Waves.attach(".waves-attach"),Waves.init({duration:300}))});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_createClass=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();+function(){(function(e){var t="md.floatinglabel",n="floatinglabel",o=e.fn[n],i={IS_FOCUSED:"is-focused",HAS_VALUE:"has-value"},r={CHANGE:"change.md.floatinglabel",FOCUSIN:"focusin.md.floatinglabel",FOCUSOUT:"focusout.md.floatinglabel"},a={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},s=function(){function n(e){_classCallCheck(this,n),this._element=e}return n.prototype.change=function(t){e(this._element).val()||e(this._element).is("select")&&""!==e("option:first-child",e(this._element)).html().replace(" ","")?e(t).addClass(i.HAS_VALUE):e(t).removeClass(i.HAS_VALUE)},n.prototype.focusin=function(t){e(t).addClass(i.IS_FOCUSED)},n.prototype.focusout=function(t){e(t).removeClass(i.IS_FOCUSED)},n._jQueryInterface=function(o){return this.each(function(){var i=o||"change",r=e(this).data(t);if(r||(r=new n(this),e(this).data(t,r)),"string"==typeof i){if(void 0===r[i])throw new Error('No method named "'+i+'"');r[i](e(this).closest(a.DATA_PARENT))}})},n}();e(document).on(r.CHANGE+" "+r.FOCUSIN+" "+r.FOCUSOUT,a.DATA_TOGGLE,function(t){s._jQueryInterface.call(e(this),t.type)}),e.fn[n]=s._jQueryInterface,e.fn[n].Constructor=s,e.fn[n].noConflict=function(){return e.fn[n]=o,s._jQueryInterface}})(jQuery),function(t){var n=".md.navdrawer",o="navdrawer",i=t.fn[o],r={BACKDROP:"navdrawer-backdrop",OPEN:"navdrawer-open",SHOW:"show"},a={breakpoint:1280,keyboard:!0,show:!0,type:"default"},s={keyboard:"boolean",show:"boolean",type:"string"},c={CLICK_DATA_API:"click.md.navdrawer.data-api",CLICK_DISMISS:"click.dismiss"+n,FOCUSIN:"focusin"+n,HIDDEN:"hidden"+n,HIDE:"hide"+n,KEYDOWN_DISMISS:"keydown.dismiss"+n,MOUSEDOWN_DISMISS:"mousedown.dismiss"+n,MOUSEUP_DISMISS:"mouseup.dismiss"+n,SHOW:"show"+n,SHOWN:"shown"+n},l={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},d=function(){function n(e,o){_classCallCheck(this,n),this._backdrop=null,this._config=this._getConfig(o),this._content=t(e).find(l.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1}return n.prototype.hide=function(e){e&&e.preventDefault();var n=r.OPEN+"-"+this._config.type,o=t.Event(c.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),t(document).off(c.FOCUSIN),t(this._content).off(c.MOUSEDOWN_DISMISS),t(this._element).off(c.CLICK_DISMISS).removeClass(r.SHOW),this._hideNavdrawer(n))},n.prototype.show=function(e){var n=this,i=t.Event(c.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,t(document.body).addClass(r.OPEN+"-"+this._config.type),this._setEscapeEvent(),t(this._element).addClass(o+"-"+this._config.type),t(this._element).on(c.CLICK_DISMISS,l.DATA_DISMISS,t.proxy(this.hide,this)),t(this._content).on(c.MOUSEDOWN_DISMISS,function(){t(n._element).one(c.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))},n.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.prototype._enforceFocus=function(){var e=this;t(document).off(c.FOCUSIN).on(c.FOCUSIN,function(n){("default"===e._config.type||t(window).width()<=e._config.breakpoint)&&(e._element===n.target||t(e._element).has(n.target).length||e._element.focus())})},n.prototype._getConfig=function(n){return n=t.extend({},a,n),e.typeCheckConfig(o,n,s),n},n.prototype._hideNavdrawer=function(e){var n=this;this._showBackdrop(function(){t(document.body).removeClass(e),n._element.setAttribute("aria-hidden","true"),n._element.style.display="none",t(n._element).trigger(c.HIDDEN)})},n.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},n.prototype._showBackdrop=function(n){var o=this,i=e.supportsTransitionEnd();if(this._isShown){if(this._backdrop=document.createElement("div"),t(this._backdrop).addClass(r.BACKDROP).addClass(r.BACKDROP+"-"+this._config.type).appendTo(document.body),t(this._element).on(c.CLICK_DISMISS,function(e){o._ignoreBackdropClick?o._ignoreBackdropClick=!1:e.target===e.currentTarget&&o.hide()}),i&&e.reflow(this._backdrop),t(this._backdrop).addClass(r.SHOW),!n)return;if(!i)return void n();t(this._backdrop).one(e.TRANSITION_END,n).emulateTransitionEnd(487.5)}else if(this._backdrop&&!this._isShown){t(this._backdrop).removeClass(r.SHOW);var a=function(){o._removeBackdrop(),n&&n()};i?t(this._backdrop).one(e.TRANSITION_END,a).emulateTransitionEnd(487.5):a()}else n&&n()},n.prototype._showElement=function(n){var o=this,i=e.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",i&&e.reflow(this._element),t(this._element).addClass(r.SHOW),this._enforceFocus();var a=t.Event(c.SHOWN,{relatedTarget:n}),s=function(){o._element.focus(),t(o._element).trigger(a)};i?t(this._content).one(e.TRANSITION_END,s).emulateTransitionEnd(292.5):s()},n._jQueryInterface=function(e,o){return this.each(function(){var i=t.extend({},n.Default,t(this).data(),"object"===(void 0===e?"undefined":_typeof(e))&&e),r=t(this).data("md.navdrawer");if(r||(r=new n(this,i),t(this).data("md.navdrawer",r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e](o)}else i.show&&r.show(o)})},_createClass(n,null,[{key:"Default",get:function(){return a}}]),n}();t(document).on(c.CLICK_DATA_API,l.DATA_TOGGLE,function(n){var o=this,i=e.getSelectorFromElement(this),r=void 0;i&&(r=t(i)[0]);var a=t(r).data("md.navdrawer")?"toggle":t.extend({},t(r).data(),t(this).data());"A"===this.tagName&&n.preventDefault();var s=t(r).one(c.SHOW,function(e){e.isDefaultPrevented()||s.one(c.HIDDEN,function(){t(o).is(":visible")&&o.focus()})});d._jQueryInterface.call(t(r),a,this)}),t.fn[o]=d._jQueryInterface,t.fn[o].Constructor=d,t.fn[o].noConflict=function(){return t.fn[o]=i,d._jQueryInterface}}(jQuery),function(e){var t=".md.controlfocus",n={FOCUS:"focus"},o={IS_MOUSEDOWN:!1},i={BLUR:"blur"+t,FOCUS:"focus"+t,MOUSEDOWN:"mousedown"+t,MOUSEUP:"mouseup"+t},r={CONTROL:".custom-control",INPUT:".custom-control-input"};e(document).on(""+i.BLUR,r.INPUT,function(t){e(t.target).removeClass(n.FOCUS)}).on(""+i.FOCUS,r.INPUT,function(t){!1===o.IS_MOUSEDOWN&&e(t.target).addClass(n.FOCUS)}).on(""+i.MOUSEDOWN,r.CONTROL,function(){o.IS_MOUSEDOWN=!0}).on(""+i.MOUSEUP,r.CONTROL,function(){setTimeout(function(){o.IS_MOUSEDOWN=!1},1)})}(jQuery),function(t){var n="tabswitch",o=t.fn[n],i={ANIMATE:"animate",DROPDOWN_ITEM:"dropdown-item",INDICATOR:"nav-tabs-indicator",MATERIAL:"nav-tabs-material",SCROLLABLE:"nav-tabs-scrollable",SHOW:"show"},r={SHOW_BS_TAB:"show.bs.tab"},a={DATA_TOGGLE:'.nav-tabs [data-toggle="tab"]',DROPDOWN:".dropdown",NAV:".nav-tabs"},s=function(){function n(e){if(_classCallCheck(this,n),void 0===t.fn.tab)throw new Error("Material's JavaScript requires Bootstrap's tab.js");this._nav=e,this._navindicator=null}return n.prototype.switch=function(n,o){var r=this,s=t(this._nav).offset().left,c=t(this._nav).scrollLeft(),l=t(this._nav).outerWidth(),d=e.supportsTransitionEnd();this._navindicator||this._createIndicator(s,c,l,o),t(n).hasClass(i.DROPDOWN_ITEM)&&(n=t(n).closest(a.DROPDOWN));var u=t(n).offset().left,f=t(n).outerWidth();t(this._navindicator).addClass(i.SHOW),e.reflow(this._navindicator),d&&t(this._nav).addClass(i.ANIMATE),t(this._navindicator).css({left:u+c-s,right:l-(u+c-s+f)});var p=function(){t(r._nav).removeClass(i.ANIMATE),t(r._navindicator).removeClass(i.SHOW)};d?t(this._navindicator).one(e.TRANSITION_END,p).emulateTransitionEnd(390):p()},n.prototype._createIndicator=function(e,n,o,r){if(this._navindicator=document.createElement("div"),t(this._navindicator).addClass(i.INDICATOR).appendTo(this._nav),void 0!==r){t(r).hasClass(i.DROPDOWN_ITEM)&&(r=t(r).closest(a.DROPDOWN));var s=t(r).offset().left,c=t(r).outerWidth();t(this._navindicator).css({left:s+n-e,right:o-(s+n-e+c)})}t(this._nav).addClass(i.MATERIAL)},n._jQueryInterface=function(e){return this.each(function(){var o=t(this).closest(a.NAV)[0];if(o){var i=t(o).data("md.tabswitch");i||(i=new n(o),t(o).data("md.tabswitch",i)),i.switch(this,e)}})},n}();t(document).on(r.SHOW_BS_TAB,a.DATA_TOGGLE,function(e){s._jQueryInterface.call(t(e.target),e.relatedTarget)}),t.fn[n]=s._jQueryInterface,t.fn[n].Constructor=s,t.fn[n].noConflict=function(){return t.fn[n]=o,s._jQueryInterface}}(jQuery);var e=function(e){function t(){return{bindType:a.end,delegateType:a.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function n(e){return(e[0]||e).nodeType}function o(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(t){var n=this,o=!1;return e(this).one(c.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||c.triggerTransitionEnd(n)},t),this}function r(){if(window.QUnit)return!1;var e=document.createElement("material");for(var t in s)if(void 0!==e.style[t])return{end:s[t]};return!1}var a=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},reflow:function(e){new Function("md","return md")(e.offsetHeight)},supportsTransitionEnd:function(){return Boolean(a)},triggerTransitionEnd:function(t){e(t).trigger(a.end)},typeCheckConfig:function(e,t,i){for(var r in i)if(i.hasOwnProperty(r)){var a=i[r],s=t[r],c=s&&n(s)?"element":o(s);if(!new RegExp(a).test(c))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+c+'" but expected type "'+a+'".')}}};return a=r(),e.fn.emulateTransitionEnd=i,c.supportsTransitionEnd()&&(e.event.special[c.TRANSITION_END]=t()),c}(jQuery)}();
@@ -0,0 +1,234 @@
1
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2
+
3
+ /*
4
+ * Date picker for pickadate.js v3.5.6
5
+ * http://amsul.github.io/pickadate.js/date.htm
6
+ */
7
+
8
+ !function (a) {
9
+ "function" == typeof define && define.amd ? define(["picker", "jquery"], a) : "object" == (typeof exports === "undefined" ? "undefined" : _typeof(exports)) ? module.exports = a(require("./picker.js"), require("jquery")) : a(Picker, jQuery);
10
+ }(function (a, b) {
11
+ function c(a, b) {
12
+ var c = this,
13
+ d = a.$node[0],
14
+ e = d.value,
15
+ f = a.$node.data("value"),
16
+ g = f || e,
17
+ h = f ? b.formatSubmit : b.format,
18
+ i = function i() {
19
+ return d.currentStyle ? "rtl" == d.currentStyle.direction : "rtl" == getComputedStyle(a.$root[0]).direction;
20
+ };c.settings = b, c.$node = a.$node, c.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" }, c.item = {}, c.item.clear = null, c.item.disable = (b.disable || []).slice(0), c.item.enable = -function (a) {
21
+ return a[0] === !0 ? a.shift() : -1;
22
+ }(c.item.disable), c.set("min", b.min).set("max", b.max).set("now"), g ? c.set("select", g, { format: h, defaultValue: !0 }) : c.set("select", null).set("highlight", c.item.now), c.key = { 40: 7, 38: -7, 39: function _() {
23
+ return i() ? -1 : 1;
24
+ }, 37: function _() {
25
+ return i() ? 1 : -1;
26
+ }, go: function go(a) {
27
+ var b = c.item.highlight,
28
+ d = new Date(b.year, b.month, b.date + a);c.set("highlight", d, { interval: a }), this.render();
29
+ } }, a.on("render", function () {
30
+ a.$root.find("." + b.klass.selectMonth).on("change", function () {
31
+ var c = this.value;c && (a.set("highlight", [a.get("view").year, c, a.get("highlight").date]), a.$root.find("." + b.klass.selectMonth).trigger("focus"));
32
+ }), a.$root.find("." + b.klass.selectYear).on("change", function () {
33
+ var c = this.value;c && (a.set("highlight", [c, a.get("view").month, a.get("highlight").date]), a.$root.find("." + b.klass.selectYear).trigger("focus"));
34
+ });
35
+ }, 1).on("open", function () {
36
+ var d = "";c.disabled(c.get("now")) && (d = ":not(." + b.klass.buttonToday + ")"), a.$root.find("button" + d + ", select").attr("disabled", !1);
37
+ }, 1).on("close", function () {
38
+ a.$root.find("button, select").attr("disabled", !0);
39
+ }, 1);
40
+ }var d = 7,
41
+ e = 6,
42
+ f = a._;c.prototype.set = function (a, b, c) {
43
+ var d = this,
44
+ e = d.item;return null === b ? ("clear" == a && (a = "select"), e[a] = b, d) : (e["enable" == a ? "disable" : "flip" == a ? "enable" : a] = d.queue[a].split(" ").map(function (e) {
45
+ return b = d[e](a, b, c);
46
+ }).pop(), "select" == a ? d.set("highlight", e.select, c) : "highlight" == a ? d.set("view", e.highlight, c) : a.match(/^(flip|min|max|disable|enable)$/) && (e.select && d.disabled(e.select) && d.set("select", e.select, c), e.highlight && d.disabled(e.highlight) && d.set("highlight", e.highlight, c)), d);
47
+ }, c.prototype.get = function (a) {
48
+ return this.item[a];
49
+ }, c.prototype.create = function (a, c, d) {
50
+ var e,
51
+ g = this;return c = void 0 === c ? a : c, c == -(1 / 0) || c == 1 / 0 ? e = c : b.isPlainObject(c) && f.isInteger(c.pick) ? c = c.obj : b.isArray(c) ? (c = new Date(c[0], c[1], c[2]), c = f.isDate(c) ? c : g.create().obj) : c = f.isInteger(c) || f.isDate(c) ? g.normalize(new Date(c), d) : g.now(a, c, d), { year: e || c.getFullYear(), month: e || c.getMonth(), date: e || c.getDate(), day: e || c.getDay(), obj: e || c, pick: e || c.getTime() };
52
+ }, c.prototype.createRange = function (a, c) {
53
+ var d = this,
54
+ e = function e(a) {
55
+ return a === !0 || b.isArray(a) || f.isDate(a) ? d.create(a) : a;
56
+ };return f.isInteger(a) || (a = e(a)), f.isInteger(c) || (c = e(c)), f.isInteger(a) && b.isPlainObject(c) ? a = [c.year, c.month, c.date + a] : f.isInteger(c) && b.isPlainObject(a) && (c = [a.year, a.month, a.date + c]), { from: e(a), to: e(c) };
57
+ }, c.prototype.withinRange = function (a, b) {
58
+ return a = this.createRange(a.from, a.to), b.pick >= a.from.pick && b.pick <= a.to.pick;
59
+ }, c.prototype.overlapRanges = function (a, b) {
60
+ var c = this;return a = c.createRange(a.from, a.to), b = c.createRange(b.from, b.to), c.withinRange(a, b.from) || c.withinRange(a, b.to) || c.withinRange(b, a.from) || c.withinRange(b, a.to);
61
+ }, c.prototype.now = function (a, b, c) {
62
+ return b = new Date(), c && c.rel && b.setDate(b.getDate() + c.rel), this.normalize(b, c);
63
+ }, c.prototype.navigate = function (a, c, d) {
64
+ var e,
65
+ f,
66
+ g,
67
+ h,
68
+ i = b.isArray(c),
69
+ j = b.isPlainObject(c),
70
+ k = this.item.view;if (i || j) {
71
+ for (j ? (f = c.year, g = c.month, h = c.date) : (f = +c[0], g = +c[1], h = +c[2]), d && d.nav && k && k.month !== g && (f = k.year, g = k.month), e = new Date(f, g + (d && d.nav ? d.nav : 0), 1), f = e.getFullYear(), g = e.getMonth(); new Date(f, g, h).getMonth() !== g;) {
72
+ h -= 1;
73
+ }c = [f, g, h];
74
+ }return c;
75
+ }, c.prototype.normalize = function (a) {
76
+ return a.setHours(0, 0, 0, 0), a;
77
+ }, c.prototype.measure = function (a, b) {
78
+ var c = this;return b ? "string" == typeof b ? b = c.parse(a, b) : f.isInteger(b) && (b = c.now(a, b, { rel: b })) : b = "min" == a ? -(1 / 0) : 1 / 0, b;
79
+ }, c.prototype.viewset = function (a, b) {
80
+ return this.create([b.year, b.month, 1]);
81
+ }, c.prototype.validate = function (a, c, d) {
82
+ var e,
83
+ g,
84
+ h,
85
+ i,
86
+ j = this,
87
+ k = c,
88
+ l = d && d.interval ? d.interval : 1,
89
+ m = -1 === j.item.enable,
90
+ n = j.item.min,
91
+ o = j.item.max,
92
+ p = m && j.item.disable.filter(function (a) {
93
+ if (b.isArray(a)) {
94
+ var d = j.create(a).pick;d < c.pick ? e = !0 : d > c.pick && (g = !0);
95
+ }return f.isInteger(a);
96
+ }).length;if ((!d || !d.nav && !d.defaultValue) && (!m && j.disabled(c) || m && j.disabled(c) && (p || e || g) || !m && (c.pick <= n.pick || c.pick >= o.pick))) for (m && !p && (!g && l > 0 || !e && 0 > l) && (l *= -1); j.disabled(c) && (Math.abs(l) > 1 && (c.month < k.month || c.month > k.month) && (c = k, l = l > 0 ? 1 : -1), c.pick <= n.pick ? (h = !0, l = 1, c = j.create([n.year, n.month, n.date + (c.pick === n.pick ? 0 : -1)])) : c.pick >= o.pick && (i = !0, l = -1, c = j.create([o.year, o.month, o.date + (c.pick === o.pick ? 0 : 1)])), !h || !i);) {
97
+ c = j.create([c.year, c.month, c.date + l]);
98
+ }return c;
99
+ }, c.prototype.disabled = function (a) {
100
+ var c = this,
101
+ d = c.item.disable.filter(function (d) {
102
+ return f.isInteger(d) ? a.day === (c.settings.firstDay ? d : d - 1) % 7 : b.isArray(d) || f.isDate(d) ? a.pick === c.create(d).pick : b.isPlainObject(d) ? c.withinRange(d, a) : void 0;
103
+ });return d = d.length && !d.filter(function (a) {
104
+ return b.isArray(a) && "inverted" == a[3] || b.isPlainObject(a) && a.inverted;
105
+ }).length, -1 === c.item.enable ? !d : d || a.pick < c.item.min.pick || a.pick > c.item.max.pick;
106
+ }, c.prototype.parse = function (a, b, c) {
107
+ var d = this,
108
+ e = {};return b && "string" == typeof b ? (c && c.format || (c = c || {}, c.format = d.settings.format), d.formats.toArray(c.format).map(function (a) {
109
+ var c = d.formats[a],
110
+ g = c ? f.trigger(c, d, [b, e]) : a.replace(/^!/, "").length;c && (e[a] = b.substr(0, g)), b = b.substr(g);
111
+ }), [e.yyyy || e.yy, +(e.mm || e.m) - 1, e.dd || e.d]) : b;
112
+ }, c.prototype.formats = function () {
113
+ function a(a, b, c) {
114
+ var d = a.match(/[^\x00-\x7F]+|\w+/)[0];return c.mm || c.m || (c.m = b.indexOf(d) + 1), d.length;
115
+ }function b(a) {
116
+ return a.match(/\w+/)[0].length;
117
+ }return { d: function d(a, b) {
118
+ return a ? f.digits(a) : b.date;
119
+ }, dd: function dd(a, b) {
120
+ return a ? 2 : f.lead(b.date);
121
+ }, ddd: function ddd(a, c) {
122
+ return a ? b(a) : this.settings.weekdaysShort[c.day];
123
+ }, dddd: function dddd(a, c) {
124
+ return a ? b(a) : this.settings.weekdaysFull[c.day];
125
+ }, m: function m(a, b) {
126
+ return a ? f.digits(a) : b.month + 1;
127
+ }, mm: function mm(a, b) {
128
+ return a ? 2 : f.lead(b.month + 1);
129
+ }, mmm: function mmm(b, c) {
130
+ var d = this.settings.monthsShort;return b ? a(b, d, c) : d[c.month];
131
+ }, mmmm: function mmmm(b, c) {
132
+ var d = this.settings.monthsFull;return b ? a(b, d, c) : d[c.month];
133
+ }, yy: function yy(a, b) {
134
+ return a ? 2 : ("" + b.year).slice(2);
135
+ }, yyyy: function yyyy(a, b) {
136
+ return a ? 4 : b.year;
137
+ }, toArray: function toArray(a) {
138
+ return a.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g);
139
+ }, toString: function toString(a, b) {
140
+ var c = this;return c.formats.toArray(a).map(function (a) {
141
+ return f.trigger(c.formats[a], c, [0, b]) || a.replace(/^!/, "");
142
+ }).join("");
143
+ } };
144
+ }(), c.prototype.isDateExact = function (a, c) {
145
+ var d = this;return f.isInteger(a) && f.isInteger(c) || "boolean" == typeof a && "boolean" == typeof c ? a === c : (f.isDate(a) || b.isArray(a)) && (f.isDate(c) || b.isArray(c)) ? d.create(a).pick === d.create(c).pick : b.isPlainObject(a) && b.isPlainObject(c) ? d.isDateExact(a.from, c.from) && d.isDateExact(a.to, c.to) : !1;
146
+ }, c.prototype.isDateOverlap = function (a, c) {
147
+ var d = this,
148
+ e = d.settings.firstDay ? 1 : 0;return f.isInteger(a) && (f.isDate(c) || b.isArray(c)) ? (a = a % 7 + e, a === d.create(c).day + 1) : f.isInteger(c) && (f.isDate(a) || b.isArray(a)) ? (c = c % 7 + e, c === d.create(a).day + 1) : b.isPlainObject(a) && b.isPlainObject(c) ? d.overlapRanges(a, c) : !1;
149
+ }, c.prototype.flipEnable = function (a) {
150
+ var b = this.item;b.enable = a || (-1 == b.enable ? 1 : -1);
151
+ }, c.prototype.deactivate = function (a, c) {
152
+ var d = this,
153
+ e = d.item.disable.slice(0);return "flip" == c ? d.flipEnable() : c === !1 ? (d.flipEnable(1), e = []) : c === !0 ? (d.flipEnable(-1), e = []) : c.map(function (a) {
154
+ for (var c, g = 0; g < e.length; g += 1) {
155
+ if (d.isDateExact(a, e[g])) {
156
+ c = !0;break;
157
+ }
158
+ }c || (f.isInteger(a) || f.isDate(a) || b.isArray(a) || b.isPlainObject(a) && a.from && a.to) && e.push(a);
159
+ }), e;
160
+ }, c.prototype.activate = function (a, c) {
161
+ var d = this,
162
+ e = d.item.disable,
163
+ g = e.length;return "flip" == c ? d.flipEnable() : c === !0 ? (d.flipEnable(1), e = []) : c === !1 ? (d.flipEnable(-1), e = []) : c.map(function (a) {
164
+ var c, h, i, j;for (i = 0; g > i; i += 1) {
165
+ if (h = e[i], d.isDateExact(h, a)) {
166
+ c = e[i] = null, j = !0;break;
167
+ }if (d.isDateOverlap(h, a)) {
168
+ b.isPlainObject(a) ? (a.inverted = !0, c = a) : b.isArray(a) ? (c = a, c[3] || c.push("inverted")) : f.isDate(a) && (c = [a.getFullYear(), a.getMonth(), a.getDate(), "inverted"]);break;
169
+ }
170
+ }if (c) for (i = 0; g > i; i += 1) {
171
+ if (d.isDateExact(e[i], a)) {
172
+ e[i] = null;break;
173
+ }
174
+ }if (j) for (i = 0; g > i; i += 1) {
175
+ if (d.isDateOverlap(e[i], a)) {
176
+ e[i] = null;break;
177
+ }
178
+ }c && e.push(c);
179
+ }), e.filter(function (a) {
180
+ return null != a;
181
+ });
182
+ }, c.prototype.nodes = function (a) {
183
+ var b = this,
184
+ c = b.settings,
185
+ g = b.item,
186
+ h = g.now,
187
+ i = g.select,
188
+ j = g.highlight,
189
+ k = g.view,
190
+ l = g.disable,
191
+ m = g.min,
192
+ n = g.max,
193
+ o = function (a, b) {
194
+ return c.firstDay && (a.push(a.shift()), b.push(b.shift())), f.node("thead", f.node("tr", f.group({ min: 0, max: d - 1, i: 1, node: "th", item: function item(d) {
195
+ return [a[d], c.klass.weekdays, 'scope=col title="' + b[d] + '"'];
196
+ } })));
197
+ }((c.showWeekdaysFull ? c.weekdaysFull : c.weekdaysShort).slice(0), c.weekdaysFull.slice(0)),
198
+ p = function p(a) {
199
+ return f.node("div", " ", c.klass["nav" + (a ? "Next" : "Prev")] + (a && k.year >= n.year && k.month >= n.month || !a && k.year <= m.year && k.month <= m.month ? " " + c.klass.navDisabled : ""), "data-nav=" + (a || -1) + " " + f.ariaAttr({ role: "button", controls: b.$node[0].id + "_table" }) + ' title="' + (a ? c.labelMonthNext : c.labelMonthPrev) + '"');
200
+ },
201
+ q = function q() {
202
+ var d = c.showMonthsShort ? c.monthsShort : c.monthsFull;return c.selectMonths ? f.node("select", f.group({ min: 0, max: 11, i: 1, node: "option", item: function item(a) {
203
+ return [d[a], 0, "value=" + a + (k.month == a ? " selected" : "") + (k.year == m.year && a < m.month || k.year == n.year && a > n.month ? " disabled" : "")];
204
+ } }), c.klass.selectMonth, (a ? "" : "disabled") + " " + f.ariaAttr({ controls: b.$node[0].id + "_table" }) + ' title="' + c.labelMonthSelect + '"') : f.node("div", d[k.month], c.klass.month);
205
+ },
206
+ r = function r() {
207
+ var d = k.year,
208
+ e = c.selectYears === !0 ? 5 : ~~(c.selectYears / 2);if (e) {
209
+ var g = m.year,
210
+ h = n.year,
211
+ i = d - e,
212
+ j = d + e;if (g > i && (j += g - i, i = g), j > h) {
213
+ var l = i - g,
214
+ o = j - h;i -= l > o ? o : l, j = h;
215
+ }return f.node("select", f.group({ min: i, max: j, i: 1, node: "option", item: function item(a) {
216
+ return [a, 0, "value=" + a + (d == a ? " selected" : "")];
217
+ } }), c.klass.selectYear, (a ? "" : "disabled") + " " + f.ariaAttr({ controls: b.$node[0].id + "_table" }) + ' title="' + c.labelYearSelect + '"');
218
+ }return f.node("div", d, c.klass.year);
219
+ };return f.node("div", (c.selectYears ? r() + q() : q() + r()) + p() + p(1), c.klass.header) + f.node("table", o + f.node("tbody", f.group({ min: 0, max: e - 1, i: 1, node: "tr", item: function item(a) {
220
+ var e = c.firstDay && 0 === b.create([k.year, k.month, 1]).day ? -7 : 0;return [f.group({ min: d * a - k.day + e + 1, max: function max() {
221
+ return this.min + d - 1;
222
+ }, i: 1, node: "td", item: function item(a) {
223
+ a = b.create([k.year, k.month, a + (c.firstDay ? 1 : 0)]);var d = i && i.pick == a.pick,
224
+ e = j && j.pick == a.pick,
225
+ g = l && b.disabled(a) || a.pick < m.pick || a.pick > n.pick,
226
+ o = f.trigger(b.formats.toString, b, [c.format, a]);return [f.node("div", a.date, function (b) {
227
+ return b.push(k.month == a.month ? c.klass.infocus : c.klass.outfocus), h.pick == a.pick && b.push(c.klass.now), d && b.push(c.klass.selected), e && b.push(c.klass.highlighted), g && b.push(c.klass.disabled), b.join(" ");
228
+ }([c.klass.day]), "data-pick=" + a.pick + " " + f.ariaAttr({ role: "gridcell", label: o, selected: d && b.$node.val() === o ? !0 : null, activedescendant: e ? !0 : null, disabled: g ? !0 : null })), "", f.ariaAttr({ role: "presentation" })];
229
+ } })];
230
+ } })), c.klass.table, 'id="' + b.$node[0].id + '_table" ' + f.ariaAttr({ role: "grid", controls: b.$node[0].id, readonly: !0 })) + f.node("div", f.node("button", c.today, c.klass.buttonToday, "type=button data-pick=" + h.pick + (a && !b.disabled(h) ? "" : " disabled") + " " + f.ariaAttr({ controls: b.$node[0].id })) + f.node("button", c.clear, c.klass.buttonClear, "type=button data-clear=1" + (a ? "" : " disabled") + " " + f.ariaAttr({ controls: b.$node[0].id })) + f.node("button", c.close, c.klass.buttonClose, "type=button data-close=true " + (a ? "" : " disabled") + " " + f.ariaAttr({ controls: b.$node[0].id })), c.klass.footer);
231
+ }, c.defaults = function (a) {
232
+ return { 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: a + "table", header: a + "header", navPrev: a + "nav--prev", navNext: a + "nav--next", navDisabled: a + "nav--disabled", month: a + "month", year: a + "year", selectMonth: a + "select--month", selectYear: a + "select--year", weekdays: a + "weekday", day: a + "day", disabled: a + "day--disabled", selected: a + "day--selected", highlighted: a + "day--highlighted", now: a + "day--today", infocus: a + "day--infocus", outfocus: a + "day--outfocus", footer: a + "footer", buttonClear: a + "button--clear", buttonToday: a + "button--today", buttonClose: a + "button--close" } };
233
+ }(a.klasses().picker + "__"), a.extend("pickadate", c);
234
+ });
@@ -0,0 +1,172 @@
1
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2
+
3
+ /*
4
+ * pickadate.js v3.5.6, 2015/04/20
5
+ * By Amsul, http://amsul.ca
6
+ * Hosted on http://amsul.github.io/pickadate.js
7
+ * Licensed under MIT
8
+ */
9
+
10
+ !function (a) {
11
+ "function" == typeof define && define.amd ? define("picker", ["jquery"], a) : "object" == (typeof exports === "undefined" ? "undefined" : _typeof(exports)) ? module.exports = a(require("jquery")) : this.Picker = a(jQuery);
12
+ }(function (a) {
13
+ function b(f, g, i, m) {
14
+ function n() {
15
+ return b._.node("div", b._.node("div", b._.node("div", b._.node("div", B.component.nodes(w.open), y.box), y.wrap), y.frame), y.holder, 'tabindex="-1"');
16
+ }function o() {
17
+ z.data(g, B).addClass(y.input).val(z.data("value") ? B.get("select", x.format) : f.value), x.editable || z.on("focus." + w.id + " click." + w.id, function (a) {
18
+ a.preventDefault(), B.open();
19
+ }).on("keydown." + w.id, u), e(f, { haspopup: !0, expanded: !1, readonly: !1, owns: f.id + "_root" });
20
+ }function p() {
21
+ e(B.$root[0], "hidden", !0);
22
+ }function q() {
23
+ B.$holder.on({ keydown: u, "focus.toOpen": t, blur: function blur() {
24
+ z.removeClass(y.target);
25
+ }, focusin: function focusin(a) {
26
+ B.$root.removeClass(y.focused), a.stopPropagation();
27
+ }, "mousedown click": function mousedownClick(b) {
28
+ var c = b.target;c != B.$holder[0] && (b.stopPropagation(), "mousedown" != b.type || a(c).is("input, select, textarea, button, option") || (b.preventDefault(), B.$holder[0].focus()));
29
+ } }).on("click", "[data-pick], [data-nav], [data-clear], [data-close]", function () {
30
+ var b = a(this),
31
+ c = b.data(),
32
+ d = b.hasClass(y.navDisabled) || b.hasClass(y.disabled),
33
+ e = h();e = e && (e.type || e.href), (d || e && !a.contains(B.$root[0], e)) && B.$holder[0].focus(), !d && c.nav ? B.set("highlight", B.component.item.highlight, { nav: c.nav }) : !d && "pick" in c ? (B.set("select", c.pick), x.closeOnSelect && B.close(!0)) : c.clear ? (B.clear(), x.closeOnClear && B.close(!0)) : c.close && B.close(!0);
34
+ });
35
+ }function r() {
36
+ var b;x.hiddenName === !0 ? (b = f.name, f.name = "") : (b = ["string" == typeof x.hiddenPrefix ? x.hiddenPrefix : "", "string" == typeof x.hiddenSuffix ? x.hiddenSuffix : "_submit"], b = b[0] + f.name + b[1]), B._hidden = a('<input type=hidden name="' + b + '"' + (z.data("value") || f.value ? ' value="' + B.get("select", x.formatSubmit) + '"' : "") + ">")[0], z.on("change." + w.id, function () {
37
+ B._hidden.value = f.value ? B.get("select", x.formatSubmit) : "";
38
+ });
39
+ }function s() {
40
+ v && l ? B.$holder.find("." + y.frame).one("transitionend", function () {
41
+ B.$holder[0].focus();
42
+ }) : B.$holder[0].focus();
43
+ }function t(a) {
44
+ a.stopPropagation(), z.addClass(y.target), B.$root.addClass(y.focused), B.open();
45
+ }function u(a) {
46
+ var b = a.keyCode,
47
+ c = /^(8|46)$/.test(b);return 27 == b ? (B.close(!0), !1) : void ((32 == b || c || !w.open && B.component.key[b]) && (a.preventDefault(), a.stopPropagation(), c ? B.clear().close() : B.open()));
48
+ }if (!f) return b;var v = !1,
49
+ w = { id: f.id || "P" + Math.abs(~~(Math.random() * new Date())) },
50
+ x = i ? a.extend(!0, {}, i.defaults, m) : m || {},
51
+ y = a.extend({}, b.klasses(), x.klass),
52
+ z = a(f),
53
+ A = function A() {
54
+ return this.start();
55
+ },
56
+ B = A.prototype = { constructor: A, $node: z, start: function start() {
57
+ return w && w.start ? B : (w.methods = {}, w.start = !0, w.open = !1, w.type = f.type, f.autofocus = f == h(), f.readOnly = !x.editable, f.id = f.id || w.id, "text" != f.type && (f.type = "text"), B.component = new i(B, x), B.$root = a('<div class="' + y.picker + '" id="' + f.id + '_root" />'), p(), B.$holder = a(n()).appendTo(B.$root), q(), x.formatSubmit && r(), o(), x.containerHidden ? a(x.containerHidden).append(B._hidden) : z.after(B._hidden), x.container ? a(x.container).append(B.$root) : z.after(B.$root), B.on({ start: B.component.onStart, render: B.component.onRender, stop: B.component.onStop, open: B.component.onOpen, close: B.component.onClose, set: B.component.onSet }).on({ start: x.onStart, render: x.onRender, stop: x.onStop, open: x.onOpen, close: x.onClose, set: x.onSet }), v = c(B.$holder[0]), f.autofocus && B.open(), B.trigger("start").trigger("render"));
58
+ }, render: function render(b) {
59
+ return b ? (B.$holder = a(n()), q(), B.$root.html(B.$holder)) : B.$root.find("." + y.box).html(B.component.nodes(w.open)), B.trigger("render");
60
+ }, stop: function stop() {
61
+ return w.start ? (B.close(), B._hidden && B._hidden.parentNode.removeChild(B._hidden), B.$root.remove(), z.removeClass(y.input).removeData(g), setTimeout(function () {
62
+ z.off("." + w.id);
63
+ }, 0), f.type = w.type, f.readOnly = !1, B.trigger("stop"), w.methods = {}, w.start = !1, B) : B;
64
+ }, open: function open(c) {
65
+ return w.open ? B : (z.addClass(y.active), e(f, "expanded", !0), setTimeout(function () {
66
+ B.$root.addClass(y.opened), e(B.$root[0], "hidden", !1);
67
+ }, 0), c !== !1 && (w.open = !0, v && k.css("overflow", "hidden").css("padding-right", "+=" + d()), s(), j.on("click." + w.id + " focusin." + w.id, function (a) {
68
+ var b = a.target;b != f && b != document && 3 != a.which && B.close(b === B.$holder[0]);
69
+ }).on("keydown." + w.id, function (c) {
70
+ var d = c.keyCode,
71
+ e = B.component.key[d],
72
+ f = c.target;27 == d ? B.close(!0) : f != B.$holder[0] || !e && 13 != d ? a.contains(B.$root[0], f) && 13 == d && (c.preventDefault(), f.click()) : (c.preventDefault(), e ? b._.trigger(B.component.key.go, B, [b._.trigger(e)]) : B.$root.find("." + y.highlighted).hasClass(y.disabled) || (B.set("select", B.component.item.highlight), x.closeOnSelect && B.close(!0)));
73
+ })), B.trigger("open"));
74
+ }, close: function close(a) {
75
+ return a && (x.editable ? f.focus() : (B.$holder.off("focus.toOpen").focus(), setTimeout(function () {
76
+ B.$holder.on("focus.toOpen", t);
77
+ }, 0))), z.removeClass(y.active), e(f, "expanded", !1), setTimeout(function () {
78
+ B.$root.removeClass(y.opened + " " + y.focused), e(B.$root[0], "hidden", !0);
79
+ }, 0), w.open ? (w.open = !1, v && k.css("overflow", "").css("padding-right", "-=" + d()), j.off("." + w.id), B.trigger("close")) : B;
80
+ }, clear: function clear(a) {
81
+ return B.set("clear", null, a);
82
+ }, set: function set(b, c, d) {
83
+ var e,
84
+ f,
85
+ g = a.isPlainObject(b),
86
+ h = g ? b : {};if (d = g && a.isPlainObject(c) ? c : d || {}, b) {
87
+ g || (h[b] = c);for (e in h) {
88
+ f = h[e], e in B.component.item && (void 0 === f && (f = null), B.component.set(e, f, d)), ("select" == e || "clear" == e) && z.val("clear" == e ? "" : B.get(e, x.format)).trigger("change");
89
+ }B.render();
90
+ }return d.muted ? B : B.trigger("set", h);
91
+ }, get: function get(a, c) {
92
+ if (a = a || "value", null != w[a]) return w[a];if ("valueSubmit" == a) {
93
+ if (B._hidden) return B._hidden.value;a = "value";
94
+ }if ("value" == a) return f.value;if (a in B.component.item) {
95
+ if ("string" == typeof c) {
96
+ var d = B.component.get(a);return d ? b._.trigger(B.component.formats.toString, B.component, [c, d]) : "";
97
+ }return B.component.get(a);
98
+ }
99
+ }, on: function on(b, c, d) {
100
+ var e,
101
+ f,
102
+ g = a.isPlainObject(b),
103
+ h = g ? b : {};if (b) {
104
+ g || (h[b] = c);for (e in h) {
105
+ f = h[e], d && (e = "_" + e), w.methods[e] = w.methods[e] || [], w.methods[e].push(f);
106
+ }
107
+ }return B;
108
+ }, off: function off() {
109
+ var a,
110
+ b,
111
+ c = arguments;for (a = 0, namesCount = c.length; a < namesCount; a += 1) {
112
+ b = c[a], b in w.methods && delete w.methods[b];
113
+ }return B;
114
+ }, trigger: function trigger(a, c) {
115
+ var d = function d(a) {
116
+ var d = w.methods[a];d && d.map(function (a) {
117
+ b._.trigger(a, B, [c]);
118
+ });
119
+ };return d("_" + a), d(a), B;
120
+ } };return new A();
121
+ }function c(a) {
122
+ var b,
123
+ c = "position";return a.currentStyle ? b = a.currentStyle[c] : window.getComputedStyle && (b = getComputedStyle(a)[c]), "fixed" == b;
124
+ }function d() {
125
+ if (k.height() <= i.height()) return 0;var b = a('<div style="visibility:hidden;width:100px" />').appendTo("body"),
126
+ c = b[0].offsetWidth;b.css("overflow", "scroll");var d = a('<div style="width:100%" />').appendTo(b),
127
+ e = d[0].offsetWidth;return b.remove(), c - e;
128
+ }function e(b, c, d) {
129
+ if (a.isPlainObject(c)) for (var e in c) {
130
+ f(b, e, c[e]);
131
+ } else f(b, c, d);
132
+ }function f(a, b, c) {
133
+ a.setAttribute(("role" == b ? "" : "aria-") + b, c);
134
+ }function g(b, c) {
135
+ a.isPlainObject(b) || (b = { attribute: c }), c = "";for (var d in b) {
136
+ var e = ("role" == d ? "" : "aria-") + d,
137
+ f = b[d];c += null == f ? "" : e + '="' + b[d] + '"';
138
+ }return c;
139
+ }function h() {
140
+ try {
141
+ return document.activeElement;
142
+ } catch (a) {}
143
+ }var i = a(window),
144
+ j = a(document),
145
+ k = a(document.documentElement),
146
+ l = null != document.documentElement.style.transition;return b.klasses = function (a) {
147
+ return a = a || "picker", { picker: a, opened: a + "--opened", focused: a + "--focused", input: a + "__input", active: a + "__input--active", target: a + "__input--target", holder: a + "__holder", frame: a + "__frame", wrap: a + "__wrap", box: a + "__box" };
148
+ }, b._ = { group: function group(a) {
149
+ for (var c, d = "", e = b._.trigger(a.min, a); e <= b._.trigger(a.max, a, [e]); e += a.i) {
150
+ c = b._.trigger(a.item, a, [e]), d += b._.node(a.node, c[0], c[1], c[2]);
151
+ }return d;
152
+ }, node: function node(b, c, d, e) {
153
+ return c ? (c = a.isArray(c) ? c.join("") : c, d = d ? ' class="' + d + '"' : "", e = e ? " " + e : "", "<" + b + d + e + ">" + c + "</" + b + ">") : "";
154
+ }, lead: function lead(a) {
155
+ return (10 > a ? "0" : "") + a;
156
+ }, trigger: function trigger(a, b, c) {
157
+ return "function" == typeof a ? a.apply(b, c || []) : a;
158
+ }, digits: function digits(a) {
159
+ return (/\d/.test(a[1]) ? 2 : 1
160
+ );
161
+ }, isDate: function isDate(a) {
162
+ return {}.toString.call(a).indexOf("Date") > -1 && this.isInteger(a.getDate());
163
+ }, isInteger: function isInteger(a) {
164
+ return {}.toString.call(a).indexOf("Number") > -1 && a % 1 === 0;
165
+ }, ariaAttr: g }, b.extend = function (c, d) {
166
+ a.fn[c] = function (e, f) {
167
+ var g = this.data(c);return "picker" == e ? g : g && "string" == typeof e ? b._.trigger(g[e], g, [f]) : this.each(function () {
168
+ var f = a(this);f.data(c) || new b(this, c, d, e);
169
+ });
170
+ }, a.fn[c].defaults = d.defaults;
171
+ }, b;
172
+ });
@@ -1,5 +1,23 @@
1
- /*!
1
+ /*
2
2
  * textarea autosize v0.4.2
3
3
  * https://github.com/javierjulio/textarea-autosize
4
4
  */
5
- !function(a,b,c,d){function h(b,c){this.element=b,this.$element=a(b),this.init()}var e="textareaAutoSize",f="plugin_"+e,g=function(a){return a.replace(/\s/g,"").length>0};h.prototype={init:function(){var c=parseInt(this.$element.css("paddingBottom"))+parseInt(this.$element.css("paddingTop"))+parseInt(this.$element.css("borderTopWidth"))+parseInt(this.$element.css("borderBottomWidth"))||0;g(this.element.value)&&this.$element.height(this.element.scrollHeight-c),this.$element.on("input keyup",function(d){var e=a(b),f=e.scrollTop();a(this).height(0).height(this.scrollHeight-c),e.scrollTop(f)})}},a.fn[e]=function(b){return this.each(function(){a.data(this,f)||a.data(this,f,new h(this,b))}),this}}(jQuery,window,document);
5
+
6
+ !function (a, b, c, d) {
7
+ function h(b, c) {
8
+ this.element = b, this.$element = a(b), this.init();
9
+ }var e = "textareaAutoSize",
10
+ f = "plugin_" + e,
11
+ g = function g(a) {
12
+ return a.replace(/\s/g, "").length > 0;
13
+ };h.prototype = { init: function init() {
14
+ var c = parseInt(this.$element.css("paddingBottom")) + parseInt(this.$element.css("paddingTop")) + parseInt(this.$element.css("borderTopWidth")) + parseInt(this.$element.css("borderBottomWidth")) || 0;g(this.element.value) && this.$element.height(this.element.scrollHeight - c), this.$element.on("input keyup", function (d) {
15
+ var e = a(b),
16
+ f = e.scrollTop();a(this).height(0).height(this.scrollHeight - c), e.scrollTop(f);
17
+ });
18
+ } }, a.fn[e] = function (b) {
19
+ return this.each(function () {
20
+ a.data(this, f) || a.data(this, f, new h(this, b));
21
+ }), this;
22
+ };
23
+ }(jQuery, window, document);
@@ -0,0 +1,127 @@
1
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2
+
3
+ /*
4
+ * waves v0.7.4
5
+ * http://fian.my.id/Waves
6
+ */
7
+
8
+ !function (a, b) {
9
+ "use strict";
10
+ "function" == typeof define && define.amd ? define([], function () {
11
+ return b.apply(a);
12
+ }) : "object" == (typeof exports === "undefined" ? "undefined" : _typeof(exports)) ? module.exports = b.call(a) : a.Waves = b.call(a);
13
+ }("object" == (typeof global === "undefined" ? "undefined" : _typeof(global)) ? global : this, function () {
14
+ "use strict";
15
+ function e(a) {
16
+ return null !== a && a === a.window;
17
+ }function f(a) {
18
+ return e(a) ? a : 9 === a.nodeType && a.defaultView;
19
+ }function g(a) {
20
+ var b = typeof a === "undefined" ? "undefined" : _typeof(a);return "function" === b || "object" === b && !!a;
21
+ }function h(a) {
22
+ return g(a) && a.nodeType > 0;
23
+ }function i(a) {
24
+ var d = c.call(a);return "[object String]" === d ? b(a) : g(a) && /^\[object (HTMLCollection|NodeList|Object)\]$/.test(d) && a.hasOwnProperty("length") ? a : h(a) ? [a] : [];
25
+ }function j(a) {
26
+ var b,
27
+ c,
28
+ d = { top: 0, left: 0 },
29
+ e = a && a.ownerDocument;return b = e.documentElement, "undefined" != typeof a.getBoundingClientRect && (d = a.getBoundingClientRect()), c = f(e), { top: d.top + c.pageYOffset - b.clientTop, left: d.left + c.pageXOffset - b.clientLeft };
30
+ }function k(a) {
31
+ var b = "";for (var c in a) {
32
+ a.hasOwnProperty(c) && (b += c + ":" + a[c] + ";");
33
+ }return b;
34
+ }function n(a, b, c, d) {
35
+ if (c) {
36
+ d.classList.remove("waves-wrapping"), c.classList.remove("waves-rippling");var e = c.getAttribute("data-x"),
37
+ f = c.getAttribute("data-y"),
38
+ g = c.getAttribute("data-scale"),
39
+ h = c.getAttribute("data-translate"),
40
+ i = Date.now() - Number(c.getAttribute("data-hold")),
41
+ j = 350 - i;0 > j && (j = 0), "mousemove" === a.type && (j = 150);var m = "mousemove" === a.type ? 2500 : l.duration;setTimeout(function () {
42
+ var a = { top: f + "px", left: e + "px", opacity: "0", "-webkit-transition-duration": m + "ms", "-moz-transition-duration": m + "ms", "-o-transition-duration": m + "ms", "transition-duration": m + "ms", "-webkit-transform": g + " " + h, "-moz-transform": g + " " + h, "-ms-transform": g + " " + h, "-o-transform": g + " " + h, transform: g + " " + h };c.setAttribute("style", k(a)), setTimeout(function () {
43
+ try {
44
+ d.removeChild(c), b.removeChild(d);
45
+ } catch (a) {
46
+ return !1;
47
+ }
48
+ }, m);
49
+ }, j);
50
+ }
51
+ }function p(a) {
52
+ if (o.allowEvent(a) === !1) return null;for (var b = null, c = a.target || a.srcElement; null !== c.parentElement;) {
53
+ if (c.classList.contains("waves-effect") && !(c instanceof SVGElement)) {
54
+ b = c;break;
55
+ }c = c.parentElement;
56
+ }return b;
57
+ }function q(a) {
58
+ var b = p(a);if (null !== b) {
59
+ if (b.disabled || b.getAttribute("disabled") || b.classList.contains("disabled")) return;if (o.registerEvent(a), "touchstart" === a.type && l.delay) {
60
+ var c = !1,
61
+ e = setTimeout(function () {
62
+ e = null, l.show(a, b);
63
+ }, l.delay),
64
+ f = function f(d) {
65
+ e && (clearTimeout(e), e = null, l.show(a, b)), c || (c = !0, l.hide(d, b));
66
+ },
67
+ g = function g(a) {
68
+ e && (clearTimeout(e), e = null), f(a);
69
+ };b.addEventListener("touchmove", g, !1), b.addEventListener("touchend", f, !1), b.addEventListener("touchcancel", f, !1);
70
+ } else l.show(a, b), d && (b.addEventListener("touchend", l.hide, !1), b.addEventListener("touchcancel", l.hide, !1)), b.addEventListener("mouseup", l.hide, !1), b.addEventListener("mouseleave", l.hide, !1);
71
+ }
72
+ }var a = a || {},
73
+ b = document.querySelectorAll.bind(document),
74
+ c = Object.prototype.toString,
75
+ d = "ontouchstart" in window,
76
+ l = { duration: 750, delay: 200, show: function show(a, b, c) {
77
+ if (2 === a.button) return !1;b = b || this;var d = document.createElement("div");d.className = "waves-wrap waves-wrapping", b.appendChild(d);var e = document.createElement("div");e.className = "waves-ripple waves-rippling", d.appendChild(e);var f = j(b),
78
+ g = 0,
79
+ h = 0;"touches" in a && a.touches.length ? (g = a.touches[0].pageY - f.top, h = a.touches[0].pageX - f.left) : (g = a.pageY - f.top, h = a.pageX - f.left), h = h >= 0 ? h : 0, g = g >= 0 ? g : 0;var i = "scale(" + b.clientWidth / 100 * 3 + ")",
80
+ m = "translate(0,0)";c && (m = "translate(" + c.x + "px, " + c.y + "px)"), e.setAttribute("data-hold", Date.now()), e.setAttribute("data-x", h), e.setAttribute("data-y", g), e.setAttribute("data-scale", i), e.setAttribute("data-translate", m);var n = { top: g + "px", left: h + "px" };e.classList.add("waves-notransition"), e.setAttribute("style", k(n)), e.classList.remove("waves-notransition"), n["-webkit-transform"] = i + " " + m, n["-moz-transform"] = i + " " + m, n["-ms-transform"] = i + " " + m, n["-o-transform"] = i + " " + m, n.transform = i + " " + m, n.opacity = "1";var o = "mousemove" === a.type ? 2500 : l.duration;n["-webkit-transition-duration"] = o + "ms", n["-moz-transition-duration"] = o + "ms", n["-o-transition-duration"] = o + "ms", n["transition-duration"] = o + "ms", e.setAttribute("style", k(n));
81
+ }, hide: function hide(a, b) {
82
+ b = b || this;for (var c = b.getElementsByClassName("waves-wrapping"), d = b.getElementsByClassName("waves-rippling"), e = 0, f = d.length; f > e; e++) {
83
+ n(a, b, d[e], c[e]);
84
+ }
85
+ } },
86
+ m = { input: function input(a) {
87
+ var b = a.parentNode;if ("i" !== b.tagName.toLowerCase() || !b.classList.contains("waves-effect")) {
88
+ var c = document.createElement("i");c.className = a.className + " waves-input-wrapper", a.className = "waves-button-input", b.replaceChild(c, a), c.appendChild(a);var d = window.getComputedStyle(a, null),
89
+ e = d.color,
90
+ f = d.backgroundColor;c.setAttribute("style", "color:" + e + ";background:" + f), a.setAttribute("style", "background-color:rgba(0,0,0,0);");
91
+ }
92
+ }, img: function img(a) {
93
+ var b = a.parentNode;if ("i" !== b.tagName.toLowerCase() || !b.classList.contains("waves-effect")) {
94
+ var c = document.createElement("i");b.replaceChild(c, a), c.appendChild(a);
95
+ }
96
+ } },
97
+ o = { touches: 0, allowEvent: function allowEvent(a) {
98
+ var b = !0;return (/^(mousedown|mousemove)$/.test(a.type) && o.touches && (b = !1), b
99
+ );
100
+ }, registerEvent: function registerEvent(a) {
101
+ var b = a.type;"touchstart" === b ? o.touches += 1 : /^(touchend|touchcancel)$/.test(b) && setTimeout(function () {
102
+ o.touches && (o.touches -= 1);
103
+ }, 500);
104
+ } };return a.init = function (a) {
105
+ var b = document.body;a = a || {}, "duration" in a && (l.duration = a.duration), "delay" in a && (l.delay = a.delay), d && (b.addEventListener("touchstart", q, !1), b.addEventListener("touchcancel", o.registerEvent, !1), b.addEventListener("touchend", o.registerEvent, !1)), b.addEventListener("mousedown", q, !1);
106
+ }, a.attach = function (a, b) {
107
+ a = i(a), "[object Array]" === c.call(b) && (b = b.join(" ")), b = b ? " " + b : "";for (var d, e, f = 0, g = a.length; g > f; f++) {
108
+ d = a[f], e = d.tagName.toLowerCase(), -1 !== ["input", "img"].indexOf(e) && (m[e](d), d = d.parentElement), -1 === d.className.indexOf("waves-effect") && (d.className += " waves-effect" + b);
109
+ }
110
+ }, a.ripple = function (a, b) {
111
+ a = i(a);var c = a.length;if (b = b || {}, b.wait = b.wait || 0, b.position = b.position || null, c) for (var d, e, f, g = {}, h = 0, k = { type: "mousedown", button: 1 }, m = function m(a, b) {
112
+ return function () {
113
+ l.hide(a, b);
114
+ };
115
+ }; c > h; h++) {
116
+ if (d = a[h], e = b.position || { x: d.clientWidth / 2, y: d.clientHeight / 2 }, f = j(d), g.x = f.left + e.x, g.y = f.top + e.y, k.pageX = g.x, k.pageY = g.y, l.show(k, d), b.wait >= 0 && null !== b.wait) {
117
+ var n = { type: "mouseup", button: 1 };setTimeout(m(n, d), b.wait);
118
+ }
119
+ }
120
+ }, a.calm = function (a) {
121
+ a = i(a);for (var b = { type: "mouseup", button: 1 }, c = 0, d = a.length; d > c; c++) {
122
+ l.hide(b, a[c]);
123
+ }
124
+ }, a.displayEffect = function (b) {
125
+ console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"), a.init(b);
126
+ }, a;
127
+ });