!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Vue2BootstrapModal=t():e.Vue2BootstrapModal=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){"use strict";e.exports=n(4)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{opened:{type:Function,default:function(){}},closed:{type:Function,default:function(){}},needHeader:{type:Boolean,default:!0},needFooter:{type:Boolean,default:!0},size:{type:String,default:""}},data:function(){return{sizeClasses:{large:"modal-lg",small:"modal-sm",medium:"modal-md",full:"modal-full"},isOpen:!1,isShow:!1,lastKnownBodyStyle:{overflow:"auto"}}},methods:{open:function(){var e=this;this.isShow||(this.isShow=!0,this.$nextTick(function(){e.isOpen=!0,e.$refs.modal.focus(),e.lastKnownBodyStyle.overflow=document.body.style.overflow,document.body.style.overflow="hidden",e.opened()}))},close:function(){var e=this;this.isOpen=!1,this.$nextTick(function(){setTimeout(function(){e.isShow=!1,document.body.style.overflow=e.lastKnownBodyStyle.overflow,e.closed()},500)})}},computed:{modalSize:function(){return this.sizeClasses[this.size]||""}}}},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".background-darken[data-v-220d4c12]{background:rgba(0,0,0,.3)}.modal[data-v-220d4c12]{overflow-x:hidden;overflow-y:auto}.modal-full[data-v-220d4c12]{margin-left:16px;margin-right:16px;width:auto}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var i=t[r];"number"==typeof i[0]&&o[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){var o,r;n(7),o=n(1);var s=n(5);r=o=o||{},"object"!=typeof o.default&&"function"!=typeof o.default||(r=o=o.default),"function"==typeof r&&(r=r.options),r.render=s.render,r.staticRenderFns=s.staticRenderFns,r._scopeId="data-v-220d4c12",e.exports=o},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"modal",staticClass:"modal fade background-darken",class:{in:e.isOpen,show:e.isShow},attrs:{tabindex:"-1",role:"dialog"},on:{click:function(t){t.target===t.currentTarget&&e.close()},keyup:function(t){e._k(t.keyCode,"esc",27)||e.close()}}},[n("div",{staticClass:"modal-dialog",class:e.modalSize,attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[e.needHeader?n("div",{staticClass:"modal-header"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"},on:{click:function(t){e.close()}}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])]),e._v(" "),n("h4",{staticClass:"modal-title"},[e._t("title",[e._v("\n                        Modal\n                    ")])],2)]):e._e(),e._v(" "),n("div",{staticClass:"modal-body"},[e._t("body",[e._v("\n                    Body\n                ")])],2),e._v(" "),e.needFooter?n("div",{staticClass:"modal-footer"},[e._t("footer")],2):e._e()])])])},staticRenderFns:[]}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=c[o.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](o.parts[s]);for(;s<o.parts.length;s++)r.parts.push(d(o.parts[s],t))}else{for(var i=[],s=0;s<o.parts.length;s++)i.push(d(o.parts[s],t));c[o.id]={id:o.id,refs:1,parts:i}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],s=r[0],i=r[1],a=r[2],d=r[3],l={css:i,media:a,sourceMap:d};n[s]?n[s].parts.push(l):t.push(n[s]={id:s,parts:[l]})}return t}function s(e,t){var n=h(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",s(e,t),t}function d(e,t){var n,o,r;if(t.singleton){var s=m++;n=v||(v=a(t)),o=l.bind(null,n,s,!1),r=l.bind(null,n,s,!0)}else n=a(t),o=u.bind(null,n),r=function(){i(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function l(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=g(t,r);else{var s=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function u(e,t){var n=t.css,o=t.media,r=t.sourceMap;if(o&&e.setAttribute("media",o),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c={},f=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=f(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,m=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=p()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var s=[],i=0;i<n.length;i++){var a=n[i],d=c[a.id];d.refs--,s.push(d)}if(e){var l=r(e);o(l,t)}for(var i=0;i<s.length;i++){var d=s[i];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete c[d.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var o=n(2);"string"==typeof o&&(o=[[e.id,o,""]]);n(6)(o,{});o.locals&&(e.exports=o.locals)}])});
//# sourceMappingURL=bootstrap-modal.min.js.map