@odyzeo/collapse
Version:
Odyzeo collapse component with Vue
2 lines • 20.1 kB
JavaScript
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["collapse"]=n():t["collapse"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"0366":function(t,n,e){var r=e("1c0b");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"06cf":function(t,n,e){var r=e("83ab"),o=e("d1e7"),i=e("5c6c"),c=e("fc6a"),u=e("c04e"),a=e("5135"),f=e("0cfb"),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=c(t),n=u(n,!0),f)try{return s(t,n)}catch(e){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},"0cfb":function(t,n,e){var r=e("83ab"),o=e("d039"),i=e("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"159b":function(t,n,e){var r=e("da84"),o=e("fdbc"),i=e("17c2"),c=e("9112");for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(s){f.forEach=i}}},"17c2":function(t,n,e){"use strict";var r=e("b727").forEach,o=e("a640"),i=o("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,n,e){var r=e("d066");t.exports=r("document","documentElement")},"1c0b":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1d80":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,n,e){var r=e("a691"),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},"23e7":function(t,n,e){var r=e("da84"),o=e("06cf").f,i=e("9112"),c=e("6eeb"),u=e("ce4e"),a=e("e893"),f=e("94ca");t.exports=function(t,n){var e,s,l,d,p,h,v=t.target,b=t.global,y=t.stat;if(s=b?r:y?r[v]||u(v,{}):(r[v]||{}).prototype,s)for(l in n){if(p=n[l],t.noTargetGet?(h=o(s,l),d=h&&h.value):d=s[l],e=f(b?l:v+(y?".":"#")+l,t.forced),!e&&void 0!==d){if(typeof p===typeof d)continue;a(p,d)}(t.sham||d&&d.sham)&&i(p,"sham",!0),c(s,l,p,t)}}},"241c":function(t,n,e){var r=e("ca84"),o=e("7839"),i=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},2532:function(t,n,e){"use strict";var r=e("23e7"),o=e("5a34"),i=e("1d80"),c=e("ab13");r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},"2d00":function(t,n,e){var r,o,i=e("da84"),c=e("342f"),u=i.process,a=u&&u.versions,f=a&&a.v8;f?(r=f.split("."),o=r[0]+r[1]):c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"342f":function(t,n,e){var r=e("d066");t.exports=r("navigator","userAgent")||""},"37e8":function(t,n,e){var r=e("83ab"),o=e("9bf2"),i=e("825a"),c=e("df75");t.exports=r?Object.defineProperties:function(t,n){i(t);var e,r=c(n),u=r.length,a=0;while(u>a)o.f(t,e=r[a++],n[e]);return t}},"428f":function(t,n,e){var r=e("da84");t.exports=r},"44ad":function(t,n,e){var r=e("d039"),o=e("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,n,e){var r=e("b622"),o=e("7c73"),i=e("9bf2"),c=r("unscopables"),u=Array.prototype;void 0==u[c]&&i.f(u,c,{configurable:!0,value:o(null)}),t.exports=function(t){u[c][t]=!0}},"44e7":function(t,n,e){var r=e("861d"),o=e("c6b6"),i=e("b622"),c=i("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[c])?!!n:"RegExp"==o(t))}},4930:function(t,n,e){var r=e("605d"),o=e("2d00"),i=e("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(r?38===o:o>37&&o<41)}))},"4d64":function(t,n,e){var r=e("fc6a"),o=e("50c4"),i=e("23cb"),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),s=i(c,f);if(t&&e!=e){while(f>s)if(u=a[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"50c4":function(t,n,e){var r=e("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,n,e){var r=e("7b0b"),o={}.hasOwnProperty;t.exports=function(t,n){return o.call(r(t),n)}},5692:function(t,n,e){var r=e("c430"),o=e("c6cd");(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.11.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,n,e){var r=e("d066"),o=e("241c"),i=e("7418"),c=e("825a");t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},"5a34":function(t,n,e){var r=e("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"605d":function(t,n,e){var r=e("c6b6"),o=e("da84");t.exports="process"==r(o.process)},"65f0":function(t,n,e){var r=e("861d"),o=e("e8b5"),i=e("b622"),c=i("species");t.exports=function(t,n){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)?r(e)&&(e=e[c],null===e&&(e=void 0)):e=void 0),new(void 0===e?Array:e)(0===n?0:n)}},"69f3":function(t,n,e){var r,o,i,c=e("7f9a"),u=e("da84"),a=e("861d"),f=e("9112"),s=e("5135"),l=e("c6cd"),d=e("f772"),p=e("d012"),h="Object already initialized",v=u.WeakMap,b=function(t){return i(t)?o(t):r(t,{})},y=function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}};if(c){var g=l.state||(l.state=new v),m=g.get,x=g.has,S=g.set;r=function(t,n){if(x.call(g,t))throw new TypeError(h);return n.facade=t,S.call(g,t,n),n},o=function(t){return m.call(g,t)||{}},i=function(t){return x.call(g,t)}}else{var w=d("state");p[w]=!0,r=function(t,n){if(s(t,w))throw new TypeError(h);return n.facade=t,f(t,w,n),n},o=function(t){return s(t,w)?t[w]:{}},i=function(t){return s(t,w)}}t.exports={set:r,get:o,has:i,enforce:b,getterFor:y}},"6eeb":function(t,n,e){var r=e("da84"),o=e("9112"),i=e("5135"),c=e("ce4e"),u=e("8925"),a=e("69f3"),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var a,f=!!u&&!!u.unsafe,d=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),a=s(e),a.source||(a.source=l.join("string"==typeof n?n:""))),t!==r?(f?!p&&t[n]&&(d=!0):delete t[n],d?t[n]=e:o(t,n,e)):d?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},7418:function(t,n){n.f=Object.getOwnPropertySymbols},7839:function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,n,e){var r=e("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,n,e){var r,o=e("825a"),i=e("37e8"),c=e("7839"),u=e("d012"),a=e("1be4"),f=e("cc12"),s=e("f772"),l=">",d="<",p="prototype",h="script",v=s("IE_PROTO"),b=function(){},y=function(t){return d+h+l+t+d+"/"+h+l},g=function(t){t.write(y("")),t.close();var n=t.parentWindow.Object;return t=null,n},m=function(){var t,n=f("iframe"),e="java"+h+":";return n.style.display="none",a.appendChild(n),n.src=String(e),t=n.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(n){}x=r?g(r):m();var t=c.length;while(t--)delete x[p][c[t]];return x()};u[v]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(b[p]=o(t),e=new b,b[p]=null,e[v]=t):e=x(),void 0===n?e:i(e,n)}},"7f9a":function(t,n,e){var r=e("da84"),o=e("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,n,e){var r=e("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"884a":function(t,n,e){},8875:function(t,n,e){var r,o,i;(function(e,c){o=[],r=c,i="function"===typeof r?r.apply(n,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var e,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,u=i.exec(p.stack)||c.exec(p.stack),a=u&&u[1]||!1,f=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");a===s&&(e=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=e.replace(r,"$1").trim());for(var d=0;d<l.length;d++){if("interactive"===l[d].readyState)return l[d];if(l[d].src===a)return l[d];if(a===s&&l[d].innerHTML&&l[d].innerHTML.trim()===o)return l[d]}return null}}return t}))},8925:function(t,n,e){var r=e("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"90e3":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},9112:function(t,n,e){var r=e("83ab"),o=e("9bf2"),i=e("5c6c");t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},"94ca":function(t,n,e){var r=e("d039"),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},"9bf2":function(t,n,e){var r=e("83ab"),o=e("0cfb"),i=e("825a"),c=e("c04e"),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n,!0),i(e),o)try{return u(t,n,e)}catch(r){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},a640:function(t,n,e){"use strict";var r=e("d039");t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},a691:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},ab13:function(t,n,e){var r=e("b622"),o=r("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[o]=!1,"/./"[t](n)}catch(r){}}return!1}},b622:function(t,n,e){var r=e("da84"),o=e("5692"),i=e("5135"),c=e("90e3"),u=e("4930"),a=e("fdbf"),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},b64b:function(t,n,e){var r=e("23e7"),o=e("7b0b"),i=e("df75"),c=e("d039"),u=c((function(){i(1)}));r({target:"Object",stat:!0,forced:u},{keys:function(t){return i(o(t))}})},b727:function(t,n,e){var r=e("0366"),o=e("44ad"),i=e("7b0b"),c=e("50c4"),u=e("65f0"),a=[].push,f=function(t){var n=1==t,e=2==t,f=3==t,s=4==t,l=6==t,d=7==t,p=5==t||l;return function(h,v,b,y){for(var g,m,x=i(h),S=o(x),w=r(v,b,3),O=c(S.length),j=0,T=y||u,E=n?T(h,O):e||d?T(h,0):void 0;O>j;j++)if((p||j in S)&&(g=S[j],m=w(g,j,x),t))if(n)E[j]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return j;case 2:a.call(E,g)}else switch(t){case 4:return!1;case 7:a.call(E,g)}return l?-1:f||s?s:E}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},be91:function(t,n,e){"use strict";e("884a")},c04e:function(t,n,e){var r=e("861d");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,n){t.exports=!1},c6b6:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},c6cd:function(t,n,e){var r=e("da84"),o=e("ce4e"),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},c8ba:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"===typeof window&&(e=window)}t.exports=e},ca84:function(t,n,e){var r=e("5135"),o=e("fc6a"),i=e("4d64").indexOf,c=e("d012");t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);while(n.length>a)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},caad:function(t,n,e){"use strict";var r=e("23e7"),o=e("4d64").includes,i=e("44d2");r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(t,n,e){var r=e("da84"),o=e("861d"),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},ce4e:function(t,n,e){var r=e("da84"),o=e("9112");t.exports=function(t,n){try{o(r,t,n)}catch(e){r[t]=n}return n}},d012:function(t,n){t.exports={}},d039:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},d066:function(t,n,e){var r=e("428f"),o=e("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][n]||o[t]&&o[t][n]}},d1e7:function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},da84:function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e("c8ba"))},df75:function(t,n,e){var r=e("ca84"),o=e("7839");t.exports=Object.keys||function(t){return r(t,o)}},e893:function(t,n,e){var r=e("5135"),o=e("56ef"),i=e("06cf"),c=e("9bf2");t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},e8b5:function(t,n,e){var r=e("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},f772:function(t,n,e){var r=e("5692"),o=e("90e3"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,n,e){"use strict";if(e.r(n),e.d(n,"Collapse",(function(){return v})),e.d(n,"Toggle",(function(){return b})),"undefined"!==typeof window){var r=window.document.currentScript,o=e("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(e.p=i[1])}var c=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"collapse",class:{"collapse--is-active":t.isActive,"collapse--is-animating":t.isAnimating},style:t.style,on:{transitionend:t.onTransitionEnd}},[t._t("default")],2)},u=[],a="toggle::collapse",f="collapse::accordion",s="collapse::toggle",l={props:{id:{type:String,default:null},value:{type:Boolean,default:!1},accordion:{type:String,default:null}},data:function(){return{isActive:this.value,isAnimating:!1,height:null}},computed:{style:function(){return{height:null!=this.height?"".concat(this.height,"px"):null}}},watch:{value:function(t){this.setValue(t)}},mounted:function(){this.listenOnRoot(a,this.handleToggleEvt),this.listenOnRoot(f,this.handleAccordionEvt)},methods:{setValue:function(t){t?this.doShow():this.doHide(),this.emitState(t)},doShow:function(){this.isActive=!0,this.startAnimation(this.isActive)},doHide:function(){this.isActive=!1,this.startAnimation(this.isActive)},startAnimation:function(t){var n=this;this.isAnimating=!0,this.height=this.$el.offsetHeight,this.$nextTick((function(){requestAnimationFrame((function(){requestAnimationFrame((function(){n.height=t?n.$el.scrollHeight:0}))}))}))},handleToggleEvt:function(t){t===this.id&&this.toggle()},handleAccordionEvt:function(t,n){this.accordion&&n===this.accordion&&(t===this.id?this.isActive||this.toggle():this.isActive&&this.toggle())},listenOnRoot:function(t,n){var e=this;return this.$root.$on(t,n),this.$on("hook:beforeDestroy",(function(){e.$root.$off(t,n)})),this},emitState:function(t){this.$emit("input",t),this.$root.$emit(s,this.id,t),this.accordion&&t&&this.$root.$emit(f,this.id,this.accordion)},toggle:function(){this.setValue(!this.isActive)},onTransitionEnd:function(){this.height=null,this.isAnimating=!1}}},d=l;e("be91");function p(t,n,e,r,o,i,c,u){var a,f="function"===typeof t?t.options:t;if(n&&(f.render=n,f.staticRenderFns=e,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),c?(a=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(c)},f._ssrRegister=a):o&&(a=u?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(t,n){return a.call(n),s(t,n)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}var h=p(d,c,u,!1,null,null,null),v=h.exports,b=(e("b64b"),e("159b"),e("caad"),e("2532"),{bind:function(t,n,e){var r=n.modifiers,o=n.value,i=Object.keys(r);o&&i.push(o),t.addEventListener("click",(function(t){t.preventDefault(),i.forEach((function(t){e.context.$root.$emit(a,t)}))})),setTimeout((function(){e.context.$root.$on(s,(function(n,e){i.includes(n)&&(e?t.classList.add("is-toggle-active"):t.classList.remove("is-toggle-active"))}))}))},unbind:function(t,n,e){e.context.$root.$off(s),t.classList.remove("is-toggle-active")}}),y={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed){var e="Collapse",r="toggle";this.installed=!0,this.componentName=n.componentName||e,this.directiveName=n.directiveName||r,t.component(this.componentName,v),t.directive(this.directiveName,b)}}},g=y,m=g;n["default"]=m},fc6a:function(t,n,e){var r=e("44ad"),o=e("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,n,e){var r=e("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
//# sourceMappingURL=collapse.umd.min.js.map