"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),n=require("./props-util/index.js"),a={methods:{setState(t={},s){let e=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const i=this.getDerivedStateFromProps(n.getOptionProps(this),{...this.$data,...e});if(i===null)return;e={...e,...i||{}}}Object.assign(this.$data,e),this._.isMounted&&this.$forceUpdate(),o.nextTick(()=>{s&&s()})},__emit(){const t=[].slice.call(arguments,0);let s=t[0];s=`on${s[0].toUpperCase()}${s.substring(1)}`;const e=this.$props[s]||this.$attrs[s];if(t.length&&e)if(Array.isArray(e))for(let i=0,r=e.length;i<r;i++)e[i](...t.slice(1));else e(...t.slice(1))}}};exports.default=a;
