'use strict';

var vue = require('vue');

const getGmExports = (elRef, exposeNames) => {
  const exposeFns = exposeNames.reduce((acc, cur) => {
    return { ...acc, [cur]: vue.computed(() => elRef.value?.[cur]) };
  }, {});
  return {
    exposeFns
  };
};
const getGmObjExports = (elRef, exposeNames) => {
  const exposeFns = exposeNames.reduce((acc, cur) => {
    return { ...acc, [cur]: (...args) => elRef.value?.[cur](...args) };
  }, {});
  return {
    exposeFns
  };
};

exports.getGmExports = getGmExports;
exports.getGmObjExports = getGmObjExports;
//# sourceMappingURL=exports.js.map
