text: /*! 
   Version 1.0.0
   Pack by srxboys on 2020-10-29 10:23:49
   Copyright © 2020 xxx.All Rights Reserved
   */
  (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{158:function(t,e,a){"use strict";a.r(e);a(103);var n=a(26),i={mixins:[{methods:{animateAddEndListener:function(t){t.addEventListener("animationend",(function(){for(var e=t.classList||[],a=[],n=0;n<e.length;n++){var i=e[n];i&&(i.length>6&&"animate"===i.substring(0,7)||a.push(i))}t.classList=a,t.classList.value=a.join(" ")}))},animateRemoveAllListener:function(t){t&&Array.isArray(t)&&t.forEach((function(t){t.removeEventListener("animationend")}))},animateRemoveListener:function(t){t.removeEventListener("animationend")},animateChildNodes:function(t,e){var a=t.childNodes;if(a&&a.length)for(var n=0;n<a.length;n++){var i=a[n];i&&1===i.nodeType&&e&&"function"==typeof e&&e(i)}},animateForElement:function(t,e){var a=this;this.animateChildNodes(t,(function(t){var n=t.getAttribute("data-animation");n&&"string"==typeof n&&e.push(t),1===t.nodeType&&t.childElementCount>0&&a.animateForElement(t,e)}))},animateGetTarget:function(t){if(t){if("string"==typeof t){var e=t.substring(0,1);if("#"===e){var a=t.slice(1,t.length);return document.getElementById(a)}"."!==e&&(t="."+t);var i=t.slice(1,t.length);return document.getElementsByClassName(i)}if("object"===Object(n.a)(t)){if(1===t.nodeType)return t;throw new TypeError("animateGetTarget target.nodeType !== 1")}throw new TypeError("animateGetTarget target allow string/object")}throw new TypeError("animateGetTarget target = null")},animatePlayground:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=0;e<t.length;e++){var a=t[e],n=this.animateGetTarget(a);if(n&&1===n.nodeType){var i="".concat(n.getAttribute("data-animation"));if(i&&"null"!==i){this.animateAddEndListener(n);var s=i.split(" ");for(var r in n.classList.add("animate__animated"),s){var o=s[r];if(o&&"string"==typeof o&&o.length){var l="animate__"+o;n.classList.add(l)}}}}}}}},{data:function(){return{animateSeekers:[],animateEntrances:[]}},beforeDestory:function(){this.animateRemoveAllListener(this.animateSeekers),this.animateRemoveAllListener(this.animateEntrances)},mounted:function(){var t=this;this.getAllAnimate(),setTimeout((function(){t.playAll()}),400)},methods:{getAllAnimate:function(){this.getAnimateSeekers(),this.getAnimagteEntrances()},getAnimateSeekers:function(){var t=[],e=this.animateGetTarget(".seekers");this.animateForElement(e[0],t),this.animateSeekers=t},getAnimagteEntrances:function(){var t=this.animateGetTarget(".entrances"),e=[];this.animateForElement(t[0],e),this.animateEntrances=e},playAll:function(){this.playTip(),this.playSeekersAnimate(),this.playEntrancesAnimate()},playKeynote:function(t){var e=!0,a=t.target,n=a.className;if("data seekers"!==n&&"data entrances"!==n)for(;e;)"data seekers"!==(n=(a=a.parentElement).className)&&"data entrances"!==n||(e=!1);"data seekers"===n?this.playSeekersAnimate():"data entrances"===n&&this.playEntrancesAnimate()},playSeekersAnimate:function(){this.animatePlayground(this.animateSeekers)},playEntrancesAnimate:function(){this.animatePlayground(this.animateEntrances)},playTarget:function(t){var e=t.target;this.animatePlayground([e])},playTip:function(){var t=this.$refs.tip;this.animatePlayground([t])}}}],data:function(){return{data:[{className:"seekers",keynote:"Attention seekers",dataAnimation:"heartBeat slower repeat-4 delay-1s",des:["bounce","flash","pulse","rubberBand","shakeX","shakeY","headShake","swing","tada","wobble","jello","heartBeat"]},{className:"entrances",keynote:"Back entrances",dataAnimation:"backInUp fast delay-1s",des:["backInDown","backInLeft","backInRight","backInUp"]}]}},methods:{goback:function(){history.go(-1)}}},s=a(12),r=Object(s.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[a("h2",{on:{click:t.goback}},[t._v("vue-animatecss-mixin demo")]),t._v(" "),a("hr"),t._v(" "),a("div",{ref:"tip",staticClass:"tip",attrs:{"data-animation":"jackInTheBox"},on:{click:t.playTip}},[t._v("ref animate.css")]),t._v(" "),a("div",{staticClass:"container"},t._l(t.data,(function(e,n){return a("div",{key:"data_"+n,staticClass:"data",class:e.className,on:{click:t.playKeynote}},[a("div",{staticClass:"title",attrs:{"data-animation":e.dataAnimation}},[t._v(t._s(e.keynote))]),t._v(" "),a("div",{staticClass:"content"},t._l(e.des,(function(e,n){return a("div",{key:"des_"+n,staticClass:"des cursor",attrs:{"data-animation":e},on:{click:function(e){return e.stopPropagation(),t.playTarget(e)}}},[t._v("\n          "+t._s(e)+"\n        ")])})),0)])})),0)])}),[],!1,null,null,null);e.default=r.exports}}]);