"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.externalTwin = void 0;
const externalTwin = function () {
  let {
    instances = [],
    source
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  const value = {
    send_to: instances.map(function () {
      let {
        idAnalytics
      } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      return idAnalytics;
    }),
    source,
    step: 'TWIN'
  };
  window.gtag('event', 'open_twin', value);
  return value;
};
exports.externalTwin = externalTwin;
//# sourceMappingURL=externalTwin.js.map