!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Vue")):"function"==typeof define&&define.amd?define("VueElementUiPlus",["Vue"],e):"object"==typeof exports?exports.VueElementUiPlus=e(require("Vue")):t.VueElementUiPlus=e(t.Vue)}(self,l=>(()=>{"use strict";var n={601:(t,e,n)=>{var r=n(2740),n=n.n(r);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"object"===("undefined"==typeof Int8Array?"undefined":o(Int8Array))||n().prototype.$isServer||document.childNodes},3636:(t,e,n)=>{n.d(e,{hq:()=>r});n(2740),n(601);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.prototype.hasOwnProperty;var r=function(r){var t;return"object"===o(r)&&(t=["ms-","webkit-"],["transform","transition","animation"].forEach(function(e){var n=r[e];e&&n&&t.forEach(function(t){r[t+e]=n})})),r}},1900:(t,e,n)=>{n.d(e,{Z:()=>function(t,e,n,r,o,a,i,s){var c,l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0);r&&(l.functional=!0);a&&(l._scopeId="data-v-"+a);i?(c=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o);{var u;c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(t,e){return c.call(e),u(t,e)}):(e=l.beforeCreate,l.beforeCreate=e?[].concat(e,c):[c]))}return{exports:t,options:l}}})},2740:t=>{t.exports=l}},r={};function o(t){var e=r[t];return void 0!==e||(e=r[t]={exports:{}},n[t](e,e.exports,o)),e.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var t={};{function e(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":t.active,"el-carousel__item--card":"card"===t.$parent.type,"is-in-stage":t.inStage,"is-hover":t.hover,"is-animating":t.animating},style:t.itemStyle,on:{click:t.handleItemClick}},["card"===t.$parent.type?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.active,expression:"!active"}],staticClass:"el-carousel__mask"}):t._e(),t._v(" "),t._t("default")],2)}o.d(t,{default:()=>c}),e._withStripped=!0;var a=o(3636),i={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(t,e,n){return 0===e&&t===n-1?-1:e===n-1&&0===t?n:t<e-1&&n/2<=e-t?n+1:e+1<t&&n/2<=t-e?-2:t},calcCardTranslate:function(t,e){var n=this.$parent.$el.offsetWidth;return this.inStage?n*(1.17*(t-e)+1)/4:t<e?-1.83*n/4:3.83*n/4},calcTranslate:function(t,e,n){return this.$parent.$el[n?"offsetHeight":"offsetWidth"]*(t-e)},translateItem:function(t,e,n){var r=this.$parent.type,o=this.parentDirection,a=this.$parent.items.length;"card"!==r&&void 0!==n&&(this.animating=t===e||t===n),t!==e&&2<a&&this.$parent.loop&&(t=this.processIndex(t,e,a)),"card"===r?("vertical"===o&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(t-e))<=1,this.active=t===e,this.translate=this.calcCardTranslate(t,e),this.scale=this.active?1:.83):(this.active=t===e,this.translate=this.calcTranslate(t,e,"vertical"===o),this.scale=1),this.ready=!0},handleItemClick:function(){var t,e=this.$parent;e&&"card"===e.type&&(t=e.items.indexOf(this),e.setActiveItem(t))}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var t="vertical"===this.parentDirection?"translateY":"translateX",t="".concat(t,"(").concat(this.translate,"px) scale(").concat(this.scale,")");return(0,a.hq)({transform:t})}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},i;(i=(0,o(1900).Z)(i,e,[],!1,null,null,null)).options.__file="packages/carousel/src/item.vue";const s=i.exports,c=(s.install=function(t){t.component(s.name,s)},s)}return t.default})());