vue-uiv
Version:
Bootstrap 3 components implemented by Vue 2.
1 lines • 87 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("uiv",["vue"],e):"object"==typeof exports?exports.uiv=e(require("vue")):t.uiv=e(t.Vue)}("undefined"!=typeof self?self:this,function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(t,e){t.exports=function(t,e,n,i,o,r){var s,a=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,a=t.default);var u,c="function"==typeof a?a.options:a;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=u):i&&(u=i),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(t,e){return u.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:s,exports:a,options:c}}},function(t,e,n){"use strict";e.__esModule=!0;var i,o=n(17),r=(i=o)&&i.__esModule?i:{default:i};e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,n){e.exports=t},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";e.__esModule=!0;var i,o=n(28),r=(i=o)&&i.__esModule?i:{default:i};e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){var i=n(4),o=n(5),r=n(20),s=n(22),a=n(11),l=function(t,e,n){var u,c,h,d=t&l.F,f=t&l.G,p=t&l.S,v=t&l.P,m=t&l.B,g=t&l.W,y=f?o:o[e]||(o[e]={}),b=y.prototype,w=f?i:p?i[e]:(i[e]||{}).prototype;for(u in f&&(n=e),n)(c=!d&&w&&void 0!==w[u])&&a(y,u)||(h=c?w[u]:n[u],y[u]=f&&"function"!=typeof w[u]?n[u]:m&&c?r(h,i):g&&w[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):v&&"function"==typeof h?r(Function.call,h):h,v&&((y.virtual||(y.virtual={}))[u]=h,t&l.R&&b&&!b[u]&&s(b,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(23),o=n(24),r=n(26),s=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(13),o=n(14);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};n.d(i,"Carousel",function(){return f}),n.d(i,"Slide",function(){return y}),n.d(i,"Collapse",function(){return J}),n.d(i,"Dropdown",function(){return Z}),n.d(i,"Modal",function(){return mt}),n.d(i,"Tab",function(){return bt}),n.d(i,"Tabs",function(){return _t}),n.d(i,"DatePicker",function(){return Rt}),n.d(i,"Affix",function(){return Vt}),n.d(i,"Alert",function(){return Kt}),n.d(i,"Pagination",function(){return Gt}),n.d(i,"Tooltip",function(){return Qt}),n.d(i,"Popover",function(){return te}),n.d(i,"TimePicker",function(){return ie}),n.d(i,"Typeahead",function(){return se}),n.d(i,"ProgressBar",function(){return le}),n.d(i,"ProgressBarStack",function(){return ae}),n.d(i,"Breadcrumbs",function(){return ce}),n.d(i,"BreadcrumbItem",function(){return ue}),n.d(i,"Btn",function(){return dt}),n.d(i,"BtnGroup",function(){return ht}),n.d(i,"BtnToolbar",function(){return he}),n.d(i,"MultiSelect",function(){return pe}),n.d(i,"Navbar",function(){return ge}),n.d(i,"NavbarNav",function(){return ye}),n.d(i,"NavbarForm",function(){return be}),n.d(i,"NavbarText",function(){return we});var o={};n.d(o,"tooltip",function(){return Se}),n.d(o,"popover",function(){return Be}),n.d(o,"scrollspy",function(){return Ae});var r={};function s(t){return void 0!==t&&null!==t}function a(t){return"function"==typeof t}function l(t){return"number"==typeof t}function u(t){return"string"==typeof t}function c(){return"undefined"!=typeof window&&s(window.Promise)}n.d(r,"MessageBox",function(){return Ue}),n.d(r,"Notification",function(){return un});var h={props:{value:Number,indicators:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},interval:{type:Number,default:5e3},iconControlLeft:{type:String,default:"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,default:"glyphicon glyphicon-chevron-right"}},data:function(){return{slides:[],activeIndex:0,timeoutId:0,intervalId:0}},watch:{interval:function(){this.startInterval()},value:function(t,e){this.run(t,e),this.activeIndex=t}},mounted:function(){s(this.value)&&(this.activeIndex=this.value),this.slides.length>0&&this.$select(this.activeIndex),this.startInterval()},beforeDestroy:function(){this.stopInterval()},methods:{run:function(t,e){var n=this,i=e||0,o=void 0;o=t>i?["next","left"]:["prev","right"],this.slides[t].slideClass[o[0]]=!0,this.$nextTick(function(){n.slides[t].$el.offsetHeight,n.slides.forEach(function(e,n){n===i?(e.slideClass.active=!0,e.slideClass[o[1]]=!0):n===t&&(e.slideClass[o[1]]=!0)}),n.timeoutId=setTimeout(function(){n.$select(t),n.$emit("change",t),n.timeoutId=0},600)})},startInterval:function(){var t=this;this.stopInterval(),this.interval>0&&(this.intervalId=setInterval(function(){t.next()},this.interval))},stopInterval:function(){clearInterval(this.intervalId),this.intervalId=0},resetAllSlideClass:function(){this.slides.forEach(function(t){t.slideClass.active=!1,t.slideClass.left=!1,t.slideClass.right=!1,t.slideClass.next=!1,t.slideClass.prev=!1})},$select:function(t){this.resetAllSlideClass(),this.slides[t].slideClass.active=!0},select:function(t){0===this.timeoutId&&t!==this.activeIndex&&(s(this.value)?this.$emit("input",t):(this.run(t,this.activeIndex),this.activeIndex=t))},prev:function(){this.select(0===this.activeIndex?this.slides.length-1:this.activeIndex-1)},next:function(){this.select(this.activeIndex===this.slides.length-1?0:this.activeIndex+1)}}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel slide",attrs:{"data-ride":"carousel"},on:{mouseenter:t.stopInterval,mouseleave:t.startInterval}},[t.indicators?t._t("indicators",[n("ol",{staticClass:"carousel-indicators"},t._l(t.slides,function(e,i){return n("li",{class:{active:i===t.activeIndex},on:{click:function(e){t.select(i)}}})}))],{select:t.select,activeIndex:t.activeIndex}):t._e(),t._v(" "),n("div",{staticClass:"carousel-inner",attrs:{role:"listbox"}},[t._t("default")],2),t._v(" "),t.controls?n("a",{staticClass:"left carousel-control",attrs:{href:"#",role:"button"},on:{click:function(e){e.preventDefault(),t.prev()}}},[n("span",{class:t.iconControlLeft,attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Previous")])]):t._e(),t._v(" "),t.controls?n("a",{staticClass:"right carousel-control",attrs:{href:"#",role:"button"},on:{click:function(e){e.preventDefault(),t.next()}}},[n("span",{class:t.iconControlRight,attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Next")])]):t._e()],2)},staticRenderFns:[]},f=n(0)(h,d,!1,null,null,null).exports;function p(t,e){if(Array.isArray(t)){var n=t.indexOf(e);n>=0&&t.splice(n,1)}}function v(t){return Array.prototype.slice.call(t||[])}var m={data:function(){return{slideClass:{active:!1,prev:!1,next:!1,left:!1,right:!1}}},created:function(){try{this.$parent.slides.push(this)}catch(t){throw new Error("Slide parent must be Carousel.")}},beforeDestroy:function(){p(this.$parent&&this.$parent.slides,this)}},g={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"item",class:this.slideClass},[this._t("default")],2)},staticRenderFns:[]},y=n(0)(m,g,!1,null,null,null).exports,b="mouseenter",w="mouseleave",x="focus",_="blur",k="click",C="input",T="keydown",S="keyup",E="resize",$="scroll",B="click",I="hover",O="focus",D="hover-focus",P="outside-click",M={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"};function N(t){return window.getComputedStyle(t)}function R(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}var F=null,A=null;function L(t,e,n){t.addEventListener(e,n)}function z(t,e,n){t.removeEventListener(e,n)}function j(t){return t&&t.nodeType===Node.ELEMENT_NODE}function H(t){j(t)&&j(t.parentNode)&&t.parentNode.removeChild(t)}function V(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1})}function Y(t,e){if(j(t))if(t.className){var n=t.className.split(" ");n.indexOf(e)<0&&(n.push(e),t.className=n.join(" "))}else t.className=e}function q(t,e){if(j(t)&&t.className){for(var n=t.className.split(" "),i=[],o=0,r=n.length;o<r;o++)n[o]!==e&&i.push(n[o]);t.className=i.join(" ")}}function K(t,e,n){var i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),r=R(),s=!0,a=!0,l=!0,u=!0;switch(n){case M.TOP:s=i.top>=o.height,u=i.left+i.width/2>=o.width/2,a=i.right-i.width/2+o.width/2<=r.width;break;case M.BOTTOM:l=i.bottom+o.height<=r.height,u=i.left+i.width/2>=o.width/2,a=i.right-i.width/2+o.width/2<=r.width;break;case M.RIGHT:a=i.right+o.width<=r.width,s=i.top+i.height/2>=o.height/2,l=i.bottom-i.height/2+o.height/2<=r.height;break;case M.LEFT:u=i.left>=o.width,s=i.top+i.height/2>=o.height/2,l=i.bottom-i.height/2+o.height/2<=r.height}return s&&a&&l&&u}function U(t){var e=t.scrollHeight>t.clientHeight,n=N(t);return e||"scroll"===n.overflow||"scroll"===n.overflowY}function W(t){var e=document.body;if(t)q(e,"modal-open"),e.style.paddingRight=null;else{var n=-1!==window.navigator.appVersion.indexOf("MSIE 10")||!!window.MSInputMethodContext&&!!document.documentMode;(U(document.documentElement)||U(document.body))&&!n&&(e.style.paddingRight=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=R();if(null!==F&&!t&&e.height===A.height&&e.width===A.width)return F;if("loading"===document.readyState)return null;var n=document.createElement("div"),i=document.createElement("div");return n.style.width=i.style.width=n.style.height=i.style.height="100px",n.style.overflow="scroll",i.style.overflow="hidden",document.body.appendChild(n),document.body.appendChild(i),F=Math.abs(n.scrollHeight-i.scrollHeight),document.body.removeChild(n),document.body.removeChild(i),A=e,F}()+"px"),Y(e,"modal-open")}}function G(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;V();for(var i=[],o=t.parentElement;o;){if(o.matches(e))i.push(o);else if(n&&(n===o||o.matches(n)))break;o=o.parentElement}return i}var X={render:function(t){return t(this.tag,{},this.$slots.default)},props:{tag:{type:String,default:"div"},value:{type:Boolean,default:!1},transitionDuration:{type:Number,default:350}},data:function(){return{timeoutId:0}},watch:{value:function(t){this.toggle(t)}},mounted:function(){var t=this.$el;Y(t,"collapse"),this.value&&Y(t,"in")},methods:{toggle:function(t){var e=this;clearTimeout(this.timeoutId);var n=this.$el;if(t){this.$emit("show"),q(n,"collapse"),n.style.height="auto";var i=window.getComputedStyle(n).height;n.style.height=null,Y(n,"collapsing"),n.offsetHeight,n.style.height=i,this.timeoutId=setTimeout(function(){q(n,"collapsing"),Y(n,"collapse"),Y(n,"in"),n.style.height=null,e.timeoutId=0,e.$emit("shown")},this.transitionDuration)}else this.$emit("hide"),n.style.height=window.getComputedStyle(n).height,q(n,"in"),q(n,"collapse"),n.offsetHeight,n.style.height=null,Y(n,"collapsing"),this.timeoutId=setTimeout(function(){Y(n,"collapse"),q(n,"collapsing"),n.style.height=null,e.timeoutId=0,e.$emit("hidden")},this.transitionDuration)}}},J=n(0)(X,null,!1,null,null,null).exports,Q={render:function(t){return t(this.tag,{class:{"btn-group":"div"===this.tag,dropdown:!this.dropup,dropup:this.dropup,open:this.show}},[this.$slots.default,t("ul",{class:{"dropdown-menu":!0,"dropdown-menu-right":this.menuRight},ref:"dropdown"},[this.$slots.dropdown])])},props:{tag:{type:String,default:"div"},appendToBody:{type:Boolean,default:!1},value:Boolean,dropup:{type:Boolean,default:!1},menuRight:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},notCloseElements:Array,positionElement:null},data:function(){return{show:!1,triggerEl:void 0}},watch:{value:function(t){this.toggle(t)}},mounted:function(){this.initTrigger(),this.triggerEl&&L(this.triggerEl,k,this.toggle),L(window,k,this.windowClicked),this.value&&this.toggle(!0)},beforeDestroy:function(){this.removeDropdownFromBody(),this.triggerEl&&z(this.triggerEl,k,this.toggle),z(window,k,this.windowClicked)},methods:{initTrigger:function(){var t=this.$el.querySelector('[data-role="trigger"]')||this.$el.querySelector(".dropdown-toggle")||this.$el.firstChild;this.triggerEl=t&&t!==this.$refs.dropdown?t:null},toggle:function(t){var e;this.disabled||(e=t,this.show="boolean"==typeof e?t:!this.show,this.appendToBody&&(this.show?this.appendDropdownToBody():this.removeDropdownFromBody()),this.$emit("input",this.show))},windowClicked:function(t){var e=t.target;if(this.show&&e){var n=!1;if(this.notCloseElements)for(var i=0,o=this.notCloseElements.length;i<o;i++){var r=this.notCloseElements[i].contains(e),s=r;if(this.appendToBody){var a=this.$refs.dropdown.contains(e),l=this.notCloseElements.indexOf(this.$el)>=0;s=r||a&&l}if(s){n=!0;break}}var u=this.$refs.dropdown.contains(e);this.$el.contains(e)&&!u||n||this.toggle(!1)}},appendDropdownToBody:function(){try{var t=this.$refs.dropdown;t.style.display="block",document.body.appendChild(t),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.documentElement,o=(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0),r=(window.pageYOffset||i.scrollTop)-(i.clientTop||0),s=e.getBoundingClientRect(),a=t.getBoundingClientRect();t.style.right="auto",t.style.bottom="auto",n.menuRight?t.style.left=o+s.left+s.width-a.width+"px":t.style.left=o+s.left+"px",n.dropup?t.style.top=r+s.top-a.height-4+"px":t.style.top=r+s.top+s.height+"px"}(t,this.positionElement||this.$el,this)}catch(t){}},removeDropdownFromBody:function(){try{var t=this.$refs.dropdown;t.removeAttribute("style"),this.$el.appendChild(t)}catch(t){}}}},Z=n(0)(Q,null,!1,null,null,null).exports,tt=n(1),et=n.n(tt),nt={uiv:{datePicker:{clear:"Clear",today:"Today",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",week1:"Mon",week2:"Tue",week3:"Wed",week4:"Thu",week5:"Fri",week6:"Sat",week7:"Sun"},timePicker:{am:"AM",pm:"PM"},modal:{cancel:"Cancel",ok:"OK"}}},it=function(){var t=Object.getPrototypeOf(this).$t;if(a(t))try{return t.apply(this,arguments)}catch(t){return this.$t.apply(this,arguments)}},ot=function(t,e){var n=it.apply(this,arguments);if(s(n))return n;for(var i=t.split("."),o=nt,r=0,a=i.length;r<a;r++){if(n=o[i[r]],r===a-1)return n;if(!n)return"";o=n}return""},rt=function(t){nt=t||nt},st=function(t){it=t||it},at={methods:{t:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return ot.apply(this,e)}}},lt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};function ut(){for(var t,e,n={},i=arguments.length;i--;)for(var o=0,r=Object.keys(arguments[i]);o<r.length;o++)switch(t=r[o]){case"class":case"style":case"directives":Array.isArray(n[t])||(n[t]=[]),n[t]=n[t].concat(arguments[i][t]);break;case"staticClass":if(!arguments[i][t])break;void 0===n[t]&&(n[t]=""),n[t]&&(n[t]+=" "),n[t]+=arguments[i][t].trim();break;case"on":case"nativeOn":n[t]||(n[t]={});for(var s=0,a=Object.keys(arguments[i][t]||{});s<a.length;s++)e=a[s],n[t][e]?n[t][e]=[].concat(n[t][e],arguments[i][t][e]):n[t][e]=arguments[i][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":n[t]||(n[t]={}),n[t]=lt({},arguments[i][t],n[t]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:n[t]||(n[t]=arguments[i][t])}return n}var ct={props:{href:String,target:String,to:null,replace:{type:Boolean,default:!1},append:{type:Boolean,default:!1},exact:{type:Boolean,default:!1}}},ht={functional:!0,render:function(t,e){var n=e.props,i=e.children;return t("div",ut(e.data,{class:et()({"btn-group":!n.vertical,"btn-group-vertical":n.vertical,"btn-group-justified":n.justified},"btn-group-"+n.size,n.size),attrs:{role:"group","data-toggle":"buttons"}}),i)},props:{size:String,vertical:{type:Boolean,default:!1},justified:{type:Boolean,default:!1}}},dt={functional:!0,mixins:[ct],render:function(t,e){var n,i=e.children,o=e.props,r=e.data,s=r.on||{},a="checkbox"===o.inputType?o.value.indexOf(o.inputValue)>=0:o.value===o.inputValue,l=(n={btn:!0,active:o.inputType?a:o.active,disabled:o.disabled,"btn-block":o.block},et()(n,"btn-"+o.type,Boolean(o.type)),et()(n,"btn-"+o.size,Boolean(o.size)),n),u={click:function(t){o.disabled&&t instanceof Event&&(t.preventDefault(),t.stopPropagation())}},c=void 0,h=void 0,d=void 0;return o.href?(c="a",d=i,h=ut(r,{on:u,class:l,attrs:{role:"button",href:o.href,target:o.target}})):o.to?(c="router-link",d=i,h=ut(r,{nativeOn:u,class:l,props:{event:o.disabled?"":"click",to:o.to,replace:o.replace,append:o.append,exact:o.exact},attrs:{role:"button"}})):o.inputType?(c="label",h=ut(r,{on:u,class:l}),d=[t("input",{attrs:{autocomplete:"off",type:o.inputType,checked:a?"checked":null,disabled:o.disabled},domProps:{checked:a},on:{change:function(){"checkbox"===o.inputType?a?o.value.splice(o.value.indexOf(o.inputValue),1):o.value.push(o.inputValue):s.input(o.inputValue)}}}),i]):o.justified?(c=ht,h={},d=[t("button",ut(r,{on:u,class:l,attrs:{type:o.nativeType,disabled:o.disabled}}),i)]):(c="button",d=i,h=ut(r,{on:u,class:l,attrs:{type:o.nativeType,disabled:o.disabled}})),t(c,h,d)},props:{justified:{type:Boolean,default:!1},type:{type:String,default:"default"},nativeType:{type:String,default:"button"},size:String,block:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},value:null,inputValue:null,inputType:{type:String,validator:function(t){return"checkbox"===t||"radio"===t}}}},ft=function(){return document.querySelectorAll(".modal-backdrop").length},pt={mixins:[at],components:{Btn:dt},props:{value:{type:Boolean,default:!1},title:String,size:String,backdrop:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},header:{type:Boolean,default:!0},cancelText:String,okText:String,dismissBtn:{type:Boolean,default:!0},transitionDuration:{type:Number,default:150},autoFocus:{type:Boolean,default:!1},keyboard:{type:Boolean,default:!0},beforeClose:Function,zOffset:{type:Number,default:20},appendToBody:{type:Boolean,default:!1}},data:function(){return{msg:"",timeoutId:0}},computed:{modalSizeClass:function(){return et()({},"modal-"+this.size,Boolean(this.size))}},watch:{value:function(t){this.$toggle(t)}},mounted:function(){H(this.$refs.backdrop),L(window,S,this.onKeyPress),this.value&&this.$toggle(!0)},beforeDestroy:function(){clearTimeout(this.timeoutId),H(this.$refs.backdrop),H(this.$el),z(window,S,this.onKeyPress)},methods:{onKeyPress:function(t){this.keyboard&&this.value&&27===t.keyCode&&this.toggle(!1)},toggle:function(t,e){(t||!a(this.beforeClose)||this.beforeClose(e))&&(this.msg=e,this.$emit("input",t))},$toggle:function(t){var e=this,n=this.$el,i=this.$refs.backdrop;if(clearTimeout(this.timeoutId),t){var o=ft();if(document.body.appendChild(i),this.appendToBody&&document.body.appendChild(n),n.style.display="block",n.scrollTop=0,i.offsetHeight,W(!1),Y(i,"in"),Y(n,"in"),o>0){var r=parseInt(N(n).zIndex)||1050,s=parseInt(N(i).zIndex)||1040,a=o*this.zOffset;n.style.zIndex=""+(r+a),i.style.zIndex=""+(s+a)}this.timeoutId=setTimeout(function(){if(e.autoFocus){var t=e.$el.querySelector('[data-action="auto-focus"]');t&&t.focus()}e.$emit("show"),e.timeoutId=0},this.transitionDuration)}else q(i,"in"),q(n,"in"),this.timeoutId=setTimeout(function(){n.style.display="none",H(i),e.appendToBody&&H(n),0===ft()&&W(!0),e.$emit("hide",e.msg||"dismiss"),e.msg="",e.timeoutId=0,n.style.zIndex="",i.style.zIndex=""},this.transitionDuration)},backdropClicked:function(t){this.backdrop&&this.toggle(!1)}}},vt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal",class:{fade:t.transitionDuration>0},attrs:{tabindex:"-1",role:"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.backdropClicked(e)}}},[n("div",{ref:"dialog",staticClass:"modal-dialog",class:t.modalSizeClass,attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[t.header?n("div",{staticClass:"modal-header"},[t._t("header",[t.dismissBtn?n("button",{staticClass:"close",staticStyle:{position:"relative","z-index":"1060"},attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.toggle(!1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]):t._e(),t._v(" "),n("h4",{staticClass:"modal-title"},[t._t("title",[t._v(t._s(t.title))])],2)])],2):t._e(),t._v(" "),n("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),t.footer?n("div",{staticClass:"modal-footer"},[t._t("footer",[n("btn",{on:{click:function(e){t.toggle(!1,"cancel")}}},[n("span",[t._v(t._s(t.cancelText||t.t("uiv.modal.cancel")))])]),t._v(" "),n("btn",{attrs:{type:"primary","data-action":"auto-focus"},on:{click:function(e){t.toggle(!1,"ok")}}},[n("span",[t._v(t._s(t.okText||t.t("uiv.modal.ok")))])])])],2):t._e()])]),t._v(" "),n("div",{ref:"backdrop",staticClass:"modal-backdrop",class:{fade:t.transitionDuration>0}})])},staticRenderFns:[]},mt=n(0)(pt,vt,!1,null,null,null).exports,gt={props:{title:{type:String,default:"Tab Title"},htmlTitle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},group:String,pullRight:{type:Boolean,default:!1}},data:function(){return{active:!0,transition:150}},watch:{active:function(t){var e=this;t?setTimeout(function(){Y(e.$el,"active"),e.$el.offsetHeight,Y(e.$el,"in")},this.transition):(q(this.$el,"in"),setTimeout(function(){q(e.$el,"active")},this.transition))}},created:function(){try{this.$parent.tabs.push(this)}catch(t){throw new Error("<tab> parent must be <tabs>.")}},beforeDestroy:function(){p(this.$parent&&this.$parent.tabs,this)},methods:{show:function(){var t=this;this.$nextTick(function(){Y(t.$el,"active"),Y(t.$el,"in")})}}},yt={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"tab-pane",class:{fade:this.transition>0},attrs:{role:"tabpanel"}},[this._t("default")],2)},staticRenderFns:[]},bt=n(0)(gt,yt,!1,null,null,null).exports,wt={components:{Dropdown:Z},props:{value:{type:Number,validator:function(t){return t>=0}},transitionDuration:{type:Number,default:150},justified:Boolean,pills:Boolean,stacked:Boolean},data:function(){return{tabs:[],activeIndex:0}},watch:{value:{immediate:!0,handler:function(t){l(t)&&(this.activeIndex=t,this.selectCurrent())}},tabs:function(t){var e=this;t.forEach(function(t,n){t.transition=e.transitionDuration,n===e.activeIndex&&t.show()}),this.selectCurrent()}},computed:{navClasses:function(){return{nav:!0,"nav-justified":this.justified,"nav-tabs":!this.pills,"nav-pills":this.pills,"nav-stacked":this.stacked&&this.pills}},groupedTabs:function(){var t=[],e={};return this.tabs.forEach(function(n){n.group?(e.hasOwnProperty(n.group)?t[e[n.group]].tabs.push(n):(t.push({tabs:[n],group:n.group}),e[n.group]=t.length-1),n.active&&(t[e[n.group]].active=!0),n.pullRight&&(t[e[n.group]].pullRight=!0)):t.push(n)}),t}},methods:{getTabClasses:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{active:t.active,disabled:t.disabled,"pull-right":t.pullRight&&!e}},selectCurrent:function(){var t=this,e=!1;this.tabs.forEach(function(n,i){i===t.activeIndex?(e=!n.active,n.active=!0):n.active=!1}),e&&this.$emit("change",this.activeIndex)},selectValidate:function(t){var e=this;a(this.$listeners["before-change"])?this.$emit("before-change",this.activeIndex,t,function(n){s(n)||e.$select(t)}):this.$select(t)},select:function(t){this.tabs[t].disabled||t===this.activeIndex||this.selectValidate(t)},$select:function(t){l(this.value)?this.$emit("input",t):(this.activeIndex=t,this.selectCurrent())}}},xt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("ul",{class:t.navClasses,attrs:{role:"tablist"}},[t._l(t.groupedTabs,function(e,i){return[e.tabs?n("dropdown",{class:t.getTabClasses(e),attrs:{role:"presentation",tag:"li"}},[n("a",{staticClass:"dropdown-toggle",attrs:{role:"tab",href:"#"},on:{click:function(t){t.preventDefault()}}},[t._v(t._s(e.group)+" "),n("span",{staticClass:"caret"})]),t._v(" "),n("template",{slot:"dropdown"},t._l(e.tabs,function(e){return n("li",{class:t.getTabClasses(e,!0)},[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.select(t.tabs.indexOf(e))}}},[t._v(t._s(e.title))])])}))],2):n("li",{class:t.getTabClasses(e),attrs:{role:"presentation"}},[n("a",{attrs:{role:"tab",href:"#"},on:{click:function(n){n.preventDefault(),t.select(t.tabs.indexOf(e))}}},[e.htmlTitle?n("span",{domProps:{innerHTML:t._s(e.title)}}):[t._v(t._s(e.title))]],2)])]}),t._v(" "),!t.justified&&t.$slots["nav-right"]?n("li",{staticClass:"pull-right"},[t._t("nav-right")],2):t._e()],2),t._v(" "),n("div",{staticClass:"tab-content"},[t._t("default")],2)])},staticRenderFns:[]},_t=n(0)(wt,xt,!1,null,null,null).exports;function kt(t,e){for(var n=e-(t+="").length;n>0;n--)t="0"+t;return t}var Ct=["January","February","March","April","May","June","July","August","September","October","November","December"];function Tt(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}var St={mixins:[at],props:{month:Number,year:Number,date:Date,today:Date,limit:Object,weekStartsWith:Number,iconControlLeft:String,iconControlRight:String,dateClass:Function},components:{Btn:dt},computed:{weekDays:function(){for(var t=[],e=this.weekStartsWith;t.length<7;)t.push(e++),e>6&&(e=0);return t},yearMonthStr:function(){return s(this.month)?this.year+" "+this.t("uiv.datePicker.month"+(this.month+1)):this.year},monthDayRows:function(){var t,e,n=[],i=new Date(this.year,this.month,1),o=new Date(this.year,this.month,0).getDate(),r=i.getDay(),s=(t=this.month,e=this.year,new Date(e,t+1,0).getDate()),l=0;l=this.weekStartsWith>r?7-this.weekStartsWith:0-this.weekStartsWith;for(var u=0;u<6;u++){n.push([]);for(var c=0-l;c<7-l;c++){var h=7*u+c,d={year:this.year,disabled:!1};h<r?(d.date=o-r+h+1,this.month>0?d.month=this.month-1:(d.month=11,d.year--)):h<r+s?(d.date=h-r+1,d.month=this.month):(d.date=h-r-s+1,this.month<11?d.month=this.month+1:(d.month=0,d.year++));var f=new Date(d.year,d.month,d.date),p=!0,v=!0;this.limit&&this.limit.from&&(p=f>=this.limit.from),this.limit&&this.limit.to&&(v=f<this.limit.to),d.disabled=!p||!v,d.classes=a(this.dateClass)?this.dateClass(f):"",n[u].push(d)}}return n}},methods:{tWeekName:function(t){return this.t("uiv.datePicker.week"+t)},getBtnType:function(t){return this.date&&t.date===this.date.getDate()&&t.month===this.date.getMonth()&&t.year===this.date.getFullYear()?"primary":t.date===this.today.getDate()&&t.month===this.today.getMonth()&&t.year===this.today.getFullYear()?"info":"default"},select:function(t){this.$emit("date-change",t)},goPrevMonth:function(){var t=this.month,e=this.year;this.month>0?t--:(t=11,e--,this.$emit("year-change",e)),this.$emit("month-change",t)},goNextMonth:function(){var t=this.month,e=this.year;this.month<11?t++:(t=0,e++,this.$emit("year-change",e)),this.$emit("month-change",t)},changeView:function(){this.$emit("view-change","m")}}},Et={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[n("thead",[n("tr",[n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goPrevMonth}},[n("i",{class:t.iconControlLeft})])],1),t._v(" "),n("td",{attrs:{colspan:"5"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.changeView}},[n("b",[t._v(t._s(t.yearMonthStr))])])],1),t._v(" "),n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goNextMonth}},[n("i",{class:t.iconControlRight})])],1)]),t._v(" "),n("tr",{attrs:{align:"center"}},t._l(t.weekDays,function(e){return n("td",{attrs:{width:"14.2857142857%"}},[n("small",[t._v(t._s(t.tWeekName(0===e?7:e)))])])}))]),t._v(" "),n("tbody",t._l(t.monthDayRows,function(e){return n("tr",t._l(e,function(e){return n("td",[n("btn",{class:e.classes,staticStyle:{border:"none"},attrs:{block:"",size:"sm","data-action":"select",type:t.getBtnType(e),disabled:e.disabled},on:{click:function(n){t.select(e)}}},[n("span",{class:{"text-muted":t.month!==e.month},attrs:{"data-action":"select"}},[t._v(t._s(e.date))])])],1)}))}))])},staticRenderFns:[]},$t=n(0)(St,Et,!1,null,null,null).exports,Bt={components:{Btn:dt},mixins:[at],props:{month:Number,year:Number,iconControlLeft:String,iconControlRight:String},data:function(){return{rows:[]}},mounted:function(){for(var t=0;t<4;t++){this.rows.push([]);for(var e=0;e<3;e++)this.rows[t].push(3*t+e+1)}},methods:{tCell:function(t){return this.t("uiv.datePicker.month"+t)},getBtnClass:function(t){return t===this.month?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-1)},goNextYear:function(){this.$emit("year-change",this.year+1)},changeView:function(t){s(t)?(this.$emit("month-change",t),this.$emit("view-change","d")):this.$emit("view-change","y")}}},It={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[n("thead",[n("tr",[n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goPrevYear}},[n("i",{class:t.iconControlLeft})])],1),t._v(" "),n("td",{attrs:{colspan:"4"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:function(e){t.changeView()}}},[n("b",[t._v(t._s(t.year))])])],1),t._v(" "),n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goNextYear}},[n("i",{class:t.iconControlRight})])],1)])]),t._v(" "),n("tbody",t._l(t.rows,function(e,i){return n("tr",t._l(e,function(e,o){return n("td",{attrs:{colspan:"2",width:"33.333333%"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:t.getBtnClass(3*i+o)},on:{click:function(e){t.changeView(3*i+o)}}},[n("span",[t._v(t._s(t.tCell(e)))])])],1)}))}))])},staticRenderFns:[]},Ot=n(0)(Bt,It,!1,null,null,null).exports,Dt={components:{Btn:dt},props:{year:Number,iconControlLeft:String,iconControlRight:String},computed:{rows:function(){for(var t=[],e=this.year-this.year%20,n=0;n<4;n++){t.push([]);for(var i=0;i<5;i++)t[n].push(e+5*n+i)}return t},yearStr:function(){var t=this.year-this.year%20;return t+" ~ "+(t+19)}},methods:{getBtnClass:function(t){return t===this.year?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-20)},goNextYear:function(){this.$emit("year-change",this.year+20)},changeView:function(t){this.$emit("year-change",t),this.$emit("view-change","m")}}},Pt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[n("thead",[n("tr",[n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goPrevYear}},[n("i",{class:t.iconControlLeft})])],1),t._v(" "),n("td",{attrs:{colspan:"3"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"}},[n("b",[t._v(t._s(t.yearStr))])])],1),t._v(" "),n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goNextYear}},[n("i",{class:t.iconControlRight})])],1)])]),t._v(" "),n("tbody",t._l(t.rows,function(e){return n("tr",t._l(e,function(e){return n("td",{attrs:{width:"20%"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:t.getBtnClass(e)},on:{click:function(n){t.changeView(e)}}},[n("span",[t._v(t._s(e))])])],1)}))}))])},staticRenderFns:[]},Mt={mixins:[at],components:{DateView:$t,MonthView:Ot,YearView:n(0)(Dt,Pt,!1,null,null,null).exports,Btn:dt},props:{value:null,width:{type:Number,default:270},todayBtn:{type:Boolean,default:!0},clearBtn:{type:Boolean,default:!0},closeOnSelected:{type:Boolean,default:!0},limitFrom:null,limitTo:null,format:{type:String,default:"yyyy-MM-dd"},initialView:{type:String,default:"d"},dateParser:{type:Function,default:Date.parse},dateClass:Function,weekStartsWith:{type:Number,default:0,validator:function(t){return t>=0&&t<=6}},iconControlLeft:{type:String,default:"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,default:"glyphicon glyphicon-chevron-right"}},data:function(){return{show:!1,now:new Date,currentMonth:0,currentYear:0,view:"d"}},computed:{valueDateObj:function(){var t=this.dateParser(this.value);if(isNaN(t))return null;var e=new Date(t);return 0!==e.getHours()&&(e=new Date(t+60*e.getTimezoneOffset()*1e3)),e},pickerStyle:function(){return{width:this.width+"px"}},limit:function(){var t={};if(this.limitFrom){var e=this.dateParser(this.limitFrom);isNaN(e)||((e=Tt(new Date(e))).setHours(0,0,0,0),t.from=e)}if(this.limitTo){var n=this.dateParser(this.limitTo);isNaN(n)||((n=Tt(new Date(n))).setHours(0,0,0,0),t.to=n)}return t}},mounted:function(){this.value?this.setMonthAndYearByValue(this.value):(this.currentMonth=this.now.getMonth(),this.currentYear=this.now.getFullYear(),this.view=this.initialView)},watch:{value:function(t,e){this.setMonthAndYearByValue(t,e)}},methods:{setMonthAndYearByValue:function(t,e){var n=this.dateParser(t);if(!isNaN(n)){var i=new Date(n);0!==i.getHours()&&(i=new Date(n+60*i.getTimezoneOffset()*1e3)),this.limit&&(this.limit.from&&i<this.limit.from||this.limit.to&&i>=this.limit.to)?this.$emit("input",e||""):(this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear())}},onMonthChange:function(t){this.currentMonth=t},onYearChange:function(t){this.currentYear=t,this.currentMonth=void 0},onDateChange:function(t){if(t&&l(t.date)&&l(t.month)&&l(t.year)){var e=new Date(t.year,t.month,t.date);this.$emit("input",function(t,e){try{var n=t.getFullYear(),i=t.getMonth()+1,o=t.getDate(),r=Ct[i-1];return e.replace(/yyyy/g,n).replace(/MMMM/g,r).replace(/MMM/g,r.substring(0,3)).replace(/MM/g,kt(i,2)).replace(/dd/g,kt(o,2)).replace(/yy/g,n).replace(/M(?!a)/g,i).replace(/d/g,o)}catch(t){return""}}(e,this.format))}else this.$emit("input","")},onViewChange:function(t){this.view=t},selectToday:function(){this.view="d",this.onDateChange({date:this.now.getDate(),month:this.now.getMonth(),year:this.now.getFullYear()})},clearSelect:function(){this.view="d",this.onDateChange()},onPickerClick:function(t){"select"===t.target.getAttribute("data-action")&&this.closeOnSelected||t.stopPropagation()}}},Nt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.pickerStyle,attrs:{"data-role":"date-picker"},on:{click:t.onPickerClick}},[n("date-view",{directives:[{name:"show",rawName:"v-show",value:"d"===t.view,expression:"view==='d'"}],attrs:{month:t.currentMonth,year:t.currentYear,date:t.valueDateObj,today:t.now,limit:t.limit,"week-starts-with":t.weekStartsWith,"icon-control-left":t.iconControlLeft,"icon-control-right":t.iconControlRight,"date-class":t.dateClass},on:{"month-change":t.onMonthChange,"year-change":t.onYearChange,"date-change":t.onDateChange,"view-change":t.onViewChange}}),t._v(" "),n("month-view",{directives:[{name:"show",rawName:"v-show",value:"m"===t.view,expression:"view==='m'"}],attrs:{month:t.currentMonth,year:t.currentYear,"icon-control-left":t.iconControlLeft,"icon-control-right":t.iconControlRight},on:{"month-change":t.onMonthChange,"year-change":t.onYearChange,"view-change":t.onViewChange}}),t._v(" "),n("year-view",{directives:[{name:"show",rawName:"v-show",value:"y"===t.view,expression:"view==='y'"}],attrs:{year:t.currentYear,"icon-control-left":t.iconControlLeft,"icon-control-right":t.iconControlRight},on:{"year-change":t.onYearChange,"view-change":t.onViewChange}}),t._v(" "),t.todayBtn||t.clearBtn?n("div",[n("br"),t._v(" "),n("div",{staticClass:"text-center"},[t.todayBtn?n("btn",{attrs:{"data-action":"select",type:"info",size:"sm"},on:{click:t.selectToday}},[t._v(t._s(t.t("uiv.datePicker.today")))]):t._e(),t._v(" "),t.clearBtn?n("btn",{attrs:{"data-action":"select",size:"sm"},on:{click:t.clearSelect}},[t._v(t._s(t.t("uiv.datePicker.clear")))]):t._e()],1)]):t._e()],1)},staticRenderFns:[]},Rt=n(0)(Mt,Nt,!1,null,null,null).exports,Ft="_uiv_scroll_handler",At=[E,$],Lt=function(t,e){var n=e.value;a(n)&&(zt(t),t[Ft]=n,At.forEach(function(e){L(window,e,t[Ft])}))},zt=function(t){At.forEach(function(e){z(window,e,t[Ft])}),delete t[Ft]},jt={directives:{scroll:{bind:Lt,unbind:zt,update:function(t,e){e.value!==e.oldValue&&Lt(t,e)}}},props:{offset:{type:Number,default:0}},data:function(){return{affixed:!1}},computed:{classes:function(){return{affix:this.affixed}},styles:function(){return{top:this.affixed?this.offset+"px":null}}},methods:{onScroll:function(){var t=this;if(this.$el.offsetWidth||this.$el.offsetHeight||this.$el.getClientRects().length){for(var e={},n={},i=this.$el.getBoundingClientRect(),o=document.body,r=["Top","Left"],s=0;s<r.length;s++){var a=r[s],l=a.toLowerCase();e[l]=window["page"+("Top"===a?"Y":"X")+"Offset"],n[l]=e[l]+i[l]-(this.$el["client"+a]||o["client"+a]||0)}var u=e.top>n.top-this.offset;this.affixed!==u&&(this.affixed=u,this.affixed&&(this.$emit("affix"),this.$nextTick(function(){t.$emit("affixed")})))}}}},Ht={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hidden-print"},[e("div",{directives:[{name:"scroll",rawName:"v-scroll",value:this.onScroll,expression:"onScroll"}],class:this.classes,style:this.styles},[this._t("default")],2)])},staticRenderFns:[]},Vt=n(0)(jt,Ht,!1,null,null,null).exports,Yt={props:{dismissible:{type:Boolean,default:!1},duration:{type:Number,default:0},type:{type:String,default:"info"}},data:function(){return{timeout:0}},computed:{alertClass:function(){var t;return t={alert:!0},et()(t,"alert-"+this.type,Boolean(this.type)),et()(t,"alert-dismissible",this.dismissible),t}},methods:{closeAlert:function(){clearTimeout(this.timeout),this.$emit("dismissed")}},mounted:function(){this.duration>0&&(this.timeout=setTimeout(this.closeAlert,this.duration))},destroyed:function(){clearTimeout(this.timeout)}},qt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.alertClass,attrs:{role:"alert"}},[this.dismissible?e("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"},on:{click:this.closeAlert}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])]):this._e(),this._v(" "),this._t("default")],2)},staticRenderFns:[]},Kt=n(0)(Yt,qt,!1,null,null,null).exports,Ut={props:{value:{type:Number,required:!0,validator:function(t){return t>=1}},boundaryLinks:{type:Boolean,default:!1},directionLinks:{type:Boolean,default:!0},size:String,align:String,totalPage:{type:Number,required:!0,validator:function(t){return t>=0}},maxSize:{type:Number,default:5,validator:function(t){return t>=0}},disabled:Boolean},data:function(){return{sliceStart:0}},computed:{navClasses:function(){return et()({},"text-"+this.align,Boolean(this.align))},classes:function(){return et()({},"pagination-"+this.size,Boolean(this.size))},sliceArray:function(){return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=[],o=e;o<t;o+=n)i.push(o);return i}(this.totalPage).slice(this.sliceStart,this.sliceStart+this.maxSize)}},methods:{calculateSliceStart:function(){var t=this.value,e=this.maxSize,n=this.sliceStart;if(t>n+e){var i=this.totalPage-e;this.sliceStart=t>i?i:t-1}else t<n+1&&(this.sliceStart=t>e?t-e:0)},onPageChange:function(t){!this.disabled&&t>0&&t<=this.totalPage&&t!==this.value&&(this.$emit("input",t),this.$emit("change",t))},toPage:function(t){if(!this.disabled){var e=this.maxSize,n=this.sliceStart,i=this.totalPage-e,o=t?n-e:n+e;this.sliceStart=o<0?0:o>i?i:o}}},created:function(){this.$watch(function(t){return[t.value,t.maxSize,t.totalPage].join()},this.calculateSliceStart,{immediate:!0})}},Wt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{class:t.navClasses,attrs:{"aria-label":"Page navigation"}},[n("ul",{staticClass:"pagination",class:t.classes},[t.boundaryLinks?n("li",{class:{disabled:t.value<=1||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"First"},on:{click:function(e){e.preventDefault(),t.onPageChange(1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])])]):t._e(),t._v(" "),t.directionLinks?n("li",{class:{disabled:t.value<=1||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Previous"},on:{click:function(e){e.preventDefault(),t.onPageChange(t.value-1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])]):t._e(),t._v(" "),t.sliceStart>0?n("li",{class:{disabled:t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Previous group"},on:{click:function(e){e.preventDefault(),t.toPage(1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("…")])])]):t._e(),t._v(" "),t._l(t.sliceArray,function(e){return n("li",{key:e,class:{active:t.value===e+1,disabled:t.disabled}},[n("a",{attrs:{href:"#",role:"button"},on:{click:function(n){n.preventDefault(),t.onPageChange(e+1)}}},[t._v(t._s(e+1))])])}),t._v(" "),t.sliceStart<t.totalPage-t.maxSize?n("li",{class:{disabled:t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Next group"},on:{click:function(e){e.preventDefault(),t.toPage(0)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("…")])])]):t._e(),t._v(" "),t.directionLinks?n("li",{class:{disabled:t.value>=t.totalPage||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Next"},on:{click:function(e){e.preventDefault(),t.onPageChange(t.value+1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])])]):t._e(),t._v(" "),t.boundaryLinks?n("li",{class:{disabled:t.value>=t.totalPage||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Last"},on:{click:function(e){e.preventDefault(),t.onPageChange(t.totalPage)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]):t._e()],2)])},staticRenderFns:[]},Gt=n(0)(Ut,Wt,!1,null,null,null).exports,Xt={props:{value:{type:Boolean,default:!1},tag:{type:String,default:"span"},placement:{type:String,default:M.TOP},autoPlacement:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},transitionDuration:{type:Number,default:150},enable:{type:Boolean,default:!0},enterable:{type:Boolean,default:!0},target:null},data:function(){return{triggerEl:null,timeoutId:0}},watch:{value:function(t){t?this.show():this.hide()},trigger:function(){this.clearListeners(),this.initListeners()},target:function(t){this.clearListeners(),this.initTriggerElByTarget(t),this.initListeners()},allContent:function(t){var e=this;this.isNotEmpty()?this.$nextTick(function(){e.isShown()&&e.resetPosition()}):this.hide()},enable:function(t){t||this.hide()}},mounted:function(){var t=this;V(),H(this.$refs.popup),this.$nextTick(function(){t.initTriggerElByTarget(t.target),t.initListeners(),t.value&&t.show()})},beforeDestroy:function(){this.clearListeners(),H(this.$refs.popup)},methods:{initTriggerElByTarget:function(t){if(t)u(t)?this.triggerEl=document.querySelector(t):j(t)?this.triggerEl=t:j(t.$el)&&(this.triggerEl=t.$el);else{var e=this.$el.querySelector('[data-role="trigger"]');if(e)this.triggerEl=e;else{var n=this.$el.firstChild;this.triggerEl=n===this.$refs.popup?null:n}}},initListeners:function(){this.triggerEl&&(this.trigger===I?(L(this.triggerEl,b,this.show),L(this.triggerEl,w,this.hide)):this.trigger===O?(L(this.triggerEl,x,this.show),L(this.triggerEl,_,this.hide)):this.trigger===D?(L(this.triggerEl,b,this.handleAuto),L(this.triggerEl,w,this.handleAuto),L(this.triggerEl,x,this.handleAuto),L(this.triggerEl,_,this.handleAuto)):this.trigger!==B&&this.trigger!==P||L(this.triggerEl,k,this.toggle)),L(window,k,this.windowClicked)},clearListeners:function(){this.triggerEl&&(z(this.triggerEl,x,this.show),z(this.triggerEl,_,this.hide),z(this.triggerEl,b,this.show),z(this.triggerEl,w,this.hide),z(this.triggerEl,k,this.toggle),z(this.triggerEl,b,this.handleAuto),z(this.triggerEl,w,this.handleAuto),z(this.triggerEl,x,this.handleAuto),z(this.triggerEl,_,this.handleAuto)),z(window,k,this.windowClicked)},resetPosition:function(){var t=this.$refs.popup;!function(t,e,n,i,o){var r=void 0,a=void 0,l=void 0;if(s(o)&&"body"!==o)l=(r=document.querySelector(o)).scrollLeft,a=r.scrollTop;else{r=document.body;var u=document.documentElement;l=(window.pageXOffset||u.scrollLeft)-(u.clientLeft||0),a=(window.pageYOffset||u.scrollTop)-(u.clientTop||0)}if(i){var c=[M.RIGHT,M.BOTTOM,M.LEFT,M.TOP],h=function(e){c.forEach(function(e){q(t,e)}),Y(t,e)};if(!K(e,t,n)){for(var d=0,f=c.length;d<f;d++)if(h(c[d]),K(e,t,c[d])){n=c[d];break}h(n)}}var p=e.getBoundingClientRect(),v=t.getBoundingClientRect();n===M.BOTTOM?(t.style.top=a+p.top+p.height+"px",t.style.left=l+p.left+p.width/2-v.width/2+"px"):n===M.LEFT?(t.style.top=a+p.top+p.height/2-v.height/2+"px",t.style.left=l+p.left-v.width+"px"):n===M.RIGHT?(t.style.top=a+p.top+p.height/2-v.height/2+"px",t.style.left=l+p.left+p.width+"px"):(t.style.top=a+p.top-v.height+"px",t.style.left=l+p.left+p.width/2-v.width/2+"px")}(t,this.triggerEl,this.placement,this.autoPlacement,this.appendTo),t.offsetHeight},hideOnLeave:function(){(this.trigger===I||this.trigger===D&&!this.triggerEl.matches(":focus"))&&this.$hide()},toggle:function(){this.isShown()?this.hide():this.show()},show:function(){if(this.enable&&this.triggerEl&&this.isNotEmpty()&&!this.isShown()){var t=this.$refs.popup;if(this.timeoutId>0)clearTimeout(this.timeoutId),this.timeoutId=0;else t.className=this.name+" "+this.placement+" fade",document.querySelector(this.appendTo).appendChild(t),this.resetPosition();Y(t,"in"),this.$emit("input",!0),this.$emit("show")}},hide:function(){var t=this;this.isShown()&&(!this.enterable||this.trigger!==I&&this.trigger!==D?this.$hide():setTimeout(function(){t.$refs.popup.matches(":hover")||t.$hide()},100))},$hide:function(){var t=this;this.isShown()&&(clearTimeout(this.timeoutId),q(this.$refs.popup,"in"),this.timeoutId=setTimeout(function(){H(t.$refs.popup),t.timeoutId=0,t.$emit("input",!1),t.$emit("hide")},this.transitionDuration))},isShown:function(){return function(t,e){if(!j(t))return!1;for(var n=t.className.split(" "),i=0,o=n.length;i<o;i++)if(n[i]===e)return!0;return!1}(this.$refs.popup,"in")},windowClicked:function(t){this.triggerEl&&!this.triggerEl.contains(t.target)&&this.trigger===P&&!this.$refs.popup.contains(t.target)&&this.isShown()&&this.hide()},handleAuto:function(){var t=this;setTimeout(function(){t.triggerEl.matches(":hover, :focus")?t.show():t.hide()},20)}}},Jt={mixins:[Xt],data:function(){return{name:"tooltip"}},render:function(t){return t(this.tag,[this.$slots.default,t("div",{ref:"popup",attrs:{role:"tooltip"},on:{mouseleave:this.hideOnLeave}},[t("div",{class:"tooltip-arrow"}),t("div",{class:"tooltip-inner",domProps:{innerHTML:this.text}})])])},props:{text:{type:String,default:""},trigger:{type:String,default:D}},computed:{allContent:function(){return this.text}},methods:{isNotEmpty:function(){return this.text}}},Qt=n(0)(Jt,null,!1,null,null,null).exports,Zt={mixins:[Xt],data:function(){return{name:"popover"}},render:function(t){return t(this.tag,[this.$slots.default,t("div",{style:{display:"block"},ref:"popup",on:{mouseleave:this.hideOnLeave}},[t("div",{class:"arrow"}),t("h3",{class:"popover-title",directives:[{name:"show",value:this.title}]},this.title),t("div",{class:"popover-content"},[this.content||this.$slots.popover])])])},props:{title:{type:String,default:""},content:{type:String,default:""},trigger:{type:String,default:P}},computed:{allContent:function(){return this.title+this.content}},methods:{isNotEmpty:function(){return this.title||this.content||this.$slots.popover}}},te=n(0)(Zt,null,!1,null,null,null).exports,ee={components:{Btn:dt},mixins:[at],props:{value:{type:Date,required:!0},showM