(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-collapsible"]=e():t["vue-collapsible"]=e()})("undefined"!==typeof self?self:this,(function(){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,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return 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="fb15")}({"6ccd":function(t,e,n){},"80d7":function(t,e,n){"use strict";var i=n("6ccd"),o=n.n(i);o.a},8875:function(t,e,n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(e,o):i,void 0===r||(t.exports=r)})("undefined"!==typeof self&&self,(function(){function t(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(p){var t,e,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,r=i.exec(p.stack)||o.exec(p.stack),s=r&&r[1]||!1,a=r&&r[2]||!1,l=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");s===l&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var u=0;u<c.length;u++){if("interactive"===c[u].readyState)return c[u];if(c[u].src===s)return c[u];if(s===l&&c[u].innerHTML&&c[u].innerHTML.trim()===n)return c[u]}return null}}return t}))},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var i=window.document.currentScript,o=n("8875");i=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"Collapsible"},[n("button",{class:{Collapsible__trigger:!0,"Collapsible__trigger--open":!t.transitioning&&t.open,"Collapsible__trigger--closed":!t.transitioning&&!t.open,"Collapsible__trigger--transitioning":t.transitioning},on:{click:t.handleClick}},[t.open?t._t("trigger",[n("span",{staticClass:"Collapsible__triggerLabel"},[t._v(" "+t._s(t.open?t.openLabel:t.closedLabel)+" ")])]):t._e(),t.open?t._e():t._t("closedTrigger",[t._t("trigger",[n("span",{staticClass:"Collapsible__triggerLabel"},[t._v(t._s(t.open?t.openLabel:t.closedLabel))])])])],2),n("div",{class:{Collapsible__content:!0,"Collapsible__content--open":!t.transitioning&&t.open,"Collapsible__content--closed":!t.transitioning&&!t.open,"Collapsible__content--transitioning":t.transitioning},style:{height:t.height,transitionProperty:"height",transitionDuration:t.transitionDuration,transitionTimingFunction:t.transitionTimingFunction,transitionDelay:t.transitionDelay},on:{transitionend:t.handleEnd}},[n("div",{ref:"inner",staticClass:"Collapsible__contentInner"},[t._t("default")],2)])])},a=[],l={name:"Collapsible",data:function(){return{open:this.isOpen,height:this.isOpen?"auto":"0px",closeOnNextTick:!1,transitioning:!1}},props:{openLabel:{type:String,default:"Close me"},closedLabel:{type:String,default:"Open me"},transitionDuration:{type:String,default:"400ms"},transitionTimingFunction:{type:String,default:"ease"},transitionDelay:{type:String,default:"0s"},isOpen:{default:!0,type:Boolean},onCollapse:{default:function(){},type:Function}},methods:{handleClick:function(){this.onCollapse(!this.isOpen),this.open=!this.open},handleEnd:function(){"0px"!==this.height&&(this.height="auto"),this.transitioning=!1}},watch:{open:function(t,e){this.transitioning=!0,this.height=this.$refs.inner.scrollHeight+"px",!0===e&&(this.closeOnNextTick=!0)},isOpen:function(t){this.open=t}},updated:function(){var t=this;this.$nextTick((function(){window.setTimeout((function(){t.closeOnNextTick&&(t.height="0px",t.closeOnNextTick=!1)}))}))}},c=l;n("80d7");function u(t,e,n,i,o,r,s,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}var p=u(c,s,a,!1,null,"545f03a3",null),f=p.exports;e["default"]=f}})["default"]}));
//# sourceMappingURL=vue-collapsible.umd.min.js.map