text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define(["moment"],t):"object"==typeof exports?exports["vue-monthly-picker"]=t(require("moment")):e["vue-monthly-picker"]=t(e.moment)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/vue-monthly-picker/dist",t(t.s=4)}([function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=c[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",p.appendChild(e),e}function o(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(f)return h;r.parentNode.removeChild(r)}if(m){var o=d++;r=u||(u=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=C(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var A=n(11),c={},p=l&&(document.head||document.getElementsByTagName("head")[0]),u=null,d=0,f=!1,h=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){f=n;var i=A(e,t);return r(i),function(t){for(var n=[],o=0;o<i.length;o++){var a=i[o],s=c[a.id];s.refs--,n.push(s)}t?(i=A(e,t),r(i)):i=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete c[s.id]}}}};var C=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){function r(e){n(10)}var i=n(8)(n(5),n(9),r,null,null);e.exports=i.exports},function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("67797986",r,!0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n.n(r),o=n(3);n.n(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n.n(r);t.default={name:"vue-monthly-picker",props:{value:{default:null},disabled:{type:Boolean,default:!1},inputClass:{default:"input"},placeHolder:{type:String,default:""},monthLabels:{type:Array,default:function(){return["1","2","3","4","5","6","7","8","9","10","11","12"]}},min:{default:null},max:{default:null},dateFormat:{type:String,default:"YYYY/MM"}},data:function(){return{showMenu:!1,year:i()().format("YYYY"),month:i()().format("MM")}},mounted:function(){this.init()},watch:{value:function(e){this.setValue(e)}},computed:{menuClass:function(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle:function(){return{display:this.showMenu?"block":"none"}},displayText:function(){if(!this.value)return this.placeHolder;var e=null;return(e="string"==typeof this.value?i()(this.value):this.value)&&e.isValid()?e.format(this.dateFormat):void 0},canBack:function(){if(!this.min)return!0;var e=this.internalMomentValue.clone().startOf("year");return this.min.isBefore(e)},canNext:function(){return!this.max||this.internalMomentValue.clone().endOf("year").isBefore(this.max)},internalMomentValue:function(){var e=this.year+"/"+this.month;return i()(e,"YYYY/MM")}},methods:{init:function(){var e=this;document.addEventListener("click",function(t){e.$el&&!e.$el.contains(t.target)&&e.closeMenu()},!1),this.setValue(this.value)},openMenu:function(){this.disabled||(this.showMenu=!0)},closeMenu:function(){this.showMenu=!1},prevYear:function(){if(this.canBack){var e=parseInt(this.year)-1;this.year=e.toString()}},nextYear:function(){if(this.canNext){var e=parseInt(this.year)+1;this.year=e.toString()}},selectMonth:function(e){this.month=(parseInt(e)+1).toString(),this.selectPicker(),this.closeMenu()},selectPicker:function(){this.$emit("input",this.internalMomentValue.clone()),this.$emit("selected",this.internalMomentValue.clone())},setValue:function(e){"string"==typeof e&&(e=i()(e)),e&&e.isValid()&&(this.month=e.format("MM"),this.year=e.format("YYYY"))},isActive:function(e){var t=e+1,n=this.year+"/"+(t<10?"0"+t:t);return(!this.min||!i()(n,"YYYY/MM").isBefore(this.min))&&(!this.max||!i()(n,"YYYY/MM").isAfter(this.max))},isCurrentSelected:function(e,t){if(!this.value)return!1;var n=this.value;if("string"==typeof this.value&&(n=i()(this.value)),n&&n.isValid()){var r=n.format("MM"),o=n.format("YYYY");return Number(r)===Number(t+1)&&Number(o)===Number(e)}return!1}}}},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"lib.scss",sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,'.vue-monthly-picker .picker .next:hover,.vue-monthly-picker .picker .prev:hover{cursor:pointer}.vue-monthly-picker .picker .monthItem .item{border-top:1px solid #d4d4d4}.vue-monthly-picker .picker .monthItem .item.active:hover{cursor:pointer;background-color:#d4d4d4}.vue-monthly-picker .picker .flexbox{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vue-monthly-picker .picker .flexbox div{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:15px 0}.vue-monthly-picker .picker .flexbox .item{-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-preferred-size:25%;flex-basis:25%}.vue-monthly-picker .placeholder{color:#8b8b8b}.vue-monthly-picker .date-popover{overflow-x:hidden;overflow-y:hidden;outline:none;max-width:350px;width:100%;border-radius:0 0 .28571429rem .28571429rem;-webkit-box-shadow:0 2px 3px 0 rgba(34,36,38,.15);box-shadow:0 2px 3px 0 rgba(34,36,38,.15);background:#fff;-webkit-transition:opacity .1s ease;transition:opacity .1s ease;position:absolute;margin:auto;z-index:10;border:1px solid #d4d4d4;font-size:1rem;font-weight:200}.vue-monthly-picker .month-picker-wrapper{position:relative;display:block;min-width:200px}.vue-monthly-picker .month-year-label{outline:none}.vue-monthly-picker .text{position:relative;z-index:2}.vue-monthly-picker .month-year-display:hover{cursor:pointer}.vue-monthly-picker .next,.vue-monthly-picker .prev{width:16%;float:left;text-indent:-10000px;position:relative}.vue-monthly-picker .next:after,.vue-monthly-picker .prev:after{content:"";position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);border:6px solid transparent}.vue-monthly-picker .next:after{border-left:10px solid #000;margin-left:5px}.vue-monthly-picker .next.deactive:hover{cursor:default}.vue-monthly-picker .next.deactive:after{border-left:10px solid #999}.vue-monthly-picker .prev:after{border-right:10px solid #000;margin-left:-5px}.vue-monthly-picker .prev.deactive:hover{cursor:default}.vue-monthly-picker .prev.deactive:after{border-right:10px solid #999}.vue-monthly-picker .input{-moz-appearance:none;-webkit-appearance:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1rem;height:2.25em;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:1.5;padding:2px calc(.625em - 1px);position:relative;vertical-align:top;background-color:#fff;border-color:#dbdbdb;color:#363636;-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);max-width:100%;width:100%}.vue-monthly-picker .deactive{color:#999}.vue-monthly-picker .selected{background:#007bff;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);font-weight:700}',"",{version:3,sources:["/Users/vuminhthang/ABEJA/Code/vue-monthly-picker/src/components/VueMonthlyPicker.vue"],names:[],mappings:"AACA,gFAEE,cAAgB,CACjB,AACD,6CACE,4BAA8B,CAC/B,AACD,0DACI,eAAgB,AAChB,wBAA0B,CAC7B,AACD,qCAC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AiB,AACjB,+BAAgC,AAChC,kBAAmB,AACnB,mBAAoB,AACpB,sBAAuB,AACvB,qBAAsB,AACtB,cAAe,AACf,oDAA0D,AAClD,4CAAkD,AAC1D,eAAgB,AAChB,UAAY,CACb,AACD,8BACE,UAAe,CAChB,AACD,8BACE,mBAAoB,AACpB,WAAY,AACZ,qCAA0C,AAC1C,eAAkB,CACnB",file:"VueMonthlyPicker.vue",sourcesContent:['\n.vue-monthly-picker .picker .next:hover,\n.vue-monthly-picker .picker .prev:hover {\n  cursor: pointer;\n}\n.vue-monthly-picker .picker .monthItem .item {\n  border-top: 1px solid #d4d4d4;\n}\n.vue-monthly-picker .picker .monthItem .item.active:hover {\n    cursor: pointer;\n    background-color: #d4d4d4;\n}\n.vue-monthly-picker .picker .flexbox {\n  padding: 0px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n      flex-wrap: wrap;\n}\n.vue-monthly-picker .picker .flexbox div {\n    -webkit-box-flex: 1;\n        -ms-flex-positive: 1;\n            flex-grow: 1;\n    padding: 15px 0;\n}\n.vue-monthly-picker .picker .flexbox .item {\n    -webkit-box-flex: 1;\n        -ms-flex: 1;\n            flex: 1;\n    -ms-flex-preferred-size: 25%;\n        flex-basis: 25%;\n}\n.vue-monthly-picker .placeholder {\n  color: #8b8b8b;\n}\n.vue-monthly-picker .date-popover {\n  overflow-x: hidden;\n  overflow-y: hidden;\n  outline: none;\n  max-width: 350px;\n  width: 100%;\n  border-radius: 0 0 .28571429rem .28571429rem;\n  -webkit-box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);\n          box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);\n  background: #fff;\n  -webkit-transition: opacity .1s ease;\n  transition: opacity .1s ease;\n  position: absolute;\n  margin: auto;\n  z-index: 10;\n  border: 1px solid #d4d4d4;\n  font-size: 1rem;\n  font-weight: 200;\n}\n.vue-monthly-picker .month-picker-wrapper {\n  position: relative;\n  display: block;\n  min-width: 200px;\n}\n.vue-monthly-picker .month-year-label {\n  outline: none;\n}\n.vue-monthly-picker .text {\n  position: relative;\n  z-index: 2;\n}\n.vue-monthly-picker .month-year-display:hover {\n  cursor: pointer;\n}\n.vue-monthly-picker .next,\n.vue-monthly-picker .prev {\n  width: 16%;\n  float: left;\n  text-indent: -10000px;\n  position: relative;\n}\n.vue-monthly-picker .next:after,\n  .vue-monthly-picker .prev:after {\n    content: "";\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    -webkit-transform: translateX(-50%) translateY(-50%);\n    transform: translateX(-50%) translateY(-50%);\n    border: 6px solid transparent;\n}\n.vue-monthly-picker .next:after {\n  border-left: 10px solid #000;\n  margin-left: 5px;\n}\n.vue-monthly-picker .next.deactive:hover {\n  cursor: default;\n}\n.vue-monthly-picker .next.deactive:after {\n  border-left: 10px solid #999999;\n}\n.vue-monthly-picker .prev:after {\n  border-right: 10px solid #000;\n  margin-left: -5px;\n}\n.vue-monthly-picker .prev.deactive:hover {\n  cursor: default;\n}\n.vue-monthly-picker .prev.deactive:after {\n  border-right: 10px solid #999999;\n}\n.vue-monthly-picker .input {\n  -moz-appearance: none;\n  -webkit-appearance: none;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  border: 1px solid transparent;\n  border-radius: 3px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  display: -webkit-inline-box;\n  display: -ms-inline-flexbox;\n  display: inline-flex;\n  font-size: 1rem;\n  height: 2.25em;\n  -webkit-box-pack: start;\n      -ms-flex-pack: start;\n          justify-content: flex-start;\n  line-height: 1.5;\n  padding: 2px calc(.625em - 1px);\n  position: relative;\n  vertical-align: top;\n  background-color: #fff;\n  border-color: #dbdbdb;\n  color: #363636;\n  -webkit-box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);\n          box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);\n  max-width: 100%;\n  width: 100%;\n}\n.vue-monthly-picker .deactive {\n  color: #999999;\n}\n.vue-monthly-picker .selected {\n  background: #007bff;\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n  font-weight: bold;\n}\n'],sourceRoot:""}])},function(e,t){e.exports=function(e,t,n,r,i){var o,a=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(o=e,a=e.default);var l="function"==typeof a?a.options:a;t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),r&&(l._scopeId=r);var A;if(i?(A=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=A):n&&(A=n),A){var c=l.functional,p=c?l.render:l.beforeCreate;c?l.render=function(e,t){return A.call(t),p(e,t)}:l.beforeCreate=p?[].concat(p,A):[A]}return{esModule:o,exports:a,options:l}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-monthly-picker"},[n("div",{staticClass:"month-picker-wrapper",class:{"active visible":e.showMenu}},[n("div",{staticClass:"month-year-label picker",attrs:{type:"text",autocomplete:"off",tabindex:"0"},on:{click:e.openMenu}},[n("div",{staticClass:"month-year-display",class:[e.inputClass,{placeholder:!e.value}],attrs:{disabled:e.disabled},on:{click:e.openMenu}},[e._v("\n          "+e._s(e.displayText)+"\n        ")])]),e._v(" "),n("div",{staticClass:"text"}),e._v(" "),n("div",{staticClass:"date-popover",class:e.menuClass,style:e.menuStyle,attrs:{tabindex:"-1"}},[n("div",{staticClass:"picker",staticStyle:{"text-align":"center"}},[n("div",{staticClass:"flexbox"},[n("span",{staticClass:"prev",class:{deactive:!e.canBack},on:{click:e.prevYear}}),e._v(" "),n("div",[e._v(e._s(e.year))]),e._v(" "),n("span",{staticClass:"next",class:{deactive:!e.canNext},on:{click:e.nextYear}})]),e._v(" "),n("div",{staticClass:"flexbox monthItem"},[e._l(e.monthLabels,function(t,r){return[e.isActive(r)?n("div",{key:r,staticClass:"item active",class:{selected:e.isCurrentSelected(e.year,r)},on:{click:function(t){e.selectMonth(r)}}},[e._v(e._s(t)+"\n            ")]):n("div",{key:r,staticClass:"item deactive",class:{selected:e.isCurrentSelected(e.year,r)}},[e._v("\n              "+e._s(t)+"\n            ")])]})],2)])])])])},staticRenderFns:[]}},function(e,t,n){var r=n(7);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("1a4d36de",r,!0)},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],A=o[3],c={id:e+":"+i,css:s,media:l,sourceMap:A};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}},function(t,n){t.exports=e}])});
  //# sourceMappingURL=vue-monthly-picker.min.js.map