'use strict';

"use strict";
function withInstall(options) {
  ;
  options.install = (app) => {
    const { name } = options;
    if (name) {
      app.component(name, options);
      const camelCaseName = name.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
      app.component(camelCaseName, options);
    }
  };
  return options;
}
const withInstallFunction = (fn, name) => {
  ;
  fn.install = (app) => {
    ;
    fn._context = app._context;
    app.config.globalProperties[name] = fn;
  };
  return fn;
};
const withInstallDirective = (directive, name) => {
  ;
  directive.install = (app) => {
    app.directive(name, directive);
  };
  return directive;
};

exports.withInstall = withInstall;
exports.withInstallDirective = withInstallDirective;
exports.withInstallFunction = withInstallFunction;
//# sourceMappingURL=install.js.map
